Chapter 13 Instructor Notes — The Undercut and Overcut

Chapter: The Undercut and Overcut: How Pit Stop Timing Creates and Destroys Track Position · Exercises · Quiz · Case Study 1 · Case Study 2 · Key Takeaways · Discussion guide

Chapter 12 optimised one car against the clock. Chapter 13 adds a rival. Students derive a two-car model of what an undercut should gain, measure 331 real undercut and overcut situations from 2023–2026, and discover that the tyres open the door but the pit stops usually decide who walks through it. The module built here is undercut.py.

Learning objectives

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

  1. Explain an undercut as a small difference between two large, mostly cancelling numbers (in-lap and out-lap excess).
  2. Derive and use the two-car gain $G = k\,d\,(a - s)$ and say what each term means.
  3. Explain why the fuel-corrected wear rate must be used, and why the raw slope would make the undercut look worthless.
  4. Report undercut and overcut success rates with intervals, and use the logistic success curve to turn a gap into a probability.
  5. Decompose a real undercut into in-lap, out-lap, fresh-tyre and settle components.
  6. Explain why the defender's reply and stop execution matter more than the tyre model for an individual case.
  7. Say what the timing data cannot see (intent, traffic, instructions) and how definitions move the numbers.

Threshold concept

This chapter has no designated threshold concept. It extends Chapter 12's threshold (strategy minimises total race time) to two cars: what matters is the difference in total time between attacker and defender, so every term both cars pay cancels.

Suggested 75-minute session plan

Time Segment What happens
0–8 min Hook 2026 Miami GP: Norris led Antonelli by 2.090 s at the end of lap 25, both on 25-lap-old mediums. Antonelli pitted on lap 26, Norris on lap 27; by the end of lap 28 Antonelli was ahead. Ask: "How much of the 3.297 s gain came from the tyres?" Take guesses.
8–25 min Concept In-lap (+4.372 s median) and out-lap (+18.534 s) excesses cancel; what remains is the tyre gain. Derive $G = k\,d\,(a - s)$: with $d = 0.051$, $a = 20$, $k = 1$, $s = 2$, $G = 0.918$ s. Show why raw slopes (≈ 0) would make the undercut vanish.
25–42 min Live demo Run code/01_miami_anatomy.py. Reveal the decomposition: in-lap +0.620, out-lap +1.552, fresh tyres +0.145, settle +1.157 s. Antonelli's measured pit loss was 17.904 s against Norris's 19.550 s; with equal stops Norris would have stayed 1.382 s ahead. The tyres were worth 0.145 s.
42–62 min Activity Groups use the logistic curve (logit P = 2.171 − 1.597 × gap) to fill a table of success probability for gaps of 0.5, 1.0, 1.5, 2.0 and 2.5 s, then compare with the observed bands (78.6% under 1 s, 40.6% at 1–2 s, 19.3% at 2–3 s). Finish with exercise B6 (Odds from the logistic curve).
62–75 min Wrap-up The defender's reply: success is 33.7% if he covers next lap, 51.2% after two laps, 71.4% after three. Exit ticket: "Miami's model said P(success) = 0.24. Was Antonelli lucky, or did the model miss something?"

Key numbers students should leave with

  • Success rates (OpenF1 2023–2026, green, dry, within 3 s, $k \le 3$): undercut 42.9% [35.6, 50.4] (n = 168), overcut 22.1% [16.4, 29.1] (n = 163); difference +20.8 points [+10.6, +30.4].
  • The gap matters most before the stop: 78.6% inside 1 s, 40.6% at 1–2 s, 19.3% at 2–3 s. The empirical 50% point is 1.36 s.
  • The reply matters most after it: 33.7% if the defender covers next lap, 51.2% after two, 71.4% after three. 104 of 168 defenders covered immediately.
  • Stops decide: the attacker's stop was cheaper in 73.6% of successful undercuts and only 30.2% of failures. The fresh-tyre component favoured the first stopper in 91.1% of cases (median 1.206 s per lap).
  • The model gets the typical case, not the individual one: median predicted +1.055 s vs measured +0.755 s; rank correlation 0.044; robust residual SD 3.21 s.
  • The front is harder to undercut: 23.1% for attackers in P1–P6 (n = 52) vs 51.7% from P7 or lower (n = 116).
  • 2026: 1.18 situations per dry race vs 2.2–2.8 in 2023–25; no demonstrable change in success (−8.9 points [−30.9, +14.5]).

Common misconceptions and remedies

Misconception Remedy
"The undercut works because fresh tyres are much faster." In Miami 2026 the tyres were worth 0.145 s of a 3.297 s gain. Show the decomposition and the 73.6% vs 30.2% stop-execution split.
"The undercut usually works." It fails more often than it succeeds (42.9%). It is still about twice as good as the overcut.
"Raw lap times show the tyres aren't degrading, so the undercut is dead." Both cars carry the same fuel on the same lap, so fuel cancels in the comparison; use the fuel-corrected rate.
"Close gaps succeed because the gap is small." Partly; close attackers are also often faster cars being held up. Closeness itself carries information.
"The model's predicted gain tells you what will happen in this race." Residual SD 3.21 s and a rank correlation near zero: it describes the average, not the case.
"An overcut is just a failed undercut seen from the other side." It is a separate decision with its own logic (warm-up, traffic, compound offsets); Monaco 2025's 12.022 s overcut is the extreme case.

Exercises to assign

  • Core (everyone): Part A — A1–A4; Part B — B1 (the closed form), B2 (raw vs corrected), B4 (a slow stop), B6 (odds from the logistic curve).
  • Code lab: Part C — C1 (Analyze this session) and C2 (Compare these drivers). C5 (Predict the race) is a good take-home for analytics students.
  • Judgment: Part D — D1 (Call the pit stop) and D4 (When not to undercut).
  • Stretch: Part E — E1 (a traffic-aware undercut study) or E3 (a Bayesian undercut window).
  • Probability practice: Part B — B9 (probability to expected places) links to the betting track.

Lab tips

  • All scripts run without a network. Outputs are saved as code/*_output.txt, and every number printed in the chapter text was checked against them.
  • Run order: 03_undercut_study.py writes code/undercut_pairs.csv; 04_gap_and_model.py writes code/undercut_predictions.csv. case_study_02.py needs both, so run 03 → 04 before it.
  • Runtime: 06_circuits_seasons.py takes about 2 minutes because it reruns the study seven times for the sensitivity table. Start it before the demo or use its saved output.
  • Gotcha — approximate decomposition: components are sums of lap durations, while the gain comes from timing-line timestamps. They agree closely but not exactly (Miami: 3.474 s vs 3.297 s). Tell students before they "find a bug".
  • Gotcha — Monaco: the timing line is in the pit lane, so pit-lane time lands in the in-lap. Flag this when students split Monaco stops.
  • Gotcha — outliers: three 2024 Bahrain rows show ±81 s gains because one car had a very slow stop. Ask students to find them and decide what to do.
  • predict_pair uses each car's own old compound; this matters for mixed-compound pairs.

Connections