Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Predicts NBA winners against the spread using statistics, betting lines, and scikit-learn.
DataBall is an open-source Python tool that predicts NBA winners against the spread by combining player statistics from stats.nba.com with betting lines scraped from covers.com. The project is built around a machine-learning pipeline that stores historical data in SQLite, models it with scikit-learn, and documents every step in Jupyter notebooks and a GitHub Pages site.
DataBall is a Python-based sports analytics project that uses machine learning to forecast whether NBA teams cover the point spread. It takes in team and player statistics via the nba_api package, point-spread and over/under lines scraped from covers.com using Scrapy, and produces predictions trained with scikit-learn. The repository also includes a SQLite database of historical data, Jupyter notebooks with all analyses, and LaTeX files for a report and slides.
covers directory scrapes point spreads and over/under lines from covers.com.notebooks directory.docs directory.DataBall works in three steps: it pulls NBA statistics from stats.nba.com via nba_api, scrapes point spreads and over/under lines from covers.com with a Scrapy spider, and then trains scikit-learn models on the combined data to predict whether teams cover the spread. All code is written in Python, and the data is stored in a SQLite database for reuse.
Yes, DataBall is an open-source project hosted on GitHub, so the source code is freely available to view, use, and modify.
DataBall uses NBA statistics from stats.nba.com retrieved through the nba_api package and point-spread and over/under lines scraped from covers.com using Scrapy.
DataBall uses scikit-learn to train its prediction models.
Collected statistics are stored in a SQLite database. A test database with data from 1990 to March 2020 is available for download in the repository.
Yes, the project includes a GitHub Pages site built with Jekyll, plus Jupyter notebooks that document all analyses.
