Chapter 37 Instructor Notes — Reliability, Penalties, and Race Control

Chapter: Reliability, Penalties, and Race Control: DNFs, Grid Penalties, Track Limits, and the Stewards in Data · Exercises · Quiz · Case Study 1 · Case Study 2 · Key Takeaways · Discussion guide

Chapter 37 treats the parts of a race that strategists cannot plan for (retirements, penalties, deleted laps and grid drops) as data. Students measure seventy-five years of retirements, model the DNF hazard lap by lap, shrink noisy team rates, and parse the race-control feed into incidents, penalties and track-limits strikes. The chapter ends with strategy: what a penalty costs in places, where to serve it, and where to take an unavoidable grid drop. It is also a chapter about what the data cannot say: from 2023 the results record only "Retired", so causes are off-limits without a sourced reference. Students build the reliability.py module of Box Box, which gives the simulator retirements and penalties.

Learning objectives

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

  1. Define a DNF from the status text, and explain why is_classified is not a "finished" flag.
  2. Distinguish a DNF rate from a per-lap hazard, and explain why a simulator should sample the hazard by race phase.
  3. Read a Kaplan–Meier survival curve over race distance, including which cars are censored.
  4. Shrink team DNF rates with empirical Bayes and judge whether the spread between teams exceeds noise.
  5. Parse race-control messages into incidents and follow the investigation funnel from "noted" to decision.
  6. Describe the track-limits practice visible in the feed (flag at the third deletion, penalty usually at the fourth).
  7. Price a time penalty from the gaps behind, and choose where to serve a penalty or take a grid drop.

Threshold concept

This chapter has no designated threshold concept. Its organising habit is a trace is not a cause. Students who have absorbed it write "retired on lap 42; no race-control trace" rather than "engine failure", and treat 2026's doubled feed as more blue flags and yellows, not more incidents. Signs they have not: naming causes for 2023+ retirements from a broadcast remark, or reading served == False as "never served".

Suggested 75-minute session plan

Time Segment What happens
0–8 min Hook The 2026 Mexico City GP through the feed: 169 race-control messages, 13 incidents, 4 penalties, 7 no further action, 3 deferred until after the race; a VSC, two safety cars and a red flag (39.0 minutes from the red-flag message to restart; the press said "33-minute"). Ask: "Which of these numbers would a fan watching on TV have known?"
8–22 min Concept DNF by era: 1980s 54.5%, 2022–25 12.8%, 2026 18.3%. Hazard: a lap-1 spike and a flat plateau (2014–25 about twelve times; 2026 only 2.1×). Shrinkage: Aston Martin 21 of 42 → 44.0%.
22–40 min Live demo Run code/07_hook_mexico.py, then code/06_penalty_cost.py (each under 10 s). Show the parsed timeline and then the price of +5 s: 0.77 places for the leader (P ≥ 1 place 42.9%), 1.04 places on average over P1–P15 (56.8%).
40–58 min Activity Pairs work D1 (Leclerc's 5 s penalty at Mexico City 2026, with a stop still to make) with the reveal closed, then B5 (penalty arithmetic at the flag) and B3 (shrinkage) at the board.
58–75 min Wrap-up Track limits as a corner problem: ten corners hold 30.8% of race deletions; Red Bull Ring 89 deletions in 2023, then 15, 11, 18. Exit ticket: "Write one sentence about a 2026 retirement that says only what the data support."

Key numbers students should leave with

  • DNF rate (starters): 1980s 54.5%; 2000s 31.2%; 2014–21 18.2%; 2022–25 12.8% (n = 1,827); 2026 18.3% (83 of 453). Without Aston Martin and Cadillac, 2026 ran at 12.4%.
  • Per-lap hazard, 2022–25: lap 1 0.0208, middle 0.0018 (about 11.6×). 2026: lap 1 0.0066, middle 0.0031 (2.1×). Phase model P(DNF, 57 laps): 12.3% (2022–25), 17.4% (2026).
  • 2026 teams: Aston Martin 21/42 (shrunk 44.0%), Cadillac 16/41 (35.1%); 2025 teams all shrink to the field rate of 10.7%.
  • Traces: 76.0% of 2023–26 retirements leave no race-control trace (n = 242); 74 of 83 in 2026.
  • Penalties: 204 in-race penalties in 91 GPs (2.24 per race); pit-lane speeding drew 5 s in 27 of 27 cases; collisions 10 s in 39 of 55.
  • Investigation funnel: 629 linked incidents; 283 reached "under investigation" in session, and 71.0% (65.5–76.0) of those ended in a penalty, median 4.0 minutes from first message.
  • Track limits: black-and-white flag at the third deletion in 70 of 101 cases; penalty at the fourth in 12 of 20.
  • Grid drops: big drops 2.89× as frequent in 2018–22 as in other seasons. Recovery: +0.75 places per +10 green passes at the circuit.
  • Serving a penalty: pit loss under SC 12.722 s, under VSC 15.671 s, green 22.512 s (pooled median).

Common misconceptions and remedies

Misconception Remedy
"It was an engine failure." From 2023 Jolpica says only "Retired". Report the lap and any trace; name a cause only from a sourced reference.
"is_classified means finished." It is True for late retirements. Use finished, derived from the status text.
"A car has the same chance of retiring on every lap." Show the phase hazards: the lap-1 spike dominated until 2026.
"Aston Martin's 50% is its true 2026 rate." Wilson interval 35.5–64.5%; shrunk 44.0%. With about 40 starts, luck alone spreads team rates by about ±5 points.
"The 2026 feed doubled, so incidents doubled." Blue flags (61.9 per race) and sector yellows (51.3) drove the growth; stewarding messages rose much less.
"No PENALTY SERVED message means it wasn't served." Time penalties can be added after the flag; only 58 of 204 have a served message.
"A 5 s penalty always costs a place." It depends on the gap behind: 42.9% for P1, 67.2% for P10.

Exercises to assign

  • Core (everyone): Part A — A1, A3, A6, A8; Part B — B2, B3, B5, B6.
  • Code lab: Part C — C1 (the 2024 São Paulo race-control feed) and C5 (simulate 10,000 races with dnf_hazard and sample_dnf). Add C2 (2023 Austria track-limits penalties) for students who enjoy parsing.
  • Judgment: Part D — D1 (serve the penalty) and D3 (take the grid penalty) make good short written assignments.
  • Stretch: Part E — E1 (a stewarding consistency audit) or E2 (a reliability forecast for 2027).
  • Interleaving: Part M — M1 with Chapter 14 (the red-flag window) and M3 with Chapter 27 (DNFs in a Monte Carlo).

Lab tips

  • Runtime: every script runs offline in under 10 s. Outputs are saved as code/_out_*.txt; 08_exercise_checks.py prints the exercise answers only, so keep it out of student hands until after the deadline.
  • Run order: 03_penalties.py writes the race-control pickles in code/_cache/ that 06_penalty_cost.py reads; 02_team_reliability.py caches the retirement traces; 05_grid_penalties.py caches green passes per race. Run 01 → 07 in order before the case studies.
  • Gotcha — lapped cars' times: Jolpica time_s is filled for lapped cars with their own elapsed time. Filter to finishers on the winner's lap count before computing gaps.
  • Gotcha — disqualifications: OpenF1's dsq flag misses the 2023 US GP disqualifications (Hamilton, Leclerc). Use Jolpica's status text.
  • Gotcha — message wording: "UPDATE:" vs "UPDATE ", "-LEAVING" with no space, the typo "COLLISON", and 2026's local-time incident tag. Students writing their own parser will miss some; that is the lesson.
  • Gotcha — red flags in 2026: race control posts them as category-"Other" messages ("RED FLAG - RACE SUSPENDED") with no flag value. The book's data now normalise them: 14 red flags in 91 GPs for 2023–26, 4 of them in 2026.
  • Gotcha — column names: history.laps uses lap (not lap_number) and abbreviation.

Connections

  • Backward: Chapter 14 (hazard phases and neutralisations); Chapter 17 (lap-1 retirements); Chapter 29 (2026 power units); Chapter 34 (pit-lane offences); Chapter 35 (green passes, used for grid-drop recovery).
  • Forward: Chapter 38 (betting) needs DNF probabilities to price finishing markets, and the capstone, Chapter 40, samples retirements and penalties with reliability.py. Chapter 39 compares reliability across series.