Skip to main content

A Python library designed for developers and analysts to calculate betting odds with ease using the power of Poisson distribution based on team qualities.

Project description

Odds by Poisson Distribution

This library enables the calculation of betting odds (moneyline, handicaps, totals) based on team qualities using the Poisson distribution.

It provides a simple interface for initializing calculations, requiring only the qualities of both teams. These qualities can be obtained using metrics such as expected goals (xG) or average number of goals.

Installation

pip install poisson-odds

Usage Example

from poisson_odds import *

test = Poisson(1.1, 2.1)

test.print_probability_table_goal_draws()
### Output:

Probability Table

print(test.moneyline)

### Output:
1-X-2: 5.291-4.878-1.669
handicaps = test.calculate_handicap_odds_by_Poisson()
print('\n'.join([str(items) for key, items in handicaps.items()]))
### Output:
...
0.75: 2.206 / 1.879
1.0: 1.918 / 2.089
1.25: 1.75 / 2.403
1.5: 1.582 / 2.717
...
totals = test.calculate_total_odds_by_Poisson()
print('\n'.join([str(items) for key, items in totals.items()]))
### Output:
...
Over/Under 2.75: 1.788 / 2.333
Over/Under 3: 1.961 / 2.04
Over/Under 3.25: 2.243 / 1.848
Over/Under 3.5: 2.525 / 1.656
...

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

poisson_odds-0.1.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

poisson_odds-0.1.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file poisson_odds-0.1.1.tar.gz.

File metadata

  • Download URL: poisson_odds-0.1.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for poisson_odds-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cb9f2c9f15034bf02dd0d8bd898d36d417e6e7129d09276f8a186d6929790ff4
MD5 3af7c1fc54c5cb2c2ef3ae8415b3df91
BLAKE2b-256 f372a759287708b8c3cf4f7c3c0a2760e417c062cb4777c10181904720d5b593

See more details on using hashes here.

File details

Details for the file poisson_odds-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: poisson_odds-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for poisson_odds-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa8ee38b194d5327b2ca2cb87b21cf6981d3272e60c72f95b990d18446758103
MD5 39eab218d640171aacd3cdf460b309d7
BLAKE2b-256 59f5fa84242ce9c46677f9e55028c6f52a24ebea130191e899ec85f16643135e

See more details on using hashes here.

Supported by

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