Every NBA modeling tutorial makes the same quiet mistake: the features include information from the game being predicted. Season averages computed including today's game, rolling stats that peek at the final score — the model looks brilliant in backtests and ordinary in production.
So I built the dataset I actually wanted:
NBA Point-in-Time Team Features — one row per game, 56 features per game (28 per team), where every single feature is computed only from games played before tip-off:
- Season-to-date per-game averages, blended with the team's previous-season final averages (10-pseudo-game weight) so early-season rows are stable
- Last-10-games form: scoring, defense, shooting, pace, plus/minus
- Percentages computed from cumulative makes/attempts, never by averaging percentages
- Exact box-score values for the awkward ones (blocks against, fouls drawn)
Free samples (no catch)
- 79 games of 2026-27 on Kaggle: https://www.kaggle.com/datasets/kmdspark5/nba-point-in-time-team-features-sample-2026-27
- A runnable demo notebook (Gradient Boosting baseline): https://www.kaggle.com/code/kmdspark5/predicting-nba-totals-with-leak-free-features
- Code and README on GitHub: https://github.com/kmdspark5/nba-point-in-time-features
The honest part
On the full 2025-26 season, a default Gradient Boosting model trained on this data scores RMSE 19.56 / MAE 15.56 / 39.2% of games within ±10 points. Graded live in November 2026, it ran worse than that (MAE 16.6, 26.7% within ±10 over 45 games). Early-season basketball is noisy.
I also ran a separate 3-season walk-forward backtest of the model's predictions against closing totals (3,216 games). Betting the model's side on every game won 48.7% — it does not beat the line. Only at large divergences (|prediction − line| ≥ 8) did it reach 53.7% (807 bets, 95% CI roughly 50–57%), and the first two live flagged games both lost. That study is published too, with the full per-game data, because a backtest you can't inspect is just marketing.
Full versions
- Full dataset: 4,372 games, 2022-23 → 2026-27 ($19); Extended edition: 22,054 games back to 2005-06 ($39)
- The 3-season backtest with per-game predictions vs closing lines ($12)
- The model source code (Python, GB+RF ensemble) ($49)
Store: https://kmdspark5.gumroad.com — launch code LAUNCH25 = 25% off until Nov 30, 2026.
Interesting footnote: training on 21 seasons instead of 3 made the benchmark slightly worse (RMSE 19.78 vs 19.56). More history is not free accuracy — the NBA of 2008 is not the NBA of 2026. Era-aware weighting is where the extra seasons should pay off, and that's the next experiment.
