The short version
Every NBA AI prediction sits next to the published line for the same stat. After the game the real number is compared with the closing line (explained below) and the row is graded. Nothing is edited after tip off and nothing is taken down, so anyone can check every grade this season, today without an account.
This is the rule set behind that grade, read from the code. The Glossary defines each word in one line.
What one prediction row is
A row is one player, one stat and one game, with four values:
- Prediction: the model's number for that stat in that game, for example 27.1 points.
- Line: the published over or under number for the same player and stat, for example 24.5.
- Lean: the side of the line the Prediction sits on. 27.1 against 24.5 is an Over lean. It says where the number landed and nothing more. At grading time the lean is read against the closing line, so it can differ from the lean shown earlier in the day.
- Diff %: how far apart the two numbers are, as a percentage of the line.
The line moves during the day as its source updates it. The slate (the day's list of predictions) shows the latest value. A game may only be published again until it tips off, and each publish replaces its rows.
What freezes at tip off
At tip off the predictions stop changing. The version live at that moment is the one that gets graded, and the site refuses a later publish for that game. Each row keeps the line it was published against, the line at prediction.
A game that reaches tip off with no published prediction stays "Not predicted". The model run publishes nothing for it afterwards, so it has no row in the hit or miss counts.
The closing line
A row is graded on the closing line, not the line at prediction. That is the last published line for that player and stat at or before tip off, the number anyone could see when the game started.
The closing line is written into the row once, by the first results post after tip off, and no later post moves it. When no line was published before tip off the row has no closing line and the line at prediction stands in. Once a game is scored, the slate's Line cell shows the closing line and its prices. The optional Line at prediction column (from the column chooser) keeps the earlier value.
Five outcomes
One SQL query in the repository that reads results sets the Result:
CASE WHEN t.g_status = 'postponed' OR t.dnp = 1 OR t.line_judged IS NULL OR t.actual IS NULL THEN 'void'
WHEN t.actual = t.line_judged THEN 'push'
WHEN t.actual > t.line_judged THEN 'over' ELSE 'under' END AS resultline_judged is the closing line, or the line at prediction when there is none. dnp is true when the result row does not say the player played. In plain words:
| Outcome | When | In the hit rate? |
|---|---|---|
| Hit | The real stat landed on the lean's side of the judged line | Yes |
| Miss | It landed on the other side | Yes |
| Push | The real stat equals the judged line exactly | No |
| Even | The Prediction equals the judged line exactly, so there was no side | No |
| Void | He did not play, the game was postponed, there was no line, or no stat was recorded | No |
A player on court under a minute is graded. Only a row the result marks as did not play or inactive is void. Even is an exact comparison on the stored values, so 7.48 against a line of 7.5 is an Under lean and is graded. A prediction the model floored (shown as 0) stays out of both counts.
Unconfirmed rows
A game with lineups or referees still unconfirmed close to tip off is predicted anyway, and each affected row is marked unconfirmed. That means the player, the starter at his position or the crew was not confirmed when the number was made. The slate shows that Prediction in brown.
Unconfirmed rows are graded like every other row and stay in the default counts. The Season Explorer and the model records have a Confirmed only switch that leaves them out of every count.
How the hit rate and the Lean record are counted
The lean hit rate is hits divided by hits plus misses. Pushes, evens, voids and floored predictions sit outside both numbers.
The Lean record on a row is the same count for one player and one stat over his earlier games this season. "4 of 5" means the lean hit in four of five graded games before this one. It is computed from rows up to the day before when the date's data is built, so an older date shows the record as it stood then.
Prediction accuracy is whether the real stat landed within 10 % of the Prediction. The test is that the gap between actual and prediction is at most 0.1 times actual, counted on rows where he played and a stat was recorded. No line is needed. A prediction of 20 is within 10 % of an actual 22 (2.2 allowed) but not of an actual 18 (1.8 allowed).
Live grade, then the box score
Results can arrive twice, a live result as games finish and later the official box score for the same games. The box score overwrites the live numbers, never the reverse. The end result is that a grade can change after it first appears. The closing line is not touched, but the real stat, the minutes, the played status, the comment and the fouls can be rewritten by a later post.
Where to see it
- The slate: once a game is final, the Actual column shows the real stat with hit or miss under it (Even, Push or Void when there is neither a hit nor a miss), next to Minutes, Lean record and Prediction accuracy.
- The player page, opened from any row: his graded rows this season and today's line movement, with the closing line marked.
- The Season Explorer: every graded row of every date, cut again in the browser by window (the last 7 days by default), minimum season average (5 points, 2 rebounds or 2 assists) and Confirmed only. It reads one graded file per date, with no database query at page load.