Chapter 19 Exercises — Lap Time Analysis
Difficulty: ⭐ concepts · ⭐⭐ calculation or a short script · ⭐⭐⭐ multi-step analysis · ⭐⭐⭐⭐ open-ended project.
All data sessions are in the book's snapshot. Scripts referred to are in this chapter's code/ folder. Every
numeric answer given below comes from running those scripts.
Part A — Concepts ⭐
A1. Explain in two sentences why the official sector times are "ground truth" while telemetry mini-sector times are estimates. Name the physical device that produces each.
A2. What do the OpenF1 segment codes 2048, 2049, 2051 and 2064 mean? Why can't you compute a mini-sector time from them?
A3. A segment is purple on a driver's lap in Q1 and yellow on the same driver's faster lap in Q3. How can both be correct?
A4. Define the perfect-lap gap. Why is it never negative? Give two reasons, other than driver error, why it might be large.
A5. In a delta trace, what does a rising curve mean, and what does a curve that spikes and returns to its previous level within 100 m usually mean?
A6. Why do the deepest spikes of a delta trace tend to sit at the slowest corners? Answer with the equation $\delta t = \delta s / v$.
A7. Give the three conditions of the telemetry quality check used in this chapter, and say which one 2026 Suzuka's pole lap failed.
A8. "Norris won 15 of 25 mini-sectors at Suzuka 2025 and still lost pole." Explain why counting mini-sectors won is a poor measure of who was faster.
A9. Why must you check that the sector-line positions match before comparing sector times across two seasons at the same circuit?
A10. Name four channels a team's telemetry has that the free OpenF1 car data lacks, and for each say one lap-analysis question it would answer.
Part A answer sketches
- A1. Sector times come from timing loops in the track surface that detect each car's transponder at a fixed line, so they are measured. Telemetry mini-sector times depend on a distance integrated from about 3.7 Hz speed samples, so their boundaries are estimated, typically to within 2 m, and to within 5–6 m one time in ten.
- A2. Yellow (no improvement), green (personal best), purple (session best at that moment) and pit lane. They are statuses compared against running minimums, and OpenF1 publishes no segment durations.
- A3. Purple compares against the session best so far. Early in Q1 the bests are slow, so a moderate segment can be purple. In Q3, beating his own earlier lap is still only yellow if he is slower than that lap was in that segment.
- A4. Actual best minus the sum of best sectors. The best lap is itself one combination of sectors, so the sum of the minimums can't exceed it. Large gaps come from track evolution between runs, traffic, a tow on one run, tyre state, or an abandoned lap that still set a good early sector.
- A5. Rising means the compared lap is losing time there. A spike that returns within about 100 m is usually misalignment at a slow corner.
- A6. A fixed misplacement $\delta s$ costs $\delta s / v$ seconds, which is largest where $v$ is smallest.
- A7. No frozen stretch longer than 2 s, no sample gap longer than 1.5 s, and integrated distance within −3 %/+2 % of the official length. The 2026 Suzuka pole lap failed the first and third (frozen for 25.9 s by this rule, ratio 0.928; Chapter 2's stricter four-channel rule gives 24.7 s).
- A8. The count ignores size. The lap gap is the sum of the changes, and a few large pieces can outweigh many small ones.
- A9. Timing loops can be moved between seasons. If the lines aren't at the same place, the sectors cover different track.
- A10. For example: brake pressure (how hard and how progressively a driver brakes), steering angle (line and corrections), tyre temperatures (whether a lap was limited by the tyre window), and battery state of charge (whether a straight was energy-limited).
Part B — Calculations & Physics ⭐⭐
B1. Time per metre. How long does a car take to cover 50 m at 75 km/h, and at 320 km/h? What is the ratio?
Solution
75 km/h = 20.83 m/s, so 50 / 20.83 = 2.40 s. 320 km/h = 88.89 m/s, so 50 / 88.89 = 0.5625 s. The ratio is 4.27, the inverse ratio of the speeds. The slow 50 m costs over four times as long.
B2. The delta slope. A driver is 4 km/h slower than his rival for 150 m through a corner taken at 120 km/h. Estimate the time lost with $\Delta t \approx s\,\delta v / v^2$.
Solution
$\delta v$ = 4/3.6 = 1.111 m/s; $v$ = 120/3.6 = 33.33 m/s; $\Delta t \approx 150 \times 1.111 / 33.33^2 = 166.7 / 1111 \approx$ 0.150 s. Four km/h through one medium-speed corner is worth a tenth and a half.
B3. Alignment error. Integrated distance misplaces a car by 6 m. What fake delta does that produce at Mexico City's slowest corner (Hamilton's minimum 63.6 km/h in 2026 qualifying) and at 340 km/h on the main straight?
Solution
63.6 km/h = 17.67 m/s, so 6 / 17.67 = 0.340 s. 340 km/h = 94.44 m/s, so 6 / 94.44 = 0.064 s. The same 6 m is five times worse in the slow corner, which is why the case-study trace spikes to +0.292 s there.
B4. Uniform rescaling. At Suzuka 2025 Verstappen's lap integrates to 5,789 m and Norris's to 5,777 m. What scale factor does uniform rescaling apply to Norris's distance? By how many metres does it move his position at the first sector line (Norris's integrated distance 2,178 m)? Compare with Verstappen's 2,180 m.
Solution
Factor = 5,789 / 5,777 = 1.00208. 2,178 × 1.00208 = 2,182.5 m, so the point moves +4.5 m, to 2.5 m past Verstappen's line at 2,180 m. At about 290 km/h (80.6 m/s) that 2.5 m is about 0.031 s, of the same order as the measured 0.022 s difference between the uniform delta (−0.051 s) and the official S1 delta (−0.029 s) at that line. The gap isn't explained exactly, because the uniform trace also interpolates between samples.
B5. Theoretical best. Piastri's best sectors at Suzuka 2025 were 30.514, 39.197 and 17.205 s, and his best lap was 1:27.027. Compute his theoretical best and his perfect-lap gap. By how much does the theoretical best beat the pole time of 1:26.983?
Solution
30.514 + 39.197 + 17.205 = 86.916 s. Gap = 87.027 − 86.916 = 0.111 s. 86.983 − 86.916 = 0.067 s under pole.
B6. 🧪 Exit-speed model. Using $\Delta t \approx (s_e/2)\,\delta v/\bar v^2$, a driver's minimum speed at the Suzuka hairpin is 2.7 km/h lower and the mean exit speed is 117 km/h. Compute $\Delta t$ for an assumed exit length $s_e$ of 80 m, 100 m and 150 m. What does the spread tell you?
Solution
$\delta v$ = 0.75 m/s and $\bar v$ = 32.5 m/s, so $\bar v^2$ ≈ 1,056. The results are 40 × 0.75 / 1,056 = 0.028 s, 50 × 0.75 / 1,056 = 0.036 s and 75 × 0.75 / 1,056 = 0.053 s. The answer nearly doubles across plausible assumptions, so the model can say "a few hundredths" but not more. The measured hairpin segment was +0.056 s. (The chapter's 0.035 s uses $\bar v$ = 32.6 m/s.)
B7. Noise of a mini-sector. The median boundary error with sector anchoring is 0.024 s. Assuming independent boundary errors, what is the typical error of one mini-sector time? With 25 mini-sectors, the median Verstappen–Norris difference was 0.028 s. What is the signal-to-noise ratio?
Solution
$\sqrt{2} \times 0.024 = 0.034$ s. 0.028 / 0.034 = 0.82, which the script reports as 0.85 using the unrounded noise. A typical 232 m mini-sector difference between these two laps is smaller than its own noise.
B8. Speed band arithmetic. At Silverstone the 2026 pole lap lost 2.085 s over 4,188 m where the 2025 car was above 250 km/h, and 0.573 s over 490 m where it was below 150 km/h. Compute the loss per km in each band, and the share of the total 3.219 s that each band accounts for.
Solution
2.085 / 4.188 = 0.498 s/km, and 0.573 / 0.490 = 1.169 s/km. The shares are 2.085 / 3.219 = 64.8 % and 0.573 / 3.219 = 17.8 % (the medium band supplies the remaining 17.4 %).
B9. Composite bias. Suppose five laps are truly identical in a mini-sector and each telemetry estimate has an independent error with standard deviation 0.034 s. The expected minimum of five standard normal draws is about −1.16. What is the expected bias of the "best of five" in that mini-sector, and over 25 such mini-sectors?
Solution
−1.16 × 0.034 = −0.039 s per mini-sector, and 25 × −0.039 ≈ −0.99 s for the lap. That is the same order as the 0.889 s by which the Suzuka 2025 composite beat pole at $n$ = 25. Noise alone can produce most of that figure.
B10. Pole margin in metres. Pole at Mexico City 2026 was decided by 0.009 s. How far apart on the road would the two cars have been at the finish line, if they had started together, at Russell's speed-trap speed of 350 km/h? And at 76 km/h, Hamilton's minimum speed in corner 7?
Solution
350 km/h = 97.2 m/s, so 0.009 × 97.2 = 0.87 m. 76 km/h = 21.1 m/s, so 0.009 × 21.1 = 0.19 m. A pole margin is less than a car length wherever you measure it, and less than one telemetry sample anywhere on the lap.
Part C — Data & Code ⭐⭐–⭐⭐⭐
C1. Analyze this session ⭐⭐. 2025 Jeddah (Saudi Arabian GP) qualifying: Verstappen took pole by 0.010 s from
Piastri. Use laptime.sector_table() with deleted laps excluded. Expected shape of the output: one row per driver,
sorted by lap time. The chapter's pole-battle table (code/pole_battles_2023_2026.csv) gives Piastri's Q3 sector
deltas to Verstappen as +0.123, −0.071 and −0.042 s. Confirm these, and say in which sector Verstappen won pole.
Expected output
acronym s1 s2 s3 lap
VER 31.507 27.756 28.031 87.294
PIA 31.630 27.685 27.989 87.304
RUS 31.684 27.577 28.146 87.407
Piastri − Verstappen: S1 +0.123, S2 −0.071, S3 −0.042, lap +0.010 s. Verstappen won pole in Sector 1 alone and lost the other two. Note that Russell (P3) had the best S2 of the three, 27.577 s.
C2. Compare these drivers ⭐⭐. 2025 Suzuka qualifying, Leclerc against Hamilton (Ferrari teammates, P4 and P8).
Build the sector-anchored delta of Hamilton to Leclerc with laptime.delta_trace(), then the corner-segment table
with corner_cuts() and segment_deltas(), including the uniform version. Expected output: eight segments
summing to Hamilton's lap minus Leclerc's (87.610 − 87.299 = 0.311 s). Which segments are robust (same sign,
within 0.05 s)? Where did most of the 0.311 s go?
Expected output
With prominence 10 km/h on Leclerc's lap the toolkit finds seven speed minima, so the table has seven segments (Verstappen's lap had eight; the corner count depends on the reference lap):
segment start_m end_m delta_change_s uni min_kmh robust
1 0.0 1112.50 0.120 0.139 181.000 True
2 1112.5 1475.00 0.113 0.122 224.000 True
3 1475.0 2010.00 -0.055 -0.052 199.035 True
4 2010.0 2680.00 0.068 0.065 148.248 True
5 2680.0 3435.00 -0.066 -0.080 76.280 True
6 3435.0 4672.50 0.085 0.068 179.002 True
7 4672.5 5779.25 0.046 0.049 93.408 True
sum = 0.311 s
All seven segments are robust. Hamilton lost 0.233 s in the first two segments (the main straight, Turn 1 and the first half of the S Curves), and he won back time in only two places, the end of the S Curves (−0.055 s) and the hairpin segment (−0.066 s). The rest of the loss is spread over Degner, Spoon and the back straight, and the final chicane.
C3. Segment colours over a session ⭐⭐. Extend code/02_segment_codes.py to compute, for every 2025 dry
qualifying session, the share of purple segments on the pole lap and on P2's lap. Expected output: a table of 22
rows or so. Is the pole lap's purple share higher than P2's more often than not? Report the count with a Wilson
interval, and explain why the answer is not a measure of pace.
C4. The pole-on-paper list ⭐⭐. Load code/pole_on_paper_2023_2026.csv. For the 15 sessions in which the
theoretical-best leader wasn't the pole-sitter, find for each one the session segment (Q1, Q2 or Q3) of the
leader's best S1, S2 and S3. Hint: match the lap's start time against the qualifying-phase messages in race
control, or use the Q1/Q2/Q3 times in results. How many "poles on paper" rest on a sector from Q1 or Q2?
C5. Mini-sector count ⭐⭐⭐. Rerun the signal-versus-noise table in code/05_minisector_resolution.py for the
2026 Mexico City pole pair (Hamilton, Russell) with $n$ = 5, 10, 25 and 50. Expected output: four rows of median
|mini-sector delta| and the signal/noise ratio, using the 2026 anchored noise of 0.027 s. At what $n$ does the
ratio fall below 1? Compare with Suzuka.
C6. Build the strategy ⭐⭐⭐. You're a team analyst choosing which Q3 run to model for the next race.
Using laptime.theoretical_best() for every 2026 dry session, compute each driver's season median perfect-lap
gap. Expected output: about 22 rows. Which three drivers leave the least on the table? For the driver with the
largest median gap, would you plan a two-run Q3 (two attempts on fresh tyres) or one? Justify the choice from the
data, and state the limits of this reasoning.
C7. Predict the race ⭐⭐⭐. Ray wants to know whether qualifying sector strength predicts race pace. For the
2025 season, compute each team's median deficit in each sector (using sector_table per session), and correlate
the team's Sector 2 deficit with its race pace gap from metrics.race_pace(session, by="team"). Expected output:
a 10-row team table and one Spearman ρ with its n. Write two sentences on whether one season is enough to
conclude anything.
C8. Quality check sweep ⭐⭐. Run laptime.quality_check on the fastest lap of every driver (not only the top
10) in 2026 Suzuka and 2026 Shanghai qualifying. Expected output: two tables of about 22 rows with frozen_s,
max_gap_s, dist_ratio and ok. How many laps pass at each circuit? Compare with Case Study 2's top-10 numbers
(7 of 10 rejected at Suzuka, 3 at Shanghai).
Expected output
All 22 drivers have telemetry for both sessions. At 2026 Suzuka 5 of 22 fastest laps pass, and at 2026 Shanghai 9 of 22 pass. The rate of failure across the whole field is even higher than in the top 10, so both sessions are poor choices for any telemetry comparison. Use the official sectors there instead.
Part D — Strategy & Judgment ⭐⭐⭐
D1. Call the pit stop (qualifying edition). It's Suzuka 2025 Q3, and Norris has just set 1:26.995. Your driver, Piastri, is on his final lap. At the second sector line he is 0.158 s up on the pole lap's Sector 2, but he lost 0.238 s in Sector 1. Your radio is open for one sentence before Sector 3 (the back straight, 130R and the Casio Triangle). Using only the chapter's numbers, estimate what Piastri needs in Sector 3 to take pole from Norris's lap, and decide whether to say anything.
Reveal
After two sectors Piastri is +0.238 − 0.158 = +0.080 s on Verstappen's pole lap. Verstappen's lap didn't exist yet at that moment, though: Verstappen started his lap after Norris's and before Piastri's, so the target on Piastri's screen depends on the moment. Against Norris's 1:26.995, Piastri's first two sectors (30.625 + 39.197 = 69.822 s) need a Sector 3 under 17.173 s. His actual S3 was 17.205 s, the session's best, and he finished 1:27.027, 0.032 s short of Norris and 0.044 s short of Verstappen. A short "good S2, all in" is about all a radio call can add at that point. There's no strategic decision left to make, and the honest lesson is that the lap was lost in Sector 1.
D2. Design the setup. At Silverstone 2026 the pole lap lost 0.498 s/km at high speed and 1.17 s/km in slow corners against 2025. A team asks you whether to trade downforce for straight-line speed for the next high-speed circuit. List what the chapter's data can tell you, what it can't (energy state, aero mode, drag), and which single additional measurement from the free data you would collect first.
Reveal (one good answer)
The data show where the 2026 car is slower, and that its speed fades at full throttle on the straights (17 km/h of fade in 2025 against 58 km/h in 2026 at Silverstone, in the book's 2026-vs-2025 summary). They can't separate drag from energy limits, because there is no ERS channel and no aero-mode channel. They can't measure downforce either. The first measurement to collect is the same fade metric for the target circuit across several teams. If every car fades the same amount, the limit is energy, not drag, and trading downforce for top speed buys little. That conclusion is an inference, and it should be labelled as one.
D3. The broadcast graphic. A broadcaster wants a "where the pole was won" graphic for every qualifying session, built from telemetry mini-sectors. Draft three rules for the graphic, using the error budget, that would stop it showing noise. For example, set a minimum number of mini-sectors, a minimum delta to display, and a fallback to the official sectors.
Reveal (one good answer)
(1) Never show more than about 10 telemetry pieces per lap, since that is where signal and noise cross for close laps. (2) Don't show a piece's winner unless the difference exceeds 0.05 s and both alignments agree in sign. (3) When both laps don't pass the quality check, show only the official sectors and speed traps, with a note saying so.
D4. When to trust the trace. You are handed a delta trace from 2026 Suzuka qualifying (Antonelli's pole lap against Russell's). Both laps fail the quality check. Decide what, if anything, you can still say about where the 0.298 s gap came from, and from which data.
Reveal
Nothing from telemetry, because the frozen stretches make the delta fiction. The official sectors and speed traps are still valid, since they come from the timing loops, not the car feed. So you can state the sector split of the 0.298 s exactly, and the trap speeds, and you should say clearly that a within-sector breakdown isn't possible for this session.
Part M — Mixed / Interleaved ⭐⭐–⭐⭐⭐
M1 (with Chapter 16, qualifying strategy) ⭐⭐. The median session-best improvement from Q1 to Q3 in 2023–2026 is 0.826 s. Explain how track evolution of that size biases a theoretical best that mixes sectors from different segments. Then design a "same-segment theoretical best" (Q3 sectors only), and say what it would do to the "pole on paper" rate of 17.3 %.
M2 (with Chapter 10, the circuit) ⭐⭐. Chapter 10's circuit profiles report full-throttle share. The telemetry error budget was worst at Baku and Shanghai and best at Bahrain and Silverstone. Is the error related to the full-throttle share or to the minimum corner speed? State a hypothesis and the data you'd use to test it.
M3 (with Chapter 7, braking) ⭐⭐⭐. The Casio Triangle gain at Suzuka 2025 appears to happen under braking.
Use the toolkit's telemetry.braking_zones() on both laps to compare brake-on points and durations. Given the
sample spacing at 300 km/h (about 20 m), can you resolve a difference? Write the result as a claim with its
uncertainty.
M4 (with Chapter 2, the data pipeline) ⭐⭐. Chapter 2 built parse_deleted_laps. How many laps did race
control delete in 2025 Suzuka and 2026 Mexico City qualifying (2 and 12 in this chapter's runs)? Why does it
matter to exclude them from a theoretical best but not, for example, from a race-pace estimate?
M5 (with Chapter 21, driver comparison) ⭐⭐⭐. Chapter 21 uses the median teammate qualifying gap. For the 2025 McLaren pair, whose median gap was 0.035 % with a 13–10 head-to-head (book data summary), compute for each dry session which sector held the largest share of the teammate gap. Is the gap concentrated in one sector type, or spread over the lap?
Part E — Research & Extension ⭐⭐⭐⭐
E1. A probabilistic delta trace. Replace the single delta trace with a band. Use the measured boundary-error distribution (Case Study 2) to bootstrap the alignment: perturb the anchors and the integrated distance, recompute the delta many times, and plot the 5th–95th percentile band. Apply it to Anchor A. Which segments of Section 19.5 survive as clearly non-zero?
E2. Better distance from location. In qualifying sessions, OpenF1 also provides x/y location. Build a distance channel from the location path, smoothed, instead of from integrated speed, and repeat Case Study 2's error budget with it. Does it beat the speed integral? Where does it fail?
E3. Sector strengths over four seasons. Using only official sectors (2023–2026, no telemetry needed), build a model of each team's relative sector strength by circuit type, with uncertainty, and test whether "relatively strongest sector" is stable from one race to the next within a season. Report the answer honestly, even if "strength" turns out to be mostly noise.