Case Study 2 — The Season Backtest: Box Box Against Every Dry Winner of 2025 and 2026
Setup
Six validation races tell good stories, but they cannot tell you how often a model is right. For that you need every race, chosen by a rule rather than by interest, and scored the same way. This case study runs Box Box's pre-race pipeline over the 2025 and 2026 seasons and asks three questions:
- How often does the clean-race optimum make as many stops as the winner?
- Is that better than the simplest possible strategist, one who always says "one stop"?
- When it is wrong, is the optimiser at fault or the inputs?
The third question is the useful one. To answer it, we run the same optimiser twice per race. The
pre-race model uses only earlier races. The hindsight model swaps in one input, the race's own
degradation (strategy.fit_race_model, the median canonical stint slope per compound), and keeps
everything else identical. If hindsight fixes a miss, the miss came from the degradation input. If it does
not, something else made the decision.
The script is code/05_season_backtest.py. It builds the inputs for each race exactly as
python -m boxbox validate does, but runs no Monte Carlo, so the whole backtest takes about 40 seconds.
The data
- Races: every OpenF1 Grand Prix of 2025 and 2026 (through round 21) that passes the book's dry-race filter (no INTERMEDIATE or WET lap and no lap-level rainfall flag).
- Excluded: the 2025 Miami GP, because OpenF1 is missing laps 2–24 (Chapter 2); and three 2026 races whose winner changed tyres under a red flag (Monaco, Italy and Mexico City), because a free stop under a red flag is not a plan any optimiser could make.
- Stops: the adapter's
actual_strategies, which drops OpenF1's zero-length stints. A stop is a change to a different set, and red-flag changes are counted separately. - Inputs: as 40.2 describes, every one from races that started before this one.
That leaves 34 races: 20 from 2025 and 14 from 2026.
Analysis
Stop counts
Dry races 2025-26 without a red-flag tyre change for the winner: 34
pre-race model matches the winner's stop count 21/34 = 0.618 [0.450, 0.761]; 2025: 11/20, 2026: 10/14
hindsight model (race's own deg) matches the winner's stop count 25/34 = 0.735 [0.569, 0.854]; 2025: 15/20, 2026: 10/14
'always one stop' rule matches the winner's stop count 20/34 = 0.588 [0.422, 0.736]; 2025: 11/20, 2026: 9/14
pre-race model matches the finishers' median stop count 22/34
model stops by season: 2025: 1.30 vs winners 1.50, 2026: 1.07 vs winners 1.50
misses: model fewer stops 10, more stops 3
winner 1 2 3
model
1 17 7 3
2 3 4 0

📊 Figure (described): A 2 × 3 grid of counts, with the model's stops as rows (1, 2) and the winner's as columns (1, 2, 3). Most races sit in the top-left cell (17: both one stop). The top row's right-hand cells (7 and 3) are the races where the model said one stop and the winner made two or three. The model never recommended three stops.
The headline is uncomfortable, and it is the honest one: before the race, the full optimiser matches the winner's stop count barely more often than "always one stop" does (21 of 34 against 20, Wilson intervals 0.45–0.76 and 0.42–0.74, a difference of one race). Both are right in the 17 races where the model said one stop and the winner made one. The model also gets 4 two-stop races right but calls 3 one-stoppers wrongly as two-stops, while the rule gets nothing beyond the one-stop races.
The misses lean one way. In 10 of the 13 misses the model wanted fewer stops than the winner. Its average
was 1.30 stops in 2025 and 1.07 in 2026, against 1.50 for the winners in both seasons. Chapter 12 found the same bias: all 19
misses in its model-vs-field test predicted too few stops. The cause is in the inputs. When DegModel
shrinks a circuit towards history, unusually high-wear races look ordinary, and an ordinary race is a
one-stop race at the book's median pit loss and degradation.
The hindsight test
With the race's own degradation, agreement rises to 25 of 34. Every one of the four races it fixes is from 2025, and it breaks none:
| Race (2025) | Winner | Pre-race optimum | Hindsight optimum |
|---|---|---|---|
| Chinese GP | PIA M-H | M-H-H | M-H |
| Japanese GP | VER M-H | M-H-H | S-H |
| Hungarian GP | NOR M-H | M-H-H | S-H |
| Bahrain GP | PIA S-M-M | M-H | M-H-M |
In three of the four, the pre-race model expected more wear than the race produced and asked for two stops. In one, it expected less and asked for one. (A fifth 2025 race, São Paulo, needed no fixing: the pre-race model already called its two stops.) Either way, the optimiser was fine, and the forecast of the tyres was off.
The nine misses that hindsight cannot fix are the interesting ones, because better degradation inputs would not have helped. Eight of the nine winners made at least one stop under a safety car or VSC: 2025 Emilia Romagna (VSC, then SC), Spain (third stop under an SC), the Netherlands (both stops under SCs) and Qatar (first stop under an SC), and 2026 Barcelona, Britain, Belgium and Hungary (one stop each under an SC or VSC). In those races the number of stops was set by the race control feed, not by the tyres. A clean-race optimum is the wrong tool to judge them; the flexible policy is the right one. The ninth, the 2025 Canadian GP, is a two-stop win with both stops under green flags that neither model called. It is the one miss in the table without a ready explanation, and we leave it as one.
Timing for one-stop winners
For the 20 races won with one stop, call_one_stop on the winner's own compounds and starting set gives
the model's best lap and its 1-s window. One call was degenerate: at the 2025 Saudi Arabian GP the pre-race
deg for the HARD was 0.007 s/lap, below the 0.01 threshold at which a linear model can still place a stop.
One-stop winners: 20; degenerate calls 1
green-flag stop n = 13: median |error| 4.0 laps; inside the 1-s window 6/13; median signed error -1.0
stop under SC/VSC n = 6: median |error| 7.5 laps; inside the 1-s window 3/6; median signed error -7.5

📊 Figure (described): The winner's stop lap minus the model's best lap, for 19 one-stop winners. Green-flag stops (blue) cluster between −4 and −1 laps, with a scattered tail of late stops up to +12. Stops under an SC or VSC (orange) are all early, from −13 to −3 laps.
The green-flag stops are the fair test of the degradation model, and the median error of 4 laps matches Anchor B's 16-run median of 4.0 laps exactly. A median signed error of −1 says that winners stop a little before the model's optimum, which is what a team defending against an undercut would do. Chapter 13 found the undercut succeeds 42.9% of the time, so an early stop is cheap insurance on a flat curve.
The neutralised stops are all early, by a median 7.5 laps. Nobody waits for the clean-race optimum when a safety car halves the price of a stop (Chapter 14's 12.7 s against about 22.5 s). This is the flexible policy in action, chosen by real teams.
The late green stops (+3 to +12 laps: 2025 Italy, Azerbaijan, Las Vegas and the United States, and 2026 Singapore) are where the model's deg was too high for the race, or where the leader had no reason to stop until the tyre told him to.
Where the six validation races sit
The six races of 40.5 are all in this table, and they are not unusual. Four of them (Mexico City 2025, Singapore, the United States and Las Vegas 2026) are among the 17 races where model and winner both made one stop. Hungary 2025 is one of the four misses the hindsight model fixes, and Barcelona 2026 is one of the eight explained by a neutralisation. In other words, the validation suite was a fair sample of what the backtest shows. The model is usually right about one-stop races and usually wrong when a race needs more, and its wrong answers have a small number of causes we can name.
One more comparison is worth making. Chapter 22's season retrodiction (2024–26, 54 dry races) matched the winner's stop count 74.1% of the time with opening-stint deg, 79.6% with hindsight deg and 55.6% with its pre-race model, against 59.3% for the one-stop rule. Our pre-race 61.8% and hindsight 73.5% sit in the same places. Two different samples, two implementations and the same ordering: hindsight first, then the one-stop rule and the pre-race model close together.
What it means (and doesn't)
- It means the weak input of a pre-race strategy model is pre-race degradation, not the optimiser. Swapping only that input fixes four of the 13 stop-count misses and breaks none. Neutralisations account for eight of the other nine.
- It means a strategy model should be judged against a baseline. Here "always one stop" comes within one race of the full pre-race optimiser. A model that cannot beat that rule on stop counts earns its keep elsewhere: in the lap, the window, the cost of every alternative and the robust policy.
- It does not mean teams are "beating the model" with secret information in every miss. Some misses are neutralisations, which no clean-race plan can foresee. Others are track-position choices that the model does not price.
- It does not mean 21 of 34 is a stable rate. The interval runs from 0.45 to 0.76, and two seasons under two rule sets are a small sample.
Discussion questions
- The model never recommended three stops, yet three winners made three. What would have to change in the inputs for the optimiser to call a three-stop race before the start?
- Is "matches the winner's stop count" the right target? Argue for or against scoring against the finishers' median stop count instead (the pre-race model matches it in 22 of 34).
- The hindsight model fixes four 2025 races but no 2026 race. Suggest a reason connected to the 2026 tyres and rules (Chapter 29), and say how you would test it.
- If you could add one feature to
DegModelto reduce the too-few-stops bias, what would it be, and which chapter's data would supply it?
Your turn
Extend code/05_season_backtest.py to 2023 and 2024 (change the years in f1data.sessions). Then report:
(a) the pre-race, hindsight and one-stop agreement rates for each season; (b) whether the too-few-stops
bias holds in every season; and (c) the median green-flag timing error. Expect the early 2023 rounds to
lean on fewer earlier races, because the data start in 2023. The adapter's fallbacks (the previous season
for the pace link and DNF rates) cannot reach back before the snapshot, so say how you handled the first
rounds.