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

Uploaded Source

Built Distribution

penaltyblog-0.4.0-py3-none-any.whl (32.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: penaltyblog-0.4.0.tar.gz
  • Upload date:
  • Size: 21.8 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.4.0.tar.gz
Algorithm Hash digest
SHA256 d8c961e03dc8a8d5e1dcaf3e10cf5ef1c1632a24e1f5d2929b9bd7d444237f2a
MD5 4f35b7b6806d735649c6190cc0a2bed1
BLAKE2b-256 9ba0fb4b4e82978d43f683248d6189e0ac6e0a1b2407e4dc17b7708a6e80197c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: penaltyblog-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 32.7 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5589b67eec45e6660126ff7707042042fe3af23131f81237a9c7247aac0c0c57
MD5 b57f523a13e10555e23e4f2c066679c8
BLAKE2b-256 ff1faa15b7dbabf563d72ead539b18e0807d61f2344294f8e7701a3a9e58380b

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