Three minutes before the end of Q1 at the 2025 British Grand Prix, Lance Stroll's best lap was a
In This Chapter
- 16.1 The format: what the rules actually say
- 16.2 The cut line and the knife edge
- 16.3 Track evolution: why later is faster
- 16.4 When to run: the moving cut line
- 16.5 Traffic: the cost of a crowded track
- 16.6 The tow: worth chasing?
- 16.7 The perfect lap and the teammate duel
- 16.8 A preview of the speed trace (Anchor A)
- 16.9 Saturday as a decision problem
- Spaced Review
- Project Checkpoint: qualifying.py
- Chapter Summary
- What's Next
Chapter 16 — Qualifying Strategy: Optimal Lap Timing, Traffic Management, Tow, and Maximizing Saturday Performance
Three minutes before the end of Q1 at the 2025 British Grand Prix, Lance Stroll's best lap was a 1:26.504. On the timing screen that was 12th of 20. Fifteen cars go through to Q2, so he was three places clear of the drop zone. The fifteenth-best time on the board at that moment was a 1:26.606, and Stroll was a tenth inside it.
He finished Q1 in 18th place and was eliminated.
Nothing went wrong with his lap. The 1:26.504 stayed exactly as fast as it had been. What changed was everyone else. Q1 had already been stopped once by a red flag, and in those last three minutes the final runs arrived. Esteban Ocon went from 18th to 7th with a 1:26.136. Pierre Gasly went from 20th, on a 1:27.117, to 15th with a 1:26.328. Oliver Bearman, Carlos Sainz, Kimi Antonelli and Yuki Tsunoda each found between 0.25 and 0.38 seconds. The elimination line, the time you need to be 15th, fell from 1:26.606 to 1:26.328: 0.278 seconds in three minutes. Liam Lawson, 16th with a 1:26.440, missed Q2 by 0.112 s. Lewis Hamilton, seventh at the three-minute mark, ended Q1 in 14th, safe by three hundredths.
Kenji races in an online league where qualifying is a single 15-minute session on an empty server. He had never thought about any of this.
Kenji: So the lap I set doesn't have a value. It only has a value compared to laps that haven't happened yet.
Aisha: And you can estimate those laps. Every session in our data tells you how far the line fell in its last three minutes.
Kenji: How far does it fall?
Aisha: In a typical dry Q1, about 0.36 seconds from three minutes out. Stroll had a third of that.
That is the whole chapter in one session. Qualifying looks like the purest part of a Formula One weekend: one car, one lap, nobody else involved. In fact it is a strategy problem with a clock, a queue and twenty-one rivals. The track gets faster every minute, which rewards running late. Traffic, red flags and yellow flags punish running late. The car ahead can give you a tow on the straight and then take your downforce away in the next corner. And the target you have to beat, the cut line, is moving until the last car crosses the line. Every one of those things is in the timing data.
In this chapter we measure each of them, on every dry qualifying session from 2023 to the 2026 Las
Vegas Grand Prix, and build them into the Box Box simulator as qualifying.py.
🎮 Sim Racer Track: Read 16.3 to 16.6 closely: track evolution, the live cut line, traffic and the tow are the four things your league session hides from you. The 📋 Call the run exercise in 16.5 is written for you.
🏎️ Fan Track: Read 16.1 (the format, including a rule that is often misquoted), 16.2, 16.4 and 16.7. Skip the code blocks; the figures and their descriptions carry the story.
📊 Analytics Track: Everything, and run all seven scripts plus the two case-study scripts. The cut-line predictor in 16.4 is a clean example of an empirical forecast you can validate season by season. The fixed-effects tow regression in 16.6 is an example of a confounded estimate that you report honestly anyway.
16.1 The format: what the rules actually say
Start with the rules, because a surprising amount of what is written about qualifying strategy is about rules that no longer exist.
📐 Definition: Qualifying sets the starting grid. Since 2006 it has had three phases, Q1, Q2 and Q3. All cars run in Q1. The slowest are eliminated and take the back of the grid; the rest go through to Q2. Q2 eliminates the next group, and the last ten cars fight for pole position in Q3. Each driver's grid slot comes from their best time in the last phase they took part in.
The number of cars eliminated depends on the size of the field. The reference table
data/reference/regulations_by_season.csv takes it from the FIA Sporting Regulations for each season.
Here it is for the seasons this book analyses, as printed by code/01_format_and_cut_lines.py:
Q1/Q2 eliminations and grid size (regulations_by_season.csv)
parameter qualifying_eliminated_Q1_Q2 teams_and_cars
season
2022 5 / 5 10 teams / 20 cars
2023 5 / 5 (also SQ1/SQ2) 10 teams / 20 cars
2024 5 / 5 (also SQ1/SQ2) 10 teams / 20 cars
2025 5 / 5 (also SQ1/SQ2) 10 teams / 20 cars
2026 6 / 6 (22 cars); Q1 18 min, Q2 15 min, Q3 13 min; SQ1 12 min 11 teams / 22 cars
So from 2018 to 2025, 20 cars ran, 5 were eliminated after Q1 and 5 more after Q2, and 15 then 10 cars went through. In 2026, Cadillac's entry made it 11 teams and 22 cars. The FIA's 2026 Sporting Regulations (Art. B2.4.2–B2.4.3) eliminate the slowest six after each of Q1 and Q2, so 16 cars reach Q2 and Q3 still has 10. The 2026 rule text also says the number scales: five with 20 cars, seven with 24.
The phase lengths are worth checking in the data rather than taking on trust. We can measure them from
the race-control feed: each phase begins with a SESSION STARTED message and ends with a CHEQUERED
FLAG. Using only phases without a red flag (a stoppage stretches the wall clock):
Measured phase length (median minutes, phases without a red flag; n = phases)
median size
phase 1 2 3 1 2 3
kind year
Q 2023 18.0 15.0 12.0 12 22 18
2024 18.0 15.0 12.0 21 20 21
2025 18.0 15.0 12.0 18 19 21
2026 18.0 15.0 13.0 15 20 18
SQ 2023 12.0 10.0 8.0 4 5 6
2024 12.0 10.0 8.0 6 6 6
2025 12.0 10.0 8.0 6 6 6
2026 12.0 10.0 8.0 3 6 6
Q1 is 18 minutes, Q2 is 15, and Q3 was 12 minutes until 2026, when it became 13, exactly as the 2026 regulation text says. Sprint qualifying (SQ) runs a shorter 12/10/8-minute version.
The tyre rule that isn't
You will still read that the top ten must start the race on the tyres they used to set their fastest
Q2 time. That rule existed: from 2014 the Q3 cars had to start on the set from their fastest Q2 lap.
It was dropped for 2022 (data/reference/regulations_notes.md, citing RaceFans, 18 February
2022). There is no such rule in 2022, 2023, 2024, 2025 or 2026. Since 2022, every car chooses its
starting tyres freely, subject only to the race's two-compound rule.
⚠️ Common pitfall: Treating the old Q2-tyre rule as current, or calling it a "2025 rule change". It is neither. If you model a 2022–2026 race with Q3 cars locked into used Q2 softs, your strategy engine will give the top ten a handicap they no longer have. Check any rule against the reference table for that season before it enters a model (Appendix G).
Three other rules shape Saturday strategy, and all of them are in the reference files.
- Tyre sets. A normal weekend allocates 13 sets of dry tyres per driver and a sprint weekend 12
(
regulations_notes.md). For 2026 the standard split is 2 hard, 3 medium and 8 soft (regulations_2026.md, Art. B6.2.4). Every set used in qualifying is a set not available for the race, so "how many runs" is also a race-strategy question. - Parc fermé. In 2026, cars are deemed to be in parc fermé from the end of Q1 (or SQ1)
(
regulations_by_season.csv). After that, setup is essentially frozen for the race. A car qualifies in roughly the configuration it will race in. - The 2023 Alternative Tyre Allocation trial. At the 2023 Hungarian and Italian Grands Prix, drivers
had 11 dry sets and were required to use hards in Q1, mediums in Q2 and softs in Q3
(
regulations_notes.md, citing Pirelli). If you see slow Q1 times in those two sessions, that is why.
One more 2026 detail matters for Section 16.6. The minimum mass in 2026 is 724 kg plus the nominal tyre
mass, but 726 kg plus tyres in Qualifying and Sprint Qualifying (Art. C4.1). And the 2026 energy
rules treat qualifying differently from the race. In "lap-time classified sessions" (practice and
qualifying), the Overtake energy boost "is activated at all times when enabled"
(regulations_2026.md, Art. B7.2.4b). In qualifying, nobody needs to be close to another car to
unlock it.
Sprint weekends: a second qualifying, and it moved
Sprint weekends add a shorter Sprint Qualifying (called the "Sprint Shootout" in 2023; OpenF1
labels both "Sprint Qualifying", and the toolkit calls them SQ). Its position in the weekend changed
after 2023. The OpenF1 sessions table shows the running order directly, in local time:
Sprint-weekend running order (local time, OpenF1 sessions)
2023 R4 baku : FP1 Fri 13:30 | Q Fri 17:00 | SQ Sat 12:30 | S Sat 17:30 | R Sun 15:00
2024 R6 miami : FP1 Fri 12:30 | SQ Fri 16:30 | S Sat 12:00 | Q Sat 16:00 | R Sun 16:00
2026 R4 miami : FP1 Fri 12:00 | SQ Fri 16:30 | S Sat 12:00 | Q Sat 16:00 | R Sun 13:00
In 2023, grand prix qualifying was on Friday and the shootout plus sprint on Saturday. From 2024 the
order is FP1, Sprint Qualifying on Friday, then the Sprint and grand prix Qualifying on Saturday. There
is only one practice session on a sprint weekend, so teams arrive at Sprint Qualifying with about an
hour of running. In 2026 there are six sprint weekends: China, Miami, Canada, Britain, the Netherlands
and Singapore (regulations_2026.md). Sprint points are 8-7-6-5-4-3-2-1 for the top eight from 2022
(regulations_by_season.csv).
The structure of the problem is the same in Q and SQ, so from here on we analyse grand prix Qualifying and mention SQ where it differs.
16.2 The cut line and the knife edge
The most important number in Q1 isn't the fastest time. It's the time of the last car through.
📐 Definition: The cut line of a phase is the slowest time that still goes through: the $k$-th best time, where $k$ is the number of cars that advance (15 in Q1 and 10 in Q2 for 2023–2025; 16 and 10 in 2026). The knife edge is the gap from the first eliminated car to the cut line:
$$ \text{knife edge} = t_{(k+1)} - t_{(k)}, $$
where $t_{(i)}$ is the $i$-th fastest time of the phase.
In words: how much faster the first car out needed to be to survive. At the 2025 British Grand Prix, the 15th time was Gasly's 1:26.328 and the 16th was Lawson's 1:26.440, so the knife edge was 0.112 s.
We compute both for every dry qualifying session from the official OpenF1 classification (q1, q2
columns of the results table). "Dry" uses the book's standard rule: a session is wet when more than
20% of its laps are on intermediate or wet tyres or carry the rain flag. That leaves 81 of the 90
qualifying sessions in the snapshot.
# code/01_format_and_cut_lines.py (excerpt): cut line and knife edge per session and phase
for _, s in dry.iterrows():
r = f1data.results(s.session_key) # official classification with q1_s, q2_s, q3_s
pole = r.q3_s.min()
for phase, col in [(1, "q1_s"), (2, "q2_s")]:
k = Q.n_advancing(int(s.year), phase) # 15/10 in 2023-25, 16/10 in 2026 (from the regulations)
t = r[col].dropna().sort_values().to_numpy()
if len(t) <= k:
continue
cut, first_out = t[k - 1], t[k] # k-th best and (k+1)-th best
cut_rows.append(dict(year=s.year, phase=phase, cut_s=cut, knife_s=first_out - cut,
cut_vs_pole_pct=100 * (cut - pole) / pole))
Two pandas idioms do the work. dropna() removes drivers with no time in that phase, and
sort_values() orders the rest so t[k - 1] is the cut. The output:
Cut lines, dry Qualifying (OpenF1 classification). knife = first car out - last car through
n knife_med knife_mean under_0p05 under_0p1 cut_vs_pole cars_within_0p1
phase year
1 2023 19 0.046 0.053 57.895 84.211 2.217 3.0
2024 20 0.059 0.073 40.000 75.000 1.954 3.0
2025 22 0.045 0.050 50.000 90.909 1.749 4.0
2026 20 0.097 0.185 30.000 50.000 2.914 1.0
2 2023 19 0.040 0.054 63.158 84.211 1.418 3.0
2024 20 0.033 0.043 65.000 90.000 1.252 3.0
2025 22 0.026 0.039 68.182 100.000 1.041 3.5
2026 20 0.056 0.086 50.000 70.000 1.501 2.0
phase 1: knife-edge median 0.056 s, 95% CI 0.044-0.069 (n = 81)
phase 2: knife-edge median 0.034 s, 95% CI 0.025-0.043 (n = 81)
Read the 2025 row first, because it is the tightest field in the data. The median Q1 knife edge was 0.045 s. In 91% of rounds the first car out was within a tenth of surviving. The median Q2 knife edge was 0.026 s, and in every one of the 22 rounds the eliminated car was within a tenth. A qualifying lap at most circuits takes 75–95 seconds, so 0.026 s is about three parts in ten thousand. That is theme 4 of this book in one line: the margins are impossibly small.

📊 Figure (described): Two strip charts, one dot per dry qualifying session, showing the gap between the first eliminated car and the last car through, for Q1 (left) and Q2 (right) in each season 2023–2026. Most dots sit below 0.1 s, and the medians run from 0.026 s (Q2, 2025) to 0.097 s (Q1, 2026). The takeaway: in a normal season, the car that goes out is usually a few hundredths from survival; 2026's spread-out field made the Q1 edge about twice as wide.
The tightest cases are as tight as timing allows. The 2023 Bahrain Q1 cut had a knife edge of 0.000 s (two cars on the same time to the thousandth; the earlier time ranks ahead). The Q2 cuts at 2026 Monza (0.001 s), 2026 Shanghai (0.002 s), 2023 Hungary (0.002 s) and 2025 Losail (0.003 s) follow.
2026 stands out. The median Q1 knife edge almost doubled, from 0.045 s in 2025 to 0.097 s, and the median number of other cars within a tenth of the Q1 cut fell from four to one. The book's reference tables show why: the qualifying spread between the fastest and slowest team widened again in 2026 under the new regulations and with a new entrant (2.94% in 2026 against 1.29% in 2022–2025, on the book's like-for-like measure). A wider field puts more air between neighbours at the cut.
🔍 Why this works: The knife edge is the gap between two neighbouring order statistics of the field's lap times. If $n$ cars' times are spread over a range $R$ around the cut, the typical gap between neighbours is about $R/n$. Compress the field (2025) and the gaps shrink; spread it out (2026) and they grow, even if every individual driver is just as consistent. That is why the knife edge tells you about the field, not about any one driver's skill.
Figure 16.2 shows the same thing from the cut's point of view: the median gap from each classification position to the Q1 cut line.

📊 Figure (described): Median gap to the Q1 cut-line time (y, seconds) by position relative to the cut (x; 0 = last car through, positive = eliminated), one line per season. For 2023–2025 the lines are nearly flat near zero: the three cars above the cut are within 0.08–0.15 s of it, and the first car below it 0.045–0.059 s. The 2026 line is about twice as steep. Near the cut, a grid slot is worth a few hundredths in 2023–2025 and about a tenth in 2026.
Median gap to the Q1 cut by position relative to the cut (0 = last car through):
year 2023 2024 2025 2026
rank_rel
-3 -0.131 -0.150 -0.077 -0.301
-2 -0.099 -0.090 -0.062 -0.173
-1 -0.039 -0.059 -0.038 -0.093
0 0.000 0.000 0.000 0.000
1 0.046 0.059 0.045 0.097
2 0.147 0.123 0.100 0.411
The strategic meaning is direct. In 2025, the car three places clear of the Q1 cut had a median cushion of 0.077 s. That is less than the typical improvement a driver finds between two runs, which is why nobody near the cut can afford to sit in the garage. The cut also sits a long way off the pole time: the median Q1 cut was 1.75% slower than pole in 2025 and 2.91% in 2026. Q1 is a race against the midfield, not against the front.
🔄 Check your understanding: In 2026 a team is 14th in Q1 with three minutes left, 0.10 s inside the current 16th-place time. Using only Figure 16.2, would you rather be in that position in 2025 or in 2026, and why?
Answer
In 2026. In 2025 a tenth of margin is roughly two or three grid slots, because neighbours are a few hundredths apart; anyone below you who improves by a normal amount passes you. In 2026 a tenth is roughly one slot, because the field is more spread out, so fewer cars are close enough to jump you with a normal improvement. The cut line still falls in both seasons (Section 16.4), but the density of rivals around it was lower in 2026.
16.3 Track evolution: why later is faster
Every qualifying session gets faster as it goes on. Tom can tell you why in physics terms, and the data can tell you by how much.
The physics. A racing tyre generates grip partly by adhesion (molecular bonding between the rubber and the asphalt) and partly by hysteresis (the rubber deforming over the texture of the surface, Chapter 4). At the start of a session the surface is dusty and has little rubber on it. Each lap by each car lays down a thin film of rubber on the racing line. Rubber on rubber bonds better than rubber on dusty stone, so the effective friction coefficient $\mu$ rises. Track temperature changes at the same time; it usually falls as the afternoon goes on, which moves the tyre's operating point too. Because cornering speed scales with $\sqrt{\mu}$ on a given radius (Chapter 1), a small rise in $\mu$ is worth time in every corner.
The engineering. Teams plan around this. On a weekend with a green, low-grip surface (a new venue, a street circuit that is a public road on Thursday), they expect large evolution and save their freshest tyres and fullest commitment for the end. You will hear drivers and engineers describe the track as "ramping up".
The data. Here we hit a measurement problem, and it is worth stopping on.
🧩 Productive struggle: You have every lap of a qualifying session: driver, lap time, the time the lap started, the tyre set and its age. You want the rate at which the track got faster, in seconds per minute. Before reading on, write down why simply plotting all lap times against time and fitting a line gives the wrong answer, and what you would do instead.
One way to think about it
The drivers who run in Q3 are the fastest drivers, and Q3 is at the end. A plain line through all laps mixes "the track got faster" with "the slow cars stopped running". You need to compare each driver only with themselves. Then there is the tyre: a second lap on the same set is slower for reasons that have nothing to do with the track, so you control for laps on the set. What is left still mixes rubber, temperature, wind, fuel and the driver building up commitment, so you report it as "evolution as the timing data see it", not as a pure surface effect.
That is what track_evolution() in the Box Box module does. For each session it keeps push laps
(timed, not deleted, within 3% of the driver's best valid lap of the session) on dry compounds, and
fits
$$ t_{ij} = \alpha_i + \beta\,m_{ij} + \gamma\,a_{ij} + \varepsilon_{ij}, $$
where $t_{ij}$ is driver $i$'s lap time on lap $j$, $\alpha_i$ is a separate intercept for each driver (a fixed effect), $m_{ij}$ is the minutes elapsed since the start of Q1 when the lap began, and $a_{ij}$ is the number of laps already done on that tyre set.
In words: within each driver, how much faster is a lap for every minute later it is run, at the same tyre age? $\beta$ is in seconds per minute; negative means the track is getting faster.
The fixed effects are implemented by demeaning: subtract each driver's mean from their lap times and covariates, then fit an ordinary regression on what is left. That is the "within" transformation, and it is three lines of pandas:
# project/boxbox/qualifying.py, track_evolution() (excerpt)
d = lp[lp.is_push & lp.compound.isin(["SOFT", "MEDIUM", "HARD"])]
cols = ["lap_duration", "min_elapsed", "tyre_age"]
dm = d[cols] - d.groupby("driver_number")[cols].transform("mean") # each driver vs themselves
fit = sm.OLS(dm.lap_duration.to_numpy(float),
dm[["min_elapsed", "tyre_age"]].to_numpy(float)).fit(cov_type="HC1")
beta, se = fit.params[0], fit.bse[0] # s per minute
groupby(...).transform("mean") returns each row's group mean aligned to the original rows, which is
exactly what demeaning needs. cov_type="HC1" asks statsmodels for standard errors that don't assume
every lap has the same noise.
Figure 16.3 shows one session, chosen automatically as the dry session without a red flag whose slope is closest to the median of all sessions: the 2024 Qatar Grand Prix at Losail.

📊 Figure (described): Every push lap of the 2024 Qatar GP qualifying, plotted as lap time minus that driver's own average (y, seconds, tyre-age adjusted) against minutes since the start of Q1 (x). Q1 laps (blue) sit mostly above zero, Q2 laps (orange) near zero, Q3 laps (green) below it. The fitted line falls 0.019 s per minute, about 1.1 s across the session. The takeaway: the same driver on the same kind of tyre was over a second faster at the end of qualifying than at the start.
Now run it on every dry session (code/02_track_evolution.py):
Dry Qualifying sessions: 81; push laps used: 7523
Whole-session evolution (driver fixed effects), s/min, by season:
2023: median -0.0220 s/min (95% CI -0.0272 to -0.0190), n = 19 sessions; Q1-only median -0.0527; median span 58 min; implied over the session -1.43 s
2024: median -0.0179 s/min (95% CI -0.0205 to -0.0147), n = 20 sessions; Q1-only median -0.0544; median span 58 min; implied over the session -1.12 s
2025: median -0.0160 s/min (95% CI -0.0176 to -0.0125), n = 22 sessions; Q1-only median -0.0525; median span 59 min; implied over the session -0.93 s
2026: median -0.0224 s/min (95% CI -0.0260 to -0.0194), n = 20 sessions; Q1-only median -0.0686; median span 58 min; implied over the session -1.41 s
all: median -0.0190 s/min (95% CI -0.0207 to -0.0167), n = 81; share of sessions with slope < 0: 100.0%; CI excludes 0 in 98.8%
Q1 only: median -0.0552 s/min (95% CI -0.0608 to -0.0512), n = 81
as % of pole time per 10 minutes: median -0.233%
Three findings.
- Every dry session evolves. All 81 slopes are negative, and in 80 of 81 the 95% interval excludes zero. The median is −0.019 s per minute, or 0.23% of the pole time for every ten minutes of session. Over the hour from the start of Q1 to the end of Q3, that adds up to about 0.9–1.4 seconds, depending on the season.
- Inside Q1 the rate is almost three times higher, −0.055 s/min. Q1 combines the steepest rubbering-in with drivers' first runs, which are often less committed than their last. The model can't tell those apart, so treat the Q1 number as an upper bound on pure track evolution.
- 2026 evolved faster than 2025 (−0.0224 against −0.0160 s/min), consistent with new cars, new tyre sizes and new venues (Madrid's first year, Sepang's return) giving the teams more to learn within a session. The data can't separate those causes.
This matches the coarser view in the book's reference tables, which compare each Q3 driver's own Q1 and Q3 times. The median same-driver improvement from Q1 to Q3 across 2023–2026 is 0.735 s (95% CI 0.684–0.782, n = 796 driver-rounds). That too mixes track, tyres and commitment.

📊 Figure (described): One dot per dry qualifying session (y: evolution per ten minutes, seconds) grouped by season, with the median as a bar: −0.22 s (2023), −0.18 s (2024), −0.16 s (2025) and −0.22 s (2026) per ten minutes. Every dot is below zero. The takeaway: track evolution is not an occasional effect; it is in every session, and it is a few tenths per ten minutes.
Which sessions evolved most? The fastest-evolving were 2023 Silverstone (−0.049 s/min), 2023 Hungary (−0.038), 2023 Qatar (−0.035), 2023 Las Vegas (−0.035), a brand-new street circuit that year, and 2026 Singapore (−0.034). The slowest were 2023 São Paulo (−0.003), 2025 Hungary (−0.005), 2024 Miami (−0.008), 2025 Imola (−0.009) and 2025 São Paulo (−0.010).
Is it the temperature? We took the change in track temperature from the first five to the last five weather readings of each session. The median session cooled by 2.3 °C, but the correlation between the temperature change and the evolution slope is weak (r = −0.13, n = 81). The 2025 Hungarian session is a telling exception: its track cooled by 11.4 °C during qualifying, and it was one of the slowest-evolving sessions in the data. Whatever the cooling did to the tyres seems to have offset the rubber. One session proves nothing, but it is a reminder that "the track gets faster" is a sum of several effects that do not always point the same way.
📺 On the broadcast: When the commentator says "the track is ramping up, look at those sector times turn purple", this is what they are seeing. A purple sector (the session's best) set in the last two minutes of Q3 is partly the driver and partly the 0.2 s of grip that the previous fifty minutes of running laid down. That is also why an early "provisional pole" rarely survives: in our data, 77% of Q3 pole laps were started in the final two and a half minutes (Section 16.4).
The limits. The data don't contain tyre temperatures, track rubber, wind or fuel loads. Track temperature is one sensor per session, updated about once a minute. Our estimate is "how much faster the same driver went later in the session, holding tyre age fixed". That is exactly the quantity a strategist needs for the decision of when to run, but it is not a measurement of the surface.
🔄 Check your understanding: At a median of −0.019 s per minute, how much track does a driver give away by running their final Q3 lap four minutes before the flag instead of one minute before? Would that alone change the 2025 Suzuka pole, which was decided by 0.012 s?
Answer
Three minutes × 0.019 s/min ≈ 0.057 s. That is almost five times the 0.012 s Suzuka pole margin, so yes: on the median evolution rate, running three minutes earlier costs more than the whole pole margin. This is why everyone wants to run last, and why that creates the queue, the traffic and the red-flag risk in the next sections.
16.4 When to run: the moving cut line
Track evolution says run late. The hook showed the other side of running late: everyone else runs late too, so the cut line keeps falling until the flag. A team on the pit wall in Q1 is answering one question over and over: if my driver doesn't improve, will this time still be good enough when the last car crosses the line?
📐 Definition: The running cut at time $\tau$ is the $k$-th best of the drivers' best valid laps completed by time $\tau$. The final cut is the running cut after the last lap of the phase. The further fall from $\tau$ is
$$ \Delta(\tau) = \text{running cut}(\tau) - \text{final cut} \;\geq\; 0 . $$
In words: how much faster than the current 15th-place time (16th in 2026) the last car through will end up being. If it is 0.36 s, any lap less than 0.36 s inside the current line is in danger.
cut_trajectory() rebuilds the running cut every 15 seconds from the OpenF1 lap table. Two details
matter. A lap counts only once it has been completed (its date_end), and laps that race control
deleted are removed, because a deleted lap never appears on the official order. Race control publishes
deletions as text messages (for example CAR 44 (HAM) TIME 1:23.081 DELETED - TRACK LIMITS AT TURN 13).
The module parses them and matches each message to a lap by its time, to the millisecond, or by lap
number.
How good is the reconstruction? At the end of each phase it should reproduce the official cut exactly. It does in 132 of 136 phases. The four misses are classification oddities, such as a driver whose time appears in the lap table but not in the official Q1 result.
Now build the history. cut_drop_table() records the running cut at 10, 8, 6, 5, 4, 3, 2, 1 and 0
minutes before each phase's chequered flag, for every dry session, and expresses the further fall as a
percentage of lap time so that a 70-second Monaco lap and a 105-second Baku lap can be pooled. Phases
interrupted by a red flag are left out, because the wall clock no longer matches the session clock.
That leaves 62 Q1 phases and 74 Q2 phases.
How much further the cut line falls (% of lap time) from m minutes before the flag:
n median p80 p90 max
phase minutes_to_flag
1 8 61 0.816 1.368 1.736 6.497
5 62 0.508 0.776 0.951 1.595
3 62 0.431 0.659 0.811 1.595
2 62 0.406 0.581 0.713 1.595
1 62 0.351 0.551 0.673 1.595
0 62 0.204 0.340 0.440 1.266
2 5 74 0.392 0.634 0.797 2.051
3 74 0.285 0.632 0.792 2.017
1 74 0.232 0.474 0.613 1.168
0 74 0.077 0.219 0.326 1.145
Same in seconds (median):
phase 1 2
minutes_to_flag
5 0.390 0.344
3 0.360 0.259
1 0.277 0.195
0 0.172 0.069
Two lines deserve a second look. At three minutes before the end of Q1, the line still has a median 0.43% (0.36 s) to fall, and in one session in ten it falls more than 0.81%. And at the chequered flag itself, minute 0, the Q1 line still falls a median 0.17 s. That is not a bug: a lap that has started before the flag can be completed, and the last wave of cars starts its final laps in the minute before the flag and finishes after it. The cut is not final until they cross the line.

📊 Figure (described): Left: the running Q1 cut at the 2025 British GP (blue step line) against minutes before the chequered flag; it falls in steps from 1:27.5 to 1:26.65, sits flat through the middle of the session, then drops again in the last three minutes to the final cut of 1:26.328 (dashed), including after the flag. Right: across all 62 dry Q1s without a red flag, the median further fall (line) with a 10th–90th percentile band, shrinking from 0.82% at eight minutes out to 0.20% at the flag. The takeaway: the line is never safe until the last car is home.
🔍 Why this works: The running cut is the $k$-th smallest of a set of values that can only go down: a driver's best time never gets worse. Each new completed lap can only lower it or leave it unchanged. So $\Delta(\tau)$ is always non-negative and shrinks to zero at the end. Its size depends on how many drivers still have a run to come and how much each run improves them. Both are structural (two runs per car is normal in Q1), which is why the historical distribution of $\Delta$ is stable enough to forecast with.
A forecast you can test
cut_line_prediction() turns the history into a forecast. Given the running cut $c$ at $m$ minutes
before the flag, it predicts the final cut as
$$ \widehat{\text{final}}_q = c \times \left(1 - Q_q\!\left[\tfrac{\Delta}{\text{final}}\right]_m\right), $$
where $Q_q[\cdot]_m$ is the $q$-quantile of the historical relative fall at $m$ minutes. The median ($q = 0.5$) is the point forecast, and the 10% and 90% quantiles give an 80% band. For a lap time $T$, the survival probability is the share of historical falls that would leave $T$ inside the final line.
In words: "look at every past session at this point, see how much the line fell from here, and apply that to today's line."
Does it work? We test it honestly: for each season, build the history from the other three seasons and predict the season we left out.
Leave-one-season-out check (predict the final cut from the running cut):
n mae_model mae_naive coverage_80
phase m
1 1 62 0.163 0.350 0.774
3 62 0.170 0.421 0.742
5 62 0.223 0.498 0.790
2 1 74 0.165 0.240 0.811
3 74 0.203 0.325 0.797
5 74 0.202 0.370 0.784
mae_naive is the error of assuming the current line will hold, and mae_model is the forecast's
error, both in seconds. Three minutes before the end of Q1, the naive assumption is wrong by 0.42 s on
average; the forecast cuts that to 0.17 s. The 80% bands catch the true final cut 74–81% of the time:
close to the 80% they promise, a little short at three minutes in Q1. Medians by season vary a little
(at three minutes the Q1 median fall was 0.39% in 2025 and 0.55% in 2026), so pooling seasons is a
compromise.
Now Kenji's question, in numbers. Suppose the running Q1 cut is exactly 1:30.000 with three minutes to go, and your banker lap is some margin inside it:
Q1, 3 min to go, running cut 1:30.000, your lap 0.10 s inside it -> P(survive) = 0.02 (n = 62); predicted final cut 89.612 (80% band 89.270-89.823)
Q1, 3 min to go, running cut 1:30.000, your lap 0.30 s inside it -> P(survive) = 0.26 (n = 62); predicted final cut 89.612 (80% band 89.270-89.823)
Q1, 3 min to go, running cut 1:30.000, your lap 0.50 s inside it -> P(survive) = 0.69 (n = 62); predicted final cut 89.612 (80% band 89.270-89.823)
Q1, 3 min to go, running cut 1:30.000, your lap 0.70 s inside it -> P(survive) = 0.87 (n = 62); predicted final cut 89.612 (80% band 89.270-89.823)
Q1, 3 min to go, running cut 1:30.000, your lap 0.90 s inside it -> P(survive) = 0.97 (n = 62); predicted final cut 89.612 (80% band 89.270-89.823)
A tenth inside the line with three minutes left is a 2% survival chance. Stroll at Silverstone was exactly there. Half a second inside is still only about 69%. You need around 0.7–0.9 s of margin on a 90-second lap before staying in the garage is a comfortable decision, and very few midfield cars ever have that.
📋 Try it — Predict the race (well, the cut): Run
cut_line_prediction()for Q2 instead of Q1, at two minutes before the flag, for a running cut of 1:20.000 (a short lap such as the Red Bull Ring or Interlagos). How big a margin gives a 90% survival chance? Then explain why the Q2 answer is smaller than the Q1 answer in proportion to lap time.
What you should find
In Q2 the line falls less (the median further fall from three minutes is 0.29% against 0.43% in Q1), because 15 or 16 cars chase 10 places, many of the top teams run only once, and the field above the cut is the stronger half. Expect a 90% margin of roughly 0.75–0.8% of lap time at two minutes, about 0.6 s on an 80-second lap; your exact number comes from the 2023–2026 history in your run.
When do the decisive laps start?
If almost everyone saves their best for the end, the end must be crowded. The data agree.
Start of each driver's best lap, minutes before the flag (dry, no red flag):
Q1: n = 1265 driver-phases, median 2.34 min; started in the last 2.5 min: 52.6%; fastest lap of the phase started in the last 2.5 min: 32.3% (n = 62)
Q2: n = 1126 driver-phases, median 2.27 min; started in the last 2.5 min: 53.9%; fastest lap of the phase started in the last 2.5 min: 50.0% (n = 74)
Q3: n = 729 driver-phases, median 1.43 min; started in the last 2.5 min: 71.6%; fastest lap of the phase started in the last 2.5 min: 77.0% (n = 74)
pole lap on the final run (Wilson): (0.770, 0.663, 0.851)

📊 Figure (described): Three histograms (Q1, Q2, Q3) of the time before the flag at which each driver's best lap of the phase started. Each has a tall spike in the last 2.5 minutes. Q1 and Q2 also have a smaller hump around 9–12 minutes before the flag (the first run), and Q3 a hump around 9–10 minutes. The takeaway: most best laps are set on the last run, and in Q3 that is true of 72% of drivers' best laps and 77% of pole laps.
The structure of a modern qualifying phase is visible in the histograms: a first run early (the "banker"), a long gap with the cars in the garage, and a final run in the last two or three minutes. In Q1, the fastest car of the phase set its time on the final run only 32% of the time. Top teams often run once, early, because they are safely through and want to save a set. In Q3, where there is nothing left to save, 77% of pole laps (95% CI 66–85%, n = 74) were started in the final two and a half minutes.
The run plan: when must the car leave?
A run is a sequence of laps: an out-lap from the pit exit to the start line, one or more push laps, and between pushes on the same set a slow cool-down lap. The rule that defines the deadline is simple: a lap counts if it starts before the chequered flag. So the latest moment to leave the pit exit for one push lap is
$$ t_\text{exit} = t_\text{flag} - t_\text{out} - t_\text{margin}, $$
and for $p$ push laps on one set,
$$ t_\text{exit} = t_\text{flag} - t_\text{out} - (p-1)\,(t_\text{push} + t_\text{cool}) - t_\text{margin}. $$
In words: work backwards from the flag. The out-lap has to finish, and every earlier push and cool-down lap has to finish, before the flag; the margin covers the queue at the line.
We can measure the components. In the 20 dry 2026 qualifying sessions, the median out-lap (pit exit to the start line) took 1.252 times the driver's best lap, and the median cool-down lap 1.315 times. For Silverstone 2026, with a pole of 1:28.111:
2026 dry Q (n = 20): out-lap (pit exit to line) / best lap median 1.252; cool-down lap / best lap median 1.315
Silverstone 2026 pole 88.111 s -> out-lap 110.3 s, cool lap 115.9 s (garage turnaround 240 s and margin 20 s are assumptions)
Q1 18 min, 2 set(s), 1 push lap(s) per set: {'latest_exit_min': 2.17, 'run_length_s': 198.4, 'cycle_s': 438.4, 'runs_possible': 2, 'spare_s': 511.3}
Q1 18 min, 3 set(s), 1 push lap(s) per set: {'latest_exit_min': 2.17, 'run_length_s': 198.4, 'cycle_s': 438.4, 'runs_possible': 3, 'spare_s': 72.8}
Q1 18 min, 1 set(s), 2 push lap(s) per set: {'latest_exit_min': 5.57, 'run_length_s': 402.4, 'cycle_s': 642.4, 'runs_possible': 1, 'spare_s': 745.7}
🧪 Illustrative model: the 240 s garage turnaround (in-lap end to back on track on a new set) and the 20 s queue margin are assumptions, not measurements; the out-lap and cool-down ratios are measured medians from 2026. The out-lap here starts at the pit exit, so the time from the garage to the pit exit must also fit inside the margin.
With one push per set, the car must leave the pit exit about 2.2 minutes before the flag. That is exactly where the spike in Figure 16.6 sits. Two runs fit comfortably in an 18-minute Q1 (511 s to spare), and even three fit, with 73 s to spare, if the team is willing to spend the tyres. Doing two pushes on one set moves the deadline to 5.6 minutes out. That gives up most of the late track evolution, which is why it is rare at the end of a session.
⚠️ Common pitfall: Planning to the session clock instead of the line. The flag falls on the session clock, but what counts is whether the car has crossed the start line to begin its lap. A car that is 10 seconds late out of the pits, or that gets stuck in a queue at the final corner, loses the lap entirely. That is the asymmetric risk behind every Q1 elimination of a fast car you have ever seen.
🔄 Check your understanding: Using the measured medians, how many complete runs (one push lap each) fit in a 12-minute 2025 Q3, if the first run starts at the beginning of the phase? What does that tell you about the Q3 hump at 9–10 minutes in Figure 16.6?
Answer
One cycle (out-lap, push, in-lap and turnaround) took 438 s, about 7.3 minutes, in the Silverstone example. Two runs need the first to leave by about 12 − 7.3 − 2.2 ≈ 2.5 minutes into the phase, which fits. Three do not. So Q3 is a two-run phase, and the first run happens around the 2–3 minute mark, which is 9–10 minutes before the flag: the first hump in the figure.
16.5 Traffic: the cost of a crowded track
If everyone wants the last two minutes, everyone is on track at once. Some are on out-laps, some on push laps, some on cool-down laps, all on the same piece of asphalt. A push-lap car that arrives behind a slow car in a corner loses time it cannot get back. Often the driver gives up on the lap.
The data don't record traffic directly. They record its footprint.
📐 Definition: An abandoned push lap (the module calls it is_aborted) is a lap whose first
sector was within 1.5% of the driver's best first sector of the session, which means it began as a
push lap, but which was then completed more than 7% slower than the driver's best lap, or not timed at
all, and was not deleted. The gap ahead is the time since the previous car crossed the start line
when this lap began (cars starting their lap from the pit exit are skipped). It is measured at the
start line only.
Abandoning a lap has many causes: traffic, a mistake, a yellow flag, a deliberate decision to cool the tyres for another attempt. Traffic should show up as a higher abort rate when the car just ahead is not on a push lap, so that the pushing car catches it.
Laps that began like a push lap: 7926 in 81 dry Qualifying sessions; aborted 386 (4.9%)
car ahead within 2 s, on a slow lap: 7.0% (5.0-9.6), n = 473
car ahead within 2 s, also pushing: 4.8% (1.7-13.3), n = 62
clean air (>= 15 s): 4.4% (3.4-5.8), n = 1060

📊 Figure (described): Share of push starts abandoned (y, %) by the gap to the car ahead at the start line (x, six bands from under 1 s to 15 s or more), split by whether that car was on a slow lap (blue) or also pushing (orange), with 95% intervals. With a slow car ahead, the abort rate is 6.2–7.4% for gaps under 8 s, against about 4% at larger gaps. The takeaway: a slow car within a few seconds raises the chance of losing the lap by roughly half.
One in twenty push starts is abandoned. With a slow car within two seconds, it is 7.0%; in clean air, 4.4%. The intervals overlap a little at the extremes but the pattern across bands is consistent: the abort rate with a slow car ahead stays at 6–7% until the gap reaches about eight seconds, then drops to around 4%. Push laps with another pushing car within two seconds are rare (62 of 7,926 push starts). Teams space their cars deliberately, and the queue at the end of the out-lap is where that spacing is fought over.
⚠️ Common pitfall: Reading "abort rate" as "traffic rate". Traffic is one cause among several, and the bands only show association. A driver who backs off to create a gap, then sets a push lap, won't appear as an abort at all. A yellow flag aborts a lap regardless of the gap. Before you blame a lost lap on traffic, check the race-control messages for that minute (Chapter 37 covers the feed).
Deleted laps are the other way a lap disappears. The book's reference tables count race-control deletion messages per timed lap: 2.59% of timed qualifying laps in 2023 (175 deletions), 1.80% in 2024, 2.01% in 2025 and 1.71% in 2026. The worst single sessions were 2025 Las Vegas (33 deletions), 2023 Austria (32), 2024 São Paulo (29) and 2025 Monaco (26). Track limits are by far the main reason. In our own scan of 921 deletion messages in Q and SQ, 870 were for track limits and 51 for yellow or double- yellow flags. A deleted lap counts for nothing, so a driver who pushes to the white line on their only final run is betting the whole session on a few centimetres.
📋 Call the pit stop — the Q1 run call, 2026 Las Vegas: It is Q1 of the 2026 Las Vegas Grand Prix, the last qualifying session in our snapshot. Three minutes before the flag, the 16th-best time on the board is 1:37.366. Your driver's banker is a 1:36.966, 0.40 s inside the line. You have a set of softs left. Do you send the car out again, or keep the set for the race?
Use only what you know at that moment: the cut-line history from the 2025 season (17 dry Q1s) says the line will fall to about 1:36.98, with an 80% band of 1:36.78 to 1:37.08. Your banker is right on the median forecast.
What the model said, and what happened
The Box Box demo (
code/project_checkpoint.py) gives that banker a survival probability of 0.53 using the 2025 history. A coin flip is not "keep the tyres" territory; the pit-wall call is to run.The real final Q1 cut was 1:36.149. The line fell 1.217 s in the last three minutes, more than 1.2% of the lap and outside even the 80% band. A 1:36.966 would have finished well outside the top 16. Two lessons. First, when the survival probability is near 50%, the cost asymmetry (a set of tyres against a back-of-the-grid start) makes running the obvious decision. Second, the pooled history did not know that Las Vegas is a cold, green street circuit; in 2023 it was one of the five fastest-evolving sessions in the data. A circuit-aware forecast would have widened the band. That is an exercise at the end of the chapter.
16.6 The tow: worth chasing?
Ask a fan what the tow is worth in qualifying and you'll often hear a confident range of tenths. We can't find any measurement behind such a range, and our data can't support one either. What the data can do is tell us how much faster a car is at the speed trap when another pushing car is a few seconds ahead, and whether its lap time improves. A calibrated physics model can then connect the two.
The physics. A car moving through air leaves a wake behind it: a region of slower, turbulent air. A following car in that wake meets air that is already moving forward with it, so its relative airspeed, and therefore its aerodynamic drag $D = \tfrac12 \rho C_D A\, v_\text{rel}^2$, is lower. Less drag means more of the engine's power goes into acceleration, so the follower gains speed along a straight. That is the tow or slipstream. The same wake carries less energy for the follower's wings and floor, so its downforce falls in the corners (Chapter 3). That is dirty air. A tow is a trade: straight-line speed for cornering grip.
Why qualifying is a clean experiment. In a race, a car within one second at the detection point gets DRS (the Drag Reduction System, 2011–2025) or, in 2026, extra Overtake deployment. Any "following" effect in race data mixes the tow with those systems. Qualifying is different. In 2023–2025, DRS could be used in its zones by every car on every qualifying lap. We can check that in the telemetry:
2025 dry Qualifying push laps with car_data: 2025 in 22 sessions
DRS opened at least once: 99.7% (99.4-99.9), 2019/2025
n drs_any_pct drs_share_pct
band
<4 s 398 99.2 19.7
4-15 s 1342 99.8 20.1
>=15 s 271 100.0 20.8
On 99.7% of 2025 qualifying push laps the flap opened, with essentially the same share of samples open (about 20%) whether another car was close or not. In 2026, the regulations say the Overtake boost "is activated at all times when enabled" in qualifying. So in both eras, a qualifying lap run close behind another car differs from one run in clean air by the wake, not by an aid that depends on the gap.
📐 Definition: For the tow analysis, a push lap's gap band is its gap ahead at the start line (<1, 1–2, 2–4, 4–8, 8–15 and ≥15 s), with the car ahead itself on a push lap. The tow effect in a band is the difference from the same driver's clean-air (≥15 s) laps in the same session, estimated by a fixed-effects regression that also controls for minutes elapsed (track evolution) and tyre age.
# code/04_traffic_and_tow.py (excerpt): within driver-session regression, clustered by session
X = pd.get_dummies(df.band, prefix="b", dtype=float).drop(columns="b_>=15") # clean air = reference
X["min_elapsed"] = df.min_elapsed.astype(float)
X["tyre_age"] = df.tyre_age.astype(float)
Xd = X - X.groupby(df.ds).transform("mean") # ds = session + driver: each driver vs themselves
Yd = Y - Y.groupby(df.ds).transform("mean")
fit = sm.OLS(Yd, Xd).fit(cov_type="cluster", cov_kwds={"groups": df.session_key})
Clustering by session (cov_type="cluster") lets laps from the same session share a common shock
(wind, temperature), so the intervals are not falsely narrow. We run it twice, once on the speed-trap
speed (st_speed) and once on the lap time:
2023-25, car ahead pushing: n = 3856 push laps (reference: >=15 s clean air, n = 811); evolution term -0.0174 s/min
band trap_kmh trap_lo trap_hi n lap_s lap_lo lap_hi
2-4 3.214 2.591 3.838 247 0.020 -0.062 0.102
4-8 1.990 1.609 2.372 1559 0.001 -0.044 0.046
8-15 0.998 0.685 1.311 1230 0.007 -0.031 0.045
2026, car ahead pushing: n = 1324 push laps (reference: >=15 s clean air, n = 201); evolution term -0.0200 s/min
band trap_kmh trap_lo trap_hi n lap_s lap_lo lap_hi
1-2 6.485 4.803 8.166 46 0.016 -0.134 0.165
2-4 3.243 1.777 4.710 168 -0.111 -0.243 0.020
4-8 1.507 0.817 2.197 545 -0.069 -0.155 0.016
8-15 1.014 0.533 1.495 360 -0.002 -0.095 0.092
(We omit the bands with fewer than 20 laps: in 2023–2025 only nine push laps had another pushing car less than two seconds ahead at the line.)

📊 Figure (described): Left: speed-trap speed relative to the same driver's clean-air laps (y, km/h) by gap to a pushing car ahead (x), for 2023–25 (blue) and 2026 (orange), with 95% intervals. The gain rises as the gap shrinks: about +1 km/h at 8–15 s, +1.5–2 km/h at 4–8 s, +3.2 km/h at 2–4 s, and +6.5 km/h at 1–2 s in 2026. Right: the lap-time effect in the same bands; every interval includes zero. The takeaway: the straight-line gain is measurable, but the whole-lap gain is not.
Now the honest part. The speed-trap gain rises smoothly as the gap shrinks, which is what a tow should do. But a gain of 1 km/h at 8–15 seconds behind is hard to believe as aerodynamics: at 300 km/h a car covers about 83 m per second, so ten seconds is most of a kilometre, and a wake that far back is negligible on any physical picture. What else could produce a gradient like that? Running in company happens at the busy end of each phase, when the track is fastest, the wind may have changed and drivers are on their most committed laps. Our evolution term is linear in time and can't absorb all of that. Laps with a slow car ahead show a similar, smaller gradient (+0.8 km/h at 8–15 s, up to +2.4 km/h within one second, in 2023–2025). So the safest reading is that part of the gradient is the tow and part is the conditions in which cars run close together. The 1–2 s and 2–4 s bands are where a real wake is plausible, and that is where the effect is largest.
The lap-time column is the decision-relevant one. In 2023–2025, a push lap run 2–4 s behind another pushing car was +0.020 s slower than clean air (95% CI −0.062 to +0.102). In 2026 the 2–4 s band was −0.111 s (−0.243 to +0.020). Neither interval excludes zero. We cannot detect a whole-lap benefit from following another car in qualifying, in either era, and in 2023–2025 we can rule out a benefit much bigger than about six hundredths in the 2–4 s band.
⚠️ Common pitfall: Converting a speed-trap gain straight into lap time. "+3 km/h at the trap" sounds like a lot, but the trap measures one point on one straight. The tow helps only where the car is drag-limited and costs downforce wherever it is grip-limited. The lap-time regression is the only number in this section that answers "should we chase a tow?", and its answer is "not measurably".
What would a tow be worth on one straight? A calibrated model
We can still ask a narrower question with physics: if following reduces drag by a given fraction, how much time does a car gain on a long straight? On a straight at full throttle, a car's speed obeys
$$ m\frac{dv}{dt} = \frac{P}{v} - \tfrac12\rho C_D A\, v^2 , $$
where $P$ is the power reaching the wheels and $C_D A$ the drag area (rolling resistance is absorbed into the fitted values).
In words: the car accelerates by whatever thrust is left after drag. Thrust from constant power falls as $1/v$ and drag rises as $v^2$, so acceleration fades along the straight towards a terminal speed of $(2P/\rho C_D A)^{1/3}$.
Dividing by $m$ leaves two unknowns, $P/m$ and $k = \rho C_D A/(2m)$. We don't know either for any
real car. But we can fit them to a real full-throttle run, by integrating the equation and adjusting
the two parameters until the simulated speed matches the telemetry (code/05_tow_model.py, using
scipy.optimize.least_squares):
Calibration straight: 2025 Italian GP Q, VER lap 17 (78.792 s), full throttle for 1059 m, 199 -> 331 km/h, 49 samples, DRS open on 0% of them
Fitted: P/m = 581 W/kg, k = 0.5 rho CdA / m = 0.000636 1/m; RMSE 2.4 km/h; terminal speed 349 km/h
with the ASSUMED mass 805 kg: effective wheel power 467 kW, effective CdA 0.85 m^2 (DRS open where allowed; these are fitted, not team data)
The fit tracks Verstappen's pole-lap acceleration with an error of 2.4 km/h. Its terminal speed, 349 km/h, is almost exactly the 348 km/h top speed the book's circuit profiles record for the top-five qualifying laps at Monza in 2025. Treat the "effective" power and drag area as fitted curve parameters, not as the car's real power-unit output or drag: they absorb rolling resistance, gear shifts and an unknown mass.
🧪 Illustrative model: parameters are assumptions chosen to be plausible for a current F1 car, not team data. Here $P/m$ and $k$ are fitted to one telemetry trace, the mass (805 kg) is an assumption, and the drag reduction in the wake, $r$, is entirely assumed.
Now reduce $k$ by a fraction $r$ and run the same straight again:
ILLUSTRATIVE tow model on this 1059 m straight (r = assumed drag reduction in the wake):
drag_reduction_pct end_speed_kmh end_gain_kmh time_s time_gain_s
0.0 336.237 0.000 12.970 0.000
2.5 338.294 2.058 12.925 0.045
5.0 340.388 4.151 12.880 0.090
7.5 342.518 6.281 12.835 0.135
10.0 344.671 8.434 12.785 0.185
15.0 349.119 12.883 12.695 0.275
measured speed-trap gain 3.2 km/h (2-4 s band, 2023-25 and 2026) <-> r = 3.9% -> time gained on this straight 0.070 s
measured speed-trap gain 6.5 km/h (1-2 s band, 2026) <-> r = 7.8% -> time gained on this straight 0.140 s

📊 Figure (described): Left: Verstappen's speed along the longest full-throttle run of his 2025 Monza pole lap (dots, ≈4 Hz telemetry) and the fitted model (line), rising from 199 to about 331 km/h over 13 s. Right: the illustrative time gain on that straight (y, s) against an assumed drag reduction (x, %), with the drag reductions that would reproduce the measured +3.2 and +6.5 km/h speed-trap gains marked: 0.07 s and 0.14 s. The takeaway: a speed-trap gain of a few km/h is worth hundredths to a tenth per long straight, before any loss in the corners.
Put the two halves together. If the +3.2 km/h we measured in the 2–4 s band were entirely a tow, it would correspond to a drag reduction of about 4% and a gain of about 0.07 s on a kilometre-long straight. A circuit has two or three such straights, so a tow could plausibly be worth one to two tenths of straight-line time. The lap-time data say that, net of dirty air in the corners, the benefit is not detectable. Both statements are consistent with a tow that is real on the straights and largely paid back in the corners.
The strategy. Teams do sometimes arrange a tow between teammates, especially at power-sensitive circuits. Our results suggest why it is not universal. Arranging it costs position in the queue, costs a clean run for one of the two cars, and gains an amount that the timing data can't distinguish from zero across a whole lap. On a circuit with one dominant straight and few fast corners the trade looks best; at a circuit with long, fast corners after the straight it looks worst. Measuring that circuit by circuit needs more laps in the 1–2 s band than four seasons provide.
The limits. The gap is measured at the start line, not at the speed trap, and the trap is in a different place at each circuit. We don't know which laps were planned tows. There is no aero or energy channel in OpenF1, and the 2026 cars' active-aero modes are not recorded at all, so the 2026 results mean "same driver, same session, closer to another car", nothing more.
🔄 Check your understanding: A commentator says a driver "got a great tow and gained three tenths". Using this section, what would you need to see in the data before you believed it?
Answer
At least: (1) a speed-trap (or telemetry top) speed on that lap much higher than the same driver's clean-air laps, well beyond the ≈3 km/h we typically measure in the 2–4 s band; (2) official sector times showing the gain in the sectors with the long straights; and (3) no offsetting loss in the corner-heavy sectors. The calibrated model says even +6.5 km/h at the end of a one-kilometre straight is worth about 0.14 s there, so "three tenths" from the tow alone would need a very large drag reduction or several long straights.
16.7 The perfect lap and the teammate duel
Two more numbers come out of every qualifying session, and both are about the driver.
How often is the perfect lap driven?
📐 Definition: A driver's theoretical best (or "ideal lap") in a session is the sum of their
best sector 1, best sector 2 and best sector 3 over every lap that was not deleted, including laps they
abandoned. The perfect-lap gap is their actual best lap minus their theoretical best ($\geq 0$).
theoretical_best() in the module computes both.
The book's reference tables, computed on every dry session with this definition, give a median
perfect-lap gap of 0.051 s for 2023–2026 (95% CI 0.045–0.057, n = 1,647 driver-sessions), very
steady by season: 0.051 s (2023), 0.050 s (2024), 0.052 s (2025) and 0.052 s (2026). Our run of the
module gives 0.048 s (0.041–0.053, n = 1,644); the small difference comes from how deletion messages
are matched to laps. More informative is the shape of the distribution
(code/06_perfect_lap_and_teammates.py):
all: median 0.048 s (0.041-0.053); mean 0.076 s; perfect lap achieved (gap < 0.010 s) 34.4% (32.1-36.7), 565/1644
median size
top10
False 0.044 834
True 0.051 810
Theoretical order would change pole in 13 of 81 sessions (16.0%, 9.6-25.5); median drivers whose rank changes 8 of 20; mean |rank change| 0.55 places

📊 Figure (described): Histograms of the perfect-lap gap (x, seconds, capped at 0.6) for top-10 qualifiers (blue, median 0.051 s) and the rest (orange, median 0.044 s). Both have a tall first bin near zero and a long right tail. The takeaway: about a third of drivers drive their theoretical best lap in a session; the rest leave a few hundredths, and roughly one in ten leaves more than 0.2 s.
About a third of driver-sessions (34.4%) have a perfect-lap gap under 0.01 s: the driver's best sectors all came on the same lap. The top ten have slightly larger gaps than the rest, which looks paradoxical until you remember that they run more laps, across three phases, on an evolving track. More laps means more chances to set a best sector on a lap that then went wrong elsewhere. That illustrates the main caveat of the metric: the gap mixes driver inconsistency with track evolution, traffic and abandoned laps. A driver who ran just one push lap has a gap of zero by construction. That is also why the smallest median gaps in the reference table's driver list (Zhou and Sargeant, 0.001 s each) are not proof that those were the most consistent drivers; they often ran fewer laps.
Would the grid be different if everyone had driven their ideal lap? The ideal-lap order would have changed the fastest driver of the session in 13 of 81 dry sessions (16%). In a typical session 8 of 20 drivers would change position, but by only about half a place on average. At the 2026 Mexico City Grand Prix, the ideal-lap ranking would have put Verstappen first; Case Study 1 tells that story.
The teammate duel
The only fair driver comparison in Formula One is between teammates, because they share a car (Chapter 21 builds a full rating on it). The standard measure is the teammate qualifying gap: in each round, the gap between the two drivers in the latest phase in which both set a time, as a percentage of their mean time, summarised by the median over the season.

📊 Figure (described): For each 2026 team, the faster driver's median qualifying advantage over their teammate (dot, % of lap time) with a 95% bootstrap interval (bar) and the head-to-head record. Medians run from 0.047% (Leclerc over Hamilton, 13–8) to 0.380% (Gasly over Colapinto, 16–5). Four intervals exclude zero: Gasly–Colapinto, Sainz–Albon, Alonso–Stroll and Bearman–Ocon; Verstappen's over Hadjar only just includes it. The takeaway: most 2026 pairings are separated by one to four tenths of a percent, and several are statistically too close to call.
The values match the book's reference table exactly, after removing a few corrupt times in the Jolpica dump. The closest 2026 pairing is Ferrari's: Leclerc ahead of Hamilton by a median 0.047%, 13–8 in head-to-heads, with an interval of −0.014% to +0.181% that includes zero. At Mercedes, the new champion Antonelli was ahead of Russell 12–9 with a median 0.241%; in 2025 the same pairing went 21–2 the other way, with Russell 0.405% faster. Across eras, the median absolute teammate gap fell from 0.661% in 1994–2005 (n = 1,228 team-rounds) to 0.359% in 2014–2026 (n = 2,700), with the 2025 and 2026 season medians at 0.356% and 0.355%. Teammates are closer than ever, which makes the session-level details in this chapter (one run in traffic, one deleted lap) a larger share of what separates them.
🪞 Learning check-in: Halfway through Part II, look back at how your picture of qualifying has changed. Before this chapter, did you think of a qualifying lap as having a fixed value? Which of the four forces in this chapter (evolution, the moving cut line, traffic, the tow) surprised you most, and which would you still struggle to explain to a friend with numbers? Write one sentence for each, then reread the section you found hardest. If you can't say roughly how much the Q1 line falls in the last three minutes, rerun
03_cut_line_and_timing.pyand look at the table again.
16.8 A preview of the speed trace (Anchor A)
The perfect-lap gap tells you that time was left somewhere. It doesn't tell you where. For that you need telemetry, and this book's first anchor example is the qualifying speed trace that shows where the tenths, and hundredths, are found. Chapter 19 develops it fully, and Chapter 23 goes further. Here is the preview.
The pair, chosen by a fixed rule (both laps pass the telemetry quality check; different teams first; most recent season), is the 2025 Japanese Grand Prix: Verstappen's pole lap, 1:26.983, against Norris's 1:26.995, a gap of 0.012 s.
VER lap 16: 86.983 s S1 30.387 S2 39.355 S3 17.241 trap 295 km/h integrated distance 5789 m, samples 325
NOR lap 14: 86.995 s S1 30.358 S2 39.301 S3 17.336 trap 295 km/h integrated distance 5777 m, samples 325
Uniform-rescaled delta at the line: +0.012 s (NOR - VER); min -0.258 s at 2900 m, max +0.110 s at 770 m

📊 Figure (described): Top: speed against distance for Verstappen (blue) and Norris (orange) on their best 2025 Suzuka qualifying laps, with the six slow corners numbered. Bottom: Norris's time gap to Verstappen along the lap. The gap rises to about +0.1 s in the first kilometre, swings below zero through the Esses and on to the Spoon, shows a sharp dip near the hairpin at 2.9 km, and returns to +0.012 s at the line. The takeaway: two laps 0.012 s apart trade time all the way round.
The official timing sectors are the ground truth for the coarse split, because they come from timing loops rather than integrated distance. Norris was 0.029 s faster in sector 1 and 0.054 s faster in sector 2; Verstappen took 0.095 s back in sector 3. The pole was won in the final sector.
The trace also shows why Chapter 19 doesn't stop here. The sharp −0.258 s dip at 2,900 m is the hairpin, the slowest corner on the lap (about 75 km/h). There, a few metres of distance error, which the uniform rescaling used in this chart can't avoid, turn into tenths of apparent delta; the dip recovers within about 100 m. The sector-anchored alignment in the book's reference analysis removes it. With telemetry sampled at about 4 Hz, distance integrated from speed and a lap gap of 0.012 s, the honest reading is that the trace localises time to segments of a few hundred metres, not to individual braking points.
📋 Try it — Compare these drivers: Run
07_anchor_a_preview.py, then change it to compare Piastri (P3, 1:27.027) with Norris in the same session. Report the official sector deltas first. Then look for the segments where the delta trace moves by more than 0.03 s. Is any of them at a corner slower than 100 km/h? If so, how much of it would you trust?🔄 Check your understanding: A driver's perfect-lap gap is 0.11 s, and their best sectors came from three different laps. Can the speed trace of their best lap tell you where the 0.11 s was lost? What would you compare it with instead?
Answer
Not on its own: the trace of one lap shows only that lap. Compare the best lap's trace with the traces of the laps that produced the best sectors, sector by sector, aligned at the official sector lines. The difference inside each sector is where the ideal lap was lost, subject to the sampling and distance-alignment limits above.
16.9 Saturday as a decision problem
Pull the pieces together and qualifying becomes a small optimisation under uncertainty, the kind this book keeps returning to (theme 1).
Ray: I've watched qualifying since the eighties. People always said "go out last". You're telling me that's right?
Aisha: Mostly. The track pays about two hundredths a minute. But "last" means queues, traffic and the chance of a red flag that ends the phase while you're still in the garage.
Ray: And does any of it matter for my bets? I mostly look at who's on pole.
Aisha: It matters a lot. In our data the pole-sitter won 57 of the 91 races from 2023 to 2026. Saturday decides most Sundays.
That number is a baseline from the book's reference tables: over 2014–2026 the pole-sitter won 55.7% of races (152 of 273; 95% CI 49.7–61.5%), and 62.6% (57 of 91) in 2023–2026. Any qualifying advantage you can quantify feeds straight into race outcomes (Chapter 26 builds the prediction model).
For each phase, the decision has the same shape:
- Gain from running later: track evolution, a median 0.019 s per minute over the session.
- Cost of running later: a more crowded track (the abort rate rises from about 4% to 7% with a slow car close ahead), a higher chance of being caught by a flag or a red flag (Case Study 2), and a hard deadline at the start line.
- Value of a margin: the probability that a banker survives, from the cut-line history.
- Value of a set of tyres: a set saved in Q1 is a fresher set for Q2, Q3 or the race (Chapter 12).
A team that is comfortably quick runs once early in Q1, banks a lap far inside the predicted cut and saves a set. A team near the line runs twice and goes out as late as the queue allows. A team fighting for pole runs twice in Q3 and treats the first run as insurance against a red flag on the second. Every one of those choices is visible in Figure 16.6.
🔄 Check your understanding: A midfield team is 0.6 s inside the running Q1 cut with five minutes left and has two new sets. Using the tables in 16.4, roughly what is its survival probability if it stays in, and what would you do?
Answer
At five minutes the median further fall is 0.51% of the lap, about 0.46 s on a 90 s lap, and the 90th percentile is 0.95% (about 0.86 s). A 0.6 s margin is above the median but well below the 90th percentile, so the survival probability is somewhere around 70–80%. With two sets available, a one-in-four chance of starting near the back is far more costly than one set of softs. Run again, and use the older of the two sets if you can.
Spaced Review
Three earlier ideas meet this chapter. Try each question before reading the reminder.
From Chapter 13 (undercut and overcut): why is an out-lap slow, and why does that matter on a Saturday? Reminder: an out-lap is slow because the tyres start cold and the car leaves from the pit lane (Chapter 13). In qualifying, the out-lap is also the time cost of a run: our 2026 median out-lap took 1.25 times a push lap, and it sets the deadline for the final run.
From Chapter 14 (safety cars and red flags): a red flag in a race is a random event with a measured hazard. What is the equivalent number on a Saturday? Reminder: Chapter 14 measured race hazards per lap at risk (Chapter 14). In qualifying, 13.6% of phases in 2023–2026 had at least one red flag (Case Study 2), and in 3.0% a red flag ended the phase in its final three minutes: a small probability with a huge cost.
From Chapter 10 (the circuit): why would track evolution differ between circuits? Reminder: surfaces differ in roughness and in how much they are used outside race weekends (Chapter 10). A street circuit that is a public road starts each session dusty, which is consistent with 2023 Las Vegas being one of the five fastest-evolving sessions we measured.
Project Checkpoint: qualifying.py
Aisha's job this chapter is to teach Box Box what Saturday looks like, so that later chapters can turn
a team's raw pace into a grid position. The new module is project/boxbox/qualifying.py. Its public
functions:
| Function | What it gives the simulator |
|---|---|
phases(session) |
Q1/Q2/Q3 windows from race control (start, chequered flag, red-flag marker) |
deleted_laps(session) |
race-control deletions, parsed from the message text |
quali_laps(session) |
every lap tagged with phase, push / abandoned / deleted, minutes elapsed, minutes to the flag and gap to the car ahead |
track_evolution(session, phase=None) |
driver-fixed-effects evolution slope (s/min) with a 95% interval |
cut_trajectory(session, phase), official_cut(session, phase) |
the running and the official cut line |
cut_drop_table(sessions) |
the history of how far the line falls from each minute |
cut_line_prediction(cut, minutes, history, lap_time_s=...) |
forecast of the final cut and a survival probability |
theoretical_best(session) |
best-sector sum against best lap, per driver |
RunTiming, run_plan(phase_min, timing, sets, pushes_per_set) |
latest exit and the number of runs that fit |
The demo (code/project_checkpoint.py) runs it on 2026 Las Vegas qualifying, the last session in the
snapshot:
s = f1data.session(2026, "Las Vegas", "Q")
ev = Q.track_evolution(s)
s25 = f1data.sessions(year=2025, kind="Q")
hist = Q.cut_drop_table([k for k in s25[s25.has_laps].session_key if not Q.is_wet(k)])
tr = Q.cut_trajectory(s, 1)
at3 = tr.loc[(tr.min_to_flag - 3).abs().idxmin()]
pred = Q.cut_line_prediction(at3.cut_s, 3, hist, phase=1, lap_time_s=at3.cut_s - 0.4)
2. Track evolution: -0.0206 s/min (95% CI -0.0251 to -0.0161), n = 115 push laps, 22 drivers, over 60 min
3. Q1 running cut 3 min before the flag: 97.366 s; predicted final cut 96.984 (80% band 96.780-97.084, history n = 17 2025 Q1s); a lap 0.4 s inside the running cut survives with p = 0.53
actual final Q1 cut: 96.149 s
4. Theoretical best, top 5:
acronym actual_s theoretical_s gap_s rank_actual rank_theoretical
ANT 93.893 93.852 0.041 1 1
VER 94.151 94.138 0.013 2 4
RUS 94.224 94.020 0.204 3 2
NOR 94.244 94.088 0.156 4 3
GAS 94.559 94.559 0.000 5 7
5. Run plan, Q1 (18 min), two sets, pole lap 93.893 s: {'latest_exit_min': 2.29, 'run_length_s': 211.4, 'cycle_s': 451.4, 'runs_possible': 2, 'spare_s': 491.0}
Las Vegas 2026 evolved at −0.021 s/min, right at the median. Antonelli set the fastest lap with an ideal lap only 0.041 s quicker. And the cut-line forecast missed: the line fell to 1:36.149, below the whole 80% band, as the 📋 exercise in 16.5 showed.
Aisha: It's a good first version. It's honest about its uncertainty, and its one big miss is a circuit that evolves faster than the history.
Kenji: So the next version should know which tracks are "green".
Aisha: Exactly. That's Exercise C6.
Where it plugs in. predict.py (Chapter 26) can use the teammate gaps and evolution rates to
forecast grids. montecarlo.py (Chapter 27) can sample a starting grid with the knife-edge spread
measured here instead of a fixed order. start.py
(Chapter 17) takes that grid as its input. And the
CLI in Chapter 40 can print a Saturday run plan for any circuit from the measured out-lap and
cool-down ratios.
Chapter Summary
| Quantity | Definition | Value (dry Qualifying, 2023–2026) |
|---|---|---|
| Cars eliminated in Q1 / Q2 | FIA Sporting Regulations | 5 / 5 (20 cars, 2018–2025); 6 / 6 (22 cars, 2026) |
| Phase lengths (Q) | measured from race control | 18 / 15 / 12 min; Q3 13 min in 2026 |
| Q2-tyre starting rule | Q3 cars start on Q2 tyres | ran from 2014; dropped from 2022 |
| Knife edge | first car out − last car through | Q1 median 0.056 s (0.044–0.069), Q2 0.034 s (0.025–0.043), n = 81 |
| Track evolution | $\beta$ in $t_{ij} = \alpha_i + \beta m_{ij} + \gamma a_{ij}$ | −0.019 s/min (−0.021 to −0.017); negative in 81/81 sessions |
| Further fall of the Q1 cut from 3 min | running cut − final cut | median 0.43% of lap (0.36 s); 90th percentile 0.81% |
| Cut forecast error at 3 min (Q1) | leave-one-season-out MAE | 0.17 s, against 0.42 s for "the line holds" |
| Pole lap on the final Q3 run | started in the last 2.5 min | 77.0% (66.3–85.1), n = 74 |
| Abandoned push laps | S1 at push pace, lap > 7% off | 4.9% overall; 7.0% with a slow car < 2 s ahead vs 4.4% in clean air |
| DRS on 2025 Q push laps | flap opened at least once | 99.7% (99.4–99.9), n = 2,025 |
| Speed-trap gain, pushing car 2–4 s ahead | same driver, FE regression | +3.2 km/h (2023–25 and 2026) |
| Lap-time effect, 2–4 s behind | same | +0.020 s (−0.062 to +0.102) 2023–25; −0.111 s (−0.243 to +0.020) 2026 |
| 🧪 Tow on a 1,059 m straight | calibrated model, assumed drag cut | ≈0.07 s for the measured +3.2 km/h |
| Perfect-lap gap | best lap − sum of best sectors | median 0.051 s (book reference); 34% of drivers < 0.01 s |
| Teammate gap, 2026 | median best-common-session gap | 0.355% season median; pairs 0.047–0.380% |
Decision checklist for a qualifying phase
- What is the predicted final cut, and what is the survival probability of the banker you have?
- Does a further run gain more (evolution plus improvement) than the set of tyres is worth in the race?
- What is the latest pit-exit time for the final lap, from measured out-lap times plus a queue margin?
- Where will the car be in the queue, and how close to a slow car ahead?
- Is a tow worth the cost in spacing? (On the evidence, rarely, for the whole lap.)
- What is the red-flag plan: is there a banker that survives if the last run never happens?
What's Next
Qualifying gives each car a grid slot, and this chapter has shown how small and how contested the gaps between those slots are. Chapter 17 asks what happens to that order in the first minute of the race: how many places the start and lap 1 actually move, by grid slot and circuit, and how many of them are kept.