Library from http://pena.lt/y/blog for scraping and modelling football (soccer) data
Project description
Penalty Blog
The penaltyblog Python package contains lots of useful code from pena.lt/y/blog for working with football (soccer) data.
penaltyblog includes functions for:
- Scraping football data from sources such as football-data.co.uk, ESPN, Club Elo, Understat and Fantasy Premier League
- Modelling of football matches using Poisson-based models, such as Dixon and Coles, and Bayesian models
- Predicting probabilities for many betting markets, e.g. Asian handicaps, over/under, total goals etc
- Modelling football team's abilities using Massey ratings and Colley ratings
- Estimating the implied odds from bookmaker's odds by removing the overround using multiple different methods
- Mathematically optimising your fantasy football team
Installation
pip install penaltyblog
Documentation
To learn how to use penaltyblog, you can read the documentation and look at the examples for:
- Scraping football data
- Predicting football matches and betting markets
- Estimating the implied odds from bookmakers odds
- Calculate Massey and Colley ratings
References
- Mark J. Dixon and Stuart G. Coles (1997) Modelling Association Football Scores and Inefficiencies in the Football Betting Market
- Håvard Rue and Øyvind Salvesen (1999) Prediction and Retrospective Analysis of Soccer Matches in a League
- Anthony C. Constantinou and Norman E. Fenton (2012) Solving the problem of inadequate scoring rules for assessing probabilistic football forecast models
- Hyun Song Shin (1992) Prices of State Contingent Claims with Insider Traders, and the Favourite-Longshot Bias
- Hyun Song Shin (1993) Measuring the Incidence of Insider Trading in a Market for State-Contingent Claims
- Joseph Buchdahl (2015) The Wisdom of the Crowd
- Gianluca Baio and Marta A. Blangiardo (2010) Bayesian Hierarchical Model for the Prediction of Football Results
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
penaltyblog-0.6.1.tar.gz
(27.2 kB
view details)
Built Distribution
File details
Details for the file penaltyblog-0.6.1.tar.gz
.
File metadata
- Download URL: penaltyblog-0.6.1.tar.gz
- Upload date:
- Size: 27.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.8 Darwin/22.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79da9643c2839a028482fbd1458ceaceecab119539cad696138e8c823652cb6f |
|
MD5 | 2aabc4bbc54c01a7f7040c70f3c63d2a |
|
BLAKE2b-256 | 08a77b7087d0558405fb71d1247e84210289e57b7bda42614dd3750dfeb75615 |
File details
Details for the file penaltyblog-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: penaltyblog-0.6.1-py3-none-any.whl
- Upload date:
- Size: 46.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.8 Darwin/22.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0101158a33e251760634af8e1e326f3a1d5bb202d9934fc3526a4ad1b99d4d0d |
|
MD5 | 268203c13dc38a833b8520f9b323d4f5 |
|
BLAKE2b-256 | a7da0421cea203c744ada71c1ebcf756b52c6ce846b0aebfb3876ab2a5e3ae43 |