Skip to content

klane/databall

This branch is 1 commit ahead of main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

173faa1 · Jan 1, 2025
Jan 1, 2025
Oct 6, 2024
Oct 7, 2024
Oct 7, 2024
Sep 15, 2017
Apr 14, 2020
Apr 14, 2020
Nov 20, 2021
Oct 20, 2018
Oct 7, 2024
Apr 10, 2020
Oct 6, 2024
Apr 26, 2022
Apr 10, 2020
Oct 6, 2024

Repository files navigation

DataBall: Betting on the NBA with data

Test Status License

This project combines my interest in data science with my love of sports. I attempt to predict NBA winners against the spread using stats pulled from the NBA stats website with nba_api and point spreads and over/under lines from covers.com using the Python web scraping framework Scrapy. All code is written in Python and I used the popular machine learning library scikit-learn to make all predictions.

Contents:

  • covers: Scrapy project to scrape point spreads and over/under lines from covers.com
  • databall: Python module with support functions to perform tasks including collecting stats to a SQLite database, simulating seasons, and customizing plots
  • docs: Code required to build the GitHub Pages site for this project
  • notebooks: Jupyter notebooks of all analyses
  • report: LaTeX files for report and slides

Link to a test database with data from 1990 - March 2020 test nba.db file