Skip to main content

Library from http://pena.lt/y/blog for scraping and modelling football (soccer) data

Project description

Penalty Blog

Python Version Coverage Status PyPI Downloads License: MIT Code style: black Code style: pre-commit

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
  • 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:

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

Project details


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.5.0.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

penaltyblog-0.5.0-py3-none-any.whl (44.5 kB view details)

Uploaded Python 3

File details

Details for the file penaltyblog-0.5.0.tar.gz.

File metadata

  • Download URL: penaltyblog-0.5.0.tar.gz
  • Upload date:
  • Size: 26.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.9.12 Darwin/21.6.0

File hashes

Hashes for penaltyblog-0.5.0.tar.gz
Algorithm Hash digest
SHA256 ec85c18227bd1e0e25387c7375d25c97acdfc55aab330cc1de0192336d8df790
MD5 0cc002f70ba6a88e4dfb01e8c55c5438
BLAKE2b-256 66473ae458afe27976be4d775bde677dc4091d3211e218065d434c8a346eb862

See more details on using hashes here.

File details

Details for the file penaltyblog-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: penaltyblog-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 44.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.9.12 Darwin/21.6.0

File hashes

Hashes for penaltyblog-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe6f1fd62382aa887e9cdff18b9bd2971b837474f1e49273af7f4007e235c2c9
MD5 95903eaae8548604fd3bbcfeaedbfa2c
BLAKE2b-256 24bd58a9b93cef3bbdd57fb7bc4bfe8523d271503f932f058fb053506eb53c7e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page