Case Study 1 — Hungary 2025: The Model Gets the Lap Wrong and the Count Right

Setup

The 2025 Hungarian Grand Prix ran 70 laps with no safety car, no virtual safety car and no red flag. That makes it rare and valuable for a degradation study: nothing outside the tyres and the drivers interfered with the strategy.

Charles Leclerc started from pole, Oscar Piastri second and Lando Norris third. The race split the McLarens. Piastri, Russell and Leclerc all stopped twice, Medium–Hard–Hard. Norris stopped once, Medium–Hard, after lap 31. He won by 0.699 s from Piastri, measured at the timing line on the last lap. Leclerc, the polesitter, finished fourth, 37.656 s behind.

 position acronym     team_ref  grid sequence stop_laps  first_set_age
        1     NOR      mclaren     3      M-H     (31,)              0
        2     PIA      mclaren     2    M-H-H  (18, 45)              0
        3     RUS     mercedes     4    M-H-H  (19, 43)              0
        4     LEC      ferrari     1    M-H-H  (19, 40)              0
        5     ALO aston_martin     5      M-H     (39,)              1
        6     BOR       sauber     7      M-H     (40,)              0
        7     STR aston_martin     6      M-H     (36,)              1
        8     LAW           rb     9      M-H     (40,)              0
        9     VER     red_bull     8    M-H-H  (17, 48)              0
       10     ANT     mercedes    15      M-H     (21,)              0
Neutralisations: 0
Gap at the flag (s): PIA +0.699, LEC +37.656

Hungary 2025 is one of Anchor B's 19 candidate races, and in 22.7 it was one of the worst: the race-opening model put Norris's stop on lap 52, an error of −21 laps. Yet in the stop-count retrodiction of 22.8, the same inputs called one stop correctly. This case study asks how a model can be so wrong about when and right about how many. It also asks what that tells a strategist about the inputs. The script is code/case_study_01.py; all degradation numbers use the default fuel correction (the toolkit's 100 kg × 0.03 s/kg assumption) unless stated.

The data

The lap times tell the story at a glance.

Lap times of Norris, Piastri and Leclerc, 2025 Hungarian Grand Prix

📊 Figure (described): Lap times (lap 1 omitted, in- and out-laps clipped at 84 s) for Norris (solid orange), Piastri (dashed orange) and Leclerc (red). All three start in the 82–84 s range on mediums. Piastri and Leclerc stop around laps 18–19 and drop into the 81 s range on hards; Norris stays out on mediums, running about 82.0–82.6 s, until lap 31. After his stop Norris runs 80.0–81.0 s. Piastri's second stop (lap 45) puts him on fresh hards that run 79.4–80.7 s through the final 20 laps, the quickest laps of the three. The takeaway: the one-stop and two-stop plans traded a 20-second stop for fresher tyres, and the lap times show the trade being repaid almost exactly.

Gap to Norris at the line, lap by lap

📊 Figure (described): Piastri's (dashed orange) and Leclerc's (red) gap to Norris at the end of each lap; positive means behind. Both run 2–8 s ahead early (negative), jump to 13–15 s behind after their first stops, and close steadily as Norris's mediums age. Norris's own stop on lap 31 swings both back ahead by 17–19 s. Leclerc's second stop (lap 40) and Piastri's (lap 45) put them 7–12 s behind again. From there Piastri closes the gap from 12 s to under a second by the flag, while Leclerc fades to 37.7 s. The takeaway: the one-stop held on by 0.7 s; one more lap would have been very close.

Selected gaps, Piastri minus Norris, at the line:

Gap PIA-NOR by lap (selected): {17: -4.95, 30: 4.87, 32: -17.46, 44: -8.72, 46: 12.04, 60: 2.84, 69: 0.81}

The race pace either side of the stops, as median fuel-corrected clean laps:

  NOR laps 2-31: median fuel-corrected clean lap 79.939 s (n = 29)
  PIA laps 2-18: median fuel-corrected clean lap 79.730 s (n = 16)
  NOR laps 33-70: median fuel-corrected clean lap 79.565 s (n = 38)
  PIA laps 47-70: median fuel-corrected clean lap 79.258 s (n = 24)
  PIA laps 20-45: median fuel-corrected clean lap 79.813 s (n = 25)

Over the final 24 laps, Piastri on new hards was a median 0.31 s/lap quicker than Norris on 15-to-38-lap-old hards, which is worth about 7.4 s over 24 laps. The gap actually closed by 11.3 s, from 12.04 s at the end of lap 46 to 0.699 s at the flag: about 0.47 s/lap on average. The mean is larger than the median difference because it includes the laps the clean-lap filter drops and the median discounts.

Analysis

Why the model said lap 52

The degradation inputs available by about lap 20, the race's opening stints, were extraordinary:

Opening stints (default fuel):
acronym compound  first_lap  last_lap  n    deg  ci_low  ci_high
    COL   MEDIUM          1        13 11 -0.088  -0.153   -0.023
    OCO   MEDIUM          1        14 12 -0.062  -0.125    0.001
    ALB     SOFT          1        14 12 -0.058  -0.111   -0.004
    SAI     SOFT          1        15 13 -0.037  -0.095    0.020
    PIA   MEDIUM          1        18 16 -0.025  -0.065    0.014
    RUS   MEDIUM          1        19 17 -0.021  -0.063    0.020
    VER   MEDIUM          1        17 15 -0.017  -0.034    0.000
    TSU   MEDIUM          1        20 18 -0.014  -0.051    0.023
    ANT   MEDIUM          1        21 19  0.003  -0.029    0.035
    ...
    NOR   MEDIUM          1        31 29  0.019  -0.002    0.040
    ...
    BEA   MEDIUM          1        30 28  0.049   0.032    0.065
MEDIUM opening stints: n = 15, median +0.016; correlation of slope with stint end lap r = +0.76
  stints ending by lap 21: n = 8, median -0.019; ending later: n = 7, median +0.024

Eight of the fifteen opening medium stints had negative default-corrected slopes: by this measure the tyres got faster as they aged, even after taking out the fuel. Every one of those eight ended by lap 21. The seven longer stints had a positive median of +0.024 s/lap. Across all fifteen, the slope correlates with the stint's end lap at r = +0.76.

Opening-stint degradation against the last lap of the stint

📊 Figure (described): Each driver's opening-stint slope (default fuel correction) against the lap on which the stint ended, with 95% intervals. Stints ending between laps 13 and 21 sit below zero, from −0.09 to 0.00 s/lap. Stints ending between laps 30 and 42 sit above zero, from +0.01 to +0.05 s/lap. The takeaway: the measured "wear" of the opening stint depends on how long the stint was, which a pure tyre property should not do.

A tyre property should not depend on when the driver chose to stop. So something else is in these slopes. The data are consistent with several readings, and we can't separate them with timing data alone:

  • A train. The Hungaroring is hard to pass on. Cars that stopped early were mostly running in a queue in the first laps, lapping at the pace of the car ahead, not at their tyre's pace. As the queue spread out their lap times fell, and that reads as "negative degradation".
  • Track evolution beyond the fuel correction. The race's data-driven fuel and evolution slope is −0.0486 s/lap. The default correction removes 0.03 × 100 / 70 = 0.043 s/lap. Under the data-driven correction the opening medium median rises to +0.022 s/lap: still low, but positive.
  • Management. Drivers planning a long first stint drive it differently from drivers planning to stop early.

The model can't know any of that. It saw a medium tyre "degrading" at 0.016 s/lap and a hard at 0.050, and it concluded, correctly given those numbers, that Norris should keep the slow-wearing tyre on as long as possible.

Pit loss: circuit other seasons 21.162 s (n = 112); this race 20.998 s (n = 29)
  Race opening stints: M +0.016, H +0.050 -> optimal lap 52, 1-s window (47, 57), NOR's lap 31 costs 14.39 s; best 2-stop (M/H only) M-M-H (29, 59) +9.11 s vs 1-stop
  Hindsight (whole race): M +0.024, H +0.050 -> optimal lap 47, 1-s window (42, 52), NOR's lap 31 costs 9.25 s; best 2-stop (M/H only) M-M-H (28, 56) +6.32 s vs 1-stop
  Pre-race DegModel: M +0.057, H +0.059 -> optimal lap 35, 1-s window (32, 39), NOR's lap 31 costs 1.11 s; best 2-stop (M/H only) M-H-H (24, 47) -2.47 s vs 1-stop

The one-stop cost curve for Norris under three input sets

📊 Figure (described): Model race time relative to each curve's best, against the lap of a single Medium→Hard stop. The race-opening curve (blue dashed) bottoms out at lap 52 and the hindsight curve (purple dotted) at lap 47; both put Norris's actual lap 31 9–14 s up the wall. The pre-race DegModel curve (green), which knows nothing about this weekend but expects normal medium wear at the Hungaroring, bottoms out at lap 35 with Norris's stop only 1.1 s from optimal. The takeaway: the model fed with this race's own odd numbers got the lap badly wrong, and the model fed with nothing but history got it nearly right.

Why the model still said one stop

The stop count depends on whether a second stop pays for itself. With wear rates of 0.016–0.050 s/lap and a 21.2 s pit loss over 70 laps, it doesn't come close. Chapter 12's critical rate for a second stop is $d^* = 12 \times 21.162 / 70^2 = 0.052$ s/lap, and both measured rates are at or below it. The race-opening model prices the best two-stop on mediums and hards as 9.1 s slower than the best one-stop, and hindsight as 6.3 s slower. Norris one-stopped and won.

The pre-race model, the one that got the lap right, got the count wrong. It prefers a two-stop by 2.5 s, because it expects normal wear (0.057 and 0.059 s/lap), which sits just above the critical line. Three of the top four, Piastri, Russell and Leclerc, did two-stop. The two plans finished 0.7 s apart.

So each input set got one question right and one wrong. The race-trim numbers knew that wear in this race was too low to justify a second stop, but they mismeasured the medium relative to the hard, and that ratio sets the stop lap (22.7). The historical numbers had the ratio about right and the level slightly too high.

What it means (and doesn't)

  • A low or negative opening-stint slope is a warning, not a measurement. When short opening stints show negative wear and longer ones positive, the opening stints are measuring traffic and track evolution as much as tyres. A strategist should widen the uncertainty, lean on the longer stints and on history, and distrust a model that wants to run a medium for 52 laps.
  • The stop lap and the stop count are different questions with different sensitivities. The count depends on the level of wear against the pit loss. The lap depends on the ratio of the two compounds' wear. One input set can get one right and the other wrong.
  • A 0.7 s win does not prove the one-stop was optimal. The data are consistent with the two strategies being very close. The hindsight model prefers the one-stop by 6.3 s and the pre-race model prefers the two-stop by 2.5 s: they disagree on the sign, and both margins are small next to the model's errors. Track position mattered here: on a circuit where passing is hard, being ahead after the stops has a value the linear stint model does not contain.
  • What we can't see. We have no tyre temperatures, no wear measurements and no radio transcripts. We can't say whether Norris's tyres had life left beyond lap 31, or why McLaren split its strategies. The timing data are consistent with a deliberate split; they do not show the reasons.

Discussion questions

  1. If you had been on the pit wall at lap 20, seeing eight negative opening-stint slopes, how would you have adjusted the model's inputs? Which stints would you have trusted most, and why?
  2. Piastri closed from 12.04 s to 0.699 s over the last 24 laps, about 0.47 s/lap on average. At that rate, how many more laps would he have needed to catch Norris? And at the median clean-lap difference of 0.31 s/lap? What do the two answers say about how close the strategies were?
  3. The pre-race DegModel called the lap almost exactly and the count wrongly. Construct a single set of wear rates that would get both right, and say whether any data source could have produced it before lap 31.
  4. Is a 0.7 s margin evidence for the one-stop being better, or evidence that the strategies were equivalent? What extra data would separate the two readings?
  5. Chapter 20 measures the time lost in dirty air. How would you use it to clean the opening-stint slopes here?

Your turn

Pick another race from Anchor B's candidate list (code/anchor_b_candidates.csv) with a large race-opening error: 2024 Italian Grand Prix (−20 laps) or 2025 Singapore Grand Prix (−32, degenerate). Repeat this case study's four steps: lap-time chart, gap chart, opening-stint slopes against stint length, and cost curves for three input sets. Write 400 words on whether the error came from the level of wear, the ratio between compounds, or something the model can't see. State the fuel correction for every number you quote.