Machine Learning Sports Betting on the NBA Season (Before the Bubble)

Wade Johnson
Sep 23, 2020 · 11 min read

This is a supervised learning model that utilized a large statistical dataset to predict NBA games and placed hypothetical bets on them. The stats have been gathered from basketball-reference using the sportsreference API. The full notebook can be found here.

The NBA is the most rapidly changing American sport with the transition to prioritizing 3-point shooting and playing at a much faster pace than before. For this reason, the data from seasons further past start to hurt the model’s performance. The key insight…