Reusable Elo, win-probability, and Kelly-sizing primitives for NBA-style models.
This is the library layer of the sports ML stack:
- reusable rating logic instead of notebook snippets
- portable win-probability helpers for downstream services
- Kelly and implied-probability helpers for decision support
- small, dependency-light package design
Pairs well with nba-clv-dashboard for evaluation UI. Employer one-pager: case study.
- Elo updates
- logistic win probability
- Kelly fraction sizing
- American odds to implied probability
pip install nba-edgefrom nba_edge import logistic_win_prob, update_elo, kelly_fraction, american_to_implied_prob
p = logistic_win_prob(rating_diff=120)
new_h, new_a = update_elo(1600, 1580, 1.0)
stake = kelly_fraction(p, -110, fraction=0.25)pip install build twine
python -m build
twine upload dist/*- No bundled NBA database or scrapers
- Not a tipster product
- Not a full modeling workflow by itself
pytest + ruff on Python 3.10-3.12.
sports-betting-ml: applied modeling demonba-clv-dashboard: evaluation dashboard
MIT