Lando Norris started the 2025 Mexico City Grand Prix from pole on a new set of soft tyres. He led, and at the end of lap 34 of 71 he came in for mediums. He did not stop again. When the timing loop caught him at the end of lap 71 he was 30.254 s...
In This Chapter
- 22.1 What Degradation Is, and How We Measure It
- 22.2 The Fuel Lesson: The Correction Is the Measurement
- 22.3 Is Degradation a Straight Line? Linear, Quadratic and the Cliff
- 22.4 Pooling Drivers Without Pretending They Are Identical: Mixed Models
- 22.5 What Drives Degradation: Compound, Circuit, Temperature, Car
- 22.6 A Predictive Degradation Model, Cross-Validated Honestly
- 22.7 Anchor B in Full: The Degradation Model Calls the Pit Stop
- 22.8 Season-Wide Retrodiction: Does the Model Call the Winner's Stop Count?
- 22.9 What Our Data Can't See
- Spaced Review
- Project Checkpoint: degradation.py
- Chapter Summary
- What's Next
Chapter 22 — Tire Degradation Modeling: Building the Model That Drives Every Strategic Decision
Lando Norris started the 2025 Mexico City Grand Prix from pole on a new set of soft tyres. He led, and at the end of lap 34 of 71 he came in for mediums. He did not stop again. When the timing loop caught him at the end of lap 71 he was 30.254 s ahead of Charles Leclerc, who had run the same Soft–Medium plan with a stop after lap 31.
Behind them, the race split into two strategies. Ten classified finishers stopped once. Six stopped twice, and five of those, Bearman, Piastri, Antonelli, Russell and Hamilton, all ran Soft–Medium–Soft and finished fourth to eighth. So one stop was right, and the stop came somewhere in the low-to-mid thirties. A strategy chapter could leave it there.
This chapter does not, because the interesting question is what a model would have said before Norris made the call. We built one in Chapter 12: the linear stint model, which turns degradation rates, a pit loss and compound offsets into a total race time for every possible stop lap. The optimiser is exact. Give it inputs and it returns the best lap to the nearest lap.
So we gave it inputs. Four different sets, each one something a strategist could reasonably have used:
Model calls (one stop SOFT -> MEDIUM):
[P] practice long runs (FP2+FP3), pooled data-driven fuel: deg SOFT 0.126, MEDIUM 0.169 s/lap
optimal stop lap 41 (closed form 41.1); within 1 s: laps 39-43; actual 34 -> error -7 laps, cost 7.352 s
best 2-stop S-S-M after laps (26, 52): -43.933 s vs best 1-stop
[R] race opening stints, default fuel: deg SOFT 0.054, MEDIUM 0.053 s/lap
optimal stop lap 36 (closed form 36.5); within 1 s: laps 33-40; actual 34 -> error -2 laps, cost 0.318 s
[M] DegModel M2, earlier races only, default fuel: deg SOFT 0.061, MEDIUM 0.055 s/lap
optimal stop lap 35 (closed form 35.0); within 1 s: laps 31-39; actual 34 -> error -1 laps, cost 0.053 s
[H] hindsight: all race stints, default fuel: deg SOFT 0.056, MEDIUM 0.049 s/lap
optimal stop lap 35 (closed form 34.5); within 1 s: laps 31-38; actual 34 -> error -1 laps, cost 0.003 s
Friday's long runs said stop on lap 41. They also said that a two-stop race would be 44 s faster than any one-stop, which is the strategy that finished fourth to eighth. The race's own opening stints said lap 36. A model built from nothing but earlier races at other circuits and this one said lap 35. Perfect hindsight also said lap 35, one lap after Norris actually stopped, and on a curve that flat the difference is worth less than a hundredth of a second.
The optimiser was identical in all four runs. Only the degradation numbers changed, and they moved the answer by six laps and flipped the stop count. That is the argument of this chapter in one table: in race strategy, the inputs matter more than the optimiser, and the most important input is degradation. Everything below is about measuring it honestly, saying which correction every number carries, and knowing how far to trust it.
Ines: So the computer was wrong on Friday and right on Sunday?
Aisha: The computer did the same sums both times. Friday's numbers were wrong for Sunday. Practice runs are driven differently.
Ray: And on Sunday the curve was flat. Lap 33 or lap 40, it barely mattered. That's worth knowing too.
Ray is right, and it is the second lesson. Inside laps 33–40 the race-trim model can't tell the options apart by more than a second. A "two laps out" error inside a flat window is the model being honest about what the data can resolve.
🏎️ Fan Track: This is one of the two chapters the Fan Track reads code-optional. Read 22.1–22.2 (what degradation is, and why the fuel correction decides it), 22.5 (what makes tyres wear), and 22.7–22.8 (the model calls real pit stops). The figures and the text carry the story; skip the code blocks if you like.
🔧 Engineering Track: 22.1 (the physics of grip loss), 22.3 (linear, quadratic and cliff models, and which one extrapolates) and 22.5 (temperature and the car). The sensitivity map in 22.7 is the engineering heart: the stop lap is set by the ratio of two wear rates.
📊 Analytics Track: Everything. You will build
boxbox.degradation, the module that feeds every later strategy call in Box Box, including the Monte Carlo engine in Chapter 27. Pay special attention to the cross-validation in 22.6 and the retrodiction in 22.8.🎰 Betting Track: 22.6 to 22.8. Pre-race degradation is hard to predict (22.6), and "always one stop" is a hard baseline to beat (22.8). Both are useful priors for stop-count and strategy markets.
22.1 What Degradation Is, and How We Measure It
A racing tyre gets slower as it ages. That sentence hides three different physical processes and one statistical problem, and a strategist needs both halves.
The physics: why an old tyre is slower
The tyre's grip comes from rubber interacting with the track surface, partly by adhesion and partly by the rubber deforming around the texture of the asphalt (the mechanisms Chapter 4 and Chapter 5 treat in detail). Three things erode that grip over a stint:
- Wear. Tread rubber is abraded away. A thinner tread runs at a different temperature and pressure and has less compliant rubber to key into the surface.
- Thermal degradation. Repeated heat cycles change the compound's chemistry. The rubber can lose grip even with plenty of tread left.
- Surface damage. Graining (torn rubber rolling up on the surface) and blistering (overheating below the surface) reduce the contact area, sometimes temporarily.
All three lower the friction coefficient $\mu$. On a corner where grip is the limit, the maximum speed of a car without downforce scales as $v = \sqrt{\mu g r}$, so
$$\frac{\delta v}{v} = \frac{1}{2}\,\frac{\delta\mu}{\mu} \qquad\Longrightarrow\qquad \frac{\delta T_{\text{grip}}}{T_{\text{grip}}} \approx -\frac{\delta v}{v} = -\frac{1}{2}\,\frac{\delta\mu}{\mu}.$$
In words: a 1% loss of grip costs about 0.5% of the time spent in grip-limited corners. Downforce changes the exponent a little, because the aerodynamic load does not wear out, so a downforce-heavy car loses a smaller share of its total grip when $\mu$ falls. That is the physical basis of the old paddock idea that high-downforce cars "look after their tyres". We test it in 22.5.
A worked number shows the scale.
🧪 Illustrative model: parameters are assumptions chosen to be plausible for a current F1 car, not team data. Suppose 60% of an 81 s lap is spent grip-limited, and $\mu$ falls by 0.1% per lap of tyre age. Then each lap of age costs $0.5 \times 0.001 \times 0.6 \times 81 \approx 0.024$ s. A 0.2% fall per lap doubles it to about 0.05 s/lap.
So a degradation rate of a few hundredths of a second per lap corresponds to the tyre losing a tenth or two of a percent of its grip each lap. That is a tiny physical change. It is also a tiny signal to find in lap times that scatter by tenths for other reasons. That is the statistical problem.
The statistics: separating the tyre from everything else
A lap time is a sum of parts. Following Chapters 4 and 12, we write
$$t_{L} = t_{\text{base}} + f(L) + o_c + d_c\,a_L + \varepsilon_L,$$
where $f(L)$ is the fuel effect on race lap $L$ (the car gets lighter, so faster, every lap), $o_c$ is the pace offset of compound $c$, $a_L$ is the tyre age (laps already completed on the set when the lap begins), $d_c$ is the degradation rate, and $\varepsilon_L$ is everything else: traffic, a mistake, a lift for a yellow flag, the wind.
📐 Definition: degradation rate. The book's canonical degradation rate is the OLS slope of lap time on tyre age within one stint, using
metrics.degradation. It uses clean laps only, drops stint lap 1 (the out-lap or the standing start), and must be computed on fuel-corrected lap times. It is quoted in s/lap (seconds of lap time per lap of tyre age) with a 95% interval and $n$. A race-level rate is the median of that race's stint slopes for the compound, using stints with at least 8 usable laps.📐 Definition: clean lap.
is_cleanin the toolkit: not lap 1, not a pit in-lap or out-lap, green flag for the whole lap (no SC, VSC, red flag or yellow in any sector), a valid lap time, and within 107% of the driver's median green lap in that stint.
The definitions exist because the $\varepsilon_L$ term is not small. Look at what they do to one real race.

📊 Figure (described): Every lap of Norris's winning race, lap time against lap number, with the soft stint (laps 1–34) and medium stint (laps 35–71) separated by a dotted line. Blue circles are the 62 laps that enter the fit. The excluded laps are the standing start (lap 1), four laps under local yellow flags early in the race (laps 3–6), the in-lap and out-lap (the out-lap took 101.4 s), and the two VSC laps at the end. The takeaway: even a clean, dominant drive loses an eighth of its laps to the exclusions, and the laps that remain still scatter by a few tenths around the trend.
The script code/01_one_stint.py makes the classification explicit:
lp = f1data.laps(s, driver="NOR").sort_values("lap_number")
def reason(r):
if r.lap_number == 1: return "lap 1 (standing start)"
if r.is_pit_in_lap or r.is_pit_out_lap: return "pit in-lap / out-lap"
if r.track_status != "GREEN": return "flag during the lap (yellow / VSC)"
if not r.is_clean: return "slower than 107% of stint median"
return "used in the fit"
lp["reason"] = lp.apply(reason, axis=1)
NOR, 2025 Mexico City GP: laps by reason (71 laps)
stint reason
1 flag during the lap (yellow / VSC) 4
lap 1 (standing start) 1
pit in-lap / out-lap 1
used in the fit 28
2 flag during the lap (yellow / VSC) 2
pit in-lap / out-lap 1
used in the fit 34
Twenty-eight usable laps on the soft and thirty-four on the medium. The yellow-flag laps 3–6 look like ordinary racing laps in the chart, and they may well have been. But we can't tell which drivers lifted, so the rule takes them all out. The rule is conservative on purpose: it is better to lose four good laps than to keep one contaminated lap at the start of a stint, where it would lever the slope.
⚠️ Common pitfall: fitting the out-lap. The first lap of every stint after a stop includes most of the pit loss (Norris's out-lap here was 101.386 s against racing laps of about 82 s). One such point at tyre age 0 drags a fitted slope strongly negative. Fix: always drop stint lap 1, as
metrics.degradationdoes, and check the minimum tyre age in your fitted data before quoting a slope.
What is left: one stint, one slope
With the exclusions applied, Norris's soft stint gives a slope with a 95% interval. But which slope depends on a choice we have not discussed yet, and it is the most important choice in the chapter.
22.2 The Fuel Lesson: The Correction Is the Measurement
An F1 car burns fuel throughout the race, so it gets lighter and faster every lap. Over a stint, the tyre is getting slower and the car is getting faster. A raw lap-time slope measures the difference between the two.
🧩 Productive struggle: Before reading on, look at Norris's soft stint, the left half of Figure 22.1. From lap 7 to lap 33 his raw lap times rose from about 82.4 s to 83.3 s. Write down your estimate of the soft tyre's degradation rate. Then ask: what would you need to know about the car to turn that into a tyre number?
Here is the same stint under three fuel conventions:
b = D.fuel_slope(sk) # this race's data-driven fuel + evolution slope
for fuel in ("raw", "default", "data"):
c = D.correct_fuel(lp, fuel=fuel, slopes={sk: b}) # adds lap_time_deg, labelled
for st, g in c.groupby("stint"):
f = D.fit_stint(g) # canonical slope, 95% t-interval
This race's data-driven fuel + evolution slope: -0.0450 s per race lap (pooled median of 76 dry races: -0.056)
95% CI -0.0485 to -0.0416; n = 1061 clean laps, 18 drivers; implied 0.032 s/kg at the 100 kg assumption
default correction adds 0.03 x 100 / 71 = 0.0423 s/lap to every raw slope
NOR stint slopes (s/lap per lap of tyre age, 95% t-interval):
stint compound fuel deg ci_low ci_high n
1 SOFT raw 0.0214 0.0076 0.0353 28
2 MEDIUM raw 0.0066 -0.0048 0.0179 34
1 SOFT default 0.0637 0.0499 0.0775 28
2 MEDIUM default 0.0488 0.0374 0.0602 34
1 SOFT data 0.0665 0.0526 0.0803 28
2 MEDIUM data 0.0516 0.0402 0.0630 34
On raw lap times, Norris's mediums barely degraded at all: 0.007 s/lap, with an interval that includes zero. After either fuel correction they degraded at about 0.05 s/lap. The soft goes from 0.021 to 0.064 or 0.067. Two-thirds or more of the "degradation" is the correction.

📊 Figure (described): The 28 usable laps of Norris's soft stint, plotted against tyre age, under no correction (orange circles), the toolkit's default correction (blue squares) and this race's data-driven correction (green triangles), each relative to its own first three laps. The raw points stay nearly flat until about tyre age 20 and then rise; the corrected points rise steadily from the start. The fitted slopes are +0.021, +0.064 and +0.066 s/lap. The takeaway: the same laps give three different degradation rates, and the choice of correction, not the tyre, sets most of the difference.
Two ways to correct for fuel
📐 Definition: the two fuel corrections. The toolkit's default correction (
metrics.fuel_corrected) assumes a start load $F_0 = 100$ kg burned linearly over the race and a cost of $k = 0.03$ s per kg per lap. Both values are labelled assumptions: a 110 kg race-fuel limit is sourced only for 2019–2021 (data/reference/regulations_by_season.csv), and the 2026 rules limit energy flow rather than fuel mass. The data-driven correction usesmetrics.estimate_fuel_effect: a fixed-effects regression of lap time on race lap, compound and tyre age within each driver's race, which estimates the lap-time change per race lap directly. It also absorbs track evolution (the track getting faster as rubber goes down), so it is an upper bound on the pure fuel effect.
The default correction has a closed form. With mid-lap fuel $F_L = F_0\,(1 - (L-0.5)/N)$, the corrected lap is $t_L - kF_L$, and the slope on race lap changes by
$$\Delta d = \frac{k\,F_0}{N} = \frac{0.03 \times 100}{71} = 0.0423\ \text{s/lap at Mexico City.}$$
In words: the default correction adds the same 3.0 s spread over the race distance to every stint's slope. It adds 0.042 s/lap in a 71-lap race and 0.059 s/lap in a 51-lap race.
🧪 Illustrative model: the default correction's 100 kg start load and 0.03 s/kg cost are assumptions, not measured team data. The book's data-driven estimate, the median of 76 dry races, is −0.056 s per race lap [−0.061, −0.050], which implies 0.033 s/kg if the start load was 100 kg. The two are consistent, but neither is the true fuel load of any car.
The whole field, every dry race
One stint might be a fluke. The script code/02_fuel_lesson.py builds the book's stint table for all 76 dry races of 2023–2026 (3,262 stints with at least 8 usable laps) under all three conventions:
Median stint slope by compound and fuel convention (s/lap; bootstrap 95% CI, 2,000 draws):
compound fuel stints median ci_low ci_high q25 q75 share_positive
SOFT raw 485 0.0181 0.0126 0.0252 -0.0276 0.0692 62.8866
MEDIUM raw 1326 0.0026 -0.0012 0.0060 -0.0433 0.0411 51.8854
HARD raw 1451 -0.0021 -0.0051 0.0017 -0.0393 0.0315 48.6561
SOFT default 485 0.0637 0.0563 0.0695 0.0194 0.1193 82.6804
MEDIUM default 1326 0.0508 0.0475 0.0545 0.0098 0.0905 78.8839
HARD default 1451 0.0477 0.0447 0.0512 0.0142 0.0816 83.0462
SOFT data 485 0.0614 0.0540 0.0702 0.0194 0.1244 83.0928
MEDIUM data 1326 0.0536 0.0492 0.0574 0.0135 0.0913 80.9955
HARD data 1451 0.0521 0.0488 0.0543 0.0240 0.0891 88.3529
Default correction adds 0.0517 s/lap to the median stint (range 0.0385-0.0682: 3.0 / race laps)
SOFT : correction is 76% of the median corrected rate
MEDIUM: correction is 102% of the median corrected rate
HARD : correction is 110% of the median corrected rate

📊 Figure (described): For each dry compound, three markers show the median stint slope under no correction (orange), the default correction (blue) and each race's data-driven correction (green); the shaded bars show the interquartile range. Raw medians are +0.018 (SOFT), +0.003 (MEDIUM) and −0.002 (HARD) s/lap; corrected medians are 0.061–0.064, 0.051–0.054 and 0.048–0.052. The takeaway: in race trim, raw lap times on mediums and hards are flat on average, and the measured "wear" of those compounds is the fuel correction.
This is the most important table in the chapter, so read it slowly.
- Raw lap times on MEDIUM and HARD tyres don't rise in a typical stint. The median raw slope is 0.003 and −0.002 s/lap, and only about half of all stints have a positive raw slope. Tyre wear and fuel burn very nearly cancel.
- The two corrections agree closely. Default and data-driven medians differ by 0.002–0.004 s/lap. So the result is not an artefact of the 100 kg assumption: the data's own fuel estimate gives the same answer.
- The MEDIUM and HARD "degradation rates" are about 100% fuel correction. The correction is 102% and 110% of the corrected median, which is another way of saying the raw slope is zero or slightly negative.
- The compounds are barely different. Corrected, MEDIUM and HARD differ by 0.003 s/lap pooled. The familiar idea that a medium wears several times faster than a hard does not survive contact with 3,262 stints. Compounds differ far more in how long a team is willing to run them (Chapter 4 measured median stint lengths of 14, 18 and 23 laps for soft, medium and hard stints ending in a stop) than in their race-trim wear rate.
⚠️ Common pitfall: a degradation number without its fuel correction. "The hard degrades at 0.048 s/lap" and "the hard degrades at −0.002 s/lap" are both true statements about the same laps. Fix: every degradation number in this book, and in your own work, names its correction: raw, default (100 kg × 0.03 s/kg, assumption) or data-driven.
boxbox.degradationwrites the label into every table it returns.
The fuel effect itself varies by race
The default correction treats every race the same. The data-driven one does not.

📊 Figure (described): Each green triangle is one race's data-driven fuel + evolution slope (s per race lap), sorted from most negative (2024 Saudi Arabia at Jeddah, about −0.12) to least (2026 Miami, about −0.003). The blue squares show what the default assumption implies for the same race, −3.0 s divided by the race distance, which ranges only from −0.068 to −0.039. The dashed line is the median data slope, −0.056. The takeaway: the default is a reasonable average, but individual races differ by a factor of three or more, largely because track evolution differs.
Data-driven fuel + evolution slope, median of 76 races: -0.0563 s/lap, bootstrap 95% CI [-0.0609, -0.0503]
Default assumption's implied slope: median -0.0526 s/lap (range -0.0682 to -0.0385)
Races where the data slope is steeper than the default: 48 of 76
🔍 Why this works: how can the data separate fuel from tyre wear when both change every lap? Because of the pit stop. Within a stint, race lap and tyre age rise together, one for one, and no regression can tell them apart. At a stop, tyre age resets to zero while race lap keeps counting. A driver who stops once gives two stints with the same tyre-age range at different fuel loads.
estimate_fuel_effectfits a single race-lap slope and a tyre-age slope for each compound across all of a driver's stints, and the reset is what identifies them. Track evolution also rises with race lap, so it lands in the fuel term. That is why we call the data slope an upper bound.📺 On the broadcast: When the commentators say "his lap times are holding up well, the tyres must be in good shape", they are reading raw lap times. Flat raw lap times on a medium or hard tyre are normal: they mean the tyre is losing about as much time as the fuel burn is giving back, around 0.05 s/lap in each direction. A driver whose raw times are falling late in a stint is either on a tyre with unusually low wear or on a track that is still getting faster. A driver whose raw times are rising by a tenth a lap is losing more than twice the typical wear.
🔄 Check your understanding 1. A 57-lap race. With the default correction, how much does the correction add to every raw stint slope? 2. A stint's raw slope is −0.010 s/lap in that race. What is its default-corrected degradation rate, and what would you say if someone called the tyre "not degrading"?
Answer
1. $0.03 \times 100 / 57 = 0.053$ s/lap (an assumption-driven figure; the race's own data-driven slope could differ). 2. $-0.010 + 0.053 = 0.043$ s/lap, about the pooled median for a medium or hard. The tyre is degrading at a normal rate; the fuel burn is hiding it. The raw time is flat because two effects of similar size cancel.
22.3 Is Degradation a Straight Line? Linear, Quadratic and the Cliff
The canonical rate is a straight line. Real tyres are not obliged to follow one. Chapter 4 showed that a sharp late-stint cliff, where lap times suddenly rise by seconds, is rare in race data: only 0.5% of stints end more than 2 s above their linear fit, because teams stop before it happens. But gentler curvature is common. Norris's soft stint is a good example.
SOFT stint, quadratic fit (default fuel): slope at mean age +0.0675 s/lap, curvature +0.00358 s/lap^2 (mean age 18.4)
local slope at age 5: -0.0283 s/lap
local slope at age 15: +0.0434 s/lap
local slope at age 30: +0.1509 s/lap
Read the quadratic fit literally and the soft tyre got faster for its first ten laps, then wore at 0.04 s/lap mid-stint and 0.15 s/lap at the end. A plausible reading is that the early laps mix several effects the fuel correction does not remove: the track still rubbering in, the tyre settling into its working range, and the driver building a gap. Whatever the cause, the curve is real in-sample. The question for a strategist is whether a curve predicts better than a line, because a pit call is always a prediction about laps not yet driven.

📊 Figure (described): Left: Norris's soft stint at Mexico City 2025, with the linear fit (+0.064 s/lap), the quadratic fit (curvature +0.0036 s/lap²) and the hinge "cliff" model, which finds no break and lies on the line. Right: Norris's 40-lap hard stint at the 2025 Chinese Grand Prix, where the linear slope is +0.031 s/lap, the quadratic bends upward, and the hinge model finds a break at tyre age 36 followed by +0.953 s/lap. The takeaway: most stints are lines with mild curvature; a genuine cliff looks different, and the hinge test only fires when one is there.
The hinge model is Chapter 4's cliff test, boxbox.tyres.fit_tyre_model: a line plus an extra slope after a break age in the second half of the stint, accepted only if an F-test gives $p < 0.001$ and the extra slope is at least 0.15 s/lap. boxbox.degradation.fit_stint(..., model="hinge") wraps it, so the three models share one interface.
In sample, the curve often wins
The script code/03_linear_vs_nonlinear.py fits every stint with at least 15 usable laps (2,448 stints) both ways and compares the Bayesian information criterion (BIC), which rewards fit and penalises extra parameters:
Stints with >= 15 usable laps: 2448 (of 3262 in the table)
In-sample: quadratic beats linear by > 2 BIC units in 869 stints = 35.5% [Wilson 33.6, 37.4];
curvature > 0 in 62.9%; median curvature 0.00106 s/lap^2
So about a third of long stints are better described by a curve, and curvature is usually upward (wear accelerating). If you stopped here you would switch to a quadratic model.
Out of sample, the line wins
Now the strategist's test. For each stint, fit on the first two-thirds of its usable laps and predict the last third, which is exactly what you do on the pit wall when you ask "how much will this tyre lose before lap X?"
k = int(np.floor(2 * n / 3)) # fit window = first two-thirds of usable laps
pl, pq2 = np.polyfit(xf, yf, 1), np.polyfit(xf, yf, 2)
el = yt - np.polyval(pl, xt) # linear forecast error on the held-out laps
eq = yt - np.polyval(pq2, xt) # quadratic forecast error
e0 = yt - yf.mean() # 'no degradation' baseline
Forecast of the last third from the first two-thirds (mean absolute error per stint, s):
mae_lin mae_quad mae_flat bias_lin bias_quad n
compound
HARD 0.548 0.887 0.695 0.146 -0.129 1276
MEDIUM 0.488 0.798 0.641 0.186 -0.274 901
SOFT 0.537 0.860 0.679 0.213 -0.159 271
all 0.524 0.856 0.675 0.170 -0.184 2448
Quadratic forecast better than linear in 675 of 2448 stints (27.6%)
Linear better than flat in 1510 of 2448 (61.7%)

📊 Figure (described): The median absolute forecast error (seconds per lap) against how many laps beyond the fit window the forecast reaches. The linear forecast (blue) starts at 0.29 s one lap ahead and rises to about 0.61 s ten laps ahead. The quadratic (orange) starts slightly worse, at 0.33 s, and deteriorates fast, to 1.24 s ten laps ahead. The flat no-degradation baseline (grey) sits between them. The takeaway: the straight line is the best extrapolator; the curve that wins in-sample loses badly when asked about the future.
The quadratic forecast is worse than the line in 72% of stints and worse than assuming no degradation at all. That is the classic overfitting trap. A curvature estimated from 10–20 noisy laps is mostly noise, and squaring the extrapolation distance amplifies it.
The line is not perfect either. Its median signed error is +0.103 s: the held-out laps are usually slower than predicted, in 56.6% of laps. That is the mild acceleration of wear showing up as bias. The practical rule: forecast with the line, then add a small upward allowance for late-stint laps, rather than fitting a curve to each stint.
⚠️ Common pitfall: choosing a model by in-sample fit. The quadratic wins on BIC in a third of stints and loses the forecast in most of them. Fix: judge a degradation model by how well it predicts laps it has not seen, using a time-ordered split (never a random one; the future cannot inform the past). This is a theme of the book's statistics appendix, Appendix E.
🔄 Check your understanding 1. Why does a quadratic fit that is better in-sample forecast worse? 2. The linear forecast's bias is positive. What does that tell you about tyres late in a stint, and how would you use it?
Answer
1. The curvature term is estimated from a short, noisy stint, and its error grows with the square of the forecast distance. A slightly wrong curvature becomes a large error ten laps out. 2. Wear accelerates a little late in a stint, so the line under-predicts the last laps (by a median 0.103 s). Use the line, and add a margin when deciding how long a tyre can go. Don't fit a curve per stint.
22.4 Pooling Drivers Without Pretending They Are Identical: Mixed Models
A strategist rarely wants one driver's degradation. She wants the field's rate for a compound at this race, because that is what predicts her own car's next stint and her rivals'. So far we have summarised the field by the median of its stint slopes. That is robust, but it throws information away: a 30-lap stint and a 9-lap stint each count once, although one is far more precise than the other.
A mixed model (also called a multilevel or hierarchical model) does better. It fits one regression to all the laps of a compound at once, with a fixed effect for the field's typical slope and a random effect for each stint's deviation from it:
$$t_{iL} = (\beta_0 + u_{0i}) + (\beta_1 + u_{1i})\,a_{iL} + \varepsilon_{iL}, \qquad (u_{0i}, u_{1i}) \sim \mathcal{N}(0, \Sigma).$$
In words: every stint $i$ has its own intercept and its own degradation slope, but the slopes are assumed to come from a common distribution centred on the field slope $\beta_1$. The model estimates $\beta_1$, the spread of slopes across stints ($\sqrt{\Sigma_{11}}$), and a shrunken estimate of each stint's slope that combines its own laps with what the field says. A noisy stint is pulled strongly towards $\beta_1$; a long, clean stint keeps nearly its own slope. This is the same logic as the teammate-chain ratings of Chapter 21, applied to tyres.
boxbox.degradation.mixed_deg fits it with statsmodels' MixedLM (restricted maximum likelihood), with one group per driver-stint:
d["grp"] = d.acronym + "-" + d.stint.astype(int).astype(str)
fit = smf.mixedlm("yy ~ age", d, groups=d["grp"], re_formula="~age").fit(reml=True)
fixed = fit.fe_params["age"] # the field's slope
blup = fixed + fit.random_effects[g]["age"] # one stint's shrunken slope
Here is the result at Mexico City 2025, default fuel correction (script code/04_mixed_models.py):
2025 Mexico City GP, default fuel correction
SOFT : median of 26 stint slopes (>= 8 laps) +0.0559 [+0.0506, +0.0675] | pooled OLS +0.0574 | mixed fixed slope +0.0631 [+0.0543, +0.0720], SD of stint slopes 0.0157, 26 stints (>= 4 laps), 593 laps
OLS stint slopes range +0.015 to +0.119; mixed-model slopes +0.046 to +0.086
ALO-1 +0.015->+0.046 (n=15), STR-1 +0.031->+0.047 (n=21), ALB-2 +0.106->+0.086 (n=26), RUS-3 +0.119->+0.081 (n=19)
MEDIUM: median of 16 stint slopes (>= 8 laps) +0.0491 [+0.0402, +0.0651] | pooled OLS +0.0481 | mixed fixed slope +0.0471 [+0.0383, +0.0559], SD of stint slopes 0.0126, 16 stints (>= 4 laps), 410 laps
OLS stint slopes range +0.013 to +0.101; mixed-model slopes +0.023 to +0.058
GAS-1 +0.013->+0.023 (n=28), OCO-2 +0.029->+0.033 (n=41), STR-2 +0.086->+0.052 (n=15), ALO-2 +0.101->+0.053 (n=12)

📊 Figure (described): For the soft (left) and medium (right) tyres at Mexico City 2025, each row is one driver-stint. The open circle is the stint's own OLS slope (larger circles = more laps) and the blue diamond is its mixed-model slope; the dashed line is the field's fixed slope (0.063 s/lap on the soft, 0.047 on the medium). The extreme stints move most: Russell's third stint on softs, the steepest, falls from 0.119 to 0.081 s/lap, and Ocon's 41-lap medium stint barely moves, from 0.029 to 0.033. The takeaway: the mixed model trusts long stints and discounts short ones, which is what a sensible engineer does by eye.
Three readings matter.
- The field number barely changes. Median, pooled OLS and mixed slope agree within about 0.007 s/lap at Mexico City, and their intervals overlap. For the race-level rate, the median of stint slopes is fine.
- Individual stints change a lot. The range of soft slopes shrinks from 0.015–0.119 to 0.046–0.086 s/lap. If your question is about one car ("how fast is the Ferrari ahead of us losing time on its softs?"), the shrunken estimate is the better forecast, especially early in a stint when you have six or seven laps.
- The spread is real. The estimated standard deviation of stint slopes is 0.016 s/lap on the soft and 0.013 on the medium here: drivers and cars genuinely differ, by more than the sampling noise.
Across every race-compound cell with at least six stints, the pattern holds:
Race x compound cells with >= 6 stints: 161; mixed model fitted in 161
correlation (mixed fixed slope, median of stint slopes): r = 0.926
median difference mixed - median: +0.0014 s/lap; median |difference| 0.0058; 90th pct |difference| 0.0265
median CI width of the mixed fixed slope: 0.0462 s/lap
spread of single-stint slopes: OLS SD median 0.0545 -> mixed-model SD 0.0329 (40% narrower)
median between-stint SD of the slope (random-effect SD): 0.0433 s/lap

📊 Figure (described): Each point is one race-compound cell (161 in all), with the median of stint slopes on the horizontal axis and the mixed-model fixed slope on the vertical, both default-corrected. The points hug the diagonal (r = 0.926), with a handful of cells off it by more than 0.03 s/lap. The takeaway: for the field's rate the two summaries are interchangeable; the mixed model earns its keep on individual stints.
A note on precision that is easy to skip and should not be. The median width of the 95% interval on a race's field slope is 0.046 s/lap. The pooled rate of a medium tyre is 0.051 s/lap. So a single race's degradation estimate is typically uncertain by about its own size. Hold on to that; it explains a great deal of 22.6–22.8.
Each team its own rate? Chapter 12 priced Verstappen's 2026 Barcelona strategy with the field's median medium wear of 0.182 s/lap and found it 43.6 s slower than the optimum. A per-driver rate is now one call away. His final medium stint, laps 41–66 (22 usable laps), had its own slope of 0.166 s/lap, and the mixed-model estimate is 0.165 against a field fixed slope of 0.179. Using his own rate on a 26-lap stint changes the model's tyre cost by $(0.182 - 0.166) \times (0 + 1 + \dots + 25) = 0.016 \times 325 \approx 5$ s. That is real, but it is an eighth of the gap. Most of what the field model missed for that car lies outside degradation, which is a useful thing to know.
22.5 What Drives Degradation: Compound, Circuit, Temperature, Car
The usual list of things that set tyre wear is long: compound, track temperature, the circuit's surface and corners, the car's downforce and balance, the driver's style. Each is plausible. The data can test how much of the variation each one explains.
A variance budget
code/05_what_drives_deg.py regresses the 3,262 stint slopes (default correction) on nested sets of group labels and reports the share of variance each set explains:
Share of variance in stint slopes (R^2 of OLS on group dummies), default fuel, n = 3262
compound R^2 = 0.012
+ circuit R^2 = 0.188
+ season R^2 = 0.202
race (circuit x season) + compound R^2 = 0.298
race x compound R^2 = 0.378
race x compound + team R^2 = 0.385
race x compound + team within race R^2 = 0.512
[raw fuel] compound R^2 = 0.013; race x compound R^2 = 0.392
[data fuel] compound R^2 = 0.009; race x compound R^2 = 0.395
Translate it into strategy terms:
- Compound alone explains 1% of the variation in degradation. Knowing it is a soft rather than a hard tells you almost nothing about how fast it will wear, pooled across circuits.
- The circuit explains about 18% more. Where you race matters far more than what you race on.
- The specific race explains more still. Circuit-and-season together (that is, the race) reach 30%, and letting each compound have its own rate at each race reaches 38%. Same circuit, different year, different answer: asphalt, compound choices, weather, car generations and the race's own events all move.
- The team adds little on its own (0.378 → 0.385), but team within race jumps to 0.512. Be careful with that last number: it adds about 1,500 dummy variables for roughly two stints each, so a good part of the gain is the model fitting noise. It is an upper bound on how much car-and-driver specifics could matter at a given race, not an estimate.
- The fuel convention barely changes these shares. Raw and data-driven slopes give the same picture. The correction shifts the level of every slope, not who wears faster than whom.

📊 Figure (described): For each circuit with enough data, the median default-corrected stint slope on each compound (red circles soft, yellow squares medium, white triangles hard), circuits sorted from the highest overall degradation (Bahrain, about 0.10–0.14 s/lap) to the lowest (Losail, Baku and Las Vegas, near or below zero). At several circuits the compound order flips: at Shanghai the medium (0.111) wears far faster than the hard (0.029), while at Silverstone and the Hungaroring the hard has the higher slope. The takeaway: the circuit sets the level of degradation, and it can reverse the textbook compound order.
Negative medians, at Las Vegas, Baku and Losail, mean the track evolution and fuel burn outran tyre wear even after the default correction. A plausible reading at Las Vegas is the cold, low-grip surface rubbering in through the race. The general lesson is that our "degradation" always contains whatever the fuel correction failed to remove.
Track temperature
Hotter tracks are supposed to wear tyres faster. The trap is that hot circuits (Bahrain, Mexico City in the afternoon) differ from cool ones (Silverstone, Las Vegas at night) in many other ways. The clean test is within a circuit: is a hotter-than-usual day at the same track worse?
Track temperature: stints 3262, range 13.6-55.4 degC, median 36.8
compound FE +0.0010 s/lap per degC [-0.0001, +0.0022] -> +0.010 per +10 degC
compound + circuit FE +0.0017 s/lap per degC [+0.0007, +0.0026] -> +0.017 per +10 degC
compound + circuit + season FE +0.0014 s/lap per degC [+0.0005, +0.0023] -> +0.014 per +10 degC
SOFT within circuit: +0.015 per +10 degC [-0.010, +0.041] (n = 485)
MEDIUM within circuit: +0.018 per +10 degC [+0.007, +0.030] (n = 1326)
HARD within circuit: +0.020 per +10 degC [+0.011, +0.029] (n = 1451)

📊 Figure (described): Each grey dot is a stint, plotted as its degradation minus the circuit-and-compound mean against its track temperature minus the circuit's mean. The orange line joins the medians in 3 °C bins and the dashed blue line is the fitted within-circuit effect, +0.017 s/lap per +10 °C. The scatter is wide (about ±0.1 s/lap), and the bin medians rise from about −0.02 to +0.01 s/lap across 25 °C. The takeaway: the temperature effect is real and small, smaller than the noise in any one stint.
So yes: +10 °C at the same circuit means about +0.017 s/lap of degradation (95% interval 0.007–0.026), standard errors clustered by race. On a 25-lap stint that is $0.017 \times (0 + 1 + \dots + 24) = 0.017 \times 300 = 5.1$ s, which can move a stop by a lap or two. It is about a third of the typical medium-tyre rate, and much smaller than the circuit-to-circuit differences. The soft's estimate is the least precise (n = 485, and its interval includes zero).
The car: does downforce protect the tyres?
The claim from 22.1 was that high-downforce cars lose less of their grip when the rubber wears, so they "look after their tyres". Downforce isn't in our data, but qualifying pace is, and the fastest cars of each season are, broadly, the ones with the most effective aero. So we ask: at the same race, on the same compound, do faster teams degrade less?
For each team at each race we take the median of its stints' deviation from the race-compound median, and set that against the team's qualifying gap to the fastest lap of the weekend (dry qualifying only).
Team deg residual vs qualifying gap (team-races n = 722, 71 races with dry Q):
slope +0.0031 s/lap per 1% slower in qualifying [+0.0005, +0.0058]; r = +0.116
team-seasons (>= 8 races): n = 41, r = +0.384
split-half (odd vs even rounds) correlation of team-season deg residual: r = +0.315 [bootstrap -0.089, +0.612],
n = 41 team-seasons; Spearman-Brown full-season reliability +0.479

📊 Figure (described): Each marker is a team-season (marker shape = season, colour = team), with the team's median qualifying gap to the fastest lap on the horizontal axis and its median degradation relative to the race-compound median on the vertical. Most points sit within ±0.01 s/lap of zero. Audi 2026 (−0.017) and Mercedes 2026 (−0.011) are the gentlest on their tyres; Cadillac 2026 (+0.020) and Alpine 2025 (+0.014) the hardest. The fitted relationship slopes slightly upward (r = +0.38 across team-seasons). The takeaway: slower cars tend to wear their tyres slightly faster, but the car effect is small and a team's "tyre character" is only moderately stable within a season.
The evidence leans toward the paddock idea, weakly. A team 1% slower in qualifying degrades about 0.0031 s/lap more on average, with an interval (0.0005–0.0058) that excludes zero, though not by much. Two caveats keep it honest:
- Traffic is a confound. Slower cars spend more of their stints in dirty air (the disturbed wake of the car ahead), which overheats tyres. We can't tell "less downforce" from "more time in traffic" with these data. Chapter 20 measures the dirty-air cost directly.
- Team tyre character is only partly persistent. Splitting each season into odd and even rounds, the two halves agree with r = +0.32, and the bootstrap interval runs from −0.09 to +0.61. A team that looked kind to its tyres in the first half might well not be in the second.
🎰 Betting Track: "Team X is good on its tyres" is a popular narrative in race previews. The data say the effect exists but is small (about three thousandths of a second per lap per percent of pace) and noisy from race to race. Treat it as a weak prior, never as a reason to bet against the circuit's base rate.
🔄 Check your understanding 1. Compound explains 1% of the variance in stint degradation, and the race explains 30–38%. What does that mean for a strategist preparing for a race next week? 2. Why is the within-circuit temperature estimate (+0.017 per 10 °C) more trustworthy than the across-circuit one (+0.010)?
Answer
1. The most useful inputs are specific to the circuit and the race weekend: previous races at this track, and above all whatever this weekend's running shows. Pooled "soft vs hard" rules carry almost no information. 2. Across circuits, temperature travels with everything else that differs between, say, Bahrain and Silverstone. With circuit fixed effects, each circuit is compared only with itself on hotter and cooler days, so the circuit's character can't masquerade as temperature.
22.6 A Predictive Degradation Model, Cross-Validated Honestly
Everything so far measures degradation after a race. A strategy decision needs it before: on Sunday morning, or better on Friday, when the plan is set. So we build a predictive model and test it the only fair way, on races it has not seen.
The model
The unit of prediction is a race-compound cell: the median default-corrected stint slope of one compound at one race (at least 3 stints). There are 175 such cells in the 76 dry races. boxbox.degradation.DegModel predicts a cell from its compound $c$, circuit $k$, track temperature $T$ and, optionally, season $y$:
$$\widehat{d}(c,k,T,y) = b_c + s_y + u_k + v_{kc} + \beta\,(T - \bar T_k),$$
where $b_c$ is the compound's median, $s_y$ an optional season shift, $u_k$ the circuit's effect, $v_{kc}$ the compound-at-this-circuit effect, and $\beta$ the within-circuit temperature slope from 22.5. The circuit terms are shrunk towards zero:
$$u_k = \bar r_k \cdot \frac{n_k}{n_k + \kappa},$$
with $\bar r_k$ the circuit's mean residual over $n_k$ training cells and $\kappa$ a shrinkage constant. In words: a circuit seen once moves the prediction only part of the way from the compound average; a circuit seen eight times moves it nearly all the way. With $\kappa = 4$ and one previous cell, the circuit effect is shrunk to one fifth of its raw value. This is the empirical-Bayes logic of 22.4 again, one level up.
class DegModel:
def fit(self, stints):
c = race_cells(stints) # one row per race x compound
self.base = c.groupby("compound").deg.median().to_dict()
c["r0"] = c.deg - c.compound.map(self.base)
... # temperature slope within circuits
g = c.groupby("circuit_ref").r1.agg(["mean", "size"])
self.u = {k: _shrink(m, n, self.k_circuit) for k, (m, n) in g.iterrows()}
... # compound-at-circuit terms, shrunk again
def predict(self, compound, circuit=None, track_temp=None, year=None): ...
The test
Five versions, from naive to full:
- M0 compound only: the training median for the compound, ignoring everything else.
- M1 circuit, no shrinkage: raw circuit means ($\kappa = 0$).
- M2 shrunk circuit: $\kappa = 4$. The value was chosen on one fold only (train on 2023, test on 2024). The grid gave MAE 0.0474 at $\kappa = 0$, 0.0395 at 4 and 0.0403 at 16.
- M3 = M2 + track temperature. This uses the race's measured mean track temperature, which is equivalent to a perfect weather forecast. That is an optimistic assumption.
- M4 = M2 + season effect, learned from the current season's earlier races.
The rolling scheme trains on every dry race before the test race, which is exactly what a team knows on race morning. We test it on 2024–2026. The noise floor is how precisely each target is itself known: the median bootstrap standard error of a cell's median is 0.011 s/lap. A perfect model would still show a mean absolute error of about 0.009.
Mean absolute error (s/lap) by validation scheme, model and test season:
year 2024 2025 2026 all n
scheme model
rolling M0 compound only 0.0415 0.0358 0.0389 0.0388 136
M1 circuit, no shrink 0.0467 0.0395 0.0416 0.0426 136
M2 shrunk circuit 0.0394 0.0326 0.0394 0.0371 136
M3 shrunk circuit + temp 0.0435 0.0318 0.0403 0.0385 136
M4 shrunk circuit + season so far 0.0410 0.0323 0.0384 0.0372 136
Rolling, M2: MAE 0.0371, r(pred, actual) = 0.288, bias -0.0005; M0 r = n/a (constant per compound), MAE 0.0388
share of variance explained (1 - SSE/SST): M2 0.051, M0 0.011

📊 Figure (described): Each point is one race-compound cell in 2024–2026 (136 in all), with DegModel M2's pre-race prediction (trained only on earlier races) on the horizontal axis and the race's measured median stint slope on the vertical. The predictions are compressed into a narrow band, almost all between 0.00 and 0.10 s/lap (the extremes are −0.01 and 0.13), while the measured values spread from −0.06 to +0.24. The correlation is 0.29. The takeaway: the model is right on average (bias −0.0005 s/lap) and of limited use for any single race.

📊 Figure (described): Grouped bars of mean absolute error for the five models in each test season (rolling validation), with a dotted line at the noise floor (about 0.009 s/lap). Every model sits between 0.031 and 0.047 s/lap, four times the noise floor. The unshrunk circuit model (orange) is the worst in every season; the shrunk circuit model (blue) beats the compound-only baseline (grey) in 2024 and 2025 and ties it in 2026. The takeaway: circuit history helps only when it is shrunk, and even then the gain over "the compound's average" is small.
This is a sobering result, and the book reports it as it is.
- The best pre-race model beats the compound average by 0.002 s/lap in mean absolute error (0.0371 vs 0.0388), and it explains only about 5% of the variance of race-level degradation.
- Raw circuit history makes predictions worse. Without shrinkage, one previous race at the circuit drags the prediction around by that race's noise.
- Temperature and season effects don't help out of sample. Each adds a little in one season and costs in another.
- The misses are big, and they are not random noise.
largest misses:
race compound actual pred n
2024 Las Vegas Grand Prix MEDIUM 0.206 -0.010 15
2026 Barcelona Grand Prix SOFT 0.237 0.067 9
2026 Barcelona Grand Prix MEDIUM 0.182 0.058 18
2025 Hungarian Grand Prix SOFT -0.037 0.083 3
2026 Australian Grand Prix MEDIUM -0.059 0.050 18
2026 Chinese Grand Prix MEDIUM -0.011 0.091 12
Las Vegas had shown negative medium degradation in 2023, so the model expected none in 2024. It got 0.206 s/lap. The 2026 Barcelona Grand Prix was the high-wear race of Chapters 4 and 12, on new regulations, with soft and medium wear three to four times what the model expected from earlier races. A plausible reading is that what changes from one race to the next (the compounds chosen, the surface, the weather on the day, a new generation of cars) matters more than what stays the same. Chapter 4 found that circuit-season medians correlate only r = 0.52 from one season to the next, even with bigger samples.
⚠️ Common pitfall: validating with future data. A random cross-validation split lets a 2026 race inform the prediction for a 2024 race at the same circuit. That makes the model look better than anything a team could have had. Fix: split by time. Train only on races that happened before the test race (the rolling scheme) and report that error.
🎰 Betting Track: If a pre-race degradation model with four seasons of data can't beat "the compound's average" by more than a few thousandths of a second per lap, pre-race narratives about "high deg this weekend" deserve scepticism unless they come from this weekend's running. Case Study 2 asks whether Friday's practice is that running.
🔄 Check your understanding 1. Why does shrinking the circuit effect improve predictions? 2. The noise floor is 0.009 s/lap and the best model's error is 0.037. Where does the other 0.028 come from?
Answer
1. A circuit effect estimated from one or two races is mostly that race's noise. Shrinking it towards zero in proportion to the evidence ($n/(n+\kappa)$) keeps the signal from circuits seen often and discounts the noise from circuits seen rarely. 2. From real race-to-race changes the model has no inputs for: compound selection, asphalt, weather beyond the mean track temperature, car generations and race events. The cell's own sampling error accounts only for the floor.
22.7 Anchor B in Full: The Degradation Model Calls the Pit Stop
The book's Anchor B asks one question of one real race: give the strategy model honest, pre-decision degradation inputs, and see how close it comes to the winner's actual stop. The race is the 2025 Mexico City Grand Prix. It was chosen by a rule fixed before anyone looked at the errors: a dry race, not a sprint weekend (so FP2 and FP3 exist), won with a single green-flag stop, with both practice and race inputs available, and with the most practice long runs on the winner's two compounds.
The setup
2025 Mexico City Grand Prix: winner NOR, SOFT -> MEDIUM, first set 0 laps old, stopped after lap 34; N = 71;
pit loss 23.059 s (circuit, other seasons, n = 55)
| Input | Value | Where it comes from |
|---|---|---|
| Race distance $N$ | 71 laps | OpenF1, leader's laps |
| Strategy shape | SOFT → MEDIUM, one stop, new soft at the start | Norris's actual sets |
| Pit loss $P$ | 23.059 s | canonical green-flag pit loss at this circuit in the other seasons (55 stops): what a team knew beforehand |
| Compound offsets at equal age | SOFT −0.136, HARD −0.039 s/lap vs MEDIUM | pooled paired-median estimate (strategy.POOLED_OFFSETS) |
| Warm-up per new set | SOFT 0.450, MEDIUM 0.552, HARD 0.111 s | pooled warm-up penalty (strategy.POOLED_WARMUP) |
| Degradation | four input sets, below | each labelled with its fuel correction |
The four degradation input sets are what a strategist could have had at different moments:
- P, practice long runs (Friday and Saturday morning). Every FP2/FP3 stint on one dry compound with at least 8 clean laps after the out-lap, and a raw slope between −0.3 and +0.6 s/lap (outside that, the run was aborted or the programme changed mid-run). The fuel loads in practice are unknown, so each raw slope is corrected with the pooled data-driven race slope: deg = raw − (−0.0563).
- R, the race's opening stints (by about lap 25). Each driver's first stint with at least 8 usable laps, median by compound, default fuel correction.
- M, the pre-race DegModel. M2 from 22.6, trained only on the dry races before this one. No data from this weekend at all.
- H, hindsight. Every stint of this race, default fuel correction. No strategist ever has this. It tells us what the model would say if degradation were known perfectly.
Friday's answer
Practice long runs (FP2/FP3, >= 8 clean laps after the out-lap, raw slope in [-0.3, 0.6]):
size median min max
session compound
FP2 HARD 1 0.030 0.030 0.030
MEDIUM 8 0.153 -0.007 0.371
SOFT 5 0.126 -0.011 0.407
FP3 MEDIUM 1 0.265 0.265 0.265
raw deg
compound
HARD -0.026 0.030
MEDIUM 0.112 0.169
SOFT 0.070 0.126

📊 Figure (described): Individual stint slopes for the soft and medium tyres, practice long runs beside race opening stints. Practice slopes scatter from about −0.01 to +0.41 s/lap, with medians of 0.126 (soft) and 0.169 (medium). Race opening stints cluster tightly, with medians of 0.054 and 0.053. The takeaway: the practice runs wore the tyres two to three times faster than the race did, and they disagreed with each other far more.
Practice long runs are not race stints. Teams run them on different fuel loads, at different engine and energy settings, often pushing harder for longer than they will on Sunday, and the track is greener. We can't see any of that in the data, but we can see the result: across every candidate race with both input sets, the median ratio of practice deg to race-opening deg for the same compound is 2.34× (n = 8 compound pairs). Case Study 2 extends this to every non-sprint dry weekend.
Four inputs, four calls
The calls are in the table at the start of the chapter. Here they are as curves, each relative to its own optimum:

📊 Figure (described): Race time relative to each curve's own best, against the lap of the single Soft→Medium stop, for practice inputs (orange, minimum at lap 41), race opening stints (blue dashed, lap 36), the pre-race DegModel (green dash-dot, lap 35) and hindsight (purple dotted, lap 35). The shaded band marks "within 1 s of the optimum". The vertical line is Norris's stop after lap 34. The race-trim curves are shallow bowls about eight laps wide inside the 1-s band; the practice curve is a steep, narrow bowl displaced seven laps later. The takeaway: race-trim inputs put the actual stop inside the flat bottom of the bowl, while practice inputs put it 7.4 s up the wall.
The optimum has a closed form under linear degradation, derived in Chapter 12. Setting the marginal lap on the old set equal to the marginal lap on the new one gives
$$s^{*} = \frac{d_2 N + o_2 - o_1 + (d_1 - d_2)/2 - d_1 a_0}{d_1 + d_2}.$$
In words: the stop goes where the two stints' wear penalties balance, pushed later if the second compound is slower when new ($o_2 > o_1$), and earlier if the starting set was already used ($a_0 > 0$). With the race inputs $d_1 = 0.054$, $d_2 = 0.053$, $o_2 - o_1 = 0 - (-0.136) = 0.136$, $N = 71$ and $a_0 = 0$:
$$s^{*} = \frac{0.053 \times 71 + 0.136 + 0.0005}{0.107} = \frac{3.900}{0.107} \approx 36.4,$$
against the script's 36.5 from the unrounded inputs. With practice inputs, $d_2 = 0.169$ is larger than $d_1 = 0.126$, so $s^* = (0.169 \times 71 + 0.136 - 0.0215)/0.295 \approx 41.1$. The model wants Norris to run the soft longer because it believes the medium will wear faster still. The race showed the opposite.
The fuel correction moves the call too
Same race, same opening stints, three fuel conventions:
Same race, opening stints only, three fuel conventions:
raw : SOFT +0.012 (n 11), MEDIUM +0.011 (n 6) -> optimal lap 40, 1-s window (31, 49), degenerate False
default: SOFT +0.054 (n 11), MEDIUM +0.053 (n 6) -> optimal lap 36, 1-s window (33, 40), degenerate False
data : SOFT +0.057 (n 11), MEDIUM +0.056 (n 6) -> optimal lap 36, 1-s window (33, 40), degenerate False
Without the fuel correction, the wear rates fall to about 0.01 s/lap. The optimum drifts to lap 40, and the 1-s window balloons to 19 laps (31–49). A flat curve looks like freedom; here it is ignorance produced by a measurement error. Both corrections agree on lap 36.
Sensitivity: the inputs matter more than the optimiser
pit loss 21.06 s -> optimal lap 36 (pit loss does not move a one-stop)
pit loss 25.06 s -> optimal lap 36 (pit loss does not move a one-stop)
both R degs x 0.5: optimal lap 38, 1-s window (32, 43)
both R degs x 1.5: optimal lap 36, 1-s window (33, 39)
both R degs x 2.0: optimal lap 36, 1-s window (33, 38)
SOFT deg 0.034 (R -0.02): optimal lap 45
SOFT deg 0.044 (R -0.01): optimal lap 40
SOFT deg 0.064 (R +0.01): optimal lap 33
SOFT deg 0.074 (R +0.02): optimal lap 31
R degs with zero compound offsets: optimal lap 35

📊 Figure (described): A filled contour map of the model's optimal stop lap (colour scale from lap 20 to lap 54) over soft degradation (horizontal, 0.02–0.20 s/lap) and medium degradation (vertical, same range). The contours fan out from the origin as straight lines, so the stop lap depends mainly on the ratio of the two rates. The white contour marks lap 34, Norris's actual stop, and runs just below the dotted equal-rates diagonal. The four input sets are marked: race opening stints, DegModel and hindsight sit together near (0.055–0.061, 0.05) beside the white line; practice sits far up at (0.126, 0.169), in the lap-40-plus region. The takeaway: what decides a one-stop is the relative wear of the two compounds, and getting that ratio wrong by 30% moves the call by several laps.
Four lessons from the sensitivity runs:
- The pit loss does not move a one-stop optimum. Every one-stop pays one pit loss wherever it stops, so $P$ cancels from the comparison. $P$ matters for the stop count, not the stop lap.
- Scaling both wear rates together barely moves it either. Doubling both leaves lap 36 and narrows the window. Halving both shifts it two laps and widens the window.
- Changing one rate moves it a lot. A soft wear rate 0.01 s/lap lower moves the call four laps later, to lap 40. A rate 0.01 higher moves it three laps earlier, to lap 33. A 0.01 s/lap difference is a fifth of the measured rate and well inside the precision of a single race's estimate (22.4).
- The offsets matter when the rates are low. Setting the soft's 0.136 s/lap pace advantage to zero moves the call from 36 to 35.
This is what "the inputs matter more than the optimiser" means in practice. The optimiser is exact. The thing it is exact about is uncertain by its own size.
The stop count: practice says two, the race says one
[P] best 2-stop S-S-M after laps (26, 52): -43.933 s vs best 1-stop
[R] best 2-stop S-S-M after laps (24, 49): -0.452 s vs best 1-stop
[M] best 2-stop S-S-M after laps (24, 48): -1.726 s vs best 1-stop
[H] best 2-stop S-S-M after laps (23, 47): +0.811 s vs best 1-stop
With practice wear rates, a two-stop is 43.9 s faster, an overwhelming margin. With the race's opening stints it is a tie, within 0.5 s, which is far inside the model's error. Hindsight prefers the one-stop by 0.8 s. The five drivers who ran Soft–Medium–Soft finished fourth to eighth. We can't say from timing data that the two-stop cost them those places, because their pace, grid slots and traffic differ. But no reading of the race supports the practice model's 44 s.
Every race of the same kind
One race is an anecdote. The selection rule found 19 candidate races in 2023–2026: dry, not sprint weekends, and won with a single green-flag stop. code/07_anchor_b.py runs all four input sets on each of them. A run is degenerate when an input wear rate is below 0.01 s/lap or the optimum lands on the search boundary (lap 5 or lap $N-5$). Then the linear model has no interior optimum and can't call the stop at all.
Summary by input set (non-degenerate runs):
P: runs 5, degenerate 1, median |error| 5.5 laps (n = 4), |error| <= 3 in 0%, actual inside 1-s window 0/4, median window width 6 laps, median signed error -5.5
R: runs 19, degenerate 7, median |error| 3.0 laps (n = 12), |error| <= 3 in 58%, actual inside 1-s window 7/12, median window width 8 laps, median signed error -2.0
M: runs 19, degenerate 2, median |error| 4.0 laps (n = 17), |error| <= 3 in 41%, actual inside 1-s window 7/17, median window width 9 laps, median signed error -3.0
H: runs 19, degenerate 4, median |error| 5.0 laps (n = 15), |error| <= 3 in 47%, actual inside 1-s window 7/15, median window width 9 laps, median signed error +0.0
P and R together (the book's 16-run set): n = 16, median |error| 4.0 laps; degenerate P/R runs 8 of 24
median practice / race-opening deg ratio, same race and compound: 2.34x (n = 8)

📊 Figure (described): One row per candidate race (19 races, 2023 Italian GP to 2026 United States GP). Each marker is the actual stop lap minus the model's optimal lap for one input set: practice (orange circles, only 5 races have enough long runs), race opening stints (blue squares), pre-race DegModel (green triangles) and hindsight (purple diamonds). Hollow markers are degenerate runs. The shaded band is ±3 laps. Errors run from −32 to +40 laps; degenerate runs cluster at the extremes, at Miami 2023, Azerbaijan 2025, Las Vegas 2025, Italy 2025 and Singapore 2025. Mexico City 2025 has three of its four markers within two laps. The takeaway: the deg model calls the stop within three laps less than half the time, and when wear is near zero it can't call it at all.
The honest summary of Anchor B:
- Across the 16 non-degenerate practice and race-opening runs, the median error is 4 laps. Eight of the 24 practice and race-opening runs could not call the stop at all, because the measured wear was about zero.
- The race-opening inputs are the best single source, with a median error of 3 laps and 58% within ±3. Practice inputs are the worst: all four non-degenerate practice runs miss by more than 3 laps, and all four have the winner stopping earlier than the model (median signed error −5.5 laps).
- Perfect knowledge of wear (H) does not fix it. Hindsight is no better than the opening stints, with a median error of 5 laps. So the remaining error is not a measurement problem. The winners' stop laps were driven by things the model does not contain: track position, the threat of an undercut from the car behind (Chapter 13), traffic on the out-lap, safety-car risk (Chapter 14), and tyre-life limits the team may have known about.
- When the curve is flat, an error of a few laps costs almost nothing. The median 1-s window is 8–9 laps wide. Mexico City's −2 laps cost 0.318 s in the model.
A good way to hold this: a degradation model does not tell you the lap. It tells you the window and how much each lap outside it costs. Inside the window, other considerations decide, and they should.
📋 Call the pit stop: Mexico City 2025, end of lap 30. You are on Norris's pit wall. He leads on softs that are 30 laps old. Most of the two-stop cars have already made their first stop (laps 22–25), so you have 11 opening soft stints to measure: median 0.054 s/lap, default fuel correction. You have 6 opening medium stints from the cars that started on mediums: 0.053 s/lap. The pit loss here has been 23.1 s in other years. Leclerc, second, is on a similar strategy. Do you stop now, at lap 34, or hold out to the model's lap 36?
Reveal
The race-opening model prices the options relative to its optimum at lap 36 (rounded inputs): stopping after lap 31 costs about 1.6 s, lap 33 about 0.6 s, and lap 34 about 0.3 s. Anything from 33 to 40 is within 1 s. Leclerc stopped after lap 31. Norris stopped after lap 34, inside the flat window, and won by about 30 s. With a lead that size, a strategist would reasonably spend a few tenths of model time to remove the risk of an undercut or a late safety car. That decision is about risk, and it lies outside the deg model.🔄 Check your understanding 1. Why does the pit loss not change the optimal lap of a one-stop, and when does it matter? 2. Hindsight inputs are no better than opening-stint inputs at matching the winner's stop lap. What does that tell you?
Answer
1. Every one-stop strategy pays exactly one pit loss, so $P$ is a constant across stop laps and cancels. It matters when comparing different stop counts (one stop against two). 2. The error is not mostly in measuring degradation. Even perfect wear rates leave a median miss of 5 laps, so winners' stop laps are set largely by factors the linear stint model does not represent: track position, undercut threats, traffic, risk.
22.8 Season-Wide Retrodiction: Does the Model Call the Winner's Stop Count?
Anchor B scores the stop lap in races where the winner stopped once. The stop count is the bigger decision, and every dry race can test it. Retrodiction means running the model on past races as if they had not happened yet, and scoring it against what happened.
For every dry race of 2024–2026, code/08_season_retrodiction.py builds the linear stint model for each deg input set, with the circuit's pit loss from other seasons, pooled offsets and warm-up, a new set at the start, stints of at least 5 laps, and up to three stops. It applies the two-compound rule, plus the three-set minimum that applied at Monaco in 2025. It asks the optimiser for the best stop count and compares it with the winner's. Races in which cars changed tyres under a red flag (2026 Monaco, Italy and Mexico City) are skipped, because the choice was not free. That leaves 54 races.
Agreement with the WINNER's stop count (Wilson 95% CI):
inputs hits n share lo hi 2024 2025 2026 too_few too_many field_hits
pre-race 30 54 55.6 42.4 68.0 10/20 10/20 10/14 18 6 30
opening 40 54 74.1 61.1 83.9 16/20 13/20 11/14 12 2 41
hindsight 43 54 79.6 67.1 88.2 17/20 15/20 11/14 11 0 44
data fuel 41 54 75.9 63.1 85.4 17/20 13/20 11/14 11 2 42
raw 35 54 64.8 51.5 76.2 13/20 13/20 9/14 19 0 35
one-stop 32 54 59.3 46.0 71.3 12/20 11/20 9/14 22 0 32
Winners' stop counts in these races: {1: 32, 2: 18, 3: 4}
2025 only (20 dry races): pre-race 10/20, opening 13/20, hindsight 15/20, data fuel 13/20, raw 13/20, one-stop 11/20

📊 Figure (described): Grouped bars showing the share of races where the model's best stop count equals the winner's, for six input sets (pre-race model, opening stints, hindsight, hindsight with data-driven fuel, hindsight with no fuel correction, and the "always one stop" rule), by season and overall. Hindsight is highest at 80% overall, the opening stints 74%, the raw-lap model 65%, "always one stop" 59%, and the pre-race model 56%. The takeaway: race-trim degradation calls the stop count three times in four; a pre-race model does worse than the simplest possible rule.

📊 Figure (described): The 53 dry races of 2024–2026 with both a one-stop and a two-stop option, sorted by the pre-race model's margin (best two-stop minus best one-stop). Points below zero are races where the model prefers two stops. Blue circles are races won with one stop, orange squares two stops, red triangles three stops. Most two- and three-stop winners sit above the line, at margins of +1 to +11 s and as high as +29 s, where the model insisted on one stop. The takeaway: with pre-race wear rates near the pooled average, the model almost always says one stop, and it misses most of the races won on two.
What the table says:
- For the stop count, using the race's own wear rates works well. With the opening stints, 40 of 54 (74%, interval 61–84%) match the winner. Hindsight reaches 43 of 54 (80%). The data-driven fuel correction gives 76%, essentially the same. For 2025 alone, hindsight calls 15 of the 20 dry races and the opening stints 13.
- The fuel correction is worth about 15 points. On raw lap times the same hindsight model drops to 65%, and every one of its misses predicts too few stops (19 too few, none too many). This is the fuel lesson of 22.2 in decision form: understating wear makes stops look unnecessary.
- "Always one stop" scores 59%. Any model that cannot beat that is not adding information. The pre-race DegModel scores 56%: it is worse than the naive rule, because its predictions are compressed towards the average (22.6) and it occasionally calls two stops in the wrong races (6 too many).
- Misses are mostly too few stops. The model is conservative. This echoes Chapter 12's finding that all of its 18 misses predicted too few stops. The linear stint model has no traffic, no undercut and no safety car, and each of those can make an extra stop pay. It has no tyre-life limit either, so it will happily run a set longer than any team would.
📐 Definition: critical degradation. From Chapter 12, the wear rate at which $k+1$ equal stints tie $k$ is $d^{*} = 2(k+1)(k+2)(P+w)/N^2$. For a second stop at a typical race ($N = 57$, $P = 22.512$ s, ignoring warm-up), $d^{*} = 12 \times 22.512 / 3249 = 0.083$ s/lap. The pooled medium rate is 0.051 s/lap (default correction). That is why a model fed average wear almost always says one stop: the average tyre is well below the two-stop line.
📋 Analyze this session: 2025 Bahrain Grand Prix. The winner, Piastri, ran Soft–Medium–Medium with stops after laps 14 and 32. Load the race and run
D.race_early_deg(s)andD.stint_table(f1data.laps(s), "default"). Compare the soft and medium wear with the critical rate for a second stop at this race ($N$ = the leader's laps, $P$ fromD.pooled_pit_loss("bahrain", exclude_session=sk)). Which side of the line is the race?What you should find
The retrodiction calls two stops for this race with both opening-stint and hindsight inputs, and one stop with pre-race inputs (code/08_season_retrodiction_output.txt). Bahrain has the highest median wear of any circuit in Figure 22.9, so its race-trim rates sit near or above the two-stop line. The pre-race model shrinks the circuit's history towards the average and falls below it.
22.9 What Our Data Can't See
A degradation model built on free timing data is a model of lap times, not of tyres. Be explicit about what is missing.
- No tyre temperatures, pressures or wear measurements. Teams have tread-depth readings after every run, carcass and surface temperatures, and pressure telemetry. We have lap times and a weather station. Everything we say about the mechanism (thermal versus wear, graining versus blistering) is inference, not measurement.
- No fuel loads. Both corrections are estimates. The default is an assumption, and the data-driven slope includes track evolution. In practice we don't know the loads at all, which is one reason practice slopes are so far from race slopes.
- No driver intent. A driver managing his tyres, lifting and coasting to save fuel or energy, or pushing to build a gap before a stop, produces a lap-time slope that reflects that choice. The 2.34× practice/race ratio is, in large part, a measure of how differently cars are driven on Friday and Sunday.
- Survivorship. Race stints end when teams choose to stop, usually before a cliff. So the data describe the stints teams chose to run, not the tyre's true life. Only 0.5% of stints end more than 2 s above their linear fit. That doesn't mean cliffs never happen; it means strategists avoid them.
- Traffic and dirty air. A car stuck behind another runs slower, and often hotter on its tyres, for reasons unrelated to its own wear. Our clean-lap rule removes flags and pit laps, not traffic. Chapter 20 builds the traffic flag.
- Compound selection. The SOFT at one race may be a different Pirelli compound from the SOFT at the next (C1–C6 in 2025, per
data/reference/tyres.csv). The data snapshot does not include a per-event list of nominated C-compounds, so DegModel can't use it. That is probably part of the unexplained race-to-race variance in 22.6. - Wet races. Everything in this chapter uses the 76 dry races (no intermediate or wet tyre laps, no rainfall flag). The 2025 Miami Grand Prix is excluded anyway, but note that its race laps 2–24 are missing from OpenF1 in this snapshot, so it can't be used for stint work at all.
🔄 Check your understanding 1. Name two reasons a practice long run's slope overstates race degradation that you cannot check in the timing data. 2. Why does survivorship make race data understate how sharply a tyre can fall off?
Answer
1. Any two of: unknown and different fuel loads; different engine and energy settings; drivers pushing harder for a full run rather than managing; a greener, lower-grip track in practice. 2. Teams stop before the cliff, so the laps in which a tyre would have fallen away were never driven. The data show managed stints, not the tyre's limit.
Spaced Review
From Chapter 4 (Tires): before reading on, recall how often a race stint ends with a "cliff" of more than 2 s above its linear trend. Chapter 4 measured it at 0.5% of 3,262 stints, because teams stop first. This chapter adds the forecasting consequence: a straight line extrapolates better than a curve (22.3), but it runs slightly low late in a stint (median +0.103 s). Can you say why a cliff model fitted per stint would make strategy forecasts worse, not better?
From Chapter 12 (Race Strategy Fundamentals): what does the pit loss do to the optimal lap of a one-stop strategy? If you said "nothing", you have the key idea that 22.7 used: every one-stop pays one pit loss, so it cancels. Chapter 12's critical-degradation formula, $d^* = 2(k+1)(k+2)(P+w)/N^2$, is where the pit loss does matter, and 22.8 showed why it pushes average-wear races to one stop: $d^* \approx 0.083$ s/lap for a second stop in a 57-lap race, against a pooled wear rate near 0.05.
From Chapter 19 (Lap Time Analysis): Chapter 19's rule of thumb was that telemetry mini-sector differences under about 0.05 s are not evidence at 3.7 Hz sampling. What is the equivalent rule for degradation? The median 95% interval on a single race's field slope is 0.046 s/lap wide (22.4). Two races whose medium wear differs by 0.02 s/lap are not distinguishable from one race's data. Only many races, or a mixed model's pooling, can separate them.
Project Checkpoint: degradation.py
Aisha: Chapter 12 gave Box Box an exact optimiser and a single, shaky input. This module is the input pipeline. Every degradation number it returns says which fuel correction made it and where it came from.
The module lives at project/boxbox/degradation.py. It imports boxbox.strategy (Chapter 12) and boxbox.tyres (Chapter 4) without changing either. Its public functions:
| Function | What it does |
|---|---|
fuel_slope(session) |
the race's data-driven fuel + evolution slope, s per race lap |
correct_fuel(laps, fuel="default"\|"data"\|"raw") |
adds lap_time_deg and writes the fuel label into the table |
fit_stint(stint_laps, model="linear"\|"quadratic"\|"hinge") |
one stint's slope, interval and fit (a StintFit) |
stint_table(laps, fuel=...) |
every usable stint (reproduces the book's 3,262-stint table) |
race_cells(stints) |
race × compound medians |
practice_long_runs(meeting_key) |
Friday/Saturday long runs, with Anchor B's rules |
race_early_deg(session) |
the race's opening-stint rates, labelled |
mixed_deg(laps, compound) |
the field slope and shrunken per-stint slopes |
DegModel(...).fit(stints).predict(compound, circuit, track_temp, year) |
the pre-race predictive model |
stint_time(deg, n_laps, start_age, offset, curvature) |
closed-form tyre time of a stint |
to_race_model(deg, total_laps, pit_loss_s, ...) |
builds a strategy.RaceModel |
call_one_stop(model, c1, c2) |
optimal lap, 1-s window, curve and degeneracy flag |
pooled_pit_loss(circuit_ref, exclude_session) |
the circuit's pit loss from other seasons |
The checkpoint script code/project_checkpoint.py runs the pipeline end to end. First, it measures and labels:
for fuel in ("raw", "default", "data"):
t = D.stint_table(lp, fuel=fuel)
print(f"{s.year} {s.gp_name} [{fuel}: {D.FUEL_LABEL[fuel]}]")
2025 Mexico City Grand Prix [raw: no fuel correction (raw lap times)]
HARD -0.017 s/lap (n=2); MEDIUM +0.007 s/lap (n=16); SOFT +0.014 s/lap (n=26)
2025 Mexico City Grand Prix [default: fuel-corrected at the toolkit default (100 kg, 0.03 s/kg ASSUMPTION)]
HARD +0.026 s/lap (n=2); MEDIUM +0.049 s/lap (n=16); SOFT +0.056 s/lap (n=26)
2025 Mexico City Grand Prix [data: fuel-corrected with the race's data-driven fuel + evolution slope]
HARD +0.029 s/lap (n=2); MEDIUM +0.052 s/lap (n=16); SOFT +0.059 s/lap (n=26)
Then it looks forward. The 2026 Qatar (round 22) and Abu Dhabi (round 23) Grands Prix are not in the data snapshot (data/reference/calendar_2026.csv lists them for 29 November and 6 December). So Aisha trains DegModel on all 76 dry races and asks for a call:
2026 Qatar (R22): 57 laps (last race at the circuit), pit loss 27.55 s (all seasons, n = 76)
predicted deg (default fuel): SOFT +0.037, MEDIUM -0.006, HARD +0.005
one-stop M-H: lap 52 (1-s window 49-52), degenerate True
2026 Abu Dhabi (R23): 58 laps (last race at the circuit), pit loss 22.67 s (all seasons, n = 89)
predicted deg (default fuel): SOFT +0.072, MEDIUM +0.071, HARD +0.053
one-stop M-H: lap 25 (1-s window 21-28), degenerate False
best 1-stop: S-H (25,) +0.00 s
best 2-stop: S-H-H (17, 38) +4.92 s
best 3-stop: S-H-H-H (13, 28, 43) +19.38 s
The Qatar call is degenerate: Losail's measured wear is near zero, so the model has no interior optimum. It is worth comparing with the facts: Qatar winners in our data stopped three times (2023), once (2024) and twice (2025). Something other than measured wear set those strategies, and the module says so by raising the flag instead of returning a confident lap. As a cross-check, our measured Losail pit loss of 27.55 s sits near the 26.5 s press estimate for 2026 in data/reference/engineering_reference.csv (a blog relaying Pirelli; a low-reliability source). Abu Dhabi gets a normal call: a one-stop around lap 25, with a two-stop 4.9 s slower.
Finally, it replays the anchor race. With Norris's actual stop and the opening-stint wear rates, the model's lap-by-lap prediction (strategy.lap_times) follows his laps with a residual SD of 0.320 s:
Replay, NOR 2025 Mexico City GP, opening-stint deg S 0.054 / M 0.053:
clean laps 62, residual SD 0.320 s, mean |residual| 0.258 s
stint 1: mean residual -0.094 s over 28 laps (positive = slower than the model)
stint 2: mean residual +0.173 s over 34 laps (positive = slower than the model)

📊 Figure (described): Norris's 62 clean laps (default fuel-corrected, blue dots) against the model's predicted lap times for his actual Soft→Medium strategy (orange line), offset to his median. The model's two straight stint lines run through the middle of the points; the soft stint's points dip below the line early and rise above it late (the curvature of 22.3), and the medium stint runs on average 0.173 s above it. The takeaway: a two-parameter tyre model reproduces a winning race to about a third of a second per lap, and its residuals show exactly where the next refinement would go.
How it plugs in. to_race_model is how every later chapter turns degradation into strategy. Chapter 27's Monte Carlo engine will draw wear rates from DegModel's error distribution (MAE about 0.037 s/lap) instead of treating them as known. call_one_stop's degeneracy flag tells the simulator when to fall back on a rule. And Chapter 40 assembles it all behind python -m boxbox simulate.
Chapter Summary
| Quantity | Value (with its correction and filter) | Source |
|---|---|---|
| Canonical stint slope, dry races 2023–2026 | SOFT 0.064, MEDIUM 0.051, HARD 0.048 s/lap (default fuel, 100 kg × 0.03 s/kg assumption; 3,262 stints) | 22.2 |
| Same, no fuel correction | SOFT 0.018, MEDIUM 0.003, HARD −0.002 s/lap | 22.2 |
| Same, data-driven correction | SOFT 0.061, MEDIUM 0.054, HARD 0.052 s/lap | 22.2 |
| Data-driven fuel + evolution effect | −0.056 s per race lap [−0.061, −0.050], 76 races | 22.2 |
| Default correction adds | $0.03 \times 100 / N$ s/lap (0.042 at $N$ = 71) | 22.2 |
| Linear vs quadratic forecast of the last third of a stint | MAE 0.524 vs 0.856 s (2,448 stints); flat 0.675 | 22.3 |
| Mixed model vs median, race level | r = 0.926, median difference 0.006 s/lap (161 cells) | 22.4 |
| Variance of stint slopes explained | compound 1%, + circuit 19%, race × compound 38% | 22.5 |
| Track temperature, within circuit | +0.017 s/lap per +10 °C [0.007, 0.026] | 22.5 |
| Team effect | +0.0031 s/lap per 1% slower in qualifying [0.0005, 0.0058] | 22.5 |
| Pre-race DegModel error (rolling) | MAE 0.037 s/lap vs 0.039 for the compound average; noise floor 0.009 | 22.6 |
| Anchor B, Mexico City 2025 | actual lap 34; race-opening inputs lap 36 (−2), practice lap 41 (−7); laps 33–40 within 1 s | 22.7 |
| Anchor B, all candidates | median error 4 laps over 16 practice/race runs; 8 of 24 degenerate; practice/race wear 2.34× | 22.7 |
| Stop-count retrodiction, 54 dry races 2024–2026 | opening stints 74%, hindsight 80%, raw 65%, "always one stop" 59%, pre-race 56% | 22.8 |
Decision checklist for a degradation number
- Which fuel correction? Say it every time.
- Which laps? Clean laps only, stint lap 1 dropped, at least 8 usable laps per stint.
- From where? Practice (divide by about 2), the race's opening stints (best for decisions), a model (weak pre-race), or hindsight (for analysis only).
- How precise? A single race's field slope is uncertain by about ±0.02 s/lap. Report $n$ and the interval.
- Line, not curve, for forecasting; add a small late-stint margin.
- Is the call degenerate? If wear is below 0.01 s/lap, the linear model can't choose a lap. Use a rule, not the optimiser.
- Lap or count? The pit loss cancels for the lap of a one-stop and decides the count.
What's Next
Degradation is measured here from lap times alone, because that is what timing data give us. Chapter 23 opens the car data: speed, throttle, brake and gear at nearly four samples a second. It asks what a tyre losing grip looks like inside a lap, in lower minimum speeds and later throttle, and where the telemetry runs out.