Problem
Pick the winner and the spread of every NFL game without letting the future leak into the training set.
Twenty seasons of play-by-play data make a rich feature set, but a random train-test split lets games from 2023 inform predictions about 2015. Hobby models that do this look better than they are.
Decision
A temporal split and gradient boosting, with a second model for the spread.
An XGBoost classifier trained on seasons strictly before the validation season predicts the winner; a spread regression model predicts the point differential. FastAPI serves both from PostgreSQL to a React dashboard.
Result
62.89% winner accuracy on the 2023 season, 4.69 points over the better-record baseline.
A classification result, not a betting edge: the classifier beat the better-record baseline (58.20%) by 4.69 percentage points and always-home (55.51%) by 7.38; it scored 63.7% on the 2024 season, and the spread model reached a mean absolute error of 10.68 points. The public app was retired in June 2026; the data and source code are preserved.