Chapter 19 Instructor Notes — Lap Time Analysis
Chapter: Lap Time Analysis: Sectors, Mini-Sectors, and Finding Where Tenths Are Gained and Lost · Exercises · Quiz · Case Study 1 · Case Study 2 · Key Takeaways · Discussion guide
Chapter 19 opens Part III, Performance Analytics. It asks the question every broadcast graphic pretends to answer: where on the lap was the time gained or lost? Students start from the official sector times (the ground truth), learn what the purple/green/yellow segment codes do and do not mean, compute the theoretical best lap, and then build a delta trace from free telemetry, with an honest error budget. The worked example is Anchor A, Verstappen's 0.012 s pole over Norris at Suzuka in 2025. Students build the laptime.py module of Box Box.
Learning objectives
By the end of the session, students should be able to:
- Explain why a lap time is the integral $T = \oint ds/v$ and why slow metres cost the most time.
- Decompose a gap to pole into official sector deltas and speed-trap differences.
- Read the OpenF1 segment codes as colours (improvement markers), not times, and say why they cannot rank pace.
- Compute the theoretical best lap and the perfect-lap gap, and explain why the ultimate lap can beat pole without anyone being faster in Q3.
- Build a delta trace aligned at the official sector lines, and read its slope.
- State the telemetry error budget and decide which corner-by-corner differences are evidence.
- Run the telemetry quality check before plotting any lap.
Threshold concept
This chapter has no formal threshold concept. Its key idea for analysts is that a delta trace is a measurement with an error budget: alignment drift and a 3.7 Hz sampling rate mean that differences below about 0.05 s between telemetry mini-sectors are not evidence. Students who internalise this stop over-reading spikes.
Suggested 75-minute session plan
| Time | Segment | What happens |
|---|---|---|
| 0–8 min | Hook | Suzuka 2025 qualifying: Verstappen 1:26.983, Norris 1:26.995 — 0.012 s. Norris was 0.083 s up after two sectors. Ask: "Where did Verstappen win pole?" Collect guesses. |
| 8–25 min | Concept | The lap-time integral and sectors as ground truth (sector deltas NOR−VER −0.029 / −0.054 / +0.095). Segment codes as colours. The theoretical best: a median 0.046 s faster than a driver's best lap (n = 1,643). |
| 25–42 min | Live demo | Run code/04_anchor_a_suzuka.py. Show the delta trace two ways: uniform rescaling puts the low point at −0.258 s near 2,900 m; sector anchoring at −0.175 s. Then the corner-segment table: the largest swing is +0.089 s to Verstappen at the Casio Triangle. |
| 42–62 min | Activity | Pairs do B1 (time per metre) and B3 (alignment error) at the board, then A8: "Norris won 15 of 25 mini-sectors and still lost pole. Why?" |
| 62–75 min | Wrap-up | Close poles are traded, not dominated: only 26% of dry poles in 2023–2026 won all three sectors, and none of the 16 decided by under 0.05 s did. Exit ticket: "Name one thing a delta trace cannot tell you." |
Key numbers students should leave with
- Anchor A (Suzuka 2025 Q): Verstappen by 0.012 s; sectors NOR−VER −0.029 / −0.054 / +0.095 s; corner segments split four each way; largest +0.089 s to Verstappen at the Casio Triangle. Norris won 15 of 25 mini-sectors.
- Ultimate lap at Suzuka 2025: 86.760 s, 0.223 s under pole.
- Theoretical best: median perfect-lap gap 0.046 s (dry Q 2023–2026, n = 1,643); under 0.010 s in 34.9% of cases; theoretical leader differs from the pole-sitter in 14 of 81 sessions.
- Segment codes: 2048 yellow, 2049 green, 2051 purple (session best at that moment), 2064 pit lane; 19–28 segments per lap.
- Error budget: telemetry misplaces a sector line by a median 0.024 s (anchored) or 0.029 s (uniform); mini-sector noise ≈ 0.034 s. Treat differences under about 0.05 s as noise.
- Delta slope: 1 km/h over 100 m is worth 0.004 s at 300 km/h but 0.056 s at 80 km/h.
- Pole battles (n = 81): pole-sitter won all three sectors 25.9% of the time; median pole margin 0.141 s.
- Silverstone 2025 vs 2026: pole slower by 3.219 s; 2.085 s of it lost over 4,188 m above 250 km/h (0.50 s/km) and 0.573 s over 490 m below 150 km/h (1.17 s/km).
Common misconceptions and remedies
| Misconception | Remedy |
|---|---|
| "Purple means fastest lap." | Purple is the session best at that moment in that segment. A Q1 purple can be yellow on a faster Q3 lap (exercise A3). |
| "The deepest spike in the delta trace is where the pole was won." | Spikes concentrate at slow corners, where alignment errors are largest. Judge corners by segment totals cut at fast points. |
| "Count mini-sectors won to see who was better." | Counting ignores size. Sum the time; Norris won 15 of 25 and lost pole. |
| "Telemetry is exact." | 3.7 Hz sampling, integrated distance and frozen feeds. Run quality_check; the 2026 Suzuka pole lap is frozen for its last 24.7 s. |
| "The ultimate lap shows what the fastest car could do." | It mixes Q1/Q2 sectors with Q3 and harvests noise; a composite of many telemetry laps beats pole by more the more laps you add. |
| "One alignment method is enough." | Compare anchored and uniform; keep only segments with the same sign and within 0.05 s. |
Exercises to assign
- Core (everyone): Part A — A1, A3, A5, A6, A8; Part B — B1 (time per metre), B3 (alignment error), B5 (theoretical best), B7 (noise of a mini-sector).
- Code lab: Part C — C1 (2025 Jeddah qualifying, Verstappen's 0.010 s pole) and C2 (Leclerc vs Hamilton at Suzuka 2025).
- Judgment: Part D — D3 (the broadcast graphic) and D4 (when to trust the trace).
- Stretch: Part C — C5 (mini-sector count, signal vs noise) and C7 (does qualifying sector strength predict race pace?); Part E — E1 (a probabilistic delta trace).
- Interleaving: Part M — M1 (with Chapter 16) and M3 (the Casio Triangle and braking, with Chapter 7).
Lab tips
- All scripts run offline from the chapter folder. Outputs are saved as
code/*_output.txt, with CSVs alongside. - Run order:
05_minisector_resolution.pywritesminisector_error_budget.csv, whichcase_study_02.pyreads. Run 05 before case study 2. The other numbered scripts stand alone. - Best live demos:
04_anchor_a_suzuka.py(the full Anchor A story) and01_sector_anatomy.py(sector deltas, no telemetry needed). - Gotcha —
delta_tracedefaults: the defaultalign="sectors"needs thelapsargument. Passalign="uniform"if you only have telemetry. - Gotcha — frozen feeds: quality-check rejection of top-10 laps was 1.8% in 2025 but 6.5% in 2026; at 2026 Suzuka 7 of the top 10 laps were rejected. Use 2025 when demonstrating Suzuka.
- Gotcha — 2026 Monza: the classified pole lap (Gasly, 1:21.786) fails the quality check; do not use it for a trace.
- Gotcha — segment counts: some Suzuka laps carry 25 instead of 26 segment codes; code that assumes a fixed count will misalign.
- Remove race-control deletions with
deleted_lap_keysbefore computing any "fastest legal lap".
Connections
- Backward: Chapter 1 (the lap-time integral), Chapter 2 (frozen telemetry, deleted laps), Chapter 7 (location-based alignment for braking points), Chapter 16 (the perfect lap in qualifying).
- Forward: Chapter 20 moves from one lap to a race distance; Chapter 21 uses qualifying gaps to compare drivers; Chapter 23 reads the telemetry channels in depth.