← Statpro dev log

An NFL model that never looks at the spread

#data#sports#ai-agents

An amber bell-shaped histogram on the left, cut off by a hatched wall from a dashed market line and dashed betting slips on the right

Sports models drift toward the betting market. Feed one a single line, such as the point spread (the bookmaker's predicted margin of victory), and it learns to repeat that line back, and after that nothing it says can be checked against anything.

So the NFL game model I built for Statpro, my sports stats and betting-research site, never reads a betting line. The line isn't a feature, a prior or a tiebreaker. The market appears exactly once, after the fact, as the thing every prediction gets graded against.

Points first, from team history only

The inputs are team game history and matchup context. From those, the model samples a distribution over final scores. Sampling matters more than it sounds. A single predicted score answers one question, while a distribution answers all of them at once: the most likely score, the margin, the total, and how confident the model is in each.

Scoring is walk-forward. Train on every game before a given week, predict that week, then compare the prediction with the closing spread and total. The closing line is the last price before kickoff, after everyone with an opinion has had a say, which makes it the hardest public benchmark there is. Walk-forward keeps the test fair, because a model that has already seen week nine can't claim to predict week eight. The whole comparison lives inside the test suite, next to the unit tests.

Then every stat the simulation can carry

Points were step one. Step two added the stats that hang off a game: interceptions, sacks taken, longest plays, fumbles lost, kicker scoring and team defense. Each is projected per player and then reconciled to the team totals the game simulation (the model's sampled scores for that game) produced, so the players on a team can't add up to a game the simulation never played.

Step three went to individual defenders: tackles, solo tackles, assists, sacks, tackles for loss, quarterback hits, passes defended, interceptions and forced fumbles. Those come from snap share and opponent volume. A defender who plays most of the snaps against an offense that runs a lot of plays gets more chances, and the projection starts from that count of chances.

INSIDE THE MODEL no betting line anywhere Team history and matchup context Game simulation: score distribution Player stats reconcile to team totals projection AFTER THE GAME the market only grades Closing spread and total Scorer: projection against the line Grade stored for every game
The market sits outside the loop. It only shows up where the grade is written down.

Predictions stored next to the answer key

A new database table stores each game projection beside the spread and total lines it will be judged against, and a grading step fills in the result. The model runs weekly on a schedule. Game-level rows publish behind one on/off flag, so the public output is one switch.

The review pass caught five real bugs in the projection model. A model with this many moving parts needs a second read before its numbers go anywhere a person can see them, and five is the count that proves it.

Why refuse free information

The closing line is the best public forecast available, and it costs nothing. Leaving it out looks like throwing accuracy away. I left it out for two reasons.

First, a model that has never seen the line can be compared with the close on equal terms. When it agrees with the market, it got there from football. When it disagrees, the disagreement is information, and the stored grades say over time whether that information was worth anything. A model fed the line can only report how well it copied.

Second, the stat projections inherit that independence. They are constrained by the game simulation and have never seen a prop market, the betting market on one player's stat line, which makes them the right input for my own prop numbers. Had they been trained near the market, any prop number built on them would be the market's opinion at one remove.

If you're building a model in a field with a strong public benchmark, decide early whether the benchmark is an input or a judge. It can't honestly be both, and the judge is the more useful job.

This is the build log for Statpro (statpro.io) · All entries · Weekly essays