Chapter 16 Instructor Notes — Qualifying Strategy

Chapter: Qualifying Strategy: Optimal Lap Timing, Traffic Management, Tow, and Maximizing Saturday Performance · Exercises · Quiz · Case Study 1 · Case Study 2 · Key Takeaways · Discussion guide

Chapter 16 treats Saturday as a decision problem under uncertainty. A qualifying lap has no fixed value until the last car crosses the line: the track keeps getting faster, the elimination line keeps falling, and every run late in the phase trades a faster track for the risk of traffic, a red flag or a deleted lap. Students build the qualifying.py module of Box Box, which forecasts the final cut line from history and turns a margin into a survival probability.

Learning objectives

By the end of the session, students should be able to:

  1. State the current qualifying format (in 2026, six cars eliminated in Q1 and six in Q2; five and five in 2018–2025) and explain why the Q2-tyre starting rule no longer applies.
  2. Define the cut line and the knife edge, and compute both from a session's classification.
  3. Estimate track evolution with a driver fixed-effect regression and explain why fitting across drivers without fixed effects is biased.
  4. Forecast the final cut from the running cut using the historical further-fall distribution, and convert a margin into a survival probability.
  5. Plan a run: compute the latest pit exit from out-lap, push-lap and cool-down ratios.
  6. Distinguish a speed-trap gain from a lap-time gain when evaluating the tow.
  7. Compute and interpret the perfect-lap (ideal-lap) gap.

Threshold concept

This chapter has no formal threshold concept. It carries the 🪞 Learning check-in for the middle of Part II: students look back at whether they used to think of a qualifying lap as having a fixed value, and which of the chapter's four forces (evolution, the moving cut line, traffic, the tow) surprised them most. Give five minutes of class time to it; the answers are a good diagnostic before the midterm.

Suggested 75-minute session plan

Time Segment What happens
0–8 min Hook The 2025 British GP Q1. Three minutes from the end, Stroll's 1:26.504 was 12th and a tenth inside the running cut of 1:26.606. He finished 18th. Ask: "What went wrong with his lap?" (Nothing; the cut fell 0.278 s to 1:26.328.)
8–25 min Concept Cut line and knife edge (medians 0.056 s in Q1, 0.034 s in Q2 over 81 dry sessions). Track evolution as a fixed-effect regression: −0.019 s per minute, negative in all 81 sessions. Why everyone runs late.
25–42 min Live demo Run code/03_cut_line_and_timing.py and show the running Q1 cut falling toward the flag. Then show the forecast: at 3 minutes, the history-based predictor's error is 0.170 s against 0.421 s for "the cut stays where it is".
42–62 min Activity Exercise D1 ("Call the pit stop — the Q1 banker") in pairs: decide first, then compute the survival probability from the further-fall table. Then B3 (the run deadline) at the board.
62–75 min Wrap-up The tow: about +3.2 km/h at the trap from a pushing car 2–4 s ahead, but a lap-time effect whose interval includes zero. Exit ticket: "Name one cost of running late and its size." Close with the learning check-in.

Key numbers students should leave with

  • Knife edge (dry, 2023–2026, n = 81): Q1 median 0.056 s, Q2 0.034 s. Every 2025 Q2 knife edge was under 0.1 s; 2026's 22-car field doubled the Q1 edge to 0.097 s.
  • Track evolution: median −0.019 s per minute, negative in 81 of 81 dry sessions; about 0.9–1.4 s over the hour of qualifying.
  • The moving cut: three minutes before the end of a dry Q1 the cut still falls a median 0.43% of lap time (about 0.36 s), and 0.81% in one session in ten (62 Q1 phases without a red flag).
  • Forecast accuracy at 3 minutes: mean absolute error 0.170 s (Q1) against 0.421 s naive.
  • When the decisive laps start: 77% of Q3 pole laps start in the final 2.5 minutes.
  • Run deadline: out-lap 1.252 × best lap, cool-down 1.315 × (2026); the car must leave the pit exit about 2.2 minutes before the flag with one push per set.
  • Costs of running late: a slow car within 2 s raises the abort rate from 4.4% to 7.0%; a red flag ends 3.0% of phases in their final three minutes; 13.6% of phases have at least one red flag.
  • The tow: +3.2 km/h at the trap for a pushing car 2–4 s ahead; lap-time effect not distinguishable from zero in either era.
  • Perfect lap: median gap 0.051 s; the ideal-lap order changes the fastest driver in 13 of 81 sessions.

Common misconceptions and remedies

Misconception Remedy
"If I'm 15th now, I'm through." Show the further-fall distribution. A 0.1 s margin at 3 minutes survives about 2% of the time in the chapter's worked example; 0.5 s survives 69%.
"Track evolution is just track temperature." Track temperature fell a median 2.3 °C over the sessions while the track got faster; the correlation with the slope is weak (r = −0.13). Rubber laid down is the main driver.
"A tow is worth a couple of tenths." The trap gain is real; the lap-time gain is not detectable. Ask students what else changes when a car is 2–4 s behind another (dirty air in corners, compromised out-lap).
"The top ten must start on their Q2 tyres." That rule ran from 2014 and was dropped for 2022. Always check the season's regulations.
"A zero perfect-lap gap means a perfect driver." It may mean the driver ran few push laps. Check the lap count.
"Abandoned laps are caused by traffic." Check race control for yellows; the gap bands show association, not cause.

Exercises to assign

  • Core (everyone): Part A — A1, A3, A6, A7; Part B — B1 (the knife edge), B2 (evolution arithmetic), B3 (the run deadline), B4 (survival from the history).
  • Code lab: Part C — C1 (session phases and deletions), C2 (the 2025 Japanese GP ideal laps) and C4 (build run plans with RunTiming and run_plan()).
  • Judgment: Part D — D1 (the Q1 banker) and D4 (the tow plan).
  • Stretch: Part C — C6 (a circuit-aware cut-line predictor); Part E — E2 (a full Saturday simulator).
  • Interleaving: Part M — M2 (a red-flag hazard per minute, with Chapter 14) and M1 (tyre sets and race strategy, with Chapter 12).

Lab tips

  • All scripts run offline. Printed outputs are saved as code/*_output.txt; compare students' runs against them.
  • Run order: 02_track_evolution.py writes track_evolution_2023_2026.csv, which case_study_02.py reads, so run 02 first. The other numbered scripts stand alone.
  • Runtime: 05_tow_model.py takes about 80 s because it loads 2025 qualifying telemetry. Start it before you begin talking about the tow.
  • Best live demos: 03_cut_line_and_timing.py (the falling cut) and 06_perfect_lap_and_teammates.py (ideal laps).
  • Gotcha — sessions without laps: f1data.laps(sk) raises DataMissingError for 2025 Azerbaijan qualifying (session listed, no laps). Filter on sessions().has_laps.
  • Gotcha — nullable integers: tyre_age is a nullable integer; cast it to float before fitting with statsmodels.
  • Gotcha — pit flags in qualifying: OpenF1's is_pit_out_lap / is_pit_in_lap are unreliable in qualifying, which is why the chapter identifies push laps by ratio (≤ 103% of the driver's best) instead.
  • Gotcha — session() arguments: f1data.session() does not accept a bare session key; use the sessions table.
  • The RunTiming dataclass ships with default values that students must overwrite with measured ratios.
  • Telemetry in this chapter is 2025 and 2026 qualifying only.

Connections