The models — baseline-v1 and baseline-v2
Numbers in this document were produced on 2026-11-10 (§1 – §13) and 2026-11-11 (§14) from nflverse data through
2026 Week 9. The /model page renders the database tables (backtest_summary, backtest_calibration,
model_versions, prediction_grades); this file is the methodology behind them. Every figure here can be reproduced
with the commands in §12 and §14.12.
Two versions are documented. Which one is publishing is stated by the page header, from the database — not by this
text. §1 – §13 describe baseline-v1 and everything the two versions share (data, protocol, ledger, grading, injury
impact). §14 describes baseline-v2 — baseline-v1 with two changes — and compares the two on the same games.
1. What it is, and how it does against the market
baseline-v1 is a deliberately simple model: team ratings from play-by-play, a rating gap turned into points, a
handful of documented adjustments, and a normal distribution around the result. It is a baseline you can reason
about, not a market-beater — and the scorecard says so:
| Walk-forward, 2023 – 2026 Wk 9 (n = 991 games) |
baseline-v1 |
closing market |
model − market (paired, ± 1 s.e.) |
| Brier score (home win) |
0.2184 |
0.2104 |
+0.0080 ± 0.0024 |
| Log loss |
0.6271 |
0.6097 |
|
| Spread: mean absolute error (points) |
10.07 |
9.74 |
+0.33 ± 0.08 |
| Total: mean absolute error (points) |
10.41 |
10.19 |
+0.22 ± 0.08 |
| Picking a side against the closing spread |
466 – 498 (48.3%) |
|
|
| Picking over/under against the closing total |
489 – 495 (49.7%) |
|
|
The closing line is better on every metric, as expected. Use the model as a transparent second opinion and a way to
see why a number is what it is (the components), not as proof of an edge.
2. Data
| Input |
Source |
Used for |
| Play-by-play 2021 – 2026 |
nflverse play_by_play_{season}.parquet |
team EPA ratings, quarterback EPA, kickoff weather text |
| Schedule, scores, rest days, site, roof, starting QBs, closing lines |
nflverse games.csv → games table |
everything; closing lines are used only for scoring, never as a model input |
| Outdoor games 1999 – present (total points, wind, temperature) + gamebook weather line 2001 – 2020 |
nflverse games.csv; data/raw/nflverse/model/weather_text.parquet (pulled by nflp.model.weather_history) |
weather slopes |
| Forecast weather, venue roof, depth charts, injury report |
game_weather, stadiums, depth_charts, injuries |
live predictions only |
| Line history (2026-10-04 on) |
market_consensus, odds_snapshots |
closing line value, grading |
Play filter: play_type in ('pass','run'), epa not null, not a two-point attempt (kneels and spikes are their
own play types in nflverse and are excluded). About 62 such plays per team per game.
Notation: home team h, away team a; everything is computed entering the game's week from games before it.
margin (home − away) = b_epa × EPA_gap "Team rating gap (EPA)"
+ b_elo × (Elo_h − Elo_a) / 25 "Elo gap"
+ hfa × [not a neutral site] "Home field" (exactly 0 at neutral sites)
+ b_rest × clip(rest_h − rest_a, ±7) "Rest difference"
+ b_qb × (QB_h − QB_a) "Quarterback status"
+ 0 "Weather" (not modeled on the margin, see §6)
total = league_total + c0 + c_env × ENV "Team scoring environment"
+ c_qb × (QB_h + QB_a) "Quarterback status"
+ weather (venue outdoors only) "Weather"
P(home win) = Φ(margin / margin_sd)
fair_spread_home = −margin (negative = home favored)
Ties. home_win_prob is the expected settlement value of a $1 home-win contract: P(home wins) + 0.5 × P(tie) —
the way Kalshi and Polymarket settle a tied game, and the way grading scores one (home_won = 0.5). The model has no
explicit tie mass: the continuous normal margin splits the probability around zero evenly between the two sides, which
is the same quantity to well under 0.1 probability points. (A sportsbook no-vig moneyline is P(win | no tie); the
difference is under 0.2 points, see docs/MARKETS.md.)
margin_sd and total_sd are the residual standard deviations of the two regressions; they are also what
nflp.common.dist uses for cover and over/under probabilities, so every probability on the site comes from the same
distribution. Stored components are rounded to 0.01 and the stored spread/total are their exact sums.
3.1 Schedule-adjusted EPA ratings (off_rating, def_rating)
One weighted ridge regression per week, on every team-game before that week:
EPA/play (offense i vs defense j) = mu + off_i + def_j + h × [offense is home, non-neutral] + error
weight = plays × 0.5 ^ (age in weeks / 10) # the off-season counts as 12 extra weeks
penalty = 1000 plays × (off_i² + def_j²) # shrinks every team toward league average
def_j > 0 means the defense allows more than average (lower is better). Because of the penalty the stored
ratings are deliberately shrunk — a team with ~900 effective plays keeps about half of its raw schedule-adjusted
EPA/play — and b_epa scales them back to points.
EPA_gap = [(off_h − def_h) − (off_a − def_a)] × 62 # net EPA per play × plays per game
ENV = [off_h + def_a + off_a + def_h] × 62 # both offenses vs the defenses they face
3.2 Elo
Standard margin-aware Elo, constants taken as published and not tuned: start 1500 (2021 Week 1), K = 20,
margin multiplier ln(|margin|+1) × 2.2 / (0.001 × winner's Elo edge + 2.2), one third of the gap to 1500 removed
between seasons, 48 Elo points of home advantage inside the update (0 at neutral sites). Elo sees results; EPA sees
how the plays went. The regression decides how much weight each gets.
3.3 Quarterback adjustment
For every quarterback, entering the week:
QB value = (Σ w·qb_epa + 200 × replacement) / (Σ w·dropbacks + 200) w = 0.5 ^ (age in weeks / 34)
i.e. his decayed EPA per dropback shrunk toward replacement level with the weight of 200 dropbacks. Replacement
level is the EPA/dropback of all non-primary quarterbacks (everyone except each team-season's most-used QB) in earlier
seasons: −0.082 for 2026. A quarterback with no dropbacks in the data — including a rookie, whatever his draft slot —
is priced at replacement level.
A team's offensive rating already contains the quarterbacks who produced it. So the adjustment is relative to that:
QB_team = (starter's value − dropback-weighted value of the QBs behind the team's rating) × 37 dropbacks/game
If the usual starter plays, QB_team ≈ 0. If a backup starts, it is the gap between him and the mix the rating was
built on. The component's detail lists the starter, his value, his raw EPA/dropback, his dropbacks in the data, and
the team's rated QB mix.
3.4 Weather (total only, outdoor venues only)
weather = b_wind × max(0, wind_mph − 10) + b_cold × max(0, 40 − temp_F) + b_precip × P(precipitation at kickoff)
The three slopes come from one regression on outdoor, non-neutral games since 2001 (4,975 games for 2026) with
season and stadium fixed effects, so scoring eras and each venue's usual conditions are absorbed:
| Slope (used for 2026) |
Estimate |
s.e. |
Games with the condition |
| Wind, per mph above 10 |
−0.34 pts |
0.06 |
1,387 |
| Precipitation at kickoff (gamebook says rain/snow/showers/…) |
−2.78 pts |
0.66 |
537 |
| Cold, per °F below 40 |
−0.015 pts |
0.046 |
764 |
The cold slope is indistinguishable from zero and contributes almost nothing (−0.3 points at 20°F); it is kept at
its fitted value rather than dropped or inflated. The 10 mph and 40°F thresholds were fixed in advance.
In the backtest, precipitation is 0/1 from the gamebook line. Live, it is the forecast probability for the kickoff
hour, so the component is the expected effect, b_precip × probability.
3.5 League scoring level
league_total is the decay-weighted mean of total points in all games before the week (half-life 34 weeks): 45.7
entering 2026 Week 10.
4. Parameters
4.1 Hyper-parameters (stored in model_versions.params.hyper)
| Parameter |
Value |
How it was set |
| EPA rating half-life |
10 weeks |
grid on 2021 – 2022 only (below) |
| Ridge penalty |
1000 plays |
same |
| Off-season gap |
12 weeks |
same |
| Plays / dropbacks per game |
62 / 37 |
unit constants |
| Elo K, reversion, home edge |
20, 1/3, 48 |
published constants, not tuned |
| QB half-life, QB prior |
34 weeks, 200 dropbacks |
fixed in advance, not tuned |
| League-total half-life |
34 weeks |
fixed in advance |
| Rest cap, wind threshold, cold threshold |
7 days, 10 mph, 40°F |
fixed in advance |
The only tuned hyper-parameters are the first three. They were chosen by python -m nflp.model.research select-hyper, which physically discards every game after 2022 and scores margin ~ b × EPA_gap + hfa × home on the
553 warm-up games:
| half-life |
ridge |
off-season gap |
RMSE (2021 – 22) |
| 10 |
2000 |
12 |
12.9751 |
| 6 |
2000 |
6 |
12.9753 |
| 10 |
1000 |
12 |
12.9758 |
| 6 |
1000 |
6 |
12.9766 |
| 10 |
500 |
12 |
12.9820 |
| … 48 grid points … |
|
|
|
| 26 |
2000 |
6 |
13.1215 (worst) |
The surface is flat. Full disclosure: the first grid stopped at ridge 1000, which won; ridge 2000 was added afterwards
because 1000 sat on the grid edge, and it scores 0.0007 lower — a meaningless difference — so 1000 was kept. Both
looks used warm-up data only.
4.2 Fitted coefficients (stored per season in model_versions.params.coefficients_by_season)
Coefficients used for season S are ordinary least squares on all games of seasons before S (features for each
training game use only data before that game). Standard errors in parentheses.
| Used for |
Trained on |
n |
b_epa |
b_elo |
hfa |
b_rest (per day) |
b_qb |
margin_sd |
c0 |
c_env |
c_qb |
total_sd |
| 2023 |
2021 – 22 |
553 |
1.53 (0.45) |
0.09 (0.30) |
2.10 (0.56) |
−0.04 (0.24) |
0.25 (0.34) |
12.97 |
−0.30 |
0.85 (0.25) |
0.93 (0.35) |
13.47 |
| 2024 |
2021 – 23 |
838 |
1.39 (0.37) |
0.15 (0.24) |
2.29 (0.46) |
0.14 (0.20) |
0.43 (0.27) |
13.17 |
−0.22 |
0.74 (0.18) |
0.98 (0.25) |
13.40 |
| 2025 |
2021 – 24 |
1123 |
1.15 (0.31) |
0.39 (0.20) |
2.15 (0.40) |
0.14 (0.16) |
0.75 (0.21) |
13.08 |
0.17 |
0.87 (0.15) |
0.79 (0.19) |
13.26 |
| 2026 (current season) |
2021 – 25 |
1408 |
1.02 (0.27) |
0.46 (0.17) |
2.16 (0.35) |
0.21 (0.15) |
0.88 (0.17) |
12.97 |
0.33 |
0.95 (0.13) |
0.67 (0.16) |
13.30 |
Reading the 2026 row: one point per game of net EPA rating gap is worth about one point of margin; 25 Elo points are
worth 0.46; home field is 2.2 points; a day of extra rest 0.2 (not significant); and 88% of the raw quarterback gap
carries into the margin. Early seasons had little data, which is why the 2023 coefficients are noisy.
4.3 What each component is worth (backtest, 991 games)
| Component |
Mean absolute size |
Range |
Non-zero in |
| Margin: team rating gap (EPA) |
3.21 pts |
−15.2 … +15.2 |
100% |
| Margin: home field |
2.12 |
0 … 2.29 |
97% (0 at 28 neutral sites) |
| Margin: Elo gap |
1.06 |
−5.5 … +5.4 |
100% |
| Margin: quarterback status |
0.79 |
−7.0 … +6.8 |
99% |
| Margin: rest difference |
0.15 (0.39 when non-zero) |
−1.45 … +1.45 |
37% |
| Total: team scoring environment |
44.9 |
33.3 … 53.1 |
100% |
| Total: quarterback status |
1.42 |
−12.3 … +7.4 |
100% |
| Total: weather |
0.36 (1.62 when non-zero) |
−11.7 … +0.1 |
22% |
5. Backtest protocol
- Warm-up: 2021 and 2022 only build ratings and train coefficients; they are never scored.
- Evaluated: every played game (regular season and playoffs) of 2023, 2024, 2025 and 2026 through Week 9.
- For each game the model is given the context as it stood at kickoff: actual starting quarterbacks (nflverse
lists the starter, not the player with the most snaps — checked on 2023 Week 1, Jets), observed kickoff weather,
rest days, site. That is the information the closing line has, so the comparison is against the close. No weather is
applied at neutral sites, where nflverse's
roof can be the home team's rather than the venue's.
- Ratings entering week W use only games before W and are stored in
team_ratings.
- The market is scored by the same functions (
nflp.model.metrics): the closing moneyline is de-vigged with
nflp.markets.devig.devig_two_way (Shin) and scored with Brier / log loss; the closing spread and total with mean
absolute error. A tie counts as half a win (2 ties in the sample).
5.1 Leakage and over-fitting checks
| Check |
How |
Result |
| Ratings / predictions for week W ignore week W and later |
tests scramble or delete every game from week W on and require byte-identical ratings, components and coefficients (test_model_no_lookahead.py, synthetic league; test_model_real_data.py, real 2025 Week 12) |
pass |
| The check itself can fail |
altering week W−1 does change week W ratings |
pass |
| A game's own result never reaches its features |
set one game's score to 70 – 0 and EPA to +99: its prediction is unchanged |
pass |
| Coefficients for season S use seasons < S only |
asserted on training-season lists for 2023 – 2026, including the weather fit |
pass |
| Hyper-parameters chosen without 2023+ data |
selection run on a data set with 2023+ physically removed |
by construction |
| Closing lines are not model inputs |
they are read only by the scoring code |
by construction |
| Starter leak |
nflverse starter = the QB who started, known by kickoff |
checked |
| Does it "beat" the close? |
48.3% against the spread, 49.7% on totals over 964 / 984 decisions |
no — as it should be |
| Sensitivity to the tuned hyper-parameters |
8 alternatives, out of sample (§6.3) |
Brier 0.2180 – 0.2192: nothing to gain by tuning |
6. Results
6.1 Per season (table backtest_summary)
| Season |
n |
Brier |
market |
Log loss |
market |
Spread MAE |
market |
Total MAE |
market |
| 2023 |
285 |
0.2301 |
0.2188 |
0.6511 |
0.6274 |
10.47 |
9.98 |
10.41 |
10.17 |
| 2024 |
285 |
0.2131 |
0.2003 |
0.6144 |
0.5875 |
10.12 |
9.70 |
9.86 |
9.77 |
| 2025 |
285 |
0.2150 |
0.2105 |
0.6205 |
0.6077 |
9.88 |
9.67 |
10.59 |
10.42 |
| 2026 (Wk 1 – 9) |
136 |
0.2123 |
0.2136 |
0.6175 |
0.6232 |
9.56 |
9.49 |
11.13 |
10.60 |
| Pooled |
991 |
0.2184 |
0.2104 |
0.6271 |
0.6097 |
10.07 |
9.74 |
10.41 |
10.19 |
2026 is the one season where the model's Brier is lower than the market's. The paired difference is
−0.0013 ± 0.0071 on 136 games: noise, not a finding.
6.2 What each component adds out of sample (research ablation)
Each row removes one component, refits, and re-runs the whole backtest. Δ = variant − full model, paired by game;
positive means the component was helping.
| Variant |
Brier |
Spread MAE |
Total MAE |
Δ Brier (± s.e.) |
Δ spread MAE |
Δ total MAE |
| Full baseline-v1 |
0.2184 |
10.075 |
10.405 |
|
|
|
| No Elo |
0.2198 |
10.109 |
10.405 |
+0.0014 ± 0.0005 |
+0.034 ± 0.021 |
|
| No rest |
0.2188 |
10.087 |
10.405 |
+0.0004 ± 0.0003 |
+0.012 ± 0.010 |
|
| No QB adjustment |
0.2218 |
10.177 |
10.452 |
+0.0033 ± 0.0011 |
+0.102 ± 0.041 |
+0.046 ± 0.063 |
| No weather |
0.2184 |
10.075 |
10.478 |
|
|
+0.073 ± 0.030 |
| No precipitation |
0.2184 |
10.075 |
10.451 |
|
|
+0.046 ± 0.019 |
| Ratings + home field only |
0.2233 |
10.216 |
10.520 |
+0.0048 ± 0.0013 |
+0.141 ± 0.046 |
+0.115 ± 0.069 |
| Closing market |
0.2104 |
9.745 |
10.185 |
|
|
|
Honest reading: the quarterback adjustment and Elo clearly help; weather helps the total by about 0.07 points of MAE;
rest is within noise and stays in only because it is small (0.2 points per day, capped at a week) and standard.
All the adjustments together close roughly a third of the gap between "ratings + home field" and the market.
Tested and not adopted:
- A separately fitted win-probability scale (instead of
margin_sd): out-of-sample Brier 0.2185 vs 0.2184 — no gain,
so one standard deviation serves both win and cover probabilities.
- Weather on the margin: no pre-specified form was justified; the margin weather component is reported as 0 with
status = "not modeled".
- Precipitation fitted on 2021+ only (the first version): −5.4 ± 1.6 points from 78 wet games — too noisy to
publish. Replaced by the long-history fit in §3.4 (−2.8 ± 0.7 on 537 games). This made the backtest total MAE
slightly worse (10.39 → 10.41); the change was made for stability, not for the score.
6.3 Sensitivity to the tuned hyper-parameters (ex post — not used for selection)
| Variant |
Brier |
Spread MAE |
Total MAE |
| Selected (10 / 1000 / 12) |
0.2184 |
10.075 |
10.405 |
| Half-life 6 / 16 / 26 |
0.2183 / 0.2188 / 0.2192 |
10.067 / 10.094 / 10.117 |
10.447 / 10.384 / 10.389 |
| Ridge 250 / 500 / 2000 |
0.2180 / 0.2182 / 0.2185 |
10.069 / 10.074 / 10.074 |
10.386 / 10.394 / 10.415 |
| Off-season gap 6 / 20 |
0.2184 / 0.2185 |
10.078 / 10.079 |
10.390 / 10.426 |
No alternative is better by more than its standard error. The selected values were not revised after seeing this.
6.4 Calibration (table backtest_calibration, pooled)
| Predicted home win |
n |
Mean prediction |
Home won |
| 10 – 20% |
9 |
17.7% |
33.3% |
| 20 – 30% |
40 |
25.9% |
25.0% |
| 30 – 40% |
99 |
35.6% |
28.8% |
| 40 – 50% |
194 |
45.3% |
39.2% |
| 50 – 60% |
248 |
55.0% |
52.8% |
| 60 – 70% |
210 |
65.3% |
65.0% |
| 70 – 80% |
129 |
74.5% |
78.3% |
| 80 – 90% |
59 |
84.3% |
81.4% |
| 90 – 100% |
3 |
92.4% |
100% |
The model's average home win probability is 56.2%; home teams actually won 54.1%. Home underdogs (30 – 50% bins) won
less often than predicted. The 2.2-point home field fitted on 2021+ is probably a little high for recent seasons.
6.5 Closing line value
Closing line value (docs/CONTRACTS.md §7) needs a price from before the close.
- 2023 – 2025: unavailable (
clv_n = 0). nflverse carries one line per game — the close — and no approved source
has an earlier price. Nothing is substituted.
- 2026: 73 of 136 games (Weeks 4 – 9, where we hold daily line history from
market_consensus). Pre-close price =
the first snapshot at least 12 hours after the previous week's last kickoff; close = the last snapshot before
kickoff. Because the backtest's quarterback and weather inputs are only public near kickoff, the CLV prediction is
re-made without them (no starter, no weather) — otherwise the model would be credited for news the early price
could not have known.
| 2026 backtest CLV |
|
| Games |
73 |
| Mean CLV |
+1.0 probability point (s.e. 0.4) |
| Market closed toward the model |
53% (44% away, 3% no move) |
Treat this as weak evidence at best: 73 games, six weeks, daily-resolution prices, and an early-week price is noisier
than the close, so some movement toward any sensible rating is expected. Live ledger predictions are graded for CLV
individually as their games finish (§8).
6.6 Does the model add anything once you know the closing line? No.
Regressing the actual result on the model's number and the market's number together (991 games):
| Outcome |
Weight on baseline-v1 |
Weight on the closing line |
| Margin |
0.03 ± 0.16 |
1.12 ± 0.16 |
| Total points |
0.05 ± 0.19 |
1.00 ± 0.15 |
The model's weight is zero within error for both. And when the model's total disagrees with the closing total:
| Model vs closing total |
Games |
Model MAE |
Market MAE |
Market closer |
Model's over/under side |
| under 1 point apart |
278 |
10.42 |
10.41 |
49% |
143 – 132 |
| 1 – 2 |
243 |
10.75 |
10.57 |
56% |
110 – 132 |
| 2 – 3 |
204 |
10.27 |
10.06 |
54% |
101 – 102 |
| 3 – 5 |
196 |
9.92 |
9.56 |
54% |
100 – 94 |
| 5 or more |
70 |
10.89 |
10.07 |
57% |
35 – 35 |
The bigger the disagreement on a total, the more likely the model is the one that is wrong. The model's totals
are also less spread out than the market's (s.d. 3.3 vs 4.3 points): it has no pace, no pass/run mix and no
market-aware scoring environment, so it pulls extreme totals toward the league average. A large "edge" on a total
from baseline-v1 is a flag that the model is missing something, not a bet. The same holds, less starkly, for spreads
(48.3% against the close). The home-win probability is the model's best-calibrated output and still trails the market.
7. Live predictions — the ledger
python -m nflp.model.predict appends rows to predictions. The table is append-only: a database trigger
rejects UPDATE and DELETE, and the code never attempts either.
Which games: every unplayed game of the current week, plus games up to one week ahead when both starters are
known (--weeks-ahead). Ratings for a later week use whatever has been played so far, and the row says so.
When a row is published:
| Situation |
Trigger |
| No row yet for the game |
scheduled |
| An expected starting quarterback changed |
qb_change |
| The weather part of the total moved ≥ 0.5 points, or weather became available / unavailable |
weather_update |
| An optional input became available or unavailable, or a starter's injury check changed, with the same quarterbacks: the week's injury report arrived for one of the teams, a depth chart was loaded, a starter is now listed Questionable |
inputs_update; inputs.inputs_changed lists what changed |
| Any other component moved ≥ 0.05 points (ratings refreshed after new results, rest, site) |
scheduled |
--force |
scheduled |
| The game's newest row was published by a different model (first run after a model switch, §14.10) |
model_change; inputs.supersedes names the row it replaces |
| Nothing changed |
no row — a re-run writes nothing |
Expected starter: games.home_qb_id / away_qb_id when nflverse supplies them, otherwise the depth chart's first
quarterback. Either is cross-checked against the injury report for that week: a starter listed Out, Doubtful or on a
reserve list is replaced by the next healthy quarterback on the depth chart. If the report for the week is not
published yet, the check is stamped unavailable (last week's statuses are never carried forward) and the nflverse
starter stands. When the report for a team arrives, the next run publishes a new row for that team's game (trigger
inputs_update) even if nothing numeric moved, so a row never goes on saying a check was unavailable after it was made. Disagreement between nflverse and the depth chart is recorded (agrees_with_depth_chart).
Weather: applied only when the venue's stadiums.roof is outdoors and a forecast row exists. Dome → 0
(indoor). Retractable roof → 0, unavailable, "retractable roof, status unknown". Venue roof not known
(international sites) → 0, unavailable, "venue roof unknown". nflverse's games.roof is not used for upcoming games.
Missing inputs are never guessed: the component is 0 and its detail.status is unavailable with the reason.
inputs (jsonb) on every row: ratings week and the last game included; which seasons the coefficients were fitted
on; each quarterback's id, name, source, depth-chart snapshot and injury-check result; weather status, source,
pulled_at, forecast hour and venue roof; injury-report pulled_at (or unavailable); schedule pull time; whether any
final game is missing from play-by-play; the previous prediction id for the game.
8. Grading
python -m nflp.model.grade writes one prediction_grades row per ledger row once the game is final: outcome
(1 / 0 / 0.5), Brier, log loss, the no-vig market probability at publication (last line snapshot at or before
published_at), at the close (last snapshot before kickoff), and
clv_prob = (market_close − market_at_publish) × sign(model − market_at_publish)
Positive = the market closed toward the model. It is NULL when either price is missing or both come from the same
snapshot. Grades can be recomputed (--regrade) when line history is backfilled; the ledger itself is never touched.
Every ledger row is graded, including superseded ones — a scorecard should say whether it uses each game's first row,
last row before kickoff, or all rows.
9. Injury impact
python -m nflp.model.injury_impact fills injury_impacts for players listed Out / Doubtful / on a reserve list in
the current week's injury report.
- Quarterbacks who are the team's rated starter get a point estimate from the model's own QB adjustment:
est_points = b_qb × 37 × (replacement's value − absent QB's value) — the change in that team's expected margin.
The replacement is the model's expected starter, so this number and the ledger agree. Example on the 2026 Week 9
report: Lamar Jackson out, a quarterback with no NFL dropbacks in: −8.3 points.
- Every other position, and backup quarterbacks:
est_points is NULL, method = 'not modeled in baseline-v1'. The
row still carries the stat comparison — the absent player's and the depth-chart replacement's per-game production
over their last five games this season (targets, receptions, yards, carries, snap share; from player_game_stats).
A defensible per-position point value needs data this baseline does not have (snap-level participation, on/off
splits); inventing one would be a guess.
- If the week's injury report is not loaded, the job records
empty and writes nothing.
10. Plugging in another model
nflp/model/interface.py is the whole contract: a model has version, description, params() and
predict(GameContext) -> Prediction (home win probability, fair home spread, fair total, both standard deviations,
components that sum to the spread and total). predict, backtest and grade depend only on that interface:
uv run python -m nflp.model.backtest --model mypackage.mymodel:build # build(ModelData) -> Model
uv run python -m nflp.model.predict --model mypackage.mymodel:build
or register a factory in nflp/model/registry.py. Optional extras: ratings(season, week) to fill team_ratings,
inputs_asof(ctx) to add as-of stamps, qb_value(season, week, qb_id) for injury impact. The no-look-ahead tests can
be pointed at any model.
Which model the scheduled jobs use. model.predict, model.backtest and model.injury_impact take no --model
argument in the scheduler. They use the model_versions row whose params.active is true, and baseline-v1 when no
row is flagged (the state of a database that has never been switched). python -m nflp.model.switch --to <model> is
the only thing that sets the flag (§14.10).
11. Known weaknesses
- It loses to the closing line on every metric over 991 games. Edges it shows against a market are more likely
model error than opportunity; the size of the historical gap is in §1.
- Quarterback is the only position modeled. Injuries elsewhere do not move the number.
- Rookie and unknown quarterbacks are priced at replacement level, whatever their draft position. A highly drafted
rookie replacing a veteran produces a large negative adjustment (e.g. −4.1 points for Las Vegas in 2026 Week 10).
- The backtest knows the actual starter and the observed weather; live predictions use expected starters and
forecasts. Early-week live predictions will therefore be worse than the backtest suggests. The forecast-to-effect
mapping for precipitation (probability × slope) could not be validated — there is no forecast archive.
- Wind is linear above 10 mph with no cap; the rare extreme-wind game gets a very large adjustment (−11.7 points
in one backtest game). Forecast wind is a 10 m sustained speed, not exactly what gamebooks record.
- Retractable-roof and international venues get no weather, live, and neutral-site games get none in the backtest.
- Home field is one league-wide number (2.2 points), probably slightly high for recent seasons (§6.4). No
team-specific, travel, altitude or divisional effects.
- Pace is not modeled. The total uses EPA per play at a fixed 62 plays per team.
- EPA ratings use all pass and run plays equally — no garbage-time filter, no pass/run split, no special teams,
no fumble-luck or opponent-injury adjustment.
- Normal distributions. Real margins cluster on 3 and 7; cover probabilities near those numbers are approximate.
- Coefficients are refitted once a season, on five seasons at most; the early evaluation seasons (2023) ran on
noisy coefficients. Elo starts cold in 2021.
- Small samples everywhere that matters: 991 games separate the model from the market by 3.3 standard errors on
Brier, but cannot tell most variants apart; CLV has 73 games.
12. Reproduce
cd pipeline
uv run python -m nflp.model.weather_history # once: gamebook weather lines 1999-2020 (approved nflverse release)
uv run python -m nflp.model.research select-hyper # warm-up grid (§4.1)
uv run python -m nflp.model.backtest # §6.1; writes backtest_*, team_ratings, model_versions
uv run python -m nflp.model.research ablation # §6.2
uv run python -m nflp.model.research sensitivity # §6.3
uv run python -m nflp.model.predict [--dry-run] # ledger
uv run python -m nflp.model.grade # grades for final games
uv run python -m nflp.model.injury_impact # injury_impacts for the current week
uv run pytest -q tests/model # 83 tests (v1 and v2)
13. Ledger note
The first 27 ledger rows (published 2026-11-10 23:25 UTC) used the first precipitation fit (−5.4 points) and applied
forecasts at retractable-roof and international venues. They were superseded seven minutes later by rows from the
parameters documented here; each superseding row carries inputs.note and inputs.previous_prediction_id. The
earlier rows remain, because the ledger is never edited.
14. baseline-v2 — what it changes, and how it compares with baseline-v1 (evaluated 2026-11-11)
baseline-v2 is baseline-v1 with two changes. It was built to attack four known weaknesses of v1: totals that add
nothing to the closing total, rookie quarterbacks priced at replacement level, home underdogs rated too high, and no
weight next to the closing spread. Twelve candidate components were specified, each with one functional form fixed
before it was scored. Two survived. Ten are implemented, tested and switched off, and are reported below.
All numbers in this section come from python -m nflp.model.research_v2 all, run against a copy of the database
(nflp_model). Same protocol as v1 (§5): 2021 – 22 warm-up, coefficients for season S fitted on seasons before S,
991 games evaluated (2023, 2024, 2025, 2026 through Week 9), closing market scored by the same functions.
14.1 Recommendation (made 2026-11-11, on the evidence below)
Adopt baseline-v2 as built — i.e. adopt two of the twelve candidates — and keep the "low confidence" tag on
totals. Stated plainly:
- Accuracy barely moves. Pooled, v2 − v1: Brier −0.0009 ± 0.0007, log loss −0.0017 ± 0.0014, spread MAE
−0.025 ± 0.025, total MAE −0.016 ± 0.017. Every sign is favourable; none is two standard errors from zero.
- What v2 changes is two things that can be pointed at — neither is a clean fix.
(1) The overall home-team level. Mean predicted home win 54.2% against 54.2% actual (v1: 56.2%), and the home team
beats the model's fair spread 49.7% of the time (v1: 48.0%). That pooled match is partly offsetting misses: by season
v2 predicted 54.7 / 54.5 / 53.2 / 54.9% and home teams won 56.5 / 54.7 / 53.5 / 49.6%. And the error did not vanish,
it was redistributed: home underdogs went from 5.1 points over-rated to 3.2 points over-rated, while home favorites
went from 0.4 points over-rated to 2.0 points under-rated (§14.4).
(2) Quarterbacks with little data are priced by draft position. v1's point estimate of its bias against top-10
picks was +0.031 EPA per dropback, v2's is −0.002 — but v1's was +0.031 ± 0.036 across 12 quarterbacks, never
distinguishable from zero, so this is a more defensible prior rather than a demonstrated correction (§14.5).
- It does not beat the close and does not earn weight next to it: +0.0071 ± 0.0024 Brier behind the market,
478 – 486 (49.6%) against the closing spread, regression weight 0.07 ± 0.17 on the margin.
- Totals: nothing worked. Six totals candidates, none improved out-of-sample MAE, and the model's weight next to
the closing total is 0.03 ± 0.22. The tag stays (§14.7).
- The honest case against adopting: the gain is inside the noise; the weaknesses v2 targets were found on the same
991 games it is scored on, and its configuration was chosen after looking at ablations on those games, so there is
no untouched data behind any v2 number (§14.6); and the home-field correction rests on a pattern that exists in
2021 – 2026 data but not in 1999 – 2020 (§14.4). If the bar is "statistically better", v2 does not clear it and v1 should stay. The case
for: both changes are structurally motivated, add no tuned parameter, cost nothing measurable, and remove two
errors a reader can see on the page.
14.2 What changes
(1) Home field is located at the median margin, not the mean (median_margin).
home_field (v2) = home_field (least squares, as v1) + median training residual of non-neutral games
Everything else in the margin regression is v1's. The fair spread becomes the median margin — the line a team
covers half the time, which is what a spread is — and P(home win) = Φ(median margin / margin_sd). Neutral sites are
untouched (home field is 0 there).
(2) A quarterback's value shrinks toward a prior set by his draft pick (qb_prior), not toward one replacement
level for everyone.
value = (Σ w·qb_epa + 200 × prior) / (Σ w·dropbacks + 200) w = 0.5 ^ (age in weeks / 34), as v1
prior = a + b × ln(draft pick) drafted
= undrafted level undrafted, or not found in nflverse players
a, b and the undrafted level are fitted for each season on quarterbacks' first 300 career dropbacks in earlier
seasons (weighted least squares, weight = dropbacks; quarterbacks who debuted 1999 or later, so the first dropbacks
are observed). That needs careers older than our play-by-play window, so python -m nflp.model.qb_history pulls
quarterback dropbacks and EPA per game for 1999 – 2020 from the approved nflverse release into
data/raw/nflverse/model/qb_game_history.parquet; draft picks come from nflverse players.parquet (draft_pick,
rookie_season — verified present). The older games also enter the decayed sums, with the same 34-week half-life.
| Used for |
Quarterbacks in the fit |
a |
b per ln(pick) (s.e.) |
Undrafted |
→ pick 1 |
pick 10 |
pick 32 |
pick 100 |
pick 200 |
v1 replacement level |
| 2023 |
229 + 58 undrafted |
−0.015 |
−0.016 (0.006) |
−0.080 |
−0.015 |
−0.051 |
−0.069 |
−0.087 |
−0.098 |
−0.074 |
| 2024 |
238 + 61 |
−0.014 |
−0.016 (0.006) |
−0.083 |
−0.014 |
−0.051 |
−0.070 |
−0.089 |
−0.100 |
−0.085 |
| 2025 |
249 + 61 |
−0.006 |
−0.018 (0.006) |
−0.086 |
−0.006 |
−0.049 |
−0.070 |
−0.091 |
−0.103 |
−0.081 |
| 2026 |
257 + 65 |
−0.013 |
−0.017 (0.006) |
−0.096 |
−0.013 |
−0.052 |
−0.071 |
−0.091 |
−0.103 |
−0.082 |
Even a first overall pick starts below an average starter (about +0.06 EPA per dropback): the prior lifts top-10 picks
by 0.03 – 0.07 over v1's replacement level and lowers late-round and undrafted quarterbacks by 0.01 – 0.02.
Fitted coefficients, v2 (same layout as §4.2; totals columns are v1's method with v2's quarterback values):
| Used for |
n |
b_epa |
b_elo |
home field: mean → median (shift) |
b_rest |
b_qb |
margin_sd |
c0 |
c_env |
c_qb |
total_sd |
| 2023 |
553 |
1.52 (0.45) |
0.10 (0.30) |
2.10 → 1.48 (−0.61) |
−0.05 (0.24) |
0.31 (0.26) |
12.97 |
−0.25 |
0.85 |
0.65 |
13.48 |
| 2024 |
838 |
1.37 (0.37) |
0.16 (0.24) |
2.28 → 1.47 (−0.81) |
0.13 (0.20) |
0.49 (0.22) |
13.17 |
−0.16 |
0.74 |
0.74 |
13.42 |
| 2025 |
1123 |
1.13 (0.31) |
0.39 (0.19) |
2.14 → 1.34 (−0.80) |
0.13 (0.16) |
0.71 (0.18) |
13.08 |
0.20 |
0.86 |
0.67 |
13.27 |
| 2026 |
1408 |
1.00 (0.27) |
0.47 (0.17) |
2.15 → 1.52 (−0.63) |
0.20 (0.15) |
0.84 (0.15) |
12.96 |
0.34 |
0.95 |
0.59 |
13.30 |
No new tuned hyper-parameter. v1's three tuned values (§4.1) are unchanged. The new constants — 300 first
dropbacks for the prior sample, 1999 as the first season — were fixed in advance and never varied.
14.3 Results: v1 vs v2 vs closing market
Δ columns are paired by game, ± one standard error. Negative = v2 better.
| Season |
n |
Metric |
v1 |
v2 |
Market |
v2 − v1 |
v2 − market |
| 2023 |
285 |
Brier |
0.2301 |
0.2299 |
0.2188 |
−0.0001 ± 0.0011 |
+0.0112 ± 0.0045 |
|
|
Log loss |
0.6511 |
0.6508 |
0.6274 |
−0.0003 ± 0.0024 |
+0.0234 ± 0.0104 |
|
|
Spread MAE |
10.473 |
10.459 |
9.984 |
−0.013 ± 0.039 |
+0.475 ± 0.139 |
|
|
Total MAE |
10.412 |
10.435 |
10.168 |
+0.023 ± 0.036 |
+0.267 ± 0.147 |
| 2024 |
285 |
Brier |
0.2131 |
0.2120 |
0.2003 |
−0.0011 ± 0.0013 |
+0.0117 ± 0.0048 |
|
|
Log loss |
0.6144 |
0.6126 |
0.5875 |
−0.0018 ± 0.0029 |
+0.0251 ± 0.0107 |
|
|
Spread MAE |
10.121 |
10.073 |
9.704 |
−0.048 ± 0.050 |
+0.370 ± 0.151 |
|
|
Total MAE |
9.865 |
9.823 |
9.768 |
−0.042 ± 0.039 |
+0.054 ± 0.161 |
| 2025 |
285 |
Brier |
0.2150 |
0.2143 |
0.2105 |
−0.0006 ± 0.0013 |
+0.0038 ± 0.0039 |
|
|
Log loss |
0.6205 |
0.6193 |
0.6077 |
−0.0012 ± 0.0030 |
+0.0116 ± 0.0090 |
|
|
Spread MAE |
9.876 |
9.900 |
9.670 |
+0.024 ± 0.051 |
+0.230 ± 0.129 |
|
|
Total MAE |
10.591 |
10.561 |
10.423 |
−0.030 ± 0.027 |
+0.138 ± 0.146 |
| 2026 (Wk 1 – 9) |
136 |
Brier |
0.2123 |
0.2095 |
0.2136 |
−0.0027 ± 0.0015 |
−0.0041 ± 0.0072 |
|
|
Log loss |
0.6175 |
0.6118 |
0.6232 |
−0.0057 ± 0.0033 |
−0.0113 ± 0.0162 |
|
|
Spread MAE |
9.561 |
9.457 |
9.485 |
−0.104 ± 0.058 |
−0.028 ± 0.209 |
|
|
Total MAE |
11.134 |
11.118 |
10.596 |
−0.016 ± 0.016 |
+0.523 ± 0.238 |
| Pooled |
991 |
Brier |
0.2184 |
0.2175 |
0.2104 |
−0.0009 ± 0.0007 |
+0.0071 ± 0.0024 |
|
|
Log loss |
0.6271 |
0.6254 |
0.6097 |
−0.0017 ± 0.0014 |
+0.0157 ± 0.0055 |
|
|
Spread MAE |
10.075 |
10.050 |
9.745 |
−0.025 ± 0.025 |
+0.305 ± 0.075 |
|
|
Total MAE |
10.405 |
10.389 |
10.185 |
−0.016 ± 0.017 |
+0.204 ± 0.082 |
2026 is the only season in which either model's Brier is below the market's; for v2 the difference is
−0.0041 ± 0.0072 on 136 games. That is noise, not a finding — pooled, the market is ahead by three standard errors.
Weight next to the closing line — actual = a + w_model × model + w_market × closing line:
|
Margin: model |
Margin: market |
Total: model |
Total: market |
| baseline-v1 |
0.03 ± 0.16 |
1.12 ± 0.16 |
0.05 ± 0.19 |
1.00 ± 0.15 |
| baseline-v2 |
0.07 ± 0.17 |
1.09 ± 0.16 |
0.03 ± 0.22 |
1.01 ± 0.15 |
| every candidate on |
0.19 ± 0.15 |
0.97 ± 0.15 |
0.14 ± 0.20 |
0.94 ± 0.16 |
The bar was to move the 0.03. It did not move: every weight is zero within its error.
Record against the close:
|
Closing spread |
Disagreement ≥ 2 |
≥ 4 |
Closing total |
| baseline-v1 |
466 – 498 (48.3%) |
209 – 220 |
53 – 59 |
488 – 495 (49.6%) |
| baseline-v2 |
478 – 486 (49.6%) |
189 – 198 |
41 – 49 |
489 – 495 (49.7%) |
By season, v2 against the spread: 124 – 147, 145 – 135, 135 – 148, 74 – 56. The larger v2's disagreement with the
line, the worse it does — the same pattern as v1.
14.4 The home-underdog bias: diagnosis
v1 predicted home teams to win 56.2% of the 991 games; they won 54.2%. Three candidate causes, each tested:
| Suspect |
Test |
Result |
| Home-field value too high |
mean residual on non-neutral games |
−0.16 ± 0.42 points: the mean margin is right |
| Ratings too shrunk (favorites under-rated) |
slope of actual margin on predicted |
1.07 ± 0.07: not different from 1 |
| The win-probability map |
median and skew of the residuals |
median −0.68, skewness +0.15 (s.e. 0.08) |
The third is the cause. P(home win) = Φ(mean margin / sd) is only right if margins are symmetric about their mean.
Since 2021 they are not: in non-neutral games of 2021 – 25 the home team won by 15 or more 19.0% of the time and lost
by 15 or more 11.1%, while games decided by 1 – 7 points split 24.0% / 24.7%. Home advantage has been showing up as
blowouts, not as extra close wins. The mean home margin (+2.2) therefore sits about 0.7 points above the median, and
Φ(0.7 / 13) − 0.5 = 2.1 probability points — the whole two-point error in the overall home level.
So v2 changes the location, not the map: home field is set so that the median training residual is zero.
The shift was estimated on earlier seasons only (−0.61 from 2021 – 22 for 2023; −0.63 from 2021 – 25 for 2026) and the
out-of-sample residual median it had to remove was −0.68.
| Calibration, 2023 – 2026 Wk 9 |
v1 predicted |
v1 actual |
v1 over-rates by |
v2 predicted |
v2 actual |
v2 over-rates by |
| All games (n = 991) |
56.2% |
54.2% |
+2.0 |
54.2% |
54.2% |
+0.0 |
| Home underdogs (v1 n = 342, v2 n = 394) |
39.5% |
34.4% |
+5.1 ± 2.6 |
39.1% |
35.9% |
+3.2 ± 2.4 |
| Home favorites (v1 n = 649, v2 n = 597) |
65.0% |
64.6% |
+0.4 ± 1.8 |
64.2% |
66.2% |
−2.0 ± 1.9 |
| Home team beat the model's fair spread |
— |
48.0% |
|
— |
49.7% |
|
| By season: predicted vs actual home win |
2023 |
2024 |
2025 |
2026 (Wk 1 – 9) |
| v1 |
56.4 vs 56.5 |
56.7 vs 54.7 |
55.3 vs 53.5 |
56.6 vs 49.6 |
| v2 |
54.7 vs 56.5 |
54.5 vs 54.7 |
53.2 vs 53.5 |
54.9 vs 49.6 |
Read this as a level shift, not a fix of the underdog problem. Lowering home field by 0.6 points lowers every
home probability by about two points. That brings the overall level into line and takes 1.9 points off the
over-rating of home underdogs — and it puts 2.4 points of under-rating onto home favorites, who were fine under v1.
Each side is now about one standard error from calibrated, in opposite directions. The pooled 54.2 vs 54.2 is also
not as precise as it looks: v2 is 1.8 points low in 2023 and 5.3 points high in 2026.
| v2 by bin |
n |
Predicted |
Home won |
| 10 – 20% |
13 |
17.4% |
30.8% ± 12.8 |
| 20 – 30% |
51 |
25.9% |
23.5% ± 5.9 |
| 30 – 40% |
109 |
35.4% |
28.0% ± 4.3 |
| 40 – 50% |
221 |
45.2% |
43.0% ± 3.3 |
| 50 – 60% |
234 |
54.7% |
54.9% ± 3.3 |
| 60 – 70% |
206 |
64.9% |
68.0% ± 3.3 |
| 70 – 80% |
106 |
74.4% |
77.4% ± 4.1 |
| 80 – 90% |
49 |
83.8% |
87.8% ± 4.7 |
| 90 – 100% |
2 |
92.7% |
100% |
Home underdogs are still 3.2 points over-rated (1.3 s.e., down from 5.1 points and 2.0 s.e.), concentrated in the
30 – 40% bin, and home favorites are now 2.0 points under-rated (1.1 s.e.). The remaining pattern — underdogs too high,
favorites too low — is what probabilities that are slightly too compressed look like, but nothing structural explains it, and a slope correction fitted on earlier seasons would not have
helped (the 2021 – 22 slope was 0.96, the 2023 – 26 slope 1.14 ± 0.11). No post-hoc calibration map was added: the
map is still Φ, monotone by construction.
Caveat. The mean-above-median gap is a 2021 – 2026 phenomenon. In regular-season home games of 1999 – 2020 the home
win rate matched Φ(mean / sd) to within +0.1 to +1.3 points; in 2021 – 22 it was 1.4 points below and in 2023 – 26
1.8 below. v2 re-estimates the shift every season on all seasons since 2021, so it will fade slowly if the pattern does.
14.5 Quarterback priors: every low-sample start, 2021 Week 2 – 2026 Week 9
The test of a prior is whether it predicts what the quarterback then does. For every start, the value the model held
entering the game is compared with his EPA per dropback in the game (dropback-weighted; bias = actual − predicted).
Bias standard errors are clustered by quarterback (one quarterback's starts are not independent).
| Starters |
Starts |
QBs |
Actual |
Bias v1 (± s.e.) |
Bias v2 (± s.e.) |
RMSE v1 |
RMSE v2 |
Δ squared error, v2 − v1 |
| All |
3,036 |
122 |
+0.057 |
+0.031 ± 0.005 |
+0.018 ± 0.005 |
0.2871 |
0.2845 |
−0.00147 ± 0.00030 |
| Veterans (1,500+ career dropbacks) |
1,862 |
50 |
+0.085 |
+0.032 ± 0.006 |
+0.012 ± 0.007 |
0.2820 |
0.2790 |
−0.00168 ± 0.00043 |
| 300 – 1,499 |
802 |
56 |
+0.052 |
+0.050 ± 0.010 |
+0.044 ± 0.010 |
0.2935 |
0.2914 |
−0.00121 ± 0.00040 |
| Low-sample (< 300) |
372 |
72 |
−0.080 |
−0.010 ± 0.014 |
−0.011 ± 0.014 |
0.2992 |
0.2977 |
−0.00088 ± 0.00073 |
| … low-sample, 2023+ only |
241 |
49 |
−0.072 |
+0.005 ± 0.019 |
−0.003 ± 0.018 |
0.2997 |
0.2982 |
−0.00090 ± 0.00087 |
| … picks 1 – 10 |
97 |
12 |
−0.046 |
+0.031 ± 0.036 |
−0.002 ± 0.036 |
0.2958 |
0.2959 |
+0.00006 ± 0.00208 |
| … picks 11 – 32 |
48 |
6 |
−0.026 |
+0.033 ± 0.023 |
+0.028 ± 0.021 |
0.2736 |
0.2726 |
−0.00053 ± 0.00076 |
| … picks 33 – 100 |
52 |
9 |
−0.073 |
−0.008 ± 0.029 |
−0.000 ± 0.028 |
0.3077 |
0.3051 |
−0.00159 ± 0.00111 |
| … picks 101+ |
105 |
27 |
−0.122 |
−0.050 ± 0.029 |
−0.029 ± 0.029 |
0.3169 |
0.3144 |
−0.00160 ± 0.00146 |
| … undrafted |
70 |
18 |
−0.111 |
−0.040 ± 0.032 |
−0.029 ± 0.031 |
0.2867 |
0.2853 |
−0.00083 ± 0.00098 |
What this shows:
- v1's point estimates are ordered by draft position — top-10 picks under-rated by 0.031 EPA per dropback (about 1.1
points a game before the regression coefficient), late-round and undrafted quarterbacks over-rated by 0.04 – 0.05 —
but none of the low-sample group biases is distinguishable from zero: +0.031 ± 0.036 for top-10 picks (12
quarterbacks), −0.050 ± 0.029 for picks 101+, −0.040 ± 0.032 undrafted. v2's point estimates are closer to zero in
each group (−0.002, −0.029, −0.029) with the same uncertainty. The data are consistent with v1 having had a
draft-ordered bias and with it having had none.
- What is established is the bias across all starters: v1 under-rated starting quarterbacks by 0.031 ± 0.005, v2 by
0.018 ± 0.005. The prior improves quarterback prediction overall, significantly — and most of that comes from
veterans and mid-career starters, who are mostly high picks and were being pulled too far toward replacement level.
- For the case that prompted this work the evidence is weak. On top-10 picks' low-sample starts the error is
unchanged (0.2958 vs 0.2959). And at game level, in the 73 games (2023+) started by a low-sample
top-10 pick, v2's quarterback prior alone scored worse than v1: Brier +0.0016 ± 0.0013, spread MAE +0.085 ± 0.055.
Across all 224 games with a low-sample starter: Brier −0.0005 ± 0.0007, spread MAE +0.003 ± 0.028.
- The example itself: Seattle at Las Vegas, Week 10. v1 made it LV +11.2 with the quarterback component at −4.1; v2
makes it LV +9.7 with the quarterback at −2.0 (Mendoza: pick 1, 9 dropbacks, value −0.019). The market was +6.5. The
prior closes about a third of the gap; the rest is not about the quarterback.
A second layer — shrinking toward a career talent estimate, (career EPA + 300 × prior) / (career dropbacks + 300)
— was the original design. It predicts quarterbacks slightly worse than the single layer (RMSE 0.2853 vs 0.2845) and
games worse than v1 (Brier +0.0005 ± 0.0004). It is implemented (qb_career) and off.
14.6 Ablation: every candidate
Each row adds one candidate to v1 and re-runs the whole walk-forward backtest. Δ = variant − v1, paired, ± 1 s.e.;
negative is better. The last two columns are the model's regression weight next to the closing line.
| Variant |
Brier |
Spread MAE |
Total MAE |
Δ Brier |
Δ log loss |
Δ spread MAE |
Δ total MAE |
Wt margin |
Wt total |
| baseline-v1 |
0.2184 |
10.075 |
10.405 |
|
|
|
|
0.03 |
0.05 |
| Median-located home field |
0.2179 |
10.067 |
10.405 |
−0.0005 ± 0.0006 |
−0.0009 ± 0.0014 |
−0.008 ± 0.023 |
— |
0.02 |
0.05 |
| QB prior from draft pick |
0.2181 |
10.062 |
10.389 |
−0.0003 ± 0.0002 |
−0.0007 ± 0.0005 |
−0.013 ± 0.009 |
−0.016 ± 0.017 |
0.07 |
0.03 |
| QB prior + career-talent layer |
0.2189 |
10.078 |
10.387 |
+0.0005 ± 0.0004 |
+0.0012 ± 0.0008 |
+0.003 ± 0.015 |
−0.018 ± 0.021 |
0.03 |
0.10 |
| Ratings on EPA clipped at ±2 |
0.2190 |
10.126 |
10.377 |
+0.0006 ± 0.0008 |
+0.0012 ± 0.0018 |
+0.051 ± 0.031 |
−0.028 ± 0.023 |
−0.08 |
0.05 |
| Separate pass / rush ratings |
0.2181 |
10.073 |
10.405 |
−0.0003 ± 0.0009 |
−0.0004 ± 0.0020 |
−0.002 ± 0.033 |
— |
0.12 |
0.05 |
| Ratings without garbage time |
0.2181 |
10.053 |
10.402 |
−0.0003 ± 0.0011 |
−0.0004 ± 0.0024 |
−0.022 ± 0.041 |
−0.003 ± 0.020 |
−0.02 |
0.13 |
| Median-located total |
0.2184 |
10.075 |
10.453 |
— |
— |
— |
+0.048 ± 0.046 |
0.03 |
0.04 |
| Total: pace (neutral seconds / play) |
0.2184 |
10.075 |
10.418 |
— |
— |
— |
+0.012 ± 0.031 |
0.03 |
0.18 |
| Total: neutral pass rate |
0.2184 |
10.075 |
10.403 |
— |
— |
— |
−0.002 ± 0.008 |
0.03 |
0.04 |
| Total: points per drive |
0.2184 |
10.075 |
10.393 |
— |
— |
— |
−0.012 ± 0.038 |
0.03 |
−0.02 |
| Total: red-zone TD rate |
0.2184 |
10.075 |
10.386 |
— |
— |
— |
−0.020 ± 0.035 |
0.03 |
0.13 |
| Total: explosive-play rate |
0.2184 |
10.075 |
10.418 |
— |
— |
— |
+0.012 ± 0.014 |
0.03 |
−0.00 |
| Total: all five features |
0.2184 |
10.075 |
10.415 |
— |
— |
— |
+0.010 ± 0.054 |
0.03 |
0.14 |
| Every candidate on (pre-specified) |
0.2173 |
10.042 |
10.441 |
−0.0011 ± 0.0015 |
−0.0019 ± 0.0034 |
−0.033 ± 0.055 |
+0.036 ± 0.067 |
0.19 |
0.14 |
| baseline-v2 (the two in bold) |
0.2175 |
10.050 |
10.389 |
−0.0009 ± 0.0007 |
−0.0017 ± 0.0014 |
−0.025 ± 0.025 |
−0.016 ± 0.017 |
0.07 |
0.03 |
How the candidates were defined (all rates decay with v1's 10-week half-life and are shrunk toward the league rate
with four games of weight; each matchup feature is home offense + away defense + away offense + home defense, as
deviations from the league rate; sources are the Stats tables documented in docs/STATS.md):
- EPA clipped at ±2: v1's rating regression on play EPA clipped to ±2, to mute turnovers and long scores. The clip
was chosen on 2021 – 22 only, from {none, ±4, ±3, ±2} (RMSE 12.976, 12.956, 12.929, 12.914) — and then lost out
of sample. A reminder of what a warm-up selection on 553 games is worth.
- Pass / rush split: separate ridge ratings on dropback EPA (penalty 600 dropbacks) and rush EPA (400 rushes).
- No garbage time: ratings from plays with offense win probability in [5%, 95%].
- Median-located total: the total intercept shifted by the median training residual (−1.0 to −1.3 points). Totals
are right-skewed, so this is the principled location — but scoring rose in 2024 – 26 and v1's mean-located total
happened to sit at the out-of-sample median already (actual total above v1's in 49.3% of games; 54.1% after the
shift). Not adopted.
- Pace: seconds per play in neutral situations. Pass rate: dropbacks / plays in neutral situations. Points per
drive: points / offensive drives (
fixed_drive). Red zone: touchdown drives / red-zone drives. Explosive:
explosive plays / live plays.
Selection effect, stated in full. There is no untouched data behind v2.
- The problems were found on these games. The four weaknesses v2 set out to address — totals, rookie quarterbacks,
home underdogs, weight next to the close — were identified from v1's backtest on these same 991 games (and, for the
quarterback, from a Week 10 game of the same season). A fix aimed at an error seen in a sample will look better
on that sample than it will later.
- The configuration was chosen on these games. Twelve candidates were scored on them and the two with favourable
signs were kept. The unselected, pre-specified comparison is the "every candidate on" row: Brier −0.0011 ± 0.0015,
total MAE +0.036 ± 0.067.
- What limits the damage: every candidate had one functional form fixed before scoring, no hyper-parameter was
tuned on 2023+, and coefficients for each season come from earlier seasons — so nothing was fitted to the
evaluation games, only chosen with them in view.
Read v2's own row as an optimistic estimate of a small effect. The first clean test of v2 against v1 is the games
played after 2026 Week 9: python -m nflp.model.research_v2 compare scores both versions on the same games whenever
it is run, and the paired difference on those later games is the number to watch.
14.7 Totals: the verdict
Model totals have not earned removal of the "low confidence" tag. The test was a regression weight on totals
clearly above zero out of sample. It is 0.03 ± 0.22 for v2 (v1: 0.05 ± 0.19), and at most 0.18 ± 0.18 for any single
candidate (pace) — one standard error.
- Variance compression. The model's totals have a standard deviation of 3.3 points (v1; 3.1 for v2) against the
market's 4.3. That is not a scaling error: regressing actual totals on the model's alone gives a slope of
1.04 ± 0.13 for v1 and 1.13 ± 0.14 for v2, so a point of model total is worth about a point of actual total. The model's totals are narrower because it knows less, and stretching them
would only add error. Compression is a symptom of missing information, not something to "fix" on its own.
- What was tried: pace, pass rate, points per drive, red-zone conversion, explosive rate (alone and together),
median location. None reduced total MAE by as much as its own standard error.
- What that means: with public play-by-play summarised at team level, this approach cannot produce a total that adds
to the closing total. What the market has and the model lacks is not another efficiency rate — more likely
personnel (who is actually playing on both lines and at receiver), scheme and matchup specifics, and better weather
and injury information near kickoff. Keep showing the total and its components; do not present its gap to the
market as an edge.
14.8 Closing line value: the naive benchmark, why the metric is biased, a fairer version
On the 73 games of 2026 with a pre-close price (§6.5 definitions; pre-close prediction has no quarterback or weather
input):
| Forecaster |
Standard CLV (± s.e.) |
Beat rate |
Lagged CLV (67 games) |
Share of gap closed, β |
| baseline-v1 |
+0.0101 ± 0.0040 |
53% |
+0.0053 ± 0.0028 |
+0.04 ± 0.06 |
| baseline-v2 |
+0.0081 ± 0.0040 |
51% |
+0.0041 ± 0.0028 |
+0.04 ± 0.06 |
| Constant 50% (= always the underdog's side) |
+0.0061 ± 0.0041 |
48% |
+0.0039 ± 0.0028 |
— |
| Always the favorite's side |
−0.0061 ± 0.0041 |
49% |
−0.0039 ± 0.0028 |
— |
| Always the home team's side |
+0.0026 ± 0.0041 |
62% |
+0.0005 ± 0.0029 |
— |
| Random side (2,000 draws) |
+0.0001 (s.d. 0.0041) |
|
|
|
A forecaster that says 50% for every game — no information at all — scores +0.6 probability points.
Why the metric is biased. clv = (m_close − m_pub) × sign(p − m_pub) uses only the side of the market the
forecast is on. Two things then reward a forecaster for no skill:
- Any lean that happens to line up with the average drift. In these 73 games the no-vig price moved 0.6 points
toward the underdog on average between publication and close. A constant 50% is always on the underdog's side, so
it collects exactly that. Every shrunk model — and a baseline's probabilities are always less extreme than the
market's — leans the same way and collects part of it.
- Noise in the publication price. If
m_pub is a noisy reading of the market (a daily snapshot, an early thin
line), it tends to revert by the close. A forecast is more likely to sit on the opposite side of a price that is
too high, so sign(p − m_pub) is correlated with the reversion. Measuring the move from the next snapshot
instead (the "lagged" column, 67 games with a third snapshot: side chosen at publication, move counted from one
snapshot later) cuts every number by a third to a half.
Both models are on the underdog's side in 67% of these games. Net of the constant-50% benchmark, paired by game, v1 is
+0.0041 ± 0.0034 and v2 +0.0020 ± 0.0034 (lagged: +0.0014 ± 0.0018 and +0.0002 ± 0.0019): there is no
closing-line-value evidence for either model, and none against. CLV also cannot tell v1 from v2: the pre-close
prediction strips the quarterback inputs, and the median shift is nearly a constant.
A fairer definition — recommended for the scorecard:
- Report CLV next to the same statistic for the constant-50% forecaster on the same games, and show the
difference with its standard error; and
- report the share of the gap closed,
β in m_close − m_pub = a + α(0.5 − m_pub) + β(p − m_pub): the fraction
of the model's disagreement with the market at publication that the market had closed by kickoff, after removing the
general drift toward 50%. A model with real information has β > 0; the constant-50% forecaster has no β at all. Here
β = +0.04 ± 0.06.
- Where three or more snapshots exist, use the lagged version (decide at publication, measure from the next snapshot)
so that noise in the publication price cannot help. With hourly line history from now on this costs one hour.
prediction_grades.clv_prob keeps the contract definition per row; the bias is in how rows are summarised.
14.9 Leak checks (v2)
| Check |
How |
Result |
| v2 with every switch off is v1 |
components compared for equality, synthetic league and real 2025 Week 12 |
identical to the last bit |
| Week W ignores week W and later |
every table v2 reads (games, play-by-play aggregates, quarterback games, Stats rows) scrambled or deleted from week W on; ratings, components, coefficients, draft-prior fit compared — shipped configuration and every candidate switched on; synthetic league and real 2025 Week 12 |
identical |
| The check can fail |
altering week W−1 changes the new features |
pass |
| Draft prior uses earlier seasons only |
fit for season S reports its last season = S−1; a quarterback's own first games enter the sample only for later seasons |
pass |
| Median shift uses earlier seasons only |
part of the coefficient fit; identical under truncation |
pass |
| Draft picks are not hindsight |
draft_pick and rookie_season are fixed at the draft; nothing else is read from players.parquet |
by construction |
| Hyper-parameters |
none new in the shipped configuration; the EPA clip (rejected) was chosen with 2023+ physically removed |
by construction |
| Does v2 beat the close? |
49.6% against the spread, 49.7% on totals, Brier 0.0071 ± 0.0024 worse than the market |
no |
| The one season where it does (2026, 136 games) |
−0.0041 ± 0.0072 Brier vs market; v1 shows the same sign; the truncation test is repeated on real 2026 Week 6 and passes |
noise |
14.10 Switching between versions — one command
cd pipeline
uv run python -m nflp.model.qb_history # once per machine: 1999-2020 quarterback history (22 downloads, ~1 min)
uv run python -m nflp.model.switch --to baseline-v2 --dry-run # steps 1-3 below, printed, then rolled back
uv run python -m nflp.model.switch --to baseline-v2 # switch
uv run python -m nflp.model.switch --to baseline-v1 # switch back, the same way
A switch needs the owner's approval: it changes what the site publishes. switch runs against the database
NFLP_DATABASE_URL points to (it prints which). Steps 1 – 3 are one transaction:
- walk-forward backtest of the target model →
backtest_predictions, backtest_summary, backtest_calibration,
team_ratings; the model is registered in model_versions with its parameters. A model's created_at is its
first registration and is never changed afterwards;
- the target is flagged active (
params.active), every other row inactive, and the switch is recorded in the two
rows involved: params.activated_at, params.deactivated_at and an append-only params.activation_history
({at, event: activated | deactivated, replaced | replaced_by}). The scheduled model.predict, model.backtest
and model.injury_impact take no --model argument and follow the flag — never the registration date;
- every unplayed game of the current week (and next week, when starters are known) gets a new ledger row with trigger
model_change, inputs.supersedes = {prediction_id, model_version, published_at} of the row it replaces and
inputs.note saying so. Old rows are never touched and are still graded.
Then, in the same invocation:
- everything derived from the ledger is rebuilt —
nflp.markets.build (board, price panel, edges; with its own
default settings) and nflp.content.insights (explanations) — and the command checks that every price-panel row,
board row and explanation set of an unplayed game points at that game's current prediction. Without this step the
pages would show the previous model's probabilities and edges under the new model's name until the next scheduled
build. If either job fails, or anything is still stale, the command prints what and exits non-zero; the switch
itself is already committed at that point, and the message gives the two commands that repair it and the one that
switches back.
--dry-run runs steps 1 – 3, prints them, rolls them back, and does not run step 4: it writes nothing.
Switch and switch-back on a copy of the database (nflp_qa, 2026-11-11 17:59 UTC):
| Check |
After --to baseline-v2 |
After --to baseline-v1 |
| Exit code |
0 |
0 |
| Ledger rows appended |
27, all model_change (14 Week 10 + 13 Week 11) |
27 more, all model_change |
markets.build, content.insights |
ok, ok (27 explanation sets rewritten) |
ok, ok (27 rewritten) |
| Price-panel rows on the current prediction |
110 of 110 |
110 of 110 |
| Board rows on the current prediction |
4,372 of 4,372 |
4,372 of 4,372 |
| Explanation sets on the current prediction |
27 of 27 |
27 of 27 |
| Washington at Giants: ledger = panel; edge vs books |
57.0% = 57.0%; +0.9 |
59.4% = 59.4%; +3.3 |
created_at of baseline-v1 |
2026-11-10 23:25:09 UTC (unchanged) |
2026-11-10 23:25:09 UTC (unchanged) |
created_at of baseline-v2 |
2026-11-11 17:59:05 UTC (first registration) |
2026-11-11 17:59:05 UTC (unchanged) |
activation_history |
v1: deactivated 17:59:08; v2: activated 17:59:08 |
v1: + activated 17:59:28; v2: + deactivated 17:59:28 |
Next scheduled model.predict (no arguments) |
not run between the two switches here (on an earlier copy: used baseline-v2, published 0 rows) |
uses baseline-v1, publishes 0 rows |
Every re-published row keeps what the pages read: components that sum to the stored spread and total, margin_sd,
total_sd, and the inputs keys (qb, weather, ratings, injuries, schedule, coefficients, fingerprint).
A v2 row's component details contain every key a v1 row's do (tested).
What a reader sees change between the two versions: fair spreads about 0.6 points further toward the road team in
every non-neutral game under v2, home win probabilities about two points lower, and games with a rookie or a backup
at quarterback up to two points different again (Week 10: Washington at Giants −3.1 under v1, −2.3 under v2; Seattle
at Las Vegas +11.2, +9.7). Totals differ by 0.3 points on average and only through the quarterback component — up to
2 points where a rookie or backup starts (Seattle at Las Vegas 41.6, 43.4).
14.11 What v2 does not change
Everything in §11 except items 3 (rookie quarterbacks) and 7 (home field, partly) applies to v2 as well. In particular:
v2 still loses to the closing line; totals are v1's; quarterback remains the only position modeled; a rookie's prior
is his draft pick and nothing else (no pre-draft production, no preseason); and the median home-field correction is
estimated from five seasons.
14.12 Reproduce (against a copy of the database)
export NFLP_DATABASE_URL=postgresql://nflp@127.0.0.1:54329/nflp_model
cd pipeline
uv run python -m nflp.model.qb_history # once
uv run python -m nflp.model.research_v2 all # every table in §14 (about a minute)
uv run python -m nflp.model.backtest --model baseline-v2 --dry-run
uv run pytest -q tests/model # v1 and v2 tests