Case Study 2 — The Price of Running Late: Red Flags and Deleted Laps in Qualifying, 2023–2026
Setup
Chapter 16 showed that running late pays. The track gets faster by a median 0.019 s per minute, and 77% of Q3 pole laps start in the final two and a half minutes. If late running only paid, every team would run as late as physically possible and the analysis would stop there. It doesn't stop, because the end of a phase is also where the risks are concentrated. If a red flag comes out with a minute left, the phase usually ends: every driver still waiting for a final lap keeps whatever they already have. A yellow flag in the last sector deletes a lap. A track-limits deletion on the only final run leaves the banker as the result.
This case study is a multi-season measurement of that risk, across every Qualifying and Sprint
Qualifying session from 2023 to the 2026 Las Vegas Grand Prix, and a simple expected-value comparison
against the reward. The script is code/case_study_02.py.
The data
- OpenF1 race-control messages for 114 Qualifying and Sprint Qualifying sessions, 2023–2026 (337
phases). Red flags are messages with
flag == "RED"; each message carries aqualifying_phasetag. Of the raw red-flag messages in Q and SQ, 51 have a phase tag and are used here. - Deletion messages (
CAR n (ABC) TIME m:ss.sss DELETED - …andCAR n (ABC) LAP DELETED - …), parsed and matched to laps byboxbox.qualifying.deleted_laps()andquali_laps(). - Phase clock. OpenF1 gives wall-clock times, not the session clock, which stops during a red flag. We rebuild the running clock as the wall time since the phase started minus any earlier stoppages in that phase, and subtract it from the scheduled phase length: 18/15/12 minutes in Q (13 for Q3 in 2026) and 12/10/8 in SQ, both measured in Section 16.1.
Analysis
1. How common are red flags?
Sessions scanned: 114 (Q + SQ, 2023-2026); phases: 337
Red flags: 51 in 40 sessions
Phases with at least one red flag: 46/337 = 13.6% (10.4-17.7)
phase
1 26
2 11
3 14
Roughly one phase in seven has a red flag: 13.6% of phases, with a 95% Wilson interval of 10.4–17.7%. Q1 has the most (26 of 51), which makes sense: it has the most cars on track and the longest running time.

📊 Figure (described): Histograms of the number of minutes left on the phase clock when each red flag came out (x, from 18 on the left to 0 on the right), separately for the first, second and third phases. Red flags are spread across the whole phase, but there is a cluster in the final minute, mostly in Q1 and Q2, with the final three minutes shaded. The takeaway: red flags are not confined to the end, but the ones at the end are the ones that remove final runs.
2. The late red flags
Red flags with <= 3 min left on the clock: 12 of 51; phase not resumed in 10 of them
year round circuit kind phase clock_left_min resumed no_time
2023 4 baku SQ 1 0.40 False 0
2023 5 miami Q 3 1.59 False 1
2023 12 spa SQ 2 0.45 False 2
2023 15 marina_bay Q 1 -1.26 False 0
2023 20 interlagos SQ 1 0.54 False 0
2024 13 hungaroring Q 3 2.20 True 0
2024 20 rodriguez Q 2 0.17 False 0
2024 21 interlagos Q 2 0.76 False 0
2025 7 imola Q 1 -0.16 False 1
2025 8 monaco Q 1 -1.02 False 0
2026 6 monaco Q 1 2.18 True 0
2026 20 interlagos Q 2 0.70 False 0
P(a phase ends under a red flag in its final 3 minutes) = 10/337 = 3.0% (1.6-5.4)
Twelve of the 51 red flags came with three minutes or less on the clock, and in ten of those twelve the phase never restarted. Three rows have a negative time left: the clock had already run out, and the red flag came while cars were still completing the laps they had started before the flag. For those cars the effect is the same: the lap in progress is lost.
So the risk, measured per phase, is that 3.0% of phases (95% CI 1.6–5.4%) end under a red flag in their last three minutes. That is a small probability, and it is the probability that every final run in that phase is lost at once.
The no_time column counts drivers who had no valid time in the phase at the moment of the red flag.
It is almost always 0 or 1. Teams know this risk, and nearly everyone has a banker before the end. The
cost of a late red flag is not usually "no time at all". It is the loss of the improvement the final
run would have brought, which Section 16.4 measured: in Q1 the line still falls a median 0.36 s in the
last three minutes. A late red flag freezes the order before that fall happens. Drivers who would have
improved stay where they were, and drivers who would have been pushed out survive.
3. Deleted laps: is the last lap riskier?
Red flags are rare. Deletions are not.
Deleted laps in Q/SQ: 921; by reason:
track limits 870
yellow / double yellow 51
The question is whether the rate rises at the end, when everyone is on a final push. We take every "fast" lap (a push lap, or a deleted lap within 7% of the driver's best) in phases without a red flag, and compute the share deleted by when the lap started:
Deletion rate of fast laps (push or deleted, within 7% of best) by minutes before the flag, phases without a red flag:
bin n k pct ci
<1 1211 50 4.13 3.15-5.40
1-2.5 1859 58 3.12 2.42-4.01
2.5-5 669 24 3.59 2.42-5.28
5-10 2583 70 2.71 2.15-3.41
>10 2282 77 3.37 2.71-4.20

📊 Figure (described): Bars of the percentage of fast laps deleted (y) in five bands of time before the flag (x, from more than 10 minutes to under 1 minute), with 95% Wilson intervals and the number of laps above each bar. The rates lie between 2.7% and 4.1%; the highest is for laps started in the final minute, and its interval only partly overlaps the 5–10 minute band. The takeaway: the deletion risk is roughly flat through a phase, with a modest rise on the very last laps.
Laps started in the final minute were deleted 4.1% of the time (3.2–5.4%), against 2.7% (2.2–3.4%) for laps started 5–10 minutes out. That difference is consistent with drivers using a little more track on their last attempt, or with more yellow flags when the whole field is pushing. The other bands are in between and overlap. The honest summary is "a mild increase", not "the last lap is a lottery". Track limits are 94% of all deletions (870 of 921), so most of this risk is in the driver's hands.
4. Reward against risk
Put the pieces into one comparison for a car fighting for the Q1 cut:
- Reward for running in the last three minutes rather than before them: at the median evolution rate of 0.019 s per minute, three minutes of extra rubber is worth about 0.057 s of track. For a car near the line, the larger reward is that its final lap counts after most rivals have improved, so it is not left exposed by a falling line.
- Risk of a late red flag: 3.0% per phase. If it happens, a car that has a banker inside the current line benefits (the line stops falling), and a car that is outside the line and waiting is eliminated.
- Risk of a deletion: about 4% for a lap started in the final minute, against 3% earlier.
The asymmetry decides it. A car outside the line has to run late: the reward (staying in the session) dwarfs a 3–4% chance of a flag or a deletion. A car inside the line with a margin that Section 16.4 rates as safe gains little from running at all. The genuinely hard decisions are in the middle, for a banker with a survival probability between about 30% and 80%. That is exactly where the cut-line predictor earns its keep.
🧪 Illustrative model: to put a number on the middle case, suppose (assumption) that a final run improves a midfield car by 0.30 s, that its banker currently has a 50% survival probability, and that with the improvement it would survive with 85%. Running late then raises survival by about 35 points × (1 − 0.03 − 0.04) ≈ 33 points, after allowing for the measured 3% red-flag and roughly 4% deletion risks. The risks shave about two points off a 35-point gain. Only the 0.30 s, 50% and 85% are assumptions; the 3% and 4% are measured.
What it means (and doesn't)
- It means the risks of running late are real but small: a 3% chance per phase that the final runs are wiped out by a red flag, and a deletion rate that rises from about 3% to about 4% on final-minute laps. For any car that needs to improve, they are far smaller than the reward.
- It means a banker matters. Because nearly every driver has a time before the end, a late red flag mostly freezes the order rather than leaving cars without a time.
- It doesn't mean the risks are the same everywhere. Street circuits and tracks with tight run-off are likely to have more red flags; with 337 phases and 51 red flags we can't estimate the rate circuit by circuit with any precision.
- It doesn't tell us why any red flag was shown. The messages record the flag; we don't assign causes or blame.
Discussion questions
- Three of the late red flags came after the clock had run out. Why does that still matter for the result, and which drivers does it affect?
- A team has a 1.5% chance of a red flag in the final three minutes of a given phase at one circuit and 5% at another. Using the reasoning in Section 4, how should that change its plan for a driver who is inside the line with a 70% survival probability?
- The deletion rate in the final minute is 4.1%, against 2.7% at 5–10 minutes. Propose two different mechanisms that could produce the difference and a way to tell them apart with the data.
- Why does a late red flag help a car that is just inside the current cut line? Use the moving-line idea from Section 16.4.
- The analysis treats every phase as independent. Why might red flags in Q1 and Q2 of the same session be correlated?
Your turn
Split the red-flag analysis by circuit type, using the three circuit speed types in the book's circuit
profiles (Appendix F: high-speed, low-speed / traction-limited,
medium-speed). For each type, report the number of phases, the number with
a red flag and the Wilson interval. Then do the same for street circuits against permanent circuits
(define the list yourself and state it). Is there a difference you would bet on, given the intervals?
Finally, extend case_study_02.py so that it also reports, for each late red flag, how many drivers
were on a lap at the moment of the flag (laps with date_start before and date_end after the
red-flag time). That is the closest the data come to counting "final runs lost".