On lap 32 of the 2025 Hungarian Grand Prix, Lando Norris left the pits on a set of HARD tyres that he would keep
In This Chapter
- 20.1 What a lap time is made of
- 20.2 The physics of fuel mass
- 20.3 Measuring the fuel effect from race data
- 20.4 What race data cannot separate
- 20.5 Traffic and dirty air
- 20.6 Race-pace rankings, and how they compare with qualifying
- 20.7 FP2 long runs as a race-pace predictor
- 20.8 Putting it together: a base-pace model and a race decomposed
- Spaced Review
- Project Checkpoint: pace.py
- Chapter Summary
- What's Next
Chapter 20 — Race Pace: Fuel Correction, Traffic, Dirty Air, and Measuring a Car's True Speed
On lap 32 of the 2025 Hungarian Grand Prix, Lando Norris left the pits on a set of HARD tyres that he would keep for the last 39 laps of the race. Ask anyone who has watched a season of Formula One what happens to a tyre over 39 laps and you'll hear the same answer: it wears, it loses grip, and the car gets slower. Now look at what the timing data say. The median of Norris's first five clean laps on that set was 80.752 s. The median of his last five, on tyres more than 30 laps older, was 80.597 s. He got faster, by 0.155 s. A straight line through all 38 usable laps of the stint has a slope of −0.008 s per lap, and its 95% interval includes zero.
This isn't a Norris quirk, and it isn't Hungary. Take every dry race in our data snapshot from 2023 to 2026: 76 of them. For each of the 1,441 driver-races with at least 20 clean laps, find the lap on which the driver set their fastest clean lap. If lap times only got worse as tyres aged, those fastest laps would cluster just after the pit stops. Instead, 918 of them, 63.7% (95% CI 61.2–66.1%), came in the final quarter of the race. Only 26 (1.8%) came in the first quarter. The median fastest lap was set on tyres 12 laps old, and 45.1% of them on tyres at least 15 laps old.
Ines: So the tyres get better with age? That's the opposite of everything the commentators say.
Aisha: Or something else is getting better faster than the tyres get worse. The car is carrying a hundred-odd kilos of fuel at the start, and it burns all of it.
Tom: And the track is rubbering in the whole time. Every car lays down a bit more grip for the next one.
Ines: So which is it?
Aisha: That's the uncomfortable part. From race data, I'm not sure we can tell.
Aisha is right, and this chapter is about exactly that discomfort. Over the same 37 laps, Hungary's track got faster for everybody at a rate we can measure: −0.049 s per lap for the whole field once we account for each driver, each compound and each tyre's age. That adds up to 1.80 s across Norris's stint. Take it out and his HARD tyres were wearing at about +0.040 s per lap, a perfectly ordinary number. The raw data hid it completely.
Race pace is what a car is worth over a race distance, as opposed to one lap on Saturday. It is the number a
strategy simulator starts from, the number a driver comparison needs, and the number a bettor wants before the
lights go out. It is also never observed directly. Every lap time is a sum: the car and driver, the fuel still in
the tank, the grip the track has gained, the compound and age of the tyres, and the car in front. This chapter
takes that sum apart. We'll measure the fuel effect from the data three different ways, show what race data
cannot separate however clever the model, measure the cost of dirty air from the gap to the car ahead, rank
drivers by race pace and compare that with qualifying, and test whether Friday long runs predict Sunday. Then
we'll build pace.py, the module that gives Box Box its base pace.
🔧 Engineering Track: Section 20.2 derives the fuel-mass sensitivity from first principles, and 20.5 does the same for the wake of the car ahead. The physics cross-check in 20.3 is where the theory meets 76 races.
📊 Analytics Track: The identification problem in 20.4 is the most important statistics lesson in Part III: what a fixed-effects model can and cannot learn when two causes move together. Run scripts 02–04 alongside it.
🎰 Betting Track: Read 20.6 and 20.7. They tell you how often the fastest race car wins (about six races in ten), how often the pole-sitter has the best race pace (under half the time), and whether Friday practice adds anything to qualifying (on average, no).
20.1 What a lap time is made of
Here is the model we'll use for the whole chapter. For driver $d$ on race lap $L$, on a set of compound $c$ that has already done $a$ laps, starting the lap $g$ seconds behind the car ahead:
$$ t_{d,L} = \underbrace{b_d}_{\text{base pace}} + \underbrace{\phi(L)}_{\text{fuel}} + \underbrace{\varepsilon(L)}_{\text{track evolution}} + \underbrace{o_c + w_c\,a}_{\text{tyre}} + \underbrace{\theta(g)}_{\text{traffic}} + e_{d,L} $$
In words: a lap is the driver-and-car's underlying speed, plus what the fuel still on board costs, plus (with a negative sign, usually) what the track has gained, plus the compound's offset and its wear, plus what the car in front costs, plus noise. Every term has a name we'll use throughout:
📐 Definition: base pace. The lap time a driver-and-car would do with an empty tank, on a new set of the reference compound (MEDIUM in this chapter), in clean air, on the race's end-of-race track. It is $b_d$ above. It is a model quantity, never observed.
📐 Definition: fuel effect. The lap-time cost of the fuel still in the tank. If fuel burns at a steady rate and each kilogram costs $k$ seconds per lap, then $\phi(L) = k \cdot F_0\,(1 - L/N)$ for start load $F_0$ and race length $N$. As a slope it is $-kF_0/N$ seconds per race lap.
📐 Definition: track evolution. The change in lap time that comes from the circuit itself: rubber laid on the racing line, dust cleared, temperature changing. It is $\varepsilon(L)$. In a race it usually makes the track faster, so the slope is negative.
📐 Definition: dirty air (traffic cost). The change in a driver's lap time caused by the car ahead, $\theta(g)$, as a function of the gap $g$ when the lap began. It is a net effect: lost downforce in the wake, being held up behind a slower car, minus what the tow, DRS (2023–2025) or Overtake mode (2026) give back.
📐 Definition: race pace (canonical). The median fuel-corrected clean lap of a driver in a race, as computed by the toolkit's
metrics.race_pace. A clean lap is the toolkit'sis_clean: not lap 1, not an in- or out-lap, green for the whole lap, and within 107% of the driver's median green lap in that stint.
That last definition is the book's canonical one, and we keep it. What this chapter adds is a set of choices
around it: which fuel correction, whether to drop laps spent in dirty air, and whether to model compound and
tyre age explicitly instead of taking a median. Each choice is a function in pace.py, and each one changes the
answer by amounts that matter.
Why the raw median lies
Suppose two drivers run the same race. One stops once, at half distance. The other stops twice and spends more of the race on fresh tyres. Both drivers' raw median lap is a mix of heavy-fuel and light-fuel laps, old-tyre and new-tyre laps, laps behind somebody and laps in the clear. If you compare those medians you're comparing the mixes, not the cars. The toolkit's fuel correction removes the biggest systematic term. What remains (compound mix and traffic) is what 20.5–20.8 deal with.
Norris's Hungarian HARD stint shows the size of the problem.

📊 Figure (described): The top panel shows Norris's 38 usable laps on the HARD tyre (laps 33–70) as raw lap times, with a fitted line that slopes very slightly down (−0.008 s/lap). The bottom panel shows the same laps after two fuel corrections: the toolkit's assumption (100 kg × 0.03 s/kg, blue squares, +0.034 s/lap) and the race's own data-driven slope (green circles, +0.040 s/lap). Once the fuel and track gain is removed, the tyre is visibly wearing.
Here is the measurement behind that chart, from code/01_hook_old_tyres_fast_laps.py:
fe = pace.fuel_effect(s) # the race's own fuel + evolution slope
lp = f1data.laps(s, driver="NOR")
hard = lp[(lp.compound == "HARD")].copy()
variants = {"raw": pace.fuel_corrected_pace(hard, "none"),
"assumed": pace.fuel_corrected_pace(hard, "assumed"), # 100 kg x 0.03 s/kg
"data": pace.fuel_corrected_pace(hard, "data", s_per_lap=fe["s_per_lap"])}
for name, d in variants.items():
r = metrics.degradation(d, y="lap_time_fc") # canonical: clean laps, stint lap 1 dropped
Data-driven fuel + evolution slope: -0.0486 s/lap (95% CI -0.0551 to -0.0421), n = 1289 laps, 20 drivers; implied 0.034 s/kg at 100 kg
Norris, HARD stint (laps 32-70), canonical degradation slope (stint lap 1 dropped):
raw -0.0084 s/lap (95% CI -0.0191 to +0.0022), n = 38
assumed +0.0344 s/lap (95% CI +0.0238 to +0.0451), n = 38
data +0.0402 s/lap (95% CI +0.0295 to +0.0508), n = 38
raw median of first 5 clean laps 80.752 s, last 5 80.597 s: change -0.155 s over 37 laps
fuel + evolution over the same laps (data slope): 1.80 s faster
The two corrections differ by 0.006 s/lap, which over a 38-lap stint is 0.2 s. Both differ from the raw slope by roughly 0.04–0.05 s/lap, which is nearly 2 s over the stint. The correction you choose matters a little. Whether you correct at all matters a lot.

📊 Figure (described): Each bar counts driver-races by the share of race distance at which the driver set their fastest clean lap. The dashed line is what an even spread would look like. The bars climb steadily towards the end of the race, and the last 5% of race distance alone holds 332 of the 1,441 fastest laps. Fuel burn and track evolution outrun tyre wear.
By season, the final-quarter share was 62.7% (2023), 66.1% (2024), 67.3% (2025) and 58.0% (2026). Keep the 2026 dip in mind: it shows up again when we measure the fuel slope by season.
🔄 Check your understanding 1. A driver's raw lap times are flat across a 30-lap stint. Is the tyre wearing? What extra number do you need? 2. Why does the definition of base pace fix the track at its end-of-race state rather than its start?
Answer
- You can't tell from raw times. You need the fuel-and-evolution slope for that race. At a typical −0.05 s/lap, a flat raw stint means the tyre is costing about +0.05 s/lap, which is ordinary wear.
- It's a convention that makes the correction zero on the last lap: every corrected lap is expressed as "what this lap would have been at the flag". Any reference lap works as long as every driver uses the same one; the end of the race is convenient because the fuel load is then close to zero, so "empty tank" and "end of race" are the same point.
20.2 The physics of fuel mass
How much fuel is in the car?
Less is known about this than you'd think. The sporting regulations in our reference tables
(data/reference/regulations_by_season.csv, FIA Sporting Regulations, retrieved 2026-11-24) set a maximum race
fuel mass of 100 kg for 2014–2016, 105 kg for 2017–2018 and 110 kg for 2019–2021. For 2022–2025 the
compilers searched the final FIA Sporting and Technical texts and found no race fuel-mass clause; secondary
sources list "100–110 kg" without year detail. From 2014 to 2025 the fuel flow was capped at 100 kg/h above
10,500 rpm. For 2026 the rules limit fuel energy flow (3000 MJ/h) and no race fuel-mass limit was located.
Two consequences follow. First, a limit is a maximum, not a measured start load: teams start with whatever their
simulations say they need, and they don't publish it. Second, for 2022–2026 even the maximum is not sourced.
That's why the toolkit's fuel_corrected uses 100 kg as a labelled assumption, and why this chapter prefers
quantities that don't need it.
Why mass costs time: a first-principles estimate
Think about the three kinds of lap phase.
Power-limited acceleration. Out of a slow corner, the engine delivers roughly constant power $P$ to a car of mass $m$. Kinetic energy rises at that rate, $\tfrac{d}{dt}\big(\tfrac12 m v^2\big) = P$, so from rest $v(t) = \sqrt{2Pt/m}$ and the distance covered is
$$ x(t) = \tfrac{2}{3}\sqrt{\tfrac{2P}{m}}\;t^{3/2} \quad\Longrightarrow\quad t(x) = \left(\tfrac{3x}{2}\right)^{2/3}\left(\tfrac{m}{2P}\right)^{1/3}. $$
The time to cover a stretch of track grows with the cube root of mass. Reading: double the mass and that phase takes $2^{1/3} = 1.26$ times as long; add 1% to the mass and it takes about 0.33% longer.
Grip-limited cornering. With downforce $L = \tfrac12\rho C_LA\,v^2$ and friction coefficient $\mu$, the corner balance is $m v^2/R = \mu(mg + \tfrac12\rho C_L A v^2)$, which gives
$$ v^2 = \frac{\mu g R}{1 - \mu\rho C_L A R/(2m)}. $$
More mass makes the denominator larger (closer to 1), so the cornering speed falls. Downforce doesn't scale with mass, but the inertia the tyres must turn does. The sensitivity depends on how much of the grip is aerodynamic: in slow corners the mass effect is close to the mechanical-grip limit (where mass cancels), in fast corners it is larger.
Drag-limited top speed. At the end of a long straight, $P = \tfrac12\rho C_DA\,v^3$: mass doesn't appear at all. A heavy car reaches the same top speed, just later.
So the lap's sensitivity to mass is a weighted mix of a cube-root law, a corner law and zero. If we pretend the whole lap obeys the cube root, $T \propto m^{1/3}$, then
$$ \frac{dT}{dm} = \frac{T}{3m}. $$
🧪 Illustrative model: parameters are assumptions chosen to be plausible for a current F1 car, not team data. Here: lap time scales as $m^{1/3}$; $m$ is the regulation minimum mass (800 kg in 2025, from
regulations_by_season.csv) plus 50 kg, the average of an assumed 100 kg start load.
Worked number for Hungary 2025: the median clean race lap was $T = 82.274$ s, so $dT/dm = 82.274 / (3 \times 850) = 0.032$ s per kg. With 100 kg burnt over 70 laps, 1.43 kg go each lap, and the car should get faster by $0.032 \times 1.43 = 0.046$ s per lap. The data-driven slope for that race was −0.049 s per lap. A one-line physics model with an exponent we made up lands within 0.003 s/lap of the data. That's partly luck, but the next section shows it isn't only luck.
The rule of thumb, and where it comes from
The press has a rule of thumb for this. Our reference table engineering_reference.csv records it as "0.35 s
per lap per 10 kg (range 0.3–0.4, circuit-dependent)" for a generic 90 s lap. Its source is an Autosport article
by Edd Straw (18 July 2019), which puts a full 105 kg load at about 3.5 s per lap. The compilers classed it as a
press estimate and note that no team, Pirelli or F1 primary figure was found. Our cube-root model gives
$90/(3 \times 850) = 0.035$ s/kg for a 90 s lap, the same number. That's a pleasant coincidence of a crude model
and a journalist's rounded figure, and proves nothing on its own. Section 20.3 tests both against the data.
🔍 Why this works: fuel is a per-kilogram constant only locally. Every derivation above is non-linear in mass, so why do strategists treat the fuel effect as a constant "seconds per kilogram"? Because the fuel load changes the car's mass by at most about 12% (100 kg on 850 kg), and over a 12% range any smooth curve is close to its tangent line. The cube-root law, for example, changes its slope by only about 8% between a full tank (about 900 kg) and an empty one (800 kg). Linear fuel correction is a first-order Taylor expansion, and it's a good one. What is not constant is the per-lap effect, because fuel per lap depends on the circuit: long laps and short races burn more per lap.
⚠️ Common pitfall: quoting "seconds per kilogram" without the start load. Race data measure seconds per lap. Converting to seconds per kilogram requires the start fuel, which nobody publishes. The same race slope of −0.056 s/lap is 0.033 s/kg if the car started with 100 kg and 0.030 s/kg if it started with 110 kg. Fix: quote the per-lap number, which needs no assumption, and give the s/kg figure only with its assumed start load next to it.
🔄 Check your understanding 1. Using the cube-root model, would a lap at Monaco (about 79 s in the 2026 race) or at Spa (about 112 s in 2026) be more sensitive to each kilogram of fuel? By roughly how much? 2. Why does mass not affect a car's top speed at the end of a long straight, even though it affects the lap?
Answer
- Spa. $dT/dm = T/3m$ scales with the lap time, so Spa's lap is about $112/79 = 1.4$ times as sensitive per kilogram. Monaco also runs 78 laps against Spa's 44, so it burns far less fuel per lap: the per-lap effect differs by much more than the per-kilogram one.
- At top speed all the power goes into overcoming drag, $P = \tfrac12\rho C_DA v^3$, and neither term contains mass. Mass only decides how long the car takes to get there.
20.3 Measuring the fuel effect from race data
The trick: tyre age resets, race lap doesn't
Within one stint, race lap $L$ and tyre age $a$ rise together, one for one. If you only had one stint per driver, there would be no way to tell a tyre getting slower from a car getting lighter: they're the same variable. The pit stop breaks the tie. When a driver stops, tyre age goes back to zero but the race lap keeps counting. A driver who runs MEDIUM for 20 laps and then HARD for 37 gives us two stints with different $(L, a)$ combinations, and the difference between "how fast is a 5-lap-old tyre on lap 7" and "how fast is a 5-lap-old tyre on lap 27" is the fuel-and-track effect.
The toolkit's canonical estimator, metrics.estimate_fuel_effect, which pace.fuel_effect wraps, writes that
as a fixed-effects regression on clean, dry-compound laps of drivers with at least two stints:
$$ t_{d,L} = \alpha_d + \beta\,L + o_c + w_c\,a_{d,L} + e_{d,L}, $$
with a separate intercept $\alpha_d$ for every driver in the race, an offset $o_c$ and wear rate $w_c$ for every compound, and standard errors clustered by driver. The coefficient $\beta$ is the race's fuel + evolution slope. Reading: holding the driver, the compound and the tyre's age fixed, each extra race lap changes the lap time by $\beta$ seconds.
76 races
Script 02_fuel_effect_from_data.py runs that fit once for every dry race. "Dry" is the book's filter: no
INTERMEDIATE or WET lap and no rainfall flag on any lap, which leaves 76 of the 91 races of 2023–2026. (The 2025
Miami GP, which is missing laps 2–24 in OpenF1, is one of the 15 excluded as wet, so its gap never enters these
fits.)
rows = []
for sk in dry: # 76 dry races, 2023-2026
lp = f1data.laps(sk)
r = pace.fuel_effect(lp) # metrics.estimate_fuel_effect underneath
c = lp[lp.is_clean & lp.compound.isin(pace.DRY)]
rows.append(dict(session_key=sk, N=int(info.loc[sk, "leader_laps"]), T=float(c.lap_duration.median()),
slope=r["s_per_lap"], lo=r["s_per_lap_ci"][0], hi=r["s_per_lap_ci"][1]))
fb = pd.DataFrame(rows)
est, lo, hi = metrics.bootstrap_ci(fb.slope, n_boot=10_000)
Dry races with a fit: 76
Median fuel + evolution slope: -0.0563 s/lap (bootstrap 95% CI -0.0609 to -0.0499)
per-race implied s/kg at 100 kg: median 0.0331, IQR 0.0287-0.0390
Races whose 95% CI excludes zero: 75 of 76
2023: -0.0554 [-0.0689, -0.0429] races 19 min -0.0944 max -0.0354
2024: -0.0609 [-0.0800, -0.0492] races 20 min -0.1218 max -0.0269
2025: -0.0552 [-0.0629, -0.0466] races 20 min -0.0817 max -0.0301
2026: -0.0513 [-0.0643, -0.0346] races 17 min -0.0751 max -0.0032
This is the book's headline fuel number: −0.056 s per race lap (95% CI −0.061 to −0.050), the median over 76 dry races. If the cars started with 100 kg it is 0.033 s/kg (IQR across races 0.029–0.039); at 110 kg it would be 0.030 s/kg. Remember what it contains: fuel and track evolution. As a pure fuel number it is an upper bound.

📊 Figure (described): One point per dry race, grouped by season, with its 95% confidence interval; the black bar is the season median. The dotted line is the press rule of thumb (0.035 s/kg × 100 kg, −0.061 s/lap at the median race length of 57 laps) and the dashed line is the toolkit's assumption (0.03 s/kg × 100 kg, −0.053 s/lap). Almost every race sits below zero with an interval that excludes it. The spread between races (from about −0.12 to −0.003 s/lap) is much larger than the difference between the two rules of thumb.
The extremes are informative:
year circuit N T slope lo hi n_laps
2024 jeddah 50 94.0740 -0.1218 -0.1324 -0.1112 796
2024 suzuka 53 97.4320 -0.0948 -0.0988 -0.0907 758
2023 vegas 50 98.7470 -0.0944 -0.1063 -0.0825 644
2024 spa 44 109.0245 -0.0930 -0.0994 -0.0865 732
...
2024 red_bull_ring 71 71.1085 -0.0269 -0.0292 -0.0245 1250
2026 rodriguez 71 81.7670 -0.0267 -0.0299 -0.0236 1059
2026 monaco 78 78.7440 -0.0156 -0.0293 -0.0019 1081
2026 miami 57 94.3000 -0.0032 -0.0293 0.0229 779
The steep end is full of long laps and short races (Spa, 44 laps of 109 s; Jeddah and Las Vegas, 50 laps). The flat end is full of short laps and long races (Spielberg and Mexico City, 71 laps). That is exactly the pattern fuel should produce. Two races are outliers in a way physics can't explain: 2026 Monaco and 2026 Miami, whose slopes are close to zero. Miami's interval includes zero; Monaco's only just excludes it (−0.0156 s/lap, CI −0.0293 to −0.0019). When a race disagrees with 75 others, suspect the race before you suspect the physics: at Monaco nearly every lap is spent in a queue, and either race may have had a track or energy-management pattern that the simple model doesn't capture. We don't know which, and the honest move is to flag them, not to explain them.
A physics cross-check across circuits
If the slope is mostly fuel, it should scale with how much fuel each lap burns, $F_0/N$, times the lap's sensitivity to mass, $T/(3m)$. We can predict a slope for every race from its lap time and length alone and compare:
$$ \hat\beta_{\text{race}} = -\frac{T}{3m}\cdot\frac{F_0}{N}. $$
🧪 Illustrative model: parameters are assumptions chosen to be plausible for a current F1 car, not team data: cube-root scaling, $F_0 = 100$ kg, $m$ = regulation minimum mass (798 kg 2023–24, 800 kg 2025, 768 kg with tyres 2026) + 50 kg.
Physics check (cube-root scaling, F0 = 100 kg assumed): predicted slope median -0.0627 s/lap, range -0.0388 to -0.1036
correlation observed vs predicted: r = 0.55 (n = 76)
OLS observed = a + b x predicted: a = -0.0097 [-0.0269, +0.0076], b = 0.77 [0.50, 1.04]
observed / predicted, median 0.94 [0.89, 0.97]
by circuit length class (observed median slope):
races obs pred
T/N < 1.3 s 25 -0.0416 -0.0435
1.3-1.7 s 21 -0.0537 -0.0618
> 1.7 s 30 -0.0708 -0.0736

📊 Figure (described): Each point is a dry race: its predicted fuel slope from lap time and race length (horizontal) against its measured fuel + evolution slope (vertical). The dashed diagonal is "observed = predicted"; the solid line is the fitted relationship (slope 0.77). Races with long laps and few of them (Spa 2024, bottom left) measure steep slopes, as predicted; Spielberg races sit at the shallow end. Jeddah 2024, Monaco 2024, Spa 2026 and the two 2026 outliers (Miami, Monaco) sit furthest from the line.
The correlation is 0.55 across 76 races. The ratio of observed to predicted has a median of 0.94. The fitted slope's interval (0.50–1.04) includes 1. Grouped by fuel burnt per lap, the observed medians track the predicted ones to within 0.009 s/lap. A model with one made-up exponent and one made-up start load reproduces most of the between-circuit pattern. That is good evidence that most of the race slope is fuel.
What about track evolution? In that regression, the intercept $a$ is the part of the slope that doesn't scale with fuel per lap. If track evolution were a constant per lap, $a$ would estimate it. It came out at −0.0097 s/lap with an interval from −0.027 to +0.008. That is compatible with no evolution at all and with an evolution of nearly half the total. The cross-circuit test confirms the fuel story; it can't size the evolution. Hold that thought for 20.4.
A second estimator, with no regression at all
🧩 Productive struggle. Before reading on, design an estimator of the fuel + evolution slope that uses no regression. You have one driver who ran two stints on the same compound in one race. What would you compare with what?
Here's one answer. Take a driver with two stints on the same compound. Find tyre ages that appear in both stints: say the 7th lap of each set. Same driver, same car, same compound, same tyre age. The only systematic differences between those two laps are the race laps they fell on, and therefore the fuel and the track. Divide the lap-time difference by the number of laps between them. Do that for every common age from 2 to 15, take the median, and you have a matched-age estimate for that pair of stints.
Matched-age estimator (same driver, compound and tyre age 2-15, consecutive same-compound stints):
pairs 635 in 69 races; median -0.0558 s/lap [-0.0581, -0.0530]; median laps apart 24
size median
compound
HARD 288 -0.0604
MEDIUM 210 -0.0496
SOFT 137 -0.0528
races with both estimates: 69; correlation with the regression slope r = 0.50; median difference (matched - regression) -0.0016 s/lap

📊 Figure (described): The distribution of per-pair slopes from 635 pairs of same-compound stints, with the matched-age median (−0.056 s/lap, solid) and the regression median (−0.056 s/lap, dashed). Individual pairs scatter widely because each rests on a handful of laps, but the centre of the distribution lands on the regression result to within two thousandths.
Two estimators with completely different assumptions (one a fixed-effects model with a linear wear term; the other a non-parametric comparison of matched laps) agree on the pooled answer to within 0.0016 s per lap. Race by race they correlate at only 0.50, because each race-level matched estimate rests on a few pairs. That's a useful calibration of how noisy a single race's fuel slope is.
🔄 Check your understanding 1. The fuel + evolution slope at Spa 2024 was −0.093 s/lap and at the Red Bull Ring 2024 −0.027 s/lap. Give two physical reasons for the difference. 2. Why does the matched-age estimator need two stints on the same compound?
Answer
- Spa's lap is about 109 s against Spielberg's 71 s, so each lap is more sensitive to mass ($T/3m$); and Spa's race is 44 laps against 71, so each lap burns about 60% more fuel ($F_0/N$). Both multiply.
- A different compound has a different offset and wear rate, so a lap on the 7th lap of a MEDIUM and a lap on the 7th lap of a HARD differ for tyre reasons as well as fuel reasons. Same compound, same age is the only comparison in which the tyre term cancels.
20.4 What race data cannot separate
This section is the heart of the chapter. It's about three quantities (fuel, track evolution and tyre age) that every strategist wants separately and that race timing data hand over only in combinations.
Two collinearities
Start with the arithmetic. From 03_identification_limits.py:
Clean dry laps, stint lap >= 2: 72,451
Correlation of race lap and tyre age WITHIN a stint: 1.0000
Correlation WITHIN a driver's race (stints pooled): 0.5568
Driver-races with >= 2 stints (the ones that identify the fuel slope): 1409 of 1504
Inside a stint, race lap and tyre age are not merely correlated: they are the same number plus a constant. Any model that looks only within stints can estimate one combined trend and nothing more. Across a driver's whole race the correlation drops to 0.56, because each pit stop resets the tyre clock, and that gap between 0.56 and 1.00 is all the information the fuel estimator has. It works because 1,409 of 1,504 driver-races have at least two stints. In a world of no-stop races, there would be no fuel estimate at all.
The second collinearity has no such escape. Fuel burn and track evolution are both functions of race lap $L$, for every car at once. Nothing resets either of them in the middle of a race. Any model of the form $\beta L$ (or any function of $L$ shared by the field) can't tell them apart. They are not identified from race laps, and no amount of data from the same kind of race will change that.
📐 Definition: identification. A quantity is identified by a dataset if different values of it imply different distributions of the data. Fuel and evolution are not separately identified from race laps because "more fuel effect, less evolution" and "less fuel effect, more evolution" predict the same lap times.
A race where we know the truth
The cleanest way to see what an estimator does is to run it on data where you set the truth yourself.
🧪 Illustrative model: parameters are assumptions chosen to be plausible for a current F1 car, not team data. A synthetic 57-lap race, 20 drivers, half one-stopping (MEDIUM→HARD) and half two-stopping (MEDIUM→HARD→HARD). True fuel effect 0.030 s/kg × 100 kg (−0.0526 s/lap); true track evolution −0.015 s/lap; MEDIUM wear 0.060 s/lap, HARD 0.045 s/lap; lap-time noise σ = 0.25 s. Each race is fitted with the toolkit's own
metrics.estimate_fuel_effect, 300 times with different random seeds.
We run two versions. In one, evolution is a straight line. In the other, evolution is fast early and then saturates (most of the rubber goes down in the first 15 laps), with the same total gain over the race.
Synthetic race (ILLUSTRATIVE): true fuel -0.0526 s/lap (0.030 s/kg x 100 kg / 57 laps), true evolution -0.0150 s/lap, sum -0.0676; deg M 0.06, H 0.045
evolution linear : recovered slope mean -0.0677 (sd 0.0013); implied s/kg 0.0386; CI covers fuel+evo 93%, fuel alone 0%
deg MEDIUM mean 0.0600 (true 0.06), HARD 0.0451 (true 0.045)
evolution saturating: recovered slope mean -0.0572 (sd 0.0013); implied s/kg 0.0326; CI covers fuel+evo 0%, fuel alone 10%
deg MEDIUM mean 0.0370 (true 0.06), HARD 0.0461 (true 0.045)

📊 Figure (described): Left: with linear evolution (blue), the estimator recovers fuel plus evolution (−0.068 s/lap, solid line), never fuel alone (dashed). With saturating evolution (orange) it recovers neither: it lands in between. Right: the estimated wear rates. With linear evolution they scatter around the true values (black cross); with saturating evolution the MEDIUM wear, which is the opening-stint compound here, is underestimated by about 40%.
Three lessons, in order of importance.
- When evolution is linear, the estimator returns fuel + evolution exactly, and its confidence interval never contains the pure fuel effect. The interval is honest about noise and silent about the confound. If you converted that slope to "0.0386 s/kg", you'd be wrong by 29% with a confidence interval that looked tight.
- Tyre wear is still recovered. The lap-number term soaks up fuel and evolution together, and the wear rates come out right. For pricing strategies, that's most of what you need: the strategy optimiser of Chapter 12 uses the combined lap trend and the wear rates, never fuel alone.
- When evolution isn't linear, everything that touches the first stint is biased. Fast early gains make the opening stint's laps look faster as the stint goes on, which reads as less wear on whatever compound started the race. Real races start mostly on MEDIUM (64.7% of dry-race starters in 2023–2026, per Chapter 4), so the bias would land on MEDIUM wear.
Is the third lesson happening in real data? Hungary 2025 gives a hint. The median of per-stint slopes there was 0.029 s/lap for MEDIUM (opening stints) against 0.056 for HARD, under the race's own fuel correction. A lap-weighted regression across all stints of the same race (20.8) gives 0.058 for MEDIUM and 0.050 for HARD. The two summaries disagree on the compound that ran in the opening stints, and on nothing else, which is what saturating evolution would produce. It's consistent with the synthetic result, not proof of it.
How the fuel choice moves degradation
Chapter 4 found that raw MEDIUM and HARD wear in race data is close to zero. Here is the full picture for every dry stint of 2023–2026 (one dry compound, at least 8 clean laps after the warm-up lap), scored under five corrections:
Stints: 3,262 (SOFT 485, MEDIUM 1326, HARD 1451) in 76 races
Median stint degradation (s/lap) by correction:
correction SOFT SOFT_pos MEDIUM MEDIUM_pos HARD HARD_pos
raw (no correction) 0.018 62.887 0.003 51.885 -0.002 48.656
assumed 100 kg x 0.03 s/kg 0.064 82.680 0.051 78.884 0.048 83.046
assumed 110 kg x 0.03 s/kg 0.068 84.330 0.056 80.543 0.053 85.114
data, race's own slope 0.061 83.093 0.054 80.995 0.052 88.353
data, 2023-26 median slope 0.074 84.124 0.059 80.468 0.054 84.011
The _pos columns are the share of stints with a positive (wearing) slope. Raw, half the HARD stints appear to
get faster with age. Under any correction, more than 80% of them wear.

📊 Figure (described): For each compound, the median stint degradation (vertical) as a function of a constant fuel correction added to every stint (horizontal). The three lines are parallel with slope one: every 0.01 s/lap of fuel correction adds 0.01 s/lap of degradation. Raw (zero correction), MEDIUM and HARD sit at zero; at the toolkit's assumption and the data median, they sit at about 0.05.
This is the chapter's most important chart for strategy work. A degradation number without its fuel correction is not a number. In race trim, the falling fuel load and the wearing tyre roughly cancel, which is why the TV graphic often shows a flat line of lap times through a stint, and why "this tyre isn't degrading" is the most common misreading of race data.
Does it change the call?
It does. Script 03 feeds the 2025 Hungarian GP into Chapter 12's optimiser four times, once per correction, using the race's own median stint slopes and its green-flag pit loss (20.998 s, n = 29 stops):
correction c deg_HARD deg_MEDIUM best stops best1 two_minus_one
raw 0.000 0.007 -0.019 M-H (64,) M-H (64,) 20.981
assumed 100 kg x 0.03 0.043 0.050 0.024 M-H (47,) M-H (47,) 6.154
assumed 110 kg x 0.03 0.047 0.054 0.028 M-H (46,) M-H (46,) 4.107
data (race slope) 0.049 0.056 0.029 M-H (45,) M-H (45,) 3.443
Uncorrected, the model says the tyres barely wear, so you should stop as late as the rules allow (lap 64 of 70), and a second stop would cost 21 s. Corrected, the best one-stop moves 17–19 laps earlier and the second stop's penalty shrinks to 3.4–6.2 s, close enough that traffic or a safety car could flip it. The leading cars split exactly that way: Norris one-stopped and won; Piastri, Russell and Leclerc two-stopped. Section 20.8 comes back to this race with a better model.
Which correction, when?
| Situation | Use | Why |
|---|---|---|
| Comparing drivers within one race | any correction (it cancels) | every driver gets the same per-lap term on the same lap |
| Degradation for strategy (one race) | the race's own data slope | removes fuel + evolution for that track; wear is then identified (Chapter 22 builds the full model) |
| Degradation pooled across races | toolkit assumption and state it | the book's pooled tables use it; comparable across chapters |
| A 2026 race | the race's own data slope | the 100 kg start load is unverified for 2026 |
| Practice vs race comparisons | none works well | practice fuel loads are unknown (20.7) |
| Converting to s/kg | only with a stated start load | the data give s per lap, not s per kg |
⚠️ Common pitfall: calling the data slope "the fuel effect". The race slope includes track evolution, so as a pure fuel number it's an upper bound, and when evolution is not linear it isn't even that (the saturating synthetic race recovered a slope between fuel and fuel + evolution). Fix: call it the "fuel + evolution slope" every time, and keep "fuel effect" for statements that carry a stated start load and an assumption.
📺 On the broadcast: When the commentator says "the lap times are tumbling as the fuel burns off", that is this chapter's −0.056 s per lap, about three seconds over a race. When the graphic shows a driver's stint as a flat row of lap times and the commentator says "he's looking after those tyres beautifully", remember the Hungarian HARD stint: flat raw times are what ordinary wear looks like in race trim.
🔄 Check your understanding 1. In the linear-evolution synthetic race, the fuel estimator's 95% interval covered the true fuel effect in 0% of runs. Is the estimator broken? 2. Why can a pit stop separate tyre age from race lap but not fuel from track evolution?
Answer
- No. It is an unbiased estimator of what it can see, the combined lap trend; its interval covers fuel + evolution 93% of the time, close to the nominal 95%. It's the interpretation of the slope as pure fuel that fails.
- A stop resets tyre age for one driver while race lap carries on, so the two move differently. Fuel and evolution both depend on race lap alone, for every car at once; nothing in a race makes one change while the other stands still.
20.5 Traffic and dirty air
The physics of the wake
A Formula One car leaves behind a wake of slow, turbulent, swirling air. A car following in it gets less
downforce, because its wings and floor see lower and messier dynamic pressure, so it can carry less speed through
corners. It also gets less drag, which on straights is the tow, and from 2011 to 2025, inside one second at the
detection point, DRS opened its rear wing. The 2026 rules removed DRS and gave a car within one second extra
electrical energy instead (Overtake mode, regulations_2026.md). On top of the aero, a following car can overheat
its tyres sliding in the reduced grip, and it can simply be held up: if the car ahead is slower and the follower
can't pass, its lap time becomes the leader's lap time.
How big is the downforce loss? Our reference table records the figure F1 published when it introduced the 2022 cars (Formula1.com, "IN NUMBERS", 8 February 2022, an official source): a car following at 20 m lost 46% of its downforce with the 2021 design (the same article also says "around 35%") and 18% with the 2022 design, from more than 10,000 CFD simulations. We have no downforce channel, so we can't check those numbers. What we can measure is lap time.
Measuring it from the intervals data
OpenF1's intervals stream records each car's gap to the car ahead in the running order; the toolkit stores the
value nearest the end of each lap as interval. For traffic we want the gap when the lap began, so
pace.add_interval_start takes the previous lap's value. Then pace.traffic_cost compares laps begun at
different gaps with clean-air laps of the same driver in the same stint:
$$ t_{d,s,L} = \alpha_{d,s} + \sum_{b} \theta_b\,\mathbb{1}[g_{d,L} \in b] + \gamma\,a_{d,L} + e_{d,L}, $$
with a fixed effect $\alpha_{d,s}$ for every driver-stint, a single trend $\gamma$ (inside a stint, tyre wear, fuel and evolution are one variable, as 20.4 showed), and gap bins $b$ measured against clean air, which we define as more than 3 s behind or leading. Standard errors are clustered by race (cluster-robust errors are explained in Appendix E).
def traffic_cost(laps, edges=DEFAULT_EDGES, ref_min_s=3.0, y="lap_duration", cluster="session_key"):
d = laps if "int_start" in laps else add_interval_start(laps)
d = d[d.is_clean & d.compound.isin(DRY) & (d.stint_lap > 1)].copy()
d = d[d.int_start.notna() | d.is_leader_start] # leader = clean air
gap = d.int_start.fillna(np.inf)
for lo, hi in zip(edges[:-1], edges[1:]): # one dummy per gap bin
d[f"b_{lo:g}_{hi:g}"] = ((gap > lo) & (gap <= hi)).astype(float)
d["trend"] = d.tyre_age.astype(float)
grp = (d.session_key.astype(str) + "_" + d.driver_number.astype(str) + "_" + d.stint.astype(str))
X = d[cols + ["trend"]] - d[cols + ["trend"]].groupby(grp).transform("mean") # within driver-stint
yy = d[y] - d[y].groupby(grp).transform("mean")
fit = sm.OLS(yy, X).fit(cov_type="cluster", cov_kwds={"groups": pd.factorize(d[cluster])[0]})
(The excerpt is trimmed; the full function is in project/boxbox/pace.py.) On all 76 dry races:
2023-2025 (DRS): n = 55,709 clean laps in 59 races; reference (clean air) n = 23,686
bin coef_s ci_low ci_high n_laps
0-0.5 s +0.762 +0.628 +0.896 3829
0.5-1 s +0.386 +0.279 +0.494 10119
1-1.5 s +0.237 +0.180 +0.293 6038
1.5-2 s +0.178 +0.125 +0.230 5059
2-2.5 s +0.102 +0.053 +0.150 3895
2.5-3 s +0.078 +0.042 +0.114 3083
2023-2025 (DRS) coarse: 0-1 s +0.492 [+0.384, +0.600] n=13948; 1-2 s +0.215 [+0.163, +0.266] n=11097; 2-3 s +0.093 [+0.055, +0.132] n=6978
2026 (no DRS) coarse: 0-1 s +0.516 [+0.203, +0.829] n=3622; 1-2 s +0.171 [-0.006, +0.347] n=2613; 2-3 s +0.034 [-0.064, +0.132] n=1565
all 2023-2026 coarse: 0-1 s +0.495 [+0.386, +0.604] n=17570; 1-2 s +0.204 [+0.148, +0.260] n=13710; 2-3 s +0.081 [+0.043, +0.118] n=8543

📊 Figure (described): Extra lap time compared with clean air (vertical) against the gap to the car ahead when the lap began (horizontal, bin centres), for 2023–2025 (blue circles) and 2026 (orange squares), with race-clustered 95% intervals. The cost falls smoothly from about 0.77 s/lap at under half a second to under 0.1 s/lap at 2.5–3 s. The two eras overlap at every gap; 2026's intervals are wider because it has a third of the laps.
Starting a lap within one second of the car ahead costs about half a second: +0.495 s/lap (95% CI 0.386–0.604) across 2023–2026, even though, in 2023–2025, that same second gave the follower DRS. A car starting the lap 1–2 s back loses 0.20 s and one 2–3 s back still loses 0.08 s. The curve never quite reaches zero inside our 3 s window, which is one reason the reference is set at "more than 3 s".
Did the 2026 rules change it? Pooled, no: +0.516 within one second in 2026 against +0.492 in 2023–2025, with intervals that overlap almost entirely. Circuit by circuit, the story is more interesting, and case study 2 tells it.
Where the time goes
The same model on each timing sector and speed trap splits the cost into where it is lost and where it is given back:
era measure coef lo hi n
2023-2025 (DRS) Sector 1 (s) +0.108 +0.036 +0.179 13928
2023-2025 (DRS) Sector 2 (s) +0.266 +0.194 +0.338 13947
2023-2025 (DRS) Sector 3 (s) +0.118 +0.065 +0.172 13948
2023-2025 (DRS) Trap I1 (km/h) +2.278 +0.394 +4.163 12147
2023-2025 (DRS) Trap I2 (km/h) +2.821 +1.501 +4.141 13809
2023-2025 (DRS) Speed trap ST (km/h) +10.795 +8.948 +12.642 13396
2026 (no DRS) Sector 2 (s) +0.326 +0.183 +0.469 3612
2026 (no DRS) Speed trap ST (km/h) +6.316 +2.963 +9.669 3492

📊 Figure (described): Left: extra time in each timing sector for laps begun within one second of the car ahead, 2023–2025 (blue) and 2026 (orange). Every sector is slower; sector 2, typically the twistiest part of a lap, loses the most. Right: the speed change at the intermediate traps and the main speed trap. At the speed trap a following car was 10.8 km/h faster in 2023–2025 and 6.3 km/h faster in 2026.
The pattern is the wake in numbers: time lost in all three sectors, most in the middle one, and a big speed gain at the trap. Our regression puts the trap gain at +10.8 km/h (95% CI 8.9–12.6) in 2023–2025. The book's standard speed-trap figure uses a different design: the same driver in the same race, laps under one second behind against laps more than 2.5 s clear, race leader excluded. It gives +14.0 km/h (95% CI 13.0–15.0, n = 793 driver-races, 2023–2025), and it mixes tow and DRS as ours does. The 2026 trap gain is smaller on both designs: +6.3 km/h here (95% CI 3.0–9.7) and +8.5 km/h in the book's standard figure, consistent with losing the DRS flap and keeping the tow plus Overtake-mode deployment. Remember the sector boundaries and trap positions differ by circuit, so "sector 2" is a different stretch of road at every track.
Held up, or just in the wake?
The net cost mixes two things: the aerodynamic penalty of the wake and the plain fact of being stuck behind a slower car. We can pull them apart a little. For every lap begun within one second, script 04 looks up who was ahead and compares that driver's clean-air race pace with the follower's own:
Close laps (<= 1 s) split by the car ahead's clean-air race pace (data fuel-corrected median):
close_slower +0.542 [+0.437, +0.647] n = 6,800
close_similar +0.426 [+0.318, +0.533] n = 3,145
close_faster +0.443 [+0.311, +0.574] n = 5,841
Behind a car that is more than 0.2 s/lap faster in clean air (so not holding anyone up), the follower still loses 0.44 s per lap. Behind a slower car, the cost rises to 0.54 s. So most of the half-second is the wake itself, and being held up adds roughly a tenth on top. The intervals overlap, so treat that tenth as an estimate, not a measurement.
⚠️ Common pitfall: the leader's interval is zero, not missing. In OpenF1 the race leader's
intervalis 0.0 on every lap (100% of 4,406 leader laps in our dry races). A naive filterinterval < 1.0classifies the leader as the car most stuck in traffic in the whole race. Fix: treat 0 as "no car ahead", aspace.add_interval_startdoes, and put leader laps in clean air.🔍 Why this works: measure the gap before the lap, not after it. A lap lost in dirty air ends with a bigger gap; a lap on which the follower closes in ends with a smaller one. Classifying laps by the gap at the end of the lap therefore puts fast laps in the "close" bin and slow laps in the "far" bin, which biases the cost towards zero. The gap at the start of the lap is fixed before the lap is run. In our data the bias turns out to be small (0–1 s: +0.481 by end-of-lap gap against +0.495 by start-of-lap gap), but you only know that because you measured both.
How much traffic is there?
Share of a driver's clean laps begun within 1 s of the car ahead: median 22.0% (IQR 10.9-35.7%), n = 1,504 driver-races
All clean laps: clean 43.1%, near 30.7%, close 24.3%, unknown 1.9%
Implied traffic cost per driver-race at 0.495 s per close lap: median 5.0 s, 90th percentile 11.9 s
A typical driver starts about a fifth of their clean laps inside a second of somebody. At half a second a lap, that's a median of 5 seconds per race, and for one driver-race in ten it's 12 seconds or more. That's half a pit stop. This is why "track position" is such a large part of race strategy, and why the undercut of Chapter 13 is often really a way of buying clean air.
The cost varies hugely by circuit (compare the circuit profiles of Chapter 10). Pooled over 2023–2026, starting a lap within one second cost 1.58 s at Monaco, 1.10 s at Marina Bay and 0.76 s at the Hungaroring, against 0.13 s at the Red Bull Ring and 0.12 s at Barcelona-Catalunya. Case study 2 sets those costs against the number of overtakes at each circuit, and Chapter 35 turns them into a pass-probability model.
What our data cannot see. The interval is the gap to the car ahead in the classification, not on the road, so a backmarker being lapped doesn't count as traffic. Script 04 cross-checks it against the on-road gap at the line (the time since any other car crossed it, from the laps table): on 67,252 clean laps the median difference is −0.008 s (IQR −0.073 to +0.044 s), and only 0.9% of clean laps had a car within one second on the road but an interval above 3 s. Blue-flag traffic is real but rare in this measure, and it is invisible to it. This chapter's scripts work from lap, sector and speed-trap timing only, so they can't see where in a corner the follower loses speed, and the free data have no downforce, tyre-temperature or energy channel to show the mechanism directly.
🔄 Check your understanding 1. A strategist says "following within DRS range is free: you lose in the corners what you gain on the straight." What do the data say for 2023–2025? 2. Why does the model use a single tyre-age trend instead of separate fuel and tyre terms?
Answer
- Not free: +0.492 s/lap (0.384–0.600) net of DRS. The straight-line gain is real (+10.8 km/h at the trap), but the corner losses are larger.
- Within a driver-stint, race lap and tyre age are the same variable (correlation 1.0), so only one trend can be estimated. That's fine here: we want the traffic coefficient, and the trend term just has to absorb whatever changes steadily through the stint.
20.6 Race-pace rankings, and how they compare with qualifying
One race, one table
pace.race_pace_table produces the ranking. By default it applies the race's own data-driven fuel slope, keeps
canonical clean laps on dry compounds, drops laps begun within one second of the car ahead, and bootstraps a 95%
interval for each driver's median (2,000 resamples, seed 42):
t = pace.race_pace_table(s, fuel="data", traffic="exclude", min_laps=10)
t[["acronym", "team_ref", "n_laps", "pace_s", "ci_low", "ci_high", "gap_s", "share_close", "grid", "finish"]]
acronym team_ref n_laps pace_s ci_low ci_high gap_s rank rank_canonical share_close grid finish
PIA mclaren 56 79.371 79.042 79.527 0.000 1 1.000 0.138 2.000 2
NOR mclaren 58 79.521 79.391 79.671 0.149 2 2.000 0.134 3.000 1
RUS mercedes 56 79.561 79.414 79.720 0.189 3 4.000 0.138 4.000 3
LEC ferrari 64 79.650 79.386 79.904 0.279 4 3.000 0.015 1.000 4
HUL sauber 39 80.261 79.740 80.958 0.890 5 13.000 0.391 18.000 13
ALO aston_martin 67 80.344 80.203 80.508 0.973 6 5.000 0.000 5.000 5

📊 Figure (described): Every classified driver's race-pace gap to the fastest at the 2025 Hungarian GP, with 95% bootstrap intervals, ordered by pace, with grid and finish on the right. The two McLarens, Russell and Leclerc form a front group within 0.28 s; their intervals overlap, so their order inside the group is not settled by the data. Hülkenberg (Kick Sauber), fifth on pace from 18th on the grid, finished 13th.
Three readings. First, Piastri had the best race pace (0.149 s per lap better than Norris on this measure) and lost: the intervals of the front four overlap, and 20.8 shows where the result was decided. Second, the canonical ranking (the toolkit's assumed fuel correction, traffic laps kept) puts Hülkenberg 13th and the traffic-filtered one puts him 5th. He spent 39% of his clean laps within a second of somebody, from 18th on the grid. Neither number is wrong. The canonical measure describes the race he had; the filtered one estimates the car's speed. Third, Leclerc started from pole and had the fourth-best race pace.
76 races
Script 05 builds that table for every dry race and asks three questions.
Winner had the best race pace (data fuel, traffic excluded): 47/76 = 61.8% (50.6-71.9)
Winner had the best canonical race pace: 47/76 = 61.8% (50.6-71.9)
Pole-sitter had the best race pace: 36/76 = 47.4% (36.5-58.4)
Margin between the best and second-best race pace: median 0.159 s (IQR 0.071-0.287)
2023: winner = best pace 15/19
2024: winner = best pace 11/20
2025: winner = best pace 9/20
2026: winner = best pace 12/17
The driver with the best race pace won 61.8% of dry races (Wilson 95% CI 50.6–71.9%). The pole-sitter had the best race pace in 47.4%. The median margin between the fastest and second-fastest race pace was only 0.159 s per lap, comparable to the width of a single driver's bootstrap interval. The pattern by season fits what fans remember: 15 of 19 in 2023, when one car was clearly fastest, and 9 of 20 in 2025, when two teammates and several teams were close.
Rank correlations, one per race (Spearman ρ among drivers with at least 10 usable laps):
race pace vs grid median 0.763 [0.721, 0.807]
race pace vs finish median 0.799 [0.743, 0.858]
grid vs finish median 0.770 [0.698, 0.815]
canonical race pace vs finish median 0.837 [0.796, 0.904]
The canonical race pace correlates better with the finishing order (0.837) than the traffic-filtered one (0.799), and that's expected: being stuck in traffic is both slow and a symptom of a bad position, so laps in traffic carry information about the result. If you want to explain the result, keep them. If you want to estimate what the car could do, drop them. And note that race pace "predicting" the finish 59% of the time better than the grid is a description, not a forecast: it's measured on the same race.
⚠️ Common pitfall: reading the order inside overlapping intervals. In Hungary, Piastri's 79.371 s and Norris's 79.521 s have intervals [79.042, 79.527] and [79.391, 79.671]. That's a lean, not a ranking. Fix: report the bootstrap interval, group drivers whose intervals overlap, and say "the front four were within 0.28 s; the data don't separate them" when that's what they say.
Saturday cars and Sunday cars
Is a team's race pace better or worse than its qualifying pace? Compare ranks among teams (a scale-free measure): each team's rank on race pace (its faster car, traffic excluded) minus its rank on its best Q1 time (Jolpica; Q1 is the one session every car runs).
Pooled OLS race gap = a + b x Q1 gap: a = +0.509 %, b = 1.07 [0.99, 1.15]
Team rank on race pace minus team rank on Q1 time (season mean; negative = better on Sunday):
2025 red_bull 20 +0.259 +0.305 -0.900
2025 haas 20 +1.309 +0.748 -0.775
2025 ferrari 20 +0.373 +0.446 -0.750
...
2025 rb 20 +1.327 +0.597 +1.175
2026 mercedes 16 +0.019 +0.149 -1.094
...
2026 rb 17 +1.833 +0.825 +0.941

📊 Figure (described): Each bar is a team's season-mean difference between its rank on race pace and its rank on Q1 time (left of zero = better on Sunday than Saturday). In 2025 Red Bull (−0.90), Haas and Ferrari were the most "Sunday" teams and Racing Bulls (+1.18), Alpine and Aston Martin the most "Saturday". In 2026 Mercedes (−1.09) was the clearest Sunday car and Racing Bulls (+0.94) and Audi (+0.65) the clearest Saturday ones.
Two caveats travel with that chart. Q1 is not a full-attack session for every team, so a top team can look artificially slow on Saturday. And the pooled fit shows race-pace gaps (in %) are about 0.5 points wider than Q1 gaps at every level (slope 1.07, interval 0.99–1.15), which is why we used ranks rather than raw gaps.
Two more races are worth a look. At the 2026 Mexico City GP, Verstappen had the best race pace (79.695 s) from fifth on the grid and won, with the pole-sitter Hamilton second on pace (+0.191 s) and second at the flag, in a race that had a VSC from lap 7, a safety car from lap 44, a red flag on lap 45 and another safety car from lap 59. At the 2026 Italian GP, Antonelli had the best race pace from 19th on the grid and won: that's case study 1.
📋 Try it: Compare these drivers. At the 2026 Mexico City GP, Hamilton (Ferrari) had the second-best race pace (+0.191 s on Verstappen) and spent 28.1% of his clean laps within a second of the car ahead, against Verstappen's 1.8%. Run
pace.race_pace_table(s, traffic="include")andtraffic="exclude"for that race and compute how much of the Hamilton–Verstappen pace gap closes when traffic laps are removed. Then check the neutralisation laps withf1data.track_periods(s, status=["SC","VSC","RED"]): how many of each driver's laps were excluded as non-clean, and does that change your conclusion?🔄 Check your understanding 1. Why does the canonical race pace (traffic laps kept) correlate better with the finishing order than the traffic-filtered one? 2. The best race pace won 61.8% of dry races. Name two reasons the fastest car loses.
Answer
- Because traffic is partly a consequence of race position: a driver stuck behind others is both slow on those laps and behind on the road. Keeping those laps lets the pace measure absorb some of the result.
- Any two of: grid position and the cost of passing (20.5); strategy and pit-stop timing (20.8); safety cars that reset gaps; and a pace margin (median 0.16 s/lap) small enough to be inside the measurement noise.
20.7 FP2 long runs as a race-pace predictor
On a conventional weekend, the second practice session is where teams run their race simulations: one set of tyres, many laps, at what they hope is race pace. Our data have every practice lap and stint, but no practice telemetry, and, more importantly, no fuel loads. Teams don't publish them, and a car with 30 kg less on board is about a second a lap faster at our measured sensitivity. That single unknown makes long-run analysis an exercise in hoping everyone ran similar loads.
pace.fp2_long_runs defines a long run as one tyre set with at least five usable laps, where a usable lap is a
canonical clean lap within 2% of the run's median (which drops cool-down laps inside the run), and the run's
median is within 112% of the driver's fastest lap of the session (which drops installation and aero-rake laps).
pace.long_run_pace takes each driver's median over all such laps. Script 06 tests it on every conventional
weekend whose race was dry:
Weekends with FP2 long runs and a dry race: 42 (drivers matched per weekend: median 16)
Long runs per driver-weekend: median 8 usable laps
FP2 long-run pace vs race pace (drivers) median rho 0.716 [0.632, 0.807]
qualifying position vs race pace (drivers) median rho 0.747 [0.692, 0.835]
FP2 + qualifying ranks combined (drivers) median rho 0.791 [0.742, 0.859]
FP2 long-run pace vs race pace (teams) median rho 0.717 [0.605, 0.824]
qualifying position vs race pace (teams) median rho 0.845 [0.752, 0.879]
FP2 beat qualifying as a predictor (drivers) in 14/42 weekends = 33% (21-48)
Fastest FP2 long run = best race pace: 14/42 = 33% (21-48)
Race-pace gap = a + b x FP2 long-run gap (driver-weekends n = 661): a = 0.570 s, b = 0.56 [0.43, 0.69], R^2 = 0.40
FP2 long runs do predict race pace (ρ = 0.72), but qualifying predicts it slightly better (0.75 for drivers, 0.85 for teams), and FP2 beat qualifying in only 14 of 42 weekends (33%). The fastest FP2 long run belonged to the driver with the best race pace in 14 of 42 weekends too. Combining the two ranks helps a little (0.79). The gap-to-gap regression has a slope of 0.56: a one-second gap on Friday turns into about half a second on Sunday. Friday gaps are inflated by fuel loads, engine modes and run plans we can't see.

📊 Figure (described): Each driver's FP2 long-run gap to the fastest long run (horizontal) against the race-pace gap to the fastest (vertical) at the 2025 Hungarian GP; the dashed line is "same gap". Hülkenberg topped the Friday long runs and was fifth on race pace; Piastri, Norris, Russell and Leclerc sat mid-pack on Friday and formed the front group on Sunday; Ocon's HARD-tyre run looked fifth-fastest on Friday and his race pace was the slowest. The rank correlation is 0.37.

📊 Figure (described): Each point is a weekend: how well qualifying ranked the race pace (horizontal) against how well FP2 long runs did (vertical). Points above the diagonal are weekends where FP2 was the better guide: 14 of 42 for drivers and 13 of 42 for teams. Most weekends sit below the line, and the worst FP2 weekends (correlations near or below zero) have no counterpart in qualifying.
Hungary 2025 was a bad FP2 weekend (ρ = 0.37 against 0.69 for qualifying), and the run table shows why: the long runs were on different compounds (Ocon and Bortoleto on HARD, Hamilton on SOFT, most others on MEDIUM), of different lengths (5 to 12 laps), at unknown fuel loads.
🎰 Betting Track note. For pre-race prices, qualifying already contains most of what FP2 long runs tell you. The useful Friday signal is narrower: a team whose long-run gap is much smaller than its qualifying gap deserves a second look, and the regression says to shrink any Friday gap by about half before you believe it.
Limits. Sprint weekends have a single practice session, so they're not in this test; 42 weekends is a small sample; and with telemetry absent we can't check engine or energy modes. A study that matched long runs by compound and tyre age would be fairer to FP2 (exercise E2).
🔄 Check your understanding 1. The FP2 gap-to-gap regression has a slope of 0.56. Give two reasons Friday gaps are inflated relative to Sunday's. 2. Why are team-level correlations with qualifying (0.845) higher than driver-level ones (0.747)?
Answer
- Any two of: unknown and unequal fuel loads; different compounds and tyre ages in the runs; engine and energy modes the data can't see; run plans of different lengths; traffic on a crowded Friday track. Noise in the predictor also attenuates a regression slope on its own.
- Taking each team's faster car removes one source of noise (a driver's off day or a bad qualifying lap), and the car explains much of the order on both days.
20.8 Putting it together: a base-pace model and a race decomposed
pace.pace_model fits the full decomposition of 20.1 to one race, all drivers at once:
$$ t_{d,L} = b_d + \beta\,(L - N) + o_c + w_c\,a_{d,L} + \theta_{\text{close}}\,\mathbb{1}[g \le 1] + \theta_{\text{near}}\,\mathbb{1}[1 < g \le 3] + e_{d,L}. $$
With $L - N$ in place of $L$, each driver's $b_d$ is their base pace: an empty-tank lap on a new MEDIUM in clean
air at the end of the race. For Hungary 2025, from 07_race_decomposition.py:
coef se ci_low ci_high
C(compound, Treatment(reference='MEDIUM'))[T.HARD] +0.0640 +0.1258 -0.1825 +0.3106
Lc -0.0466 +0.0027 -0.0519 -0.0413
C(compound)[HARD]:age +0.0501 +0.0043 +0.0416 +0.0586
C(compound)[MEDIUM]:age +0.0576 +0.0052 +0.0474 +0.0677
close +0.8100 +0.0873 +0.6388 +0.9811
near +0.2526 +0.0720 +0.1116 +0.3936
Base pace (empty-tank, new MEDIUM, clean air), top 8:
acronym base_s se team_ref gap_s
NOR 78.551 0.168 mclaren 0.000
PIA 78.553 0.175 mclaren 0.002
RUS 78.952 0.168 mercedes 0.401
The lap term (−0.0466) is close to the race's own fuel slope (−0.0486). The compound offset (HARD +0.064 s vs MEDIUM) has an interval of ±0.25 s: race data barely identify compound offsets, which is why this book's pooled offsets come from a separate paired method. At the Hungaroring, starting a lap within a second of the car ahead cost 0.81 s, consistent with the 0.76 s circuit figure from 20.5. And the two McLarens' base paces differ by 0.002 s.
Where did 0.7 seconds come from?
Norris beat Piastri by 0.698 s (official classification). With the model we can split the lap-by-lap difference. On every lap where both cars ran a modelled clean lap, the gap splits into base pace, tyres (compound and age), traffic and an unexplained residual. Every other lap (lap 1, the in- and out-laps of all three stops) is counted at its actual value:
Sum of lap-time differences PIA - NOR, laps 1-70: +0.578 s
Line-crossing gap at the flag (date_end): +0.699 s
Laps where both ran a modelled clean lap: 63
pit in/out laps: laps [18, 19, 31, 32, 45, 46]
base pace +0.111 s
tyres (compound + age) -20.858 s
traffic (gap ahead) +6.010 s
unexplained (clean laps) -0.187 s
lap 1 -2.220 s
pit in/out laps +17.721 s
total +0.578 s
Traffic laps on clean laps: NOR close 9, near 10; PIA close 8, near 37

📊 Figure (described): A waterfall of the time Piastri lost to Norris (positive) or gained (negative). Base pace is a wash (+0.1 s over 63 laps). Piastri's fresher tyres from two stops were worth 20.9 s; the extra stop cost 17.7 s on the pit laps; lap 1 gave him 2.2 s; the laps he spent 1–3 s behind somebody cost him 6.0 s on the model. The bars sum to +0.6 s, the sum of lap times; the 0.12 s difference from the line-crossing gap is the grid offset at the start.
So on this model the two-stop paid for itself (tyres −20.9 s against pit laps +17.7 s) and the race was decided by traffic: Piastri started 37 clean laps between one and three seconds behind the car ahead (much of it chasing Norris late in the race), against Norris's 10. The traffic term is the softest number in the waterfall. "Near" laps cost 0.25 s/lap on average at this circuit, but a driver sitting 1.5 s behind the leader might be managing tyres rather than losing time to the wake, and our data can't tell which.
The same model also re-prices the strategies. With its pooled wear rates (MEDIUM 0.058, HARD 0.050 s/lap):
sequence n_stops stop_laps gap_s
M-H-H 2 (22, 46) 0.00
M-H 1 (33,) 1.00
One-stop M-H: best in-lap 33, 1-s window 29-37; NOR's lap 31 costs 0.26 s against it
NOR actual M-H (31,): model +1.26 s vs the optimum
PIA actual M-H-H (18, 45): model +0.73 s vs the optimum
Compare that with 20.4, where the median of per-stint slopes put the MEDIUM at 0.029 s/lap and the best one-stop at lap 45. Same race, same fuel correction, two reasonable summaries of the wear, and the optimal stop moves by 12 laps. With the pooled slopes, the model rates Piastri's two-stop 0.53 s faster than Norris's one-stop in a clean race, and the decomposition says traffic took 6 s off him. The lesson of Chapter 12 again: the cost curve is flat and the inputs matter more than the optimiser.
📋 Try it: Call the pit stop. Hungary 2025, end of lap 30. You're on Norris's pit wall. He leads on MEDIUM tyres that have done 29 laps. Leclerc is second, 3.5 s behind on 10-lap-old HARDs; Piastri is third, 4.9 s behind on 12-lap-old HARDs; both have already stopped once. The race's green-flag pit loss is 21.0 s and the fuel + evolution slope is −0.049 s/lap. Do you stop now for HARDs to the end (39–40 laps), or extend, and how far? Decide before you open the answer.
Reveal
Norris stopped at the end of lap 31, ran HARD to the flag and won by 0.698 s. On this chapter's pooled-wear model the one-stop optimum is lap 33 (1-s window 29–37), so lap 31 cost about 0.26 s against it; on the stint-median wear model it is lap 45 and lap 31 cost about 9 s. Which one you believe depends on whether the opening-stint MEDIUM wear is biased low by early track evolution (20.4). The timing data are consistent with a stop inside the pooled model's window; they can't tell us what the team's own model said. Notice what neither model includes: Leclerc closing at about 1.1 s a lap (8.9 s behind at lap 25, 3.5 s at lap 30, from the gap table) on fresher tyres.
📋 Try it: Analyze this session. 2024 Saudi Arabian GP. It produced the steepest fuel + evolution slope of all 76 dry races, −0.122 s/lap (95% CI −0.132 to −0.111), more than twice the median. Run
pace.fuel_effecton it, then list the stints withstrategy.actual_strategies. How long was the typical HARD stint, and when did it start? Then refitpace.fuel_effecton laps 20 onwards only. Does the slope move towards the median? What does that suggest about early-race track evolution versus fuel?🔄 Check your understanding 1. In the Hungary decomposition, which component is the least certain, and why? 2. The pooled-regression wear and the stint-median wear put the best one-stop at lap 33 and lap 45. Which input would you trust for an opening-stint compound, and what would you check first?
Answer
- Traffic (+6.0 s). The "near" coefficient is an average for the circuit; a driver sitting 1–3 s behind the leader may be managing tyres or the gap rather than losing time to the wake, and the timing data can't tell.
- Neither blindly. The stint median for the opening compound is exposed to early, non-linear track evolution (20.4); check whether the opening stints' slopes change when you drop their first five laps, and compare with the same compound's later-stint slopes where it was used again.
🪞 Learning check-in. This chapter asked you to hold an uncomfortable idea: a model can be precise and still not answer your question. Before moving on, write down in one sentence each: (1) what the fuel slope measures and what it does not; (2) why your degradation numbers need a footnote; (3) which number you'd hand a strategist as "the cost of following" at Monaco and at Spielberg, with its interval. If any of the three took more than a minute, reread 20.4 and run script 03's synthetic race with your own choice of evolution. If they came easily, try exercise E1, which asks you to find a natural experiment that does separate fuel from evolution.
Spaced Review
From Chapter 4 (Tires). Before reading on: why did Chapter 4 report MEDIUM and HARD degradation of about 0.05 s/lap when the raw lap times through a stint are flat? Because the raw slope is about 0.003 (MEDIUM) and −0.002 (HARD) s/lap; the fuel correction adds about 0.05 s/lap to every stint. This chapter showed the shift is one-for-one with whatever correction you choose (Figure 20.7), and that the race's own data-driven slope gives nearly the same answer as the toolkit's assumption.
From Chapter 12 (Race Strategy Fundamentals). If the fresh-tyre advantage is 1.078 s/lap and the pit loss is 22.5 s, what is the break-even stint length, and which of this chapter's numbers would move it? About 20.9 laps. The fresh-tyre delta is itself fuel-corrected, so a different fuel correction would move it; and traffic moves the effective pit loss, because a stop that drops you into a queue costs the stop plus about half a second for every lap you then spend inside a second of somebody.
From Chapter 19 (Lap Time Analysis). What was the smallest mini-sector difference Chapter 19 treated as evidence at 3.7 Hz? About 0.05 s. This chapter's equivalent is the bootstrap interval of a race-pace median: for a front-runner with 50-odd clean laps it is typically 0.2–0.5 s wide, so race-pace margins of a tenth or two between neighbours are leans, not rankings. The habit is the same: know your resolution before you read the difference.
Project Checkpoint: pace.py
Aisha's simulator has had a hole in it since Chapter 12. strategy.RaceModel takes a base_lap_s and a
fuel_start_penalty_s, and until now both were guesses: the first was set to zero ("only matters for absolute
times") and the second to the toolkit's 3.0 s assumption. This chapter fills both from data, along with a
traffic term the later chapters will need.
Aisha: I can now say what a car is worth on an empty tank, in clean air, on a new MEDIUM, with an interval. And what it costs to sit behind someone.
Ray: And the bit you can't say?
Aisha: How much of the fuel number is fuel. I've written that in the docstring so nobody forgets.
The module project/boxbox/pace.py provides:
fuel_effect(session_or_laps, start_fuel_kg=100): the race's fuel + evolution slope (wraps the toolkit'smetrics.estimate_fuel_effect), labelled as an upper bound.fuel_corrected_pace(laps, method="data"|"median"|"assumed"|"none", ...): addslap_time_fcin the empty-tank convention: the race's own slope, the 2023–2026 median slope (−0.056 s/lap), the toolkit's assumption, or no correction.add_interval_start(laps)andtraffic_flag(laps, close_s=1.0, clean_s=3.0): the start-of-lap gap, with the leader's zero handled.traffic_cost(laps, edges=..., ref_min_s=3.0, y=...): the dirty-air curve with clustered intervals;ycan be a sector time or a speed trap.race_pace_table(session, fuel="data", traffic="exclude"): the ranking with bootstrap intervals, grid and finish.pace_model(session): the full decomposition;simulator_inputs(session): the hand-off dictionary.fp2_long_runs(session)andlong_run_pace(session): practice long runs.
The checkpoint script runs it on the 2026 United States GP and hands the result to Chapter 12's optimiser:
si = pace.simulator_inputs(s)
comps = {k: strategy.CompoundParams(deg_s_per_lap=max(v[0], 0.0), offset_s=v[1], warmup_s=strategy.POOLED_WARMUP[k])
for k, v in si["compounds"].items()}
model = strategy.RaceModel(total_laps=si["N"], pit_loss_s=pl["pit_loss_s"], compounds=comps,
base_lap_s=si["base_lap_s"][w.acronym], fuel_start_penalty_s=si["fuel_start_penalty_s"])
pred = strategy.race_time(w.strategy, model) # the winner's actual strategy, priced with his own base pace
4. simulator_inputs: fuel slope -0.0581 s/lap -> fuel_start_penalty_s 3.25 s; t_close +0.356, t_near +0.154 s/lap
base laps: LEC 97.782, ANT 97.899, HAM 97.906, VER 97.918, NOR 98.118
5. Winner ANT: M-H stopping after (24,), grid 1
model race time 5644.4 s vs actual sum of his lap times 5717.1 s: model -72.7 s
actual minus model, by lap type:
laps actual_minus_model_s
SC/VSC laps 4 +75.7
clean laps 47 -0.1
lap 1 1 -0.8
other (yellow flags) 2 -1.3
pit in/out laps 2 -0.8
That last table is the checkpoint's real result. Over Antonelli's 47 clean laps, the model built from this chapter's pieces (his base pace, the race's fuel slope, the fitted wear rates, the race's pit loss) missed his actual time by 0.1 seconds in total. The whole 72.7 s error comes from four laps under the two VSCs, which the model doesn't know about yet. That's exactly the job of the neutralisation module from Chapter 14, and of the Monte Carlo engine of Chapter 27. It's also a useful humility check: Leclerc had the best base pace of the race (97.782 s) and finished second.
Later chapters build on this module. Chapter 21 uses race pace for teammate comparisons, Chapter 22 replaces the
single wear rate with a degradation model by compound, circuit and temperature, Chapter 35 needs the dirty-air
curve for its pass-probability model, and Chapter 40 wires simulator_inputs into python -m boxbox simulate.
Chapter Summary
| Quantity | Definition | Value in our data (2023–2026 dry races) |
|---|---|---|
| Fuel + evolution slope | pace.fuel_effect = metrics.estimate_fuel_effect, $\beta$ on race lap |
−0.056 s/lap [−0.061, −0.050], 76 races; 75 of 76 exclude 0 |
| Implied s/kg | $-\beta N / F_0$, needs a start load | 0.033 (100 kg, IQR 0.029–0.039), 0.030 (110 kg) |
| Matched-age slope | same driver, compound and tyre age, two stints | −0.056 s/lap [−0.058, −0.053], 635 pairs |
| Cube-root physics | $\hat\beta = -T F_0/(3mN)$ 🧪 | observed/predicted median 0.94; r = 0.55 |
| Degradation | stint slope, fuel-corrected (state which!) | M 0.003 raw → 0.051 assumed → 0.054 data |
| Dirty air, ≤ 1 s | pace.traffic_cost, within driver-stint |
+0.495 s/lap [0.386, 0.604]; 1–2 s +0.204; 2–3 s +0.081 |
| … by circuit | same, per circuit | Monaco 1.58, Marina Bay 1.10 … Catalunya 0.12 s/lap |
| Traffic per race | share of clean laps begun ≤ 1 s | median 22%; median cost 5.0 s, p90 11.9 s |
| Best race pace wins | traffic-excluded race pace | 61.8% (50.6–71.9) of 76 races |
| Pole-sitter fastest on Sunday | 47.4% (36.5–58.4) | |
| FP2 as a predictor | Spearman ρ vs race pace | 0.72 (qualifying 0.75); FP2 better in 14/42 weekends; gap slope 0.56 |
Decision checklist for any race-pace number
- Which fuel correction? State it; for 2026 races use the race's own data slope.
- Did you call the slope "fuel + evolution", not "fuel"?
- Clean laps only? The leader's zero interval handled?
- Traffic laps kept (describing the race) or dropped (estimating the car)?
- Compound mix controlled (
pace_model) or not (race_pace_table)? - Interval reported? Are neighbours separated, or only leaning?
- Practice numbers shrunk (about ×0.5) before you compare them with race pace?
What's Next
We can now say what a car is worth on Sunday, with the fuel, the tyres and the traffic accounted for, but every number in this chapter belongs to a driver-and-car. Chapter 21 takes on the hardest problem in F1 analytics: splitting that number between the driver and the machine, using teammates as the control and this chapter's race pace as one of the inputs.