Work / Case study
NBA Edge Predictor
A Python machine learning app that forecasts NBA player points and the probability of reaching scoring thresholds, with a Streamlit dashboard.
- Role
- Developer
- Built with
- Python, LightGBM, pandas, SciPy, Streamlit, pytest

What it is
A Python machine learning app that forecasts how many points an NBA player will score. It uses LightGBM trained on historical features built so that no information from the future leaks into a prediction. Negative Binomial distributions (SciPy) turn each forecast into the probability of different scoring totals.
How it works
The data pipeline and feature engineering are written in pandas. The model is backtested on games it had not seen.
Results
- Mean absolute error of 4.66 points, against 4.77 for a baseline that predicts a player's average over their last 10 games.
- A Brier score 31% lower than a constant-guess baseline (0.0688 against 0.0999).
Quality and interface
332 automated pytest tests cover 98% of the code. A Streamlit dashboard shows player profiles, probability views and daily top picks.