Case Study 1 — Anchor B, Run Through the Whole of Box Box: the 2025 Mexico City Grand Prix

Setup

Anchor B has followed us since Chapter 22. At the 2025 Mexico City Grand Prix, Lando Norris started from pole on new SOFTs, stopped once after lap 34 for MEDIUMs, and won. The question the anchor asked was simple: could a degradation model, given the weekend's data, have called that stop?

In Chapter 22 the answer came from a purpose-built script, and it depended on the inputs. On the race's opening stints the model said lap 36 (an error of −2 laps, inside a flat window of laps 33–40). On FP2 and FP3 long runs it said lap 41 (an error of −7). In this case study we ask the same question of the finished tool, in three ways:

  1. Does python -m boxbox validate --year 2025 --gp rodriguez, with nothing but pre-race inputs, reproduce the anchor, and if not, why not?
  2. What happens to the call when we swap the degradation input for each of the anchor's two input sets?
  3. What does the Monte Carlo engine say about Norris's race, and was a one-stop the robust choice?

Everything here comes from code/case_study_01.py, which reuses the simulation cached by the validation suite (10,000 field races, seed 42).

The data

Box Box built these inputs from the races before Mexico City:

Input Value Source
Degradation (S / M / H), default fuel correction 0.061 / 0.055 / 0.043 s/lap DegModel (Ch 22), every earlier dry race
Pit loss 23.31 s 21 green stops at the 2024 Mexico City GP
Circuit hazard multiplier k = 1.03 race control 2023–25 + the 2008–22 detector
Race distance 71 laps OpenF1

The two anchor input sets come from the race weekend itself:

Deg inputs (s/lap; race = default fuel correction, practice = pooled data-driven slope):
  pre-race DegModel (Box Box)          SOFT 0.061, MEDIUM 0.055, HARD 0.043
  race opening stints (Anchor B 'R')   SOFT 0.054, MEDIUM 0.053
  FP2/FP3 long runs (Anchor B 'P')     SOFT 0.126, MEDIUM 0.168, HARD 0.030
  practice long runs per compound: {'HARD': 1, 'MEDIUM': 9, 'SOFT': 5} | race opening stints: {'SOFT': 11, 'MEDIUM': 6}

Two things stand out. First, the pre-race DegModel and the race's opening stints agree closely: to 0.002 s/lap on the MEDIUM and 0.007 s/lap on the SOFT, where history expected a little more wear than the race showed. The model built from history predicted this race's wear well, though not exactly. Second, the practice numbers are two to three times higher. Chapter 22 measured that pattern across 55 weekend-compound pairs: practice long runs overstate race degradation by a median 2.01×, because practice runs are driven harder than managed race stints. The practice HARD figure also rests on a single stint.

Analysis

1. The assembled tool lands one lap from the anchor

=== validation: what actually happened ===
  winner NOR from grid 1: S-M stops 34 (GREEN); red-flag changes 0
  clean-race optimum: S-H stops 30
  for the winner's own tyres (S-M, start age 0): best 35, error -1 laps, modelled cost of the actual plan 0.05 s, 1-s window 31-39
  the winner's sequence in the model's table: #27 (+11.06 s)
  hindsight (the race's own deg S 0.056, M 0.049): optimum M-S 36
  incidents in the race: VSC lap 70
  P(win) of the winner 0.455 (rank 1); favourite NOR 0.455; pole NOR 0.455; Brier win 0.361, podium 0.905
  GBM: P(win) of the winner 0.523; favourite NOR; Brier win 0.303
  VERDICT: PARTIAL  (stops yes, timing yes, compounds no)

For Norris's own tyres, Box Box says lap 35, with a 1-s window of laps 31–39, and prices his actual lap-34 stop at 0.05 s. Chapter 22's anchor said lap 36, window 33–40. The two differ by one lap, and the reason is the inputs, not the modules. Chapter 22 fitted the race's own early stints and used that race's pit loss (23.06 s). Box Box, working the night before, has only history: its SOFT rate is 0.061 s/lap instead of the race's 0.054, and its pit loss is 23.31 s from the 2024 race. A faster-wearing first set pulls the stop a lap earlier. Step 2 below confirms it: feed the assembled tool the anchor's race-stint deg and it returns lap 36, window 33–40, exactly. Both windows contain the actual stop on lap 34, so the anchor's lesson survives intact: the bottom of the cost curve is flat, and a lap either way costs almost nothing. One of the smoke tests now checks the pre-race numbers (lap 35, window 31–39) on every run.

The compound check fails. The clean-race optimum is SOFT → HARD on lap 30, and Norris's S-M ranks 27th, 11.1 s slower in the model. The model prefers the HARD because its pooled offset is slightly faster than the MEDIUM's and its pre-race deg is lower (0.043 against 0.055). None of the top eight finishers used a HARD: Norris and Leclerc ran S-M, Verstappen M-S, and the next five S-M-S.

2. The inputs decide the call

Three one-stop cost curves for SOFT to MEDIUM at Mexico City 2025, one per degradation input, with Norris's stop

📊 Figure (described): Modelled race time against the in-lap of the single SOFT → MEDIUM stop, for three degradation inputs. The pre-race model (solid) and the race's opening stints (dashed) give near-identical bowls, with best laps of 35 and 36 and windows of 31–39 and 33–40. The practice-based curve (dotted) is steeper and centred on lap 41. The vertical line is Norris's stop after lap 34.

  -> pre-race DegModel (Box Box): S-M best lap 35, 1-s window 31-39, error -1; best two-stop S-H-H 20, 45 -9.91 s vs S-M
  -> race opening stints (Anchor B 'R'): S-M best lap 36, 1-s window 33-40, error -2; best two-stop S-H-H 21, 46 -5.54 s vs S-M
  -> FP2/FP3 long runs (Anchor B 'P'): S-M best lap 41, 1-s window 39-43, error -7; best two-stop S-H-H 9, 40 -118.94 s vs S-M

The same optimiser, the same pit loss and the same rules give three different stories:

  • With history-based or race-based deg, the call is lap 35 or 36 and the curve is flat. Any stop from lap 31 to 39 (history) or 33 to 40 (race) costs less than a second, and Norris's lap 34 is comfortably inside both.
  • With practice deg, the call moves to lap 41 and the curve steepens. Lap 34 now looks seven laps early.
  • The two-stop comparison is the starkest. On practice deg, a two-stop looks 119 s faster than Norris's one-stop, a number no strategist would believe. On pre-race deg the best two-stop (S-H-H) is about 10 s faster, and on race deg about 5.5 s, mostly because the model likes the HARD. Notably, five of the top eight did make two stops (S-M-S, P4 to P8), so the model's lean towards two stops was not absurd; the winner and the next two one-stopped.

🧪 Illustrative model: the practice correction uses the pooled data-driven fuel-and-evolution slope (−0.056 s/lap), because the fuel loads run in practice are not public. The race inputs use the toolkit's default correction, which assumes 100 kg at 0.03 s/kg.

3. The robust view of Norris's race

Robust strategy for NOR (pole), field mode:
  policy  mean_pos  median_pos  p_win  p_podium  p_points  exp_points  d_time_vs_ref  p_better_pos  p_worse_pos  mean_stops
one-stop     3.645         2.0  0.473     0.753     0.912      17.967          0.000         0.000        0.000       0.971
two-stop     3.955         2.0  0.399     0.705     0.906      16.898          5.307         0.176        0.298       1.934
flexible     3.750         2.0  0.457     0.739     0.907      17.681          0.963         0.154        0.169       1.679
Clock only:
  policy  mean_diff_s  median_diff_s  p_better  p_worse  mean_stops
one-stop        0.000          0.000     0.000    0.000       1.000
two-stop        1.008          1.124     0.476    0.524       2.000
flexible       -1.393          0.000     0.336    0.280       1.737

Norris's simulated finishing position under one-stop, two-stop and flexible policies

📊 Figure (described): Step histograms of Norris's finishing position over the same 5,000 simulated races for each policy. All three peak at P1–P2. The one-stop and flexible lines are nearly identical, and the two-stop line puts slightly less weight on P1.

Here, unlike Las Vegas, the robust policy in the field simulation is the one-stop (17.97 expected points, against 17.68 for flexible and 16.90 for two-stop). The difference between one-stop and flexible is small, and it is a real feature of this circuit. In clock-only terms, the two-stop is only 1.01 s slower on average and is better in 47.6% of races, so the plans are close. The flexible policy gains 1.39 s on the clock but makes a second stop in 74% of races (mean 1.737 stops), and in traffic a second stop costs track position: in the field runs the flexible Norris finishes 0.96 s further behind on average. The field engine prices that, and the ghost engine cannot. When the clock and the points disagree, a car leading from pole should usually take the plan that keeps it in front.

The 2025 Mexico City GP race trace for the leading cars, relative to Norris

📊 Figure (described): Gap at the line to Norris for Norris, Leclerc, Verstappen, Bearman and Piastri over 71 laps, with open circles at each car's in-lap. Norris's line is flat at zero. The others drift back steadily, with the stop cycle around lap 34 visible as a dip and a recovery. The race finished in the order NOR, LEC, VER, BEA, PIA.

The simulator gave Norris a 45.5% chance of winning and made him its favourite. The gradient-boosting model gave him 52.3%. Both were right about the order, and both were modest about the margin. That is the pole-sitter bias of 40.6 again, though milder here, because Norris's qualifying advantage was large enough to survive the engine's pace uncertainty.

What it means (and doesn't)

  • It means the assembled Box Box, on pre-race inputs, lands one lap from the book's anchor result, and reproduces it exactly when given the anchor's race-stint inputs. The pipeline lost nothing in assembly; the one-lap gap is the price of not knowing the race's own wear in advance.
  • It means the timing call was robust to the choice between history and race data, and fragile to practice data. If you have only practice long runs, scale them down (Chapter 22's 2.01×) before you trust the stop lap.
  • It does not mean the model "knew" Norris would stop on lap 34. The window is nine laps wide. Inside it, the lap was chosen by things the model does not see: the gap to Leclerc, the undercut threat, the driver's feedback on the SOFTs.
  • It does not mean the HARD was the right tyre. The compound miss is a known flaw of pooled offsets (40.6), and the race itself, where none of the top eight finishers used a HARD, is evidence against the model.

Discussion questions

  1. The pre-race DegModel came within 0.007 s/lap of the race's opening stints here, but missed Barcelona 2026 by a factor of three. What differs between the two circuits' histories that could explain that?
  2. The field engine prefers the one-stop and the ghost engine prefers flexible. Which would you take to the pit wall for a car leading from pole, and what extra information would change your mind?
  3. On practice deg the two-stop looks 119 s faster. Name two checks a strategist would run before believing any number that large.
  4. Norris's stop is inside the window, but a lap before Box Box's best (two before Chapter 22's). Using Chapter 13's undercut study, argue whether stopping early was the safer side to err on.

Your turn

Run python -m boxbox validate --year 2024 --gp rodriguez --sims 3000. The 2024 Mexico City GP was won by Sainz, who ran M-H with his stop on lap 32 (Chapter 22's Anchor B candidate table). Report the three checks, the model's best lap for his tyres and its window, and the hindsight optimum. Then repeat Step 2 of this case study for that race. Do the practice long runs exist for that weekend, and do they move the call the same way?