{"id":19840940,"url":"https://github.com/torvaney/soccerstan","last_synced_at":"2025-05-01T19:30:48.616Z","repository":{"id":49562773,"uuid":"93934130","full_name":"Torvaney/soccerstan","owner":"Torvaney","description":"Reproduction of football models in Stan","archived":false,"fork":false,"pushed_at":"2021-06-14T14:08:44.000Z","size":42,"stargazers_count":36,"open_issues_count":2,"forks_count":6,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-06T17:06:39.964Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Torvaney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-10T11:11:11.000Z","updated_at":"2025-03-13T08:32:54.000Z","dependencies_parsed_at":"2022-09-18T22:32:22.300Z","dependency_job_id":null,"html_url":"https://github.com/Torvaney/soccerstan","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torvaney%2Fsoccerstan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torvaney%2Fsoccerstan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torvaney%2Fsoccerstan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Torvaney%2Fsoccerstan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Torvaney","download_url":"https://codeload.github.com/Torvaney/soccerstan/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251932592,"owners_count":21667175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T12:28:46.909Z","updated_at":"2025-05-01T19:30:48.235Z","avatar_url":"https://github.com/Torvaney.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Soccerstan\n\nReproductions of models for football (soccer) matches in Stan/PyStan.\n\n## How do I run the models?\n\nIt's pretty simple. You can just run `src/soccerstan.py` from the command line.\nThis requires the file containing match data\n(from [football-data.co.uk](football-data.co.uk)) and which model you want to\nuse as arguments.\n\nFor instance:\n\n```bash\n\u003e python soccerstan.py 'data/example.csv' 'karlis-ntzoufras'\n```\n\n## Models\n\nSo far, the following models have been implemented:\n\n * Maher (1982) - Modelling Association Football Scores - `maher`\n * Dixon and Coles (1997) - Modelling Association Football Scores and Inefficiencies in the Football Betting Market - `dixon-coles`\n * Karlis and Ntzoufras (2008) -  Bayesian modelling of football outcomes (using the Skellam's distribution) - `karlis-ntzoufras`\n\n## Data\n\nThe main `soccerstan` script has been written to work with data from [football-data.co.uk](football-data.co.uk). The 2015/16 English Premier League season has been added as an example data file.\n\nHowever, it will also work with any csv with columns labelled `home_team`, `away_team`, `home_goals`, `away_goals`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorvaney%2Fsoccerstan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftorvaney%2Fsoccerstan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftorvaney%2Fsoccerstan/lists"}