NBA-Machine-Learning-Sports-Betting

NBA sports betting using machine learning

What is NBA-Machine-Learning-Sports-Betting?

NBA sports betting using machine learning

Overview of NBA-Machine-Learning-Sports-Betting

What it is

NBA-Machine-Learning-Sports-Betting is an open-source project that predicts NBA game winners and totals (over/under) using team statistics and sportsbook odds. It pulls team data from the 2007-08 season through the current season, builds matchup features, and runs trained machine learning models to estimate win probabilities and totals outcomes. The project also outputs expected value and optional Kelly Criterion stake sizing.

Key features

  • Moneyline and totals predictions using XGBoost and Neural Net models.
  • Expected value calculation and optional Kelly Criterion sizing.
  • Odds ingest from supported sportsbooks (FanDuel, DraftKings, BetMGM, PointsBet, Caesars, Wynn, BetRivers NY) or manual input.
  • Data processing pipeline and model training scripts.
  • Flask web app for browsing outputs.

Use cases

  • Generating daily NBA betting predictions with win probabilities and totals outcomes.
  • Evaluating expected value and optimal stake sizing using Kelly Criterion.
  • Backtesting models on historical NBA data from 2007-08 onward.
  • Automating odds collection and matchup feature engineering for research or personal betting.

Getting started

Install dependencies:pip3 install -r requirements.txtRun a prediction:python3 main.py -xgb -odds=fanduelOptional flags: -nn (neural network), -xgb (XGBoost), -A (all models), -kc (Kelly Criterion).

License and pricing

The license is not stated. The project is listed as open source.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/kyleskomnba-machine-learning-sports-betting.svg)](https://yunodb.com/tools/kyleskomnba-machine-learning-sports-betting?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/kyleskomnba-machine-learning-sports-betting?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/kyleskomnba-machine-learning-sports-betting.svg" alt="Featured on YunoDB" height="20"></a>