54 min read

Saturday afternoon at Suzuka, 5 April 2025, the last minutes of Q3 of the Japanese Grand Prix. Lando Norris

Chapter 19 — Lap Time Analysis: Sectors, Mini-Sectors, and Finding Where Tenths Are Gained and Lost

Saturday afternoon at Suzuka, 5 April 2025, the last minutes of Q3 of the Japanese Grand Prix. Lando Norris starts his final lap in the McLaren at 07:06:21 UTC and crosses the line in 1:26.995. Max Verstappen's Red Bull starts its last lap 44 seconds behind him on the road and stops the clock at 1:26.983. Pole goes to Verstappen by 0.012 s, twelve thousandths of a second, on a lap of 5.807 km. At the 300 km/h or so the two cars were doing on the main straight, a car covers about one metre in twelve milliseconds.

The timing screen gives the pole margin as a single number, but the lap behind it was much messier. Here are the official timing-loop sectors of those two laps, from the book's data snapshot:

driver  lap      s1      s2      s3     lap_s  i1_kmh  i2_kmh  trap_kmh
VER      16  30.387  39.355  17.241    86.983     288     298       295
NOR      14  30.358  39.301  17.336    86.995     287     300       295
NOR − VER     -0.029  -0.054  +0.095    +0.012

Norris was faster than Verstappen through the first sector, and faster again through the second. When he crossed the second sector line, on the back straight after Spoon, he was 0.083 s up on the pole lap. He then lost 0.095 s in the final sector, which runs from the back straight through 130R and the Casio Triangle chicane to the line. He lost pole by less than half the margin he had built.

Kenji Mori, the sim racer in our study group, reacts the way most drivers would.

Kenji: So Norris had it and threw it away in the chicane. Classic. You brake too late, you miss the apex, you're slow on the exit.

Aisha: Or Verstappen was quicker through 130R. Or the tow was different on the back straight. The sector only tells us which kilometre.

Kenji: Then let's find the metre.

That is what this chapter does. We start with the official sectors, the coarse split the timing loops give everyone. Then we use the mini-sector colour codes that OpenF1 attaches to every lap, which most analysts ignore, and we test what they really mean. After that we add up a driver's best sectors into a theoretical best lap. Finally we build the most important chart in performance analysis, the delta trace: the running time gap between two laps, metre by metre, from car telemetry. We'll build it twice, find out why one version invents a quarter of a second that never happened, and then use the honest version on this Suzuka lap. This is the book's Anchor A, and Chapters 1, 9, 23 and 25 come back to it.

The data won't say "Norris braked late". What it can say is narrower and more useful: where the gap moved, by how much, how certain we can be about each piece, and which pieces are below what 3.7 samples per second can resolve.

🏎️ Fan Track: Read 19.1–19.3 for sectors, the purple/green/yellow codes and the "perfect lap", then the Suzuka story in 19.5 and the pole-battle study in 19.7. The code blocks are optional: every one is followed by what its output means.

🎮 Sim Racer Track: This is your chapter. The delta trace (19.4), the corner-by-corner breakdown and the throttle-application table (19.5) are the tools you already use in your league telemetry. The difference is that we now know exactly how much to trust them at 3.7 Hz (19.6).

📊 Analytics Track: Everything. The error budget in 19.6 and Case Study 2 are the parts most analysts skip. Pay attention to them, because they decide which of your charts are evidence and which are noise.


19.1 The anatomy of a lap time: sectors and speed traps

The physics: a lap time is an integral

A lap time is the time it takes to cover the lap's distance. If the car's speed at distance $s$ along the lap is $v(s)$, then each metre takes $1/v(s)$ seconds, and the lap time is the sum over all the metres:

$$T = \oint \frac{ds}{v(s)}$$

In plain English: the lap time adds up how long you spend on every metre of track, and you spend longest on the metres where you are slowest. A metre at 80 km/h (22.2 m/s) takes 0.045 s. The same metre at 300 km/h (83.3 m/s) takes 0.012 s. A slow corner is where lap time "lives": a few hundred metres at low speed cost as much time as a kilometre of straight.

Split the integral at two points on the track and you get three sectors:

$$T = \underbrace{\int_0^{s_1}\frac{ds}{v}}_{S_1} + \underbrace{\int_{s_1}^{s_2}\frac{ds}{v}}_{S_2} + \underbrace{\int_{s_2}^{L}\frac{ds}{v}}_{S_3}$$

📐 Definition: A sector is the stretch of track between two timing lines. F1 uses three per lap, and the official sector times come from timing loops buried in the track surface, which detect a transponder in each car. They are measured, not estimated. Sector boundaries are circuit-specific. Suzuka's "Sector 2" and Monza's "Sector 2" are different kinds of track.

The same loops also record speed traps. In OpenF1, i1_speed and i2_speed are speeds at two intermediate points, and st_speed is the speed trap, usually on the longest straight.

Our toolkit's laps table carries duration_sector_1, duration_sector_2 and duration_sector_3 for every lap. The chapter's module, boxbox.laptime, adds a sector_table() that picks each driver's fastest legal lap. "Legal" means we drop laps that race control deleted, which we find by parsing the DELETED messages with the parser built in Chapter 2:

s = f1data.session(2025, "Suzuka", "Q")
laps = f1data.laps(s)
deleted = laptime.deleted_lap_keys(s)                 # (car number, lap) pairs race control deleted
st = laptime.sector_table(laps, exclude=deleted)      # fastest legal lap per driver, S1-S3 and traps
st["d_s1"]                                            # deficit to the best S1 among those laps, and so on

Here are the top ten and the bottom of the field (from code/01_sector_anatomy.py):

 position acronym     team_ref  lap_number     s1     s2     s3    lap  d_s1  d_s2  d_s3
        1     VER     red_bull          16 30.387 39.355 17.241 86.983 0.029 0.158 0.036
        2     NOR      mclaren          14 30.358 39.301 17.336 86.995 0.000 0.104 0.131
        3     PIA      mclaren          17 30.625 39.197 17.205 87.027 0.267 0.000 0.000
        4     LEC      ferrari          17 30.535 39.352 17.412 87.299 0.177 0.155 0.207
        5     RUS     mercedes          13 30.376 39.599 17.343 87.318 0.018 0.402 0.138
        6     ANT     mercedes          17 30.669 39.503 17.383 87.555 0.311 0.306 0.178
        7     HAD           rb          17 30.663 39.471 17.435 87.569 0.305 0.274 0.230
        8     HAM      ferrari          14 30.699 39.454 17.457 87.610 0.341 0.257 0.252
        9     ALB     williams          19 30.604 39.612 17.399 87.615 0.246 0.415 0.194
       10     BEA         haas          14 30.669 39.639 17.403 87.711 0.311 0.442 0.198
 ...
       16     HUL       sauber           8 31.082 39.984 17.504 88.570 0.724 0.787 0.299
       20     STR aston_martin           2 31.034 40.483 17.754 89.271 0.676 1.286 0.549

Three different drivers own the three best sectors. Norris has the best first sector, and Piastri has the best second and third. The pole-sitter has none of them. Verstappen's lap is 0.029 s off the best S1, 0.158 s off the best S2 and 0.036 s off the best S3, and it is still the fastest lap. A pole lap doesn't have to win any sector outright. It has to lose the least in total.

Heatmap of sector deficits for all 20 drivers at Suzuka 2025 qualifying

📊 Figure (described): A 20 × 4 grid. The rows are drivers in qualifying order, the columns are Sector 1–3 and the whole lap, and each cell shows that driver's deficit to the session's best sector, shaded from white (0) to dark blue. The top three rows each have one or two white cells, but in different columns. The midfield is pale in Sector 3 and darker in Sector 2. The takeaway is that no driver owned all three sectors, and that Sector 2 (the longest, 45 % of the lap time) separates the field most.

The integrated telemetry tells us what each sector is physically. On Verstappen's lap the sector lines fall 2,180 m and 4,706 m from the timing line:

Sector lengths on VER's lap (integrated, total 5789 m vs official 5807 m):
  S1:   2180 m  30.387 s  (34.9 % of lap time)  mean speed 258.3 km/h
  S2:   2525 m  39.355 s  (45.2 % of lap time)  mean speed 231.0 km/h
  S3:   1084 m  17.241 s  (19.8 % of lap time)  mean speed 226.3 km/h

Sector 1 is the main straight, Turns 1–2 and the S Curves: fast and flowing, with a mean speed of 258 km/h. Sector 2 contains Degner, the hairpin and Spoon, with more slow corners. Sector 3 is the long back straight and 130R, then the Casio Triangle, a slow chicane, and the run to the line. The mean speeds look similar for S2 and S3, but S3 is one very slow corner bolted onto a very fast kilometre.

Decomposing the gap to pole

The second view puts each of the next nine drivers against the pole lap, sector by sector:

acronym  vs_pole_s1  vs_pole_s2  vs_pole_s3  vs_pole_lap
    NOR      -0.029      -0.054      +0.095       +0.012
    PIA      +0.238      -0.158      -0.036       +0.044
    LEC      +0.148      -0.003      +0.171       +0.316
    RUS      -0.011      +0.244      +0.102       +0.335
    ANT      +0.282      +0.148      +0.142       +0.572
Drivers faster than the pole lap in a sector: {'s1': ['NOR', 'RUS'], 's2': ['NOR', 'PIA', 'LEC'], 's3': ['PIA']}

Bar chart of P2 to P10's sector deltas against the pole lap

📊 Figure (described): For P2–P10, three bars per driver show the time against Verstappen's pole lap in Sectors 1, 2 and 3, and a black diamond marks the whole-lap gap. Norris has two bars below zero and one above. Piastri has a large positive S1 bar and two below zero. From Antonelli back, all three bars are positive and similar in size. The takeaway is that the front of the grid traded sectors, while the cars further back were slower everywhere.

Two patterns are worth naming. Piastri is the mirror image of Norris: he lost 0.238 s to the pole lap in Sector 1 and gained it almost all back in Sectors 2 and 3, ending 0.044 s down. Russell was faster than Verstappen in Sector 1 and then 0.244 s slower in Sector 2. That kind of split often points to a car or setup that is strong in one type of corner. It can also point to one mistake. A single lap can't tell those apart. Many laps can: Chapter 21 separates driver from car, and Chapter 24 tracks teams across a season.

The engineering, and the limits

Teams see far more than this. The timing system has more loops round the lap than the three sector lines (the mini-sector codes in the next section come from them), and every team logs its own car's data at far higher rates, with channels our feed doesn't carry (Chapter 23). We don't have those times. What the free data has is the three official sectors, three speed traps, the mini-sector colour codes (next section), and car telemetry at about 3.7 Hz with no position channel except in qualifying.

Two limits matter for everything that follows:

  1. Sector times are exact, but coarse. A 0.095 s loss over 1,084 m doesn't say whether it happened under braking for the chicane, at its apex, or at 300 km/h on the back straight.
  2. Sector boundaries are not chosen for analysis. They sit where the timing loops are. At Suzuka the S2/S3 line falls after Spoon, so "Sector 3" mixes the circuit's fastest corner (130R) with its slowest (the chicane).

🔄 Check your understanding 1. Using $T = \oint ds/v$, explain why 100 m of a hairpin can cost more lap time than 400 m of straight. 2. Verstappen took pole at Suzuka 2025 without the best time in any sector. How is that possible?

Answer

  1. Time per metre is $1/v$. At 80 km/h (22.2 m/s), 100 m takes 4.5 s; at 300 km/h (83.3 m/s), 400 m takes 4.8 s. A small percentage gain at low speed is a large absolute gain in time.
  2. The lap time is the sum of the three sectors. Each rival who beat him in one sector lost more somewhere else: Norris gained 0.083 s in S1+S2 and lost 0.095 s in S3; Piastri gained 0.194 s in S2+S3 but lost 0.238 s in S1.

19.2 Purple, green, yellow: the mini-sector codes in the timing data

What the codes are

Every OpenF1 lap carries three arrays, segments_sector_1, segments_sector_2 and segments_sector_3, with one integer per timing segment. These are the official mini-sectors that the TV timing graphic shows as coloured blocks. The OpenF1 documentation gives the code table:

code meaning (OpenF1 documentation)
2048 yellow: segment completed, no improvement
2049 green: personal best
2051 purple: overall (session) best
2064 pit lane
0 not available
2050, 2052, 2068 rare codes with no documented meaning

The codes are colours, not times. There is no mini-sector duration anywhere in the free data. All we know is whether a driver improved on himself, or on everyone, in that segment at the moment he crossed it.

📺 On the broadcast: When the graphic shows a driver "purple in the first two mini-sectors" on a qualifying lap, that is this array arriving live. It is genuinely useful on TV: a run of purples early in the lap tells you a big lap may be coming. But it is a status at that moment, so a purple at minute 3 of Q1 may be slower than a yellow at minute 10 of Q3.

How many segments, and how often each colour?

The number of segments varies by circuit. In 2025 qualifying (from code/02_segment_codes.py):

 round       circuit  s1  s2  s3  total
     3        suzuka   9  11   6     26
     8        monaco   6  10   5     21
    10    villeneuve   6   6   7     19
    13           spa   8  12   8     28
Total segments per lap: min 19, median 22, max 28

Across every 2023–2026 session, yellow dominates in races and green is common in qualifying:

 year kind  segments   2048  2049  2051  2064    0  null  rare  purple_pct  green_pct  yellow_pct
 2025    Q    161901  83401 59447  6754  9598 1683   963    55         4.2       36.7        51.5
 2025    R    602868 478723 93995  5661  3710  444 20328     7         0.9       15.6        79.4
 2026    Q    164041  84335 60839  6066  9091 1695  1922    93         3.7       37.1        51.4
 2026    R    573325 464073 80344  4467  4634  382 19403    22         0.8       14.0        80.9

That fits the documented meanings. In a race, tyre wear and fuel load make most laps slower than a driver's best, so most segments are yellow. In qualifying every run is an attempt to improve, so about one segment in three is green.

Testing what the colours mean

Can we check the documented meanings against something we do measure? Yes. The sector times are exact, so we can walk through each qualifying session in time order and label every sector a driver completes by what its time did: no improvement, a personal best, a session best so far, or the driver's first timed sector. If the documented meanings are right, those four groups should have very different colour mixes.

Segment colours by what the SECTOR time did (2023-2026 qualifying; mean share of the sector's coloured segments):
                                  purple  green  yellow  n_sectors
no improvement                       2.2   19.9    77.8      52200
personal best (not session best)     6.1   73.8    20.1      17141
session best so far                 25.7   62.2    11.9       2882
first timed sector                   6.9   91.8     1.2       5504

Stacked bars of segment colour shares by what the sector time did

📊 Figure (described): Four horizontal stacked bars, one per category of sector, each split into purple, green and yellow shares of its segments. "No improvement" is 78 % yellow; "personal best" is 74 % green; "session best so far" has the largest purple share (26 %); a driver's first timed sector is 92 % green. The colours follow the sector times closely, which confirms the documented meanings.

The colours behave as documented. The data also show something the code table doesn't say: a sector that improves is not all green, and a sector that doesn't improve is not all yellow. A driver can set a personal best sector while being slower than his best in some of its segments (20 % yellow), or go slower overall while improving one segment (20 % green). That mix is exactly why mini-sector colours are interesting. They locate an improvement within a sector.

What a pole lap looks like in colours

Strip of segment colours on the ten fastest legal laps at Suzuka 2025

📊 Figure (described): Ten rows, one per top-10 driver's fastest legal lap, and 26 coloured blocks per row (9 + 11 + 6 segments, separated at the sector lines). Verstappen's pole lap has 4 purple blocks, 14 green and 8 yellow. Norris has 5 purple, including two in a row near the end of Sector 3. Russell's lap has the most purple (7). A few rows have only 25 blocks because one segment code is missing. The takeaway is that the pole lap was mostly green and yellow, not purple.

acronym  purple  green  yellow  n_segments  purple_share
    VER       4     14       8          26          0.15
    NOR       5     15       6          26          0.19
    RUS       7     18       1          26          0.27
    BEA       0     18       7          25          0.00

Russell's lap, P5 and 0.335 s off pole, carries more purple than either front-row lap. That isn't a contradiction. His lap started at 06:58:05 UTC, nine minutes before the two front-row laps, and when he crossed those segments they were the best anyone had done so far. Later laps beat them, but the codes are frozen at the moment of crossing. Purple is a timestamped statement.

⚠️ Common pitfall: Ranking drivers by purple segments. Over the whole Suzuka session Verstappen collected 42 purples, Bearman 34 and Leclerc 33, while Norris (P2) had 27. A driver who runs more laps early, when the session bests are still soft, collects more purples. Use the colours to see where in a lap someone improved, never as a pace ranking.

🔍 Why this works: The colour codes are a comparison against two running minimums, the driver's own and the session's. A running minimum is easy to beat early and hard to beat late. So the share of purple in a session falls over time even if every car gets faster, which is why the "first timed sector" group is 92 % green and only 7 % purple.


19.3 The theoretical best lap

Add up a driver's best Sector 1, best Sector 2 and best Sector 3 from anywhere in the session, and you get his theoretical best, sometimes called the "perfect lap":

$$T_{\text{theo}} = \min_{\text{laps}} S_1 + \min_{\text{laps}} S_2 + \min_{\text{laps}} S_3 \le T_{\text{best}}$$

In plain English: if a driver had strung together his best moments in each sector on a single lap, this is the time he would have done. The gap $T_{\text{best}} - T_{\text{theo}}$ is never negative. It measures how much of his own speed he failed to put into one lap.

📐 Definition: Perfect-lap gap = actual best lap − theoretical best (best S1 + best S2 + best S3 over the driver's legal laps in the session). The ultimate lap of a session adds the best sector by anyone.

tb = laptime.theoretical_best(laps, exclude=deleted)   # per driver: best_s1..3, theoretical, actual, gap_s
ul = laptime.ultimate_lap(laps, exclude=deleted)       # field's best S1, S2, S3 and who set them

At Suzuka 2025 (from code/03_theoretical_best.py):

acronym  best_s1  best_s2  best_s3  theoretical  actual  gap_s
    VER   30.387   39.355   17.241       86.983  86.983  0.000
    NOR   30.358   39.301   17.307       86.966  86.995  0.029
    PIA   30.514   39.197   17.205       86.916  87.027  0.111
    LEC   30.535   39.352   17.292       87.179  87.299  0.120
    RUS   30.376   39.560   17.281       87.217  87.318  0.101
    HAM   30.506   39.454   17.406       87.366  87.610  0.244
Order by theoretical best (top 5): ['PIA', 'NOR', 'VER', 'LEC', 'RUS'] | order by actual (top 5): ['VER', 'NOR', 'PIA', 'LEC', 'RUS']
Drivers whose theoretical best beats the pole time 86.983: NOR (86.966), PIA (86.916)

Ultimate lap (best sector by anyone, legal laps):
    S1  30.358     NOR  lap 14
    S2  39.197     PIA  lap 17
    S3  17.205     PIA  lap 17
  sum 86.760 s vs pole 86.983 s -> 0.223 s

Dumbbell chart of actual vs theoretical best lap for the top 12 at Suzuka 2025

📊 Figure (described): For the top 12 drivers, a blue dot (theoretical best) joined by a grey bar to an orange diamond (actual best legal lap), with the gap printed alongside, and a dotted line at the pole time. Verstappen's two markers coincide (gap 0.000). Norris's and Piastri's blue dots sit left of the pole line. Hamilton has the longest bar, 0.244 s. The takeaway is that on paper Piastri, then Norris, had pole speed, but Verstappen was the one who put his best sectors into a single lap.

Verstappen's pole lap is his theoretical best: his best S1, S2 and S3 all came on lap 16. Piastri had the quickest theoretical lap in the session, 86.916 s, 0.067 s under pole, but his best S1 (30.514) and his best S2/S3 came on different laps. Hamilton left the most on the table among the top ten (0.244 s).

Across four seasons

The perfect-lap gap is small for the typical driver. Over every dry qualifying session from 2023 to 2026:

Dry qualifying sessions analysed: 81; driver-sessions: 1643
Perfect-lap gap (actual - theoretical), median by season:
  2023: n = 378, median 0.039 s, 95% CI 0.026-0.057
  2024: n = 396, median 0.045 s, 95% CI 0.038-0.054
  2025: n = 435, median 0.049 s, 95% CI 0.037-0.058
  2026: n = 434, median 0.046 s, 95% CI 0.035-0.057
  all: n = 1643, median 0.046 s (CI 0.039-0.052); share of driver-sessions with gap < 0.010 s: 34.9%; > 0.200 s: 8.8%

A typical driver leaves about five hundredths on the table (median 0.046 s). About a third of the time the best lap is the theoretical best (gap under 0.010 s: 34.9%). About one time in eleven (8.8%) the gap exceeds 0.2 s, usually because of an abandoned lap, a mistake in one sector, or traffic. Those numbers are only as good as the definition, which counts deleted laps out and checks that sectors add up. The deletion step is easy to get wrong: a race-control deletion message gives a lap number one higher than OpenF1's numbering of the same lap, so matching deletions by lap number throws out the wrong lap and keeps the deleted one. An earlier version of this script did exactly that and reported a median of 0.051 s (n = 1,647); matching on the deleted lap time, as boxbox.laptime.deleted_lap_keys now does, gives the figures above. Among drivers with at least 20 dry sessions (code/theoretical_best_2023_2026.csv), the smallest median gaps include Zhou (0.000 s, n = 38) and Verstappen (0.029 s, n = 81); Hülkenberg's 0.067 s (n = 81) is among the largest.

How often was the theoretical-best leader someone other than the pole-sitter?

Sessions where the best THEORETICAL lap belonged to someone other than the pole-sitter: 14/81 = 17.3% (Wilson 95% CI 10.6-26.9)
Sessions where at least one non-pole driver's theoretical best beat the pole time: 52/81 = 64.2% (53.3-73.8)

So in about one session in six (14 of 81), "pole on paper" belonged to someone else. The second figure, 64 %, looks dramatic, but it needs the pitfall below before you quote it.

⚠️ Common pitfall: Mixing Q2 and Q3 when you compare. The pole time is a Q3 time, but a theoretical best uses sectors from the whole session, Q1 and Q2 included. Track conditions change between segments, and they don't always improve. At the 2025 Hungarian GP, Leclerc took pole with a Q3 lap of 1:15.372, while Norris's best lap of the session was a 1:14.890 in Q2 (OpenF1 classification: Norris Q2 74.890, Q3 75.413). A "fastest lap" or "theoretical best" from the whole session can beat the pole time without anyone having been faster in Q3. Always say which segment a lap comes from.

🔄 Check your understanding 1. Piastri's Suzuka 2025 theoretical best (86.916) beats the pole time by 0.067 s. Does that mean he had the fastest car that day? 2. Why can the perfect-lap gap never be negative, while the gap between a driver's theoretical best and the pole time can be?

Answer

  1. No. It means his best sectors, from different laps, add up to less than the pole time. Track evolution between his laps, tyre state, a tow, or one exceptional sector can all produce that, and the gap is inside the spread we see between teammates on the same day. It is evidence that the McLaren had pole-level speed in parts of the lap, not that it was the fastest car.
  2. A driver's best lap is itself one combination of S1, S2 and S3, so the sum of his best S1, S2 and S3 can only be equal or smaller. The pole time belongs to someone else, so nothing stops another driver's theoretical best from being below it.

19.4 Building the delta trace

🧩 Productive struggle: Before reading on, design the method yourself. You have two laps of telemetry. Each is a table of timestamps, about four per second, with a speed (km/h), a throttle percentage, a brake on/off flag and a gear. There is no distance channel, and the two laps' timestamps don't line up: one car is sampled at 0.00, 0.24, 0.49 s… and the other at 0.11, 0.36, 0.58 s… How would you produce a curve showing how far ahead or behind one car is at every point of the lap? Write down (a) what you would use as the common x-axis, (b) how you would get it, and (c) the biggest thing that could go wrong. Then compare with what follows.

The idea

Comparing the two laps at the same time makes no sense, because after 30 s the two cars are in different places. We compare them at the same place. For every point $s$ along the lap we ask how long each car took to get there, and subtract:

$$\Delta(s) = t_{\text{cmp}}(s) - t_{\text{ref}}(s) = \int_0^s \left(\frac{1}{v_{\text{cmp}}(x)} - \frac{1}{v_{\text{ref}}(x)}\right)dx$$

In plain English: the delta at any point is the running total of "how much longer the compared car spent on each metre so far". It starts at zero on the timing line and ends at the lap-time difference. Where the curve rises, the compared car is losing time. Where it falls, it is gaining.

The slope of the delta is the useful part:

$$\frac{d\Delta}{ds} = \frac{1}{v_{\text{cmp}}} - \frac{1}{v_{\text{ref}}} \approx \frac{v_{\text{ref}} - v_{\text{cmp}}}{v^2}$$

The $v^2$ in the denominator makes speed differences matter far more at low speed. Two worked numbers:

  • 1 km/h (0.278 m/s) slower for 100 m at 300 km/h (83.3 m/s): $100 \times 0.278 / 83.3^2 =$ 0.004 s.
  • The same 1 km/h for 100 m at 80 km/h (22.2 m/s): $100 \times 0.278 / 22.2^2 =$ 0.056 s, fourteen times more.

That is the physics behind the old engineering saying that you win time in slow corners. It also tells us where the delta trace will be most fragile, as we're about to see.

The x-axis problem

The telemetry has no distance channel. The toolkit builds one by integrating speed over time (telemetry.lap_telemetry adds distance_m, a trapezoid sum of speed × time step). The integral drifts. On these two laps:

Samples on VER's lap: 325; median interval 0.240 s (~4.2 Hz); integrated distance VER 5789 m, NOR 5777 m (official 5807 m)

Verstappen's lap integrates to 18 m short of the official 5,807 m and Norris's to 30 m short. The two laps don't even agree with each other. If we plotted them raw, Norris would "arrive" at every corner about 0.2 % early, and Norris's distance scale would run 0.2 % short of Verstappen's, about 12 m by the end of the lap, and the delta would show differences that are really just differences between the two rulers.

The toolkit's default fix, telemetry.delta_time(ref, cmp, normalise=True), stretches the compared lap's distance by one factor so that both laps have the same length. We'll call this uniform rescaling. It makes the delta end at the right number, but it assumes the integration error is spread evenly round the lap. It isn't. A speed signal sampled every 0.24 s and reported in whole km/h under-reads or over-reads differently in a braking zone than on a straight.

There's a better anchor, and we already have it. The sector lines are fixed physical points, and we know the exact time each car crossed them: its official S1 time, and its S1 + S2 time. Where each lap's integrated distance stands at those two moments gives two points per lap that should coincide on the track. So we warp the compared lap's distance piecewise-linearly so its start line, both sector lines and finish line land on the reference lap's.

def align_on_sectors(ref, cmp, ref_sectors, cmp_sectors):
    """Warp cmp's integrated distance so its start, two sector lines and finish land on ref's."""
    kr = [0.0, *sector_line_distances(ref, *ref_sectors), float(ref.distance_m.iloc[-1])]
    kc = [0.0, *sector_line_distances(cmp, *cmp_sectors), float(cmp.distance_m.iloc[-1])]
    out = cmp.copy()
    out["distance_m"] = np.interp(cmp.distance_m, kc, kr)     # piecewise-linear warp between the knots
    return out

def sector_line_distances(tel, s1, s2):
    """Where (integrated metres) this lap crossed the sector lines, from its official sector times."""
    return (float(np.interp(s1, tel.time_s, tel.distance_m)),
            float(np.interp(s1 + s2, tel.time_s, tel.distance_m)))

np.interp(x, xp, fp) is linear interpolation: given the knots xp → fp, it maps every value of x. Here it maps each of Norris's integrated metres onto Verstappen's metre scale, with the four knots pinned. The chapter's laptime.delta_trace(ref, cmp, laps=laps, align="sectors") does this and then calls the toolkit's delta_time without further rescaling.

Sector-line distances: VER 2180 / 4706 m; NOR 2178 / 4698 m
Uniform rescale: min delta -0.258 s at 2900 m; sector-anchored: min -0.175 s at 2890 m, max +0.121 s at 770 m
Largest |uniform - anchored| = 0.092 s; final delta +0.012 s
  delta at sector line 1: anchored -0.029 s, uniform -0.051 s
  delta at sector line 2: anchored -0.083 s, uniform -0.109 s

The anchored trace reproduces the official sector deltas at the sector lines (−0.029 s and −0.083 s, the numbers in the hook) by construction. The uniform trace misses them by 0.022 s and 0.026 s. More importantly, look at the hairpin.

Two delta traces for the same pair of laps, uniform vs sector-anchored

📊 Figure (described): Norris's gap to Verstappen along the lap, computed two ways: orange with uniform rescaling, blue anchored at the official sector lines (dotted verticals). The two curves have the same shape and are 0.02–0.03 s apart for most of the lap, but at the hairpin (≈ 2,900 m) the orange curve plunges to −0.258 s and recovers within about 100 m. The blue curve dips to −0.175 s. The takeaway is that the deepest spike is mostly an alignment artefact.

Why a spike at the hairpin? The slope formula already told us. Misplacing a car by $\delta s$ metres along the track shifts its time by $\delta t = \delta s / v$. At the hairpin's 77 km/h (21.4 m/s), a 10 m misalignment (two samples at that speed) is 0.47 s of fake delta. At 300 km/h the same 10 m is 0.12 s. The two cars reach the hairpin a few metres apart on the integrated scale, the delta reads the gap at the "same" distance where the car is slowest, and a few metres turn into a quarter of a second. Then both cars accelerate away and the spike vanishes. Real time losses don't vanish like that. A tenth lost at the apex stays lost unless it is made up later, so a spike that undoes itself within 100 m is the signature of misalignment.

🔍 Why this works: Anchoring at the sector lines works because it replaces an estimated distance with a measured one at two points mid-lap. The timing loops know the exact moment each car passed a fixed point. Between the anchors the integration error still accumulates, but over 1–2.5 km instead of 5.8 km, so the worst misplacement shrinks. What anchoring cannot fix is sampling. Between two samples 0.24 s apart, a car at 77 km/h travels 5 m, and the interpolated time at any metre inside that gap is a guess.

⚠️ Common pitfall: Reading the deepest point of a delta trace as "where he won it". The deepest points usually sit at the slowest corners, which is exactly where alignment error is amplified most. Read the delta between corners, where the curve is flat and the car is fast, and judge a corner by how much the curve moved from the straight before it to the straight after it. That is what the corner-segment table in the next section does.

🔄 Check your understanding 1. The delta trace slope is $\approx (v_{\text{ref}} - v_{\text{cmp}})/v^2$. A driver is 3 km/h slower than his rival for 200 m at 150 km/h. Roughly how much time does he lose there? 2. Why does the sector-anchored delta equal the official sector deltas at the sector lines, while the uniform one does not?

Answer

  1. $\delta v$ = 3 km/h = 0.833 m/s; $v$ = 150 km/h = 41.7 m/s; $\Delta t \approx 200 \times 0.833 / 41.7^2 \approx$ 0.096 s, about a tenth.
  2. Anchoring maps each car's integrated distance at its S1 crossing time to the same point, so the time difference there is S1(cmp) − S1(ref), the official sector delta. Uniform rescaling only pins the start and the finish, so mid-lap the two cars' "same metre" can differ by several metres, which is worth hundredths of a second.

19.5 Anchor A: the Suzuka speed trace that shows where the tenths are

Choosing the pair

The book's Anchor A is the pole lap against P2 at Suzuka. Our data cover four Suzuka qualifying sessions, so we let a fixed rule choose: both laps must pass the telemetry quality check, pairs from different teams come first, and then the most recent season.

📐 Definition: The telemetry quality check (laptime.quality_check) rejects a lap if (a) speed and rpm repeat the identical value for more than 2 s while the car is moving, the signature of a stalled feed; (b) any gap between samples exceeds 1.5 s; or (c) the integrated distance is outside −3 %/+2 % of the official lap length.

 season  p1  p1_team  p1_lap                               p1_status  p2  p2_team  p2_lap                             p2_status  gap_s  usable  different_teams
   2023 VER red_bull  88.877                                      ok PIA  mclaren  89.458                                    ok  0.581    True             True
   2024 VER red_bull  88.197                                      ok PER red_bull  88.263                                    ok  0.066    True            False
   2025 VER red_bull  86.983                                      ok NOR  mclaren  86.995                                    ok  0.012    True             True
   2026 ANT mercedes  88.778 rejected (frozen 25.89 s, ratio 0.9278) RUS mercedes  89.076 rejected (frozen 3.4 s, ratio 0.9961)  0.298   False            False

The 2026 pole lap is a cautionary tale. On Antonelli's lap the feed repeats the same speed and rpm for 25.9 seconds by this check's rule, and his integrated distance comes out at 92.8 % of the lap. Chapter 2's definition of a frozen stretch is stricter (speed, rpm, throttle and gear all unchanged, boxbox.data.longest_frozen_run_s) and gives 24.7 s, the figure the book quotes for this lap. On either rule it is more than ten times the 2 s limit, and any delta trace built on it would be fiction. The rule picks 2025: Verstappen (Red Bull) vs Norris (McLaren), 0.012 s. The 2023 and 2024 laps also pass the check, but 2024 is a same-team pair (Verstappen and Pérez), and of the two different-team pairs, 2023 (a much larger 0.581 s) and 2025, the rule takes the more recent.

The trace

Speed traces and the sector-anchored delta for Verstappen and Norris, Suzuka 2025

📊 Figure (described): Top panel: speed against distance for Verstappen (solid blue) and Norris (dashed orange), with corner labels at the speed minima (T1-2, the S Curves, T9 Degner, T11 hairpin, Spoon, Casio) and dotted lines at the two sector lines. The traces almost overlap. Verstappen is a few km/h faster at the end of the main straight; Norris carries more speed through T1-2 and the S Curves. Bottom panel: Norris's gap to Verstappen. It rises to +0.12 s by Turn 1, falls below zero through the S Curves, dips at the hairpin, rises slightly through Spoon, then falls steadily to −0.13 s along the back straight before jumping back up through the Casio Triangle to end at +0.012 s. The takeaway is that a 0.012 s pole was built from swings ten times larger.

Read the bottom panel from left to right, and remember the pitfall: judge the flat stretches, not the spikes. Remember the noise floor too. A delta built on integrated distance cannot resolve differences much under about 0.05 s, or positions much under about 20 m: the sector-line test in 19.6 misplaces a line by a median 0.024 s and a 90th percentile of 0.077 s, and Chapter 7 reached the same threshold for braking points. Only changes larger than that are findings.

  1. Main straight to Turn 1 (0–1,040 m): Verstappen +0.067 s. The gap grows steadily on the straight, where the top panel shows Verstappen 3–5 km/h faster (325 vs 320 km/h at the top of the straight), and peaks at +0.121 s at 770 m, under braking for Turn 1.
  2. Turn 1 and the S Curves (1,040–2,000 m): Norris −0.101 s. Norris carries visibly more minimum speed through T1-2 (184.0 vs 178.4 km/h) and the S Curves, and the delta falls through the whole complex.
  3. Degner 2 and the hairpin (2,000–3,420 m): Verstappen +0.042 s net, inside the noise. Norris was 7 km/h faster at Degner 2's minimum, but the Degner segment moved only 0.014 s. At the hairpin Verstappen's minimum was 2.7 km/h higher, and the segment as a whole went Verstappen's way by 0.056 s, only just above the noise floor.
  4. Spoon and the back straight (3,420–4,660 m): Norris −0.085 s. The biggest single segment for Norris. The delta falls steadily all the way down the back straight, through what the anchored trace says is a long, steady gain at high speed.
  5. The Casio Triangle to the line (4,660–5,790 m): Verstappen +0.089 s. Norris arrives at the chicane 0.13 s up and leaves it level. The jump happens in about 150 m under braking and through the chicane.

The corner-segment table

To make this rigorous, cut the lap midway between consecutive speed minima, so each segment is one corner with its approach and exit. Measure how much the delta changed across each one. The changes add up exactly to the lap gap. We compute them with both alignments; where the two disagree by more than 0.05 s, the segment value is uncertain.

cn, cuts = laptime.corner_cuts(ref, prominence_kmh=10)    # speed minima and the midpoints between them
seg = laptime.segment_deltas(D, cuts)                     # change of the anchored delta across each segment
seg["uniform_s"] = laptime.segment_deltas(D0, cuts).delta_change_s
 segment                    corner  start_m    end_m  delta_change_s  uniform_s  robust
       1         T1–T2 First Curve    0.000 1040.000           0.067      0.055    True
       2 S Curves / Dunlop (T3–T7) 1040.000 1310.000          -0.036     -0.040    True
       3 S Curves / Dunlop (T3–T7) 1310.000 1470.000           0.007      0.004    True
       4 S Curves / Dunlop (T3–T7) 1470.000 1997.500          -0.072     -0.075    True
       5               T9 Degner 2 1997.500 2670.000          -0.014     -0.019    True
       6               T11 Hairpin 2670.000 3422.500           0.056      0.058    True
       7             T13–T14 Spoon 3422.500 4662.500          -0.085     -0.086    True
       8    T16–T17 Casio Triangle 4662.500 5789.422           0.089      0.115    True
Sum of segments = +0.012 s (= lap gap)

Bar chart of the time Norris lost to Verstappen in each corner segment, two alignments

📊 Figure (described): Eight pairs of horizontal bars, one pair per corner segment from T1-2 at the top to the Casio Triangle at the bottom. Blue is the anchored alignment and orange the uniform one. Positive bars (Norris lost time) at T1-2, the hairpin and the Casio Triangle; negative bars (Norris gained) at the S Curves, Degner 2 and Spoon. The two alignments agree in sign everywhere and within 0.026 s. The takeaway is that four segments went each way and almost cancelled.

Every segment is robust: the two alignments agree in sign and within 0.05 s, which the hairpin spike did not. The segment value smooths over the spike because it measures the delta at the cut points, which sit on faster track midway between corners. Robust is not the same as large, though. Segments 2, 3 and 5 (−0.036, +0.007 and −0.014 s) are smaller than the ~0.05 s an integrated-distance delta can resolve, so they are not findings on their own. What survives is the pattern of the large segments: the main straight and T1 (+0.067 s), the S Curves taken together (−0.101 s), Spoon and the back straight (−0.085 s) and the Casio Triangle (+0.089 s), with the hairpin (+0.056 s) on the edge.

The corner names come from the order and speed of the minima, checked on the track map. They are not a timing field. Segment 1 (the "First Curve") includes the whole main straight before it, so its +0.067 s mixes straight-line speed with the corner itself. The mini-sector view separates those.

Mini-sectors on the map

Splitting the lap into 25 equal pieces of 232 m gives finer resolution, at the cost of more noise (19.6 measures how much):

25 equal mini-sectors (232 m each): VER faster in 10, NOR in 15; largest single mini-sector swing 0.100 s (mini 24)

Suzuka track map coloured by who was faster in each of 25 mini-sectors

📊 Figure (described): The Suzuka figure-eight drawn from Verstappen's location data, each 232 m piece coloured blue (Verstappen faster, solid) or orange (Norris faster, dashed). Blue covers the main straight up to Turn 1, a stretch through Degner and the approach to the hairpin and its exit, and the Casio Triangle. Orange covers the S Curves, most of the run from Spoon down the back straight, and 130R. Norris was faster in 15 of 25 pieces and still lost. The takeaway is that a count of mini-sectors won says nothing about who wins the lap; the size of each one does.

The largest single mini-sector, number 24 (5,326–5,558 m), is the Casio Triangle itself: +0.100 s to Verstappen in 232 m. The three main-straight mini-sectors (1–3) are worth +0.095 s together. Norris's gains are spread thinner, about 0.01–0.06 s per mini-sector across the S Curves and the back straight. Almost every one of those is under the ~0.05 s noise floor on its own; they mean something only because they run in the same direction over long stretches of track, which the corner segments above capture better.

Minimum speeds and throttle: what the driver did

Kenji's instinct was to look for a braking or apex mistake. The data has two driver-level signals: the minimum speed in each corner, and where the throttle reaches full again.

Minimum speed near each corner (km/h; within ±60 m of the reference minimum):
                   corner  distance_m  min_VER  min_NOR  diff_kmh
        T1–T2 First Curve       845.0    178.4    184.0      -5.6
S Curves / Dunlop (T3–T7)      1235.0    229.0    233.0      -4.0
S Curves / Dunlop (T3–T7)      1385.0    225.2    228.0      -2.8
S Curves / Dunlop (T3–T7)      1555.0    199.0    205.2      -6.2
              T9 Degner 2      2440.0    141.9    149.0      -7.2
              T11 Hairpin      2900.0     77.0     74.3       2.7
            T13–T14 Spoon      3945.0    186.2    184.0       2.3
   T16–T17 Casio Triangle      5380.0     91.6     95.0      -3.4

Norris had the higher minimum speed in six of the eight corners. One of them is the Casio Triangle (3.4 km/h higher), where he lost 0.089 s. And he gained 0.085 s through the Spoon segment, where his minimum was lower. Minimum speed is one number from a whole corner. A higher apex speed bought with a later throttle, or a compromised exit, can cost more than it gains.

Full throttle (>= 98 %) after the slow corners: metres after the apex; earlier_by_m > 0 = VER earlier; spacing_m = distance between samples there
                   corner  apex_m  apex_kmh  ft_VER_m  ft_NOR_m  earlier_by_m  spacing_m  segment_delta_s
        T1–T2 First Curve   845.0     178.4      29.3      29.2          -0.1       13.4            0.067
S Curves / Dunlop (T3–T7)  1555.0     199.0      13.6      18.7           5.1       14.8           -0.072
              T9 Degner 2  2440.0     141.9      28.2      41.5          13.2        9.9           -0.014
              T11 Hairpin  2900.0      77.0      62.2      56.3          -5.9        7.2            0.056
            T13–T14 Spoon  3945.0     186.2      51.1      43.5          -7.6        8.6           -0.085
   T16–T17 Casio Triangle  5380.0     91.6      95.2      76.4         -18.7       10.8            0.089
Slow-corner segments sum: +0.041 s of the 0.012 s gap

At the Casio Triangle, Norris reached full throttle 19 m earlier than Verstappen after the apex, with samples about 11 m apart there. Yet Verstappen gained 0.089 s in that segment. The difference is about two sample spacings, but it sits just under the ~20 m that integrated-distance alignment can resolve, so treat it as suggestive rather than established. If it is real, it points the "wrong" way for the simple story "earlier on the throttle wins". The anchored delta puts most of the change on the way in: Norris's lead is −0.129 s at 5,245 m and +0.007 s at 5,365 m, just before the apex. At 5,265 m Norris's speed has already dropped to 284 km/h while Verstappen's is still 300, which is consistent with Norris braking a little earlier, by roughly one sample at 300 km/h (about 20 m). That is at the edge of what the data can resolve, and it is the slowest corner on the lap, where alignment error is largest. The segment total (+0.089 s anchored, +0.115 s uniform) is robust; its timing inside the corner is less so. Beyond that, our data can't say why. There is no brake-pressure channel (the brake is on/off), no steering and no tyre temperatures. A plausible reading is that Verstappen carried more speed into the braking zone or braked later, and Norris's higher minimum speed and earlier throttle didn't pay back what he lost on entry. That is a reading, not a measurement.

The other differences in the table are smaller still. Verstappen was 13 m earlier at Degner 2 (spacing 10 m), and the hairpin, Spoon and S-Curve differences are 5–8 m. All are below the ~20 m resolution and should not be quoted as findings.

🧪 Illustrative model: what is 2.7 km/h of hairpin minimum speed worth? Parameters are assumptions chosen to be plausible for a current F1 car, not team data. Suppose a deficit $\delta v$ at the apex shrinks linearly to zero over an exit of length $s_e$, at a mean speed $\bar v$. Integrating the slope formula gives $$\Delta t \approx \frac{s_e}{2}\,\frac{\delta v}{\bar v^2}.$$ From the data: $\delta v$ = 2.7 km/h = 0.75 m/s (Norris 74.3 vs Verstappen 77.0 km/h), and Verstappen's mean speed over the 100 m after the apex was 117 km/h (32.6 m/s). Assume $s_e$ = 100 m (🧪). Then $\Delta t \approx 50 \times 0.75 / 32.6^2 \approx$ 0.035 s. The measured hairpin segment was +0.056 s. The model says the apex-speed deficit can account for a large part of it, but not all; the approach and braking make up the rest. Change $s_e$ to 150 m and the estimate rises to 0.053 s: the assumption drives the answer, which is why it carries the 🧪 label.

Kenji: So the chicane was where he lost it. I was right.

Aisha: You were right about where, to within about 150 metres. You were guessing about why. And he was 0.13 s up when he got there, which he'd built on the back straight, so "threw it away" is half the story.

Kenji: In the sim I'd overlay brake pressure and steering and know in ten seconds.

Tom: Which is exactly what the teams have and we don't. We get speed, throttle and a brake light.

Ray: And twelve thousandths of a second. I've seen poles decided by less. 2024 Canada was a dead heat.

Ray is right. In the data, the 2024 Canadian GP pole margin is 0.000 s: Russell and Verstappen set identical Q3 times, and the classification puts Russell on pole.

🔄 Check your understanding 1. Norris won 15 of the 25 mini-sectors and still lost pole. Explain how, using the mini-sector numbers. 2. Why is "Norris reached full throttle 19 m earlier at the Casio Triangle" at best a borderline statement, while "Norris was on full throttle 8 m earlier at Spoon" is not a statement the data can support at all?

Answer

  1. The count ignores size. Verstappen's ten mini-sectors include the main straight (+0.095 s over minis 1–3) and the Casio Triangle (+0.100 s in mini 24); Norris's fifteen are mostly 0.01–0.06 s each. The lap gap is the sum of the changes, +0.012 s.
  2. A full-throttle point is located only to within about half the distance between samples, and the two laps' integrated distances can drift apart by more than that. At the Casio Triangle the samples were about 11 m apart, so 19 m is almost two spacings, but it is just under the ~20 m the alignment can resolve: suggestive, not established. At Spoon they were about 9 m apart, and an 8 m difference is less than one spacing, so it is not resolved at all.

19.6 Our own mini-sectors, and how far to trust them

Building them

The official segment codes give colours, not times. With telemetry we can make our own mini-sectors: split the lap into $n$ equal pieces of distance and read off how long each car took to cover each piece.

def minisector_times(tel, n=25, length_m=None):
    """Time spent in each of n equal-distance mini-sectors (s). Sums to the lap time by construction."""
    L = float(length_m if length_m is not None else tel.distance_m.iloc[-1])
    d = telemetry._mono(tel.distance_m.to_numpy(float) * (L / float(tel.distance_m.iloc[-1])))
    edges = np.linspace(0.0, L, n + 1)
    t_at = np.interp(edges, d, tel.time_s.to_numpy(float))      # time at each boundary
    return pd.DataFrame({"mini": np.arange(1, n + 1), "start_m": edges[:-1], "end_m": edges[1:],
                         "time_s": np.diff(t_at)})

telemetry._mono nudges repeated distance values apart so that np.interp gets a strictly increasing axis. compare_minisectors() puts several laps on one grid and finds the best of them in each piece. composite_best() stitches the best pieces into one imaginary lap, the telemetry version of the ultimate lap.

We ran it on the five fastest valid laps at Suzuka 2025, all anchored to Verstappen's sector lines. Russell's P5 lap fails the quality check because of a 2.48 s gap between samples, so Antonelli's P6 lap takes its place (output from code/05_minisector_resolution.py):

Suzuka 2025 qualifying, top-5 laps that pass the quality check: ['VER', 'NOR', 'PIA', 'LEC', 'ANT']
Mini-sector winners (of 25): {'NOR': 8, 'VER': 5, 'ANT': 5, 'PIA': 4, 'LEC': 3}
Composite best-of-five lap 86.094 s vs fastest actual 86.983 s -> 0.889 s
Same five laps, best OFFICIAL sector of the five summed: 86.760 s (0.223 s under pole)
Composite best-of-five vs number of telemetry mini-sectors (the more pieces, the more noise it harvests):
  n =   3: composite 86.766 s, 0.217 s under the pole lap
  n =   5: composite 86.655 s, 0.328 s under the pole lap
  n =  10: composite 86.025 s, 0.958 s under the pole lap
  n =  25: composite 86.094 s, 0.889 s under the pole lap
  n =  50: composite 85.412 s, 1.571 s under the pole lap
  n = 100: composite 85.325 s, 1.658 s under the pole lap

Heatmap of time lost to the best of five in each of 25 mini-sectors, Suzuka 2025

📊 Figure (described): Five rows (Verstappen, Norris, Piastri, Leclerc and Antonelli) and 25 columns, one per 232 m mini-sector. Each cell is shaded by the time that lap lost to the best of the five in that piece, and "best" marks the winner. The winners are spread across all five drivers, including Antonelli, whose lap was 0.572 s slower. Dark cells cluster in mini-sectors 4, 11, 17, 23 and 24, the slow corners. The takeaway is that a best-of-five lap stitched from 25 telemetry pieces comes out 0.889 s under pole, and most of that is noise.

Something is wrong with that 0.889 s, and the $n$ table shows what. With three mini-sectors the composite lap (86.766 s) agrees with the official best-sector sum of the same five laps (86.760 s) to within 0.006 s, which checks the method. As $n$ grows, the composite keeps getting faster, reaching 1.658 s under pole at $n = 100$. The cars didn't get faster. What we are doing is taking the minimum of noisy numbers.

🔍 Why this works (and why it fails here): Each telemetry mini-sector time is the true time plus an error that comes from misplacing its two boundaries. Take the minimum over five laps and you tend to pick whichever lap had a negative error in that piece, so each piece's minimum is biased low. Add up 25, or 100, of those biased minimums and the bias adds up too. That's why the composite gets faster as the pieces get shorter: the signal in each piece shrinks while the noise at each boundary stays the same. The official sectors don't have this problem, because timing loops have no positional error. A composite lap built from noisy pieces is an optimist's lap.

The error budget

How large is the boundary error? We can measure it, because the official sector lines give us a known truth. We took every dry 2025–2026 qualifying session with telemetry, the top-10 laps that pass the quality check, and the session's best valid lap as the reference. For each lap we predicted, from telemetry alone, the moment it crossed the reference lap's sector lines, and compared that with its official sector times. For the anchored method we mustn't cheat by anchoring at the line we're testing, so we anchor at the other sector line and leave the tested one out.

Error budget: 32 dry sessions, 564 sector-line predictions per method
                            n  median_abs_s  p90_abs_s  median_abs_m  p90_abs_m    median_ci
method
anchored (leave-one-out)  564         0.024      0.077         1.825      4.907  0.021-0.026
uniform                   564         0.029      0.090         2.154      5.904  0.026-0.032

By season (median |error|, s):
year                      2025  2026
anchored (leave-one-out) 0.021 0.027
uniform                  0.024 0.036

Histogram of telemetry sector-line timing errors, uniform vs anchored

📊 Figure (described): Two overlapping histograms of the absolute error, in seconds, when telemetry predicts an official sector-line crossing. Orange is uniform rescaling and blue is anchoring at the other sector line. Both pile up below 0.05 s, with a long tail out to 0.2–0.3 s. The blue distribution sits slightly further left: a median of 0.024 s against 0.029 s, and a 90th percentile of 0.077 s against 0.090 s. The takeaway is that integrated distance misplaces a timing line by two to three hundredths of a second; anchoring reduces the error but doesn't remove it.

The median error at each boundary is 0.024 s, and one prediction in ten is worse than 0.077 s. A mini-sector time has two boundaries. If their errors were independent, its error would be about $\sqrt{2} \times 0.024 \approx 0.034$ s. Now compare that noise with the signal, which is the typical difference between Verstappen and Norris in a single mini-sector:

Signal vs noise, VER vs NOR at Suzuka (noise = median boundary error 0.024 s for the anchored method):
  n =   5 ( 1158 m): median |mini-sector delta| 0.058 s; signal / (sqrt(2) x noise) = 1.74
  n =  10 (  579 m): median |mini-sector delta| 0.072 s; signal / (sqrt(2) x noise) = 2.16
  n =  25 (  232 m): median |mini-sector delta| 0.028 s; signal / (sqrt(2) x noise) = 0.85
  n =  50 (  116 m): median |mini-sector delta| 0.014 s; signal / (sqrt(2) x noise) = 0.41
  n = 100 (   58 m): median |mini-sector delta| 0.007 s; signal / (sqrt(2) x noise) = 0.21

For two laps this close, the typical mini-sector difference drops below the noise somewhere between 10 and 25 mini-sectors. That doesn't make the 25-piece map in 19.5 useless, for two reasons. First, its errors are correlated: each boundary is shared by two neighbouring pieces, so an error moves time from one piece to the next and the total stays right. Second, the large pieces, such as +0.100 s at the Casio Triangle, are well above the noise. It does mean the small pieces, at ±0.01–0.02 s, are coin flips, and that "won 15 of 25 mini-sectors" is not a statistic to quote.

⚠️ Common pitfall: Choosing the number of mini-sectors to make the chart look detailed. More pieces always look more informative, but past a certain point they are just noise with a legend. A working rule from this error budget: at our 3.7 Hz, a telemetry mini-sector difference of less than about 0.05 s between two laps is not evidence. A larger difference is, and so is a difference that turns up at the same place on several laps.

Case Study 2 breaks the error budget down by circuit and by speed, and the spread is wide. With the uniform method, the median error ranges from 0.013 s at Bahrain to 0.075 s at Baku, where the street circuit's long, slow sections give the integral more room to drift.

🔄 Check your understanding 1. Why does the composite best-of-five lap at $n = 3$ agree with the official best-sector sum, while at $n = 100$ it is more than a second and a half faster? 2. A colleague shows you a mini-sector map at $n = 50$ in which one driver "wins" a 116 m piece by 0.012 s. What do you tell them?

Answer

  1. At $n = 3$ the pieces are almost the official sectors. They are long, their boundaries sit close to the anchors, and the signal in each piece is large compared with the boundary error. At $n = 100$ each piece has a signal of a few thousandths of a second and noise of about 0.03 s, and taking the minimum over five laps in each piece adds up 100 small negative errors.
  2. That 0.012 s is about a third of the noise in a single telemetry mini-sector time (≈ 0.034 s). It isn't evidence of anything unless it repeats across several laps or agrees with the official sector deltas.

19.7 Where poles are won: every dry pole battle, 2023–2026

Is Suzuka 2025 unusual? Sector times don't need telemetry, so we can look at all four seasons. For every dry qualifying session we took the pole-sitter's and P2's Q3 laps, matched to the classified Q3 times, and split them into sectors (output from code/06_pole_battles.py):

Dry sessions with both Q3 laps matched: 81; skipped 10: {'wet': 9, 'no laps': 1}
Pole-sitter faster than P2 in all three sectors: 21/81 = 25.9% (95% CI 17.6-36.4)
Sectors won by the pole-sitter (count of sessions): {1: 17, 2: 43, 3: 21}
Median pole margin (P2 Q3 lap - pole lap): 0.141 s (CI 0.098-0.182)
Median sum of |sector deltas|: 0.286 s (CI 0.250-0.318); median ratio swing/margin 1.99
Margins under 0.05 s: 16 sessions; pole-sitter won all 3 sectors in 0 of them; median swing 0.247 s
Decisive sector (largest gain for the pole-sitter): {'S2': 36, 'S3': 24, 'S1': 21}

Scatter of pole margin against the sum of absolute sector deltas, 2023-2026

📊 Figure (described): Each point is one dry qualifying session from 2023 to 2026 (n = 81), coloured and shaped by season. The x-axis is the pole margin and the y-axis is the sum of the absolute sector deltas between the pole lap and P2's lap. Points on the dashed diagonal are sessions where the pole-sitter won every sector, and about a quarter of the points lie on it. The rest sit above it, especially at small margins, where sector swings of 0.2–0.6 s produce margins of a few hundredths. Suzuka 2025 is labelled near the origin. The takeaway is that a typical pole is the net result of sector swings about twice as large as the margin.

Only 26 % of dry poles (95 % CI 18–36 %) were faster than P2 in all three sectors. The usual pattern is two sectors out of three (43 of 81 sessions), and in 17 sessions the pole-sitter won only one. Of the 16 poles decided by less than 0.05 s, none won all three sectors. The median "swing", the sum of the sector deltas ignoring their sign, is 0.286 s, about twice the median margin.

The six closest battles show how common the Suzuka pattern is:

 year     circuit pole  p2  margin     d1     d2     d3  sectors_won_by_pole
 2024  villeneuve  RUS VER  +0.000 -0.136 +0.189 -0.053                    1
 2023 hungaroring  HAM VER  +0.003 -0.035 +0.159 -0.121                    1
 2026   rodriguez  HAM RUS  +0.009 +0.025 -0.022 +0.006                    2
 2025      jeddah  VER PIA  +0.010 +0.123 -0.071 -0.042                    1
 2026     madring  NOR ANT  +0.011 +0.089 +0.202 -0.280                    2
 2025      suzuka  VER NOR  +0.012 -0.029 -0.054 +0.095                    1

Here d1 to d3 are P2's sector time minus the pole-sitter's, so a positive value means the pole-sitter was faster in that sector. At the 2026 Spanish GP at Madring, Norris took pole by 0.011 s while losing 0.280 s to Antonelli in Sector 3.

Ray: So when the TV says "he nailed every corner", three times in four it isn't true.

Ines: Or it's true of the corners and not of the straights. A sector has both.

Ray: Fair. But I'd still back the man who wins two sectors over the man who wins one.

Ray is reasoning from a base rate, and the data support it only loosely. The pole-sitter won exactly one sector in 21 % of sessions (17 of 81). Winning a majority of sectors is common for pole-sitters, but it isn't required.

📋 Predict the race: You're setting a prior for 2026 Qatar GP qualifying, which isn't in the snapshot. In the data, P2 beat the pole lap in at least one sector in 60 of 81 dry sessions. Before Q3, what probability would you put on "the pole-sitter wins all three sectors"? What would make you raise it?

Reveal

The 2023–2026 base rate is 21/81 = 26 % (Wilson 95 % CI 18–36 %). Raise it when one car is clearly faster: on the chart, the poles won in all three sectors are mostly the ones with margins above about 0.2 s. Lower it when practice points to a close fight, since none of the 16 poles decided by less than 0.05 s won all three. By season the rate was 32 %, 35 %, 23 % and 15 % (2023 to 2026), but each of those intervals is wide (n ≈ 20 per season).


19.8 Same circuit, new rules: Silverstone, 2025 vs 2026

The same tools can answer a different kind of question: what changed between two seasons? The 2026 cars are slower over a lap at almost every circuit. The book's 2026-vs-2025 data summary puts the median pole time 2.097 s slower (+2.48 %, 95 % CI +1.85 to +3.78 %, n = 17 dry circuits). At Silverstone the difference is +3.219 s, one of the largest. Where on the lap does the time go?

Before comparing sectors across seasons, check that the timing lines haven't moved. If a timing loop had been relaid, "Sector 2" would be a different piece of track. Here the sector lines integrate to almost identical distances in both seasons:

2025: pole VER (red_bull) 1:24.892; sectors 27.493 / 33.973 / 23.426; traps i1 323 i2 273 st 323 km/h
      sector lines at 1809 m and 4238 m of 5823 m integrated; full throttle 77.6% of distance; top sampled speed 324 km/h
2026: pole ANT (mercedes) 1:28.111; sectors 28.348 / 35.521 / 24.242; traps i1 295 i2 268 st 302 km/h
      sector lines at 1808 m and 4239 m of 5825 m integrated; full throttle 77.2% of distance; top sampled speed 317 km/h

Sector-line positions differ by 1 m (S1) and 1 m (S2) between seasons
  S1: 2026 - 2025 = +0.855 s
  S2: 2026 - 2025 = +1.548 s
  S3: 2026 - 2025 = +0.816 s
  lap: +3.219 s

The 2026 lap loses time in all three sectors, and the most in Sector 2, the longest. The speed traps show it is much slower at the high-speed points: 295 against 323 km/h at the first intermediate, and 302 against 323 km/h at the speed trap. Yet the share of the lap spent at full throttle hardly changed (77.6 % against 77.2 %).

Speed traces and delta for the 2025 and 2026 Silverstone pole laps

📊 Figure (described): Top panel: speed against distance for Verstappen's 2025 pole lap (solid) and Antonelli's 2026 pole lap (dashed). Through the corners the two traces nearly coincide. On several straights the 2026 trace peaks and then falls while the 2025 trace keeps climbing or holds steady, for example from about 300 m to 800 m and from 3,000 m to 3,800 m. Bottom panel: the 2026 lap's deficit grows almost continuously from zero to +3.2 s, climbing most steeply on those straights. The takeaway is that the 2026 car lost time almost everywhere, and lost it fastest where its speed fell at full throttle.

Next, we classified every 5 m step of the delta by the 2025 car's speed at that point:

                                band  distance_m  share_of_lap  lost_s  lost_per_km
           slow corners (< 150 km/h)     490.000         0.084   0.573        1.170
       medium/fast corners (150-250)    1145.000         0.197   0.561        0.490
straights and flat-out kinks (> 250)    4187.821         0.719   2.085        0.498

Bar chart of time lost by speed band, Silverstone 2026 vs 2025

📊 Figure (described): Three horizontal bars show the time the 2026 pole lap lost in each speed band of the 2025 lap: 0.57 s in slow corners (0.49 km, 8 % of the lap), 0.56 s in medium and fast corners (1.15 km), and 2.08 s above 250 km/h (4.19 km, 72 % of the lap). Per kilometre the slow corners cost the most (1.17 s/km), but in total the high-speed running dominates. The takeaway is that two-thirds of the deficit was lost where the 2025 car was above 250 km/h.

Per kilometre, the slow corners cost the 2026 car the most, which is what the $1/v^2$ physics of 19.4 predicts. In total, two-thirds of the 3.2 s (2.085 s) went where the 2025 car was above 250 km/h, simply because that is 72 % of the lap. Corner minimum speeds barely moved. In five of the six corners the toolkit detects, the 2026 car was 2–4 km/h slower at the apex; the exception was 11 km/h slower (219 against 230 km/h). The high-speed band also includes Silverstone's fast corners, which the 2025 car took above 250 km/h, so "straights" here means "fast track", not only straight track.

The speed traces show the 2026 car losing speed while the throttle stays fully open. The book's 2026-vs-2025 data summary measures this signature, which is consistent with energy-limited running, often called "clipping". At Silverstone, the median of the top-five qualifying laps had a largest fade of 17 km/h in 2025 and 58 km/h in 2026, with 700 m against 1,540 m of full-throttle running at falling speed. OpenF1 has no battery channel, so this is an inference from speed and throttle, not a measurement of energy. The rule changes are documented in data/reference/regulations_2026.md: no MGU-H, a 350 kW MGU-K, active aerodynamics with a Straight Mode and a Corner Mode, and no DRS. Verstappen's 2025 lap ran with DRS open for 1,317 m, 23 % of the lap distance. The data can't share out the 3.2 s among these causes. A same-circuit comparison like this one tells you where the time went, but not why. Chapter 29 takes the question further.

🔄 Check your understanding 1. Why must you check the sector-line positions before comparing sector times from two seasons? 2. The slow-corner band cost 1.17 s/km but only 0.57 s in total. The high-speed band cost 0.50 s/km and 2.09 s in total. Which band is "where the 2026 car is weakest"?

Answer

  1. Sector times are only comparable if the sectors cover the same piece of track, and timing loops can be moved or relaid between seasons. Here the integrated distances of both lines agree to within 1 m, so the comparison holds.
  2. It depends on the question. Per metre, it is the slow corners. In lap time, it is the high-speed running, because there is so much of it. An engineer cares about both; a strategist cares only about the total.

19.9 Try it

📋 Analyze this session: 2026 Hungarian GP qualifying, where Norris took pole by 0.012 s from Hamilton. Before running anything, predict the answers to three questions: which sectors did each driver win, did Hamilton's theoretical best beat the pole time, and which corner segment moved the delta the most? Then use laptime.sector_table() and laptime.delta_trace() to check.

Reveal

From code/project_checkpoint.py: Norris's sectors were 27.364 / 27.621 / 22.222 and Hamilton's were 27.329 / 27.842 / 22.048. Hamilton won Sectors 1 and 3 and lost 0.221 s in Sector 2. Both drivers' best laps were their theoretical bests (gap 0.000 s), so Hamilton's theoretical best did not beat the pole time. The session's ultimate lap combines Hamilton's S1 and S3 with Norris's S2, for 76.998 s. Of the 10 corner segments, Hamilton lost time in 7 and gained in 3, and the largest move was 0.116 s in segment 9. The anchored and uniform deltas both end at +0.012 s.

📋 Compare these drivers: At Suzuka 2025 the Sauber teammates Hülkenberg (P16, 1:28.570) and Bortoleto (P17, 1:28.622) were 0.052 s apart. From the sector table in 19.1, Hülkenberg's sectors were 31.082 / 39.984 / 17.504 and Bortoleto's were 31.080 / 40.000 / 17.542. Predict the shape of Bortoleto's delta trace against Hülkenberg's, where it rises and where it falls, and then compute it with delta_trace(..., align="sectors"). Is any part of the 0.052 s gap outside the 0.05 s noise rule from 19.6?

Reveal

The official sectors fix three points on the trace: −0.002 s at the first sector line (level), +0.014 s at the second, and +0.052 s at the finish. Most of the gap (0.038 s) comes in Sector 3, through the chicane and the run to the line. Inside each sector the trace can wander, but no single sector delta here exceeds 0.05 s. The honest verdict is that Hülkenberg was a few hundredths better through the final sector and the rest is within noise. Note also that Bortoleto's theoretical best (88.516 s) was faster than Hülkenberg's actual lap: his best S1 (30.974) came on a different lap.


Spaced Review

From Chapter 16 (qualifying strategy). Before reading on, answer this: why does the session-best time usually improve from Q1 to Q3, and how would that bias a theoretical best built from sectors across the whole session? The track rubbers in, fuel loads are low, and teams save fresh tyres for the end. The book's data summary puts the median session-best improvement from Q1 to Q3 at 0.826 s over 81 dry sessions in 2023–2026. So a theoretical best usually draws its sectors from Q3. The Hungary 2025 pitfall in 19.3 is the exception, and it shows why you have to check: there, a Q2 lap was faster than pole.

From Chapter 10 (the circuit). Which kind of circuit should produce the largest telemetry alignment errors, and why? Decide before you look at Case Study 2. Low speeds turn every metre of misplacement into more time ($\delta t = \delta s / v$), and long laps give the integral more room to drift. With the uniform method, the median error was largest at Baku (0.075 s) and Shanghai (0.070 s) and smallest at Bahrain (0.013 s) and Silverstone (0.015 s).

From Chapter 2 (the data pipeline). What is distance_m in the toolkit's telemetry, and by how much does it run short? It is speed integrated over time, not a measured channel. On the 2025–2026 qualifying laps that passed the quality check, it runs a median 0.86 % short of the official lap length (ratio 0.9914, 5th–95th percentile 0.9843–0.9956). That drift is the reason this chapter anchors to the sector lines.


Project Checkpoint: laptime.py

Aisha: Box Box can simulate a race, but until now it couldn't tell me why one car is faster over a single lap. Today it gets a microscope.

The chapter's module, project/boxbox/laptime.py, has four layers that match the chapter's sections:

layer functions resolution error
official sectors sector_table, theoretical_best, ultimate_lap, deleted_lap_keys 3 per lap none (timing loops)
segment colours segment_colours, segment_summary, SEGMENT_CODES 19–28 per lap no times, only status
delta trace quality_check, sector_line_distances, align_on_sectors, delta_trace, corner_cuts, segment_deltas every 5 m ~0.02–0.03 s per point mid-lap
telemetry mini-sectors minisector_times, compare_minisectors, composite_best any $n$ grows relative to the signal as $n$ rises

The demo, code/project_checkpoint.py, runs every function on a session the chapter hasn't used: 2026 Hungarian GP qualifying.

ref, cmp_ = telemetry.fastest_lap_telemetry(s, "NOR"), telemetry.fastest_lap_telemetry(s, "HAM")
print(laptime.quality_check(ref, 4381.0))                  # Hungaroring 4.381 km (reference table)
D = laptime.delta_trace(ref, cmp_, laps=laps, align="sectors")
cn, cuts = laptime.corner_cuts(ref)
sg = laptime.segment_deltas(D, cuts)
for n in (3, 10, 25):
    print(n, laptime.composite_best(al, n=n)["composite_s"])   # al = both laps anchored to NOR's sector lines
quality_check(): NOR {'frozen_s': 0.0, 'max_gap_s': 1.16, 'dist_ratio': 0.9906, 'ok': True}  HAM {'frozen_s': 0.0, 'max_gap_s': 1.04, 'dist_ratio': 0.995, 'ok': True}
delta_trace(): HAM vs NOR ends at +0.012 s (sector-anchored) / +0.012 s (uniform); largest HAM deficit +0.208 s at 3405 m
corner_cuts() + segment_deltas(): 10 corner segments; HAM lost time in 7, gained in 3; biggest 0.116 s in segment 9
minisector_times(NOR, n=10): sum 77.207 s vs lap 77.207 s
composite_best(n=3): 77.059 s (0.148 s under the faster lap)
composite_best(n=10): 76.914 s (0.293 s under the faster lap)
composite_best(n=25): 76.600 s (0.607 s under the faster lap)

The composite numbers show the noise-harvesting effect from 19.6 on a new session. Even with only two laps, the "best of both" lap grows from 0.148 s under the faster lap at three pieces to 0.607 s under it at 25.

How it plugs in later. Chapter 23 builds telemetry_tools.py, with braking points and corner tables, on top of delta_trace and align_on_sectors. Chapter 25 turns the speed-and-delta chart and the mini-sector map into reusable chart functions. Chapter 26 can use theoretical_best as a measure of qualifying pace that is less noisy than a single lap. And the teammate ratings in Chapter 21 can ask whether a gap between teammates is spread over the lap or concentrated in one sector.

Aisha: First rule going into the docstring: never call composite_best with more than ten pieces without printing the error budget next to it.


Chapter Summary

Formulas and metrics

quantity formula / definition typical value (this chapter's data)
lap time $T = \oint ds/v(s)$ —
sector time official timing-loop time between two fixed lines exact to 0.001 s
perfect-lap gap actual best − (best S1 + best S2 + best S3) median 0.046 s, dry Q 2023–26 (n = 1,643)
delta trace $\Delta(s) = t_{\text{cmp}}(s) - t_{\text{ref}}(s)$; slope $\approx (v_{\text{ref}}-v_{\text{cmp}})/v^2$ ends at the lap-time gap
alignment error $\delta t = \delta s / v$ 10 m at 77 km/h = 0.47 s
telemetry sector-line error predicted − official crossing time median 0.024 s anchored, 0.029 s uniform (n = 564)
pole sector split sectors won by the pole-sitter against P2 all three in 26 % of dry poles (21/81)
segment codes 2048 yellow, 2049 green, 2051 purple, 2064 pit lane 19–28 segments per lap

Decision checklist for a lap comparison

  1. Use legal laps, with deleted laps removed, and say which qualifying segment each lap comes from.
  2. Start with the official sectors. They are exact, and they set the frame for everything else.
  3. Run the quality check on both laps' telemetry and reject frozen feeds. The 2026 Suzuka pole lap froze for 24.7 s (Chapter 2's rule; 25.9 s by quality_check's looser speed-and-rpm rule).
  4. Build the delta anchored at the sector lines, and compare it with the uniform version. Trust segments where the two agree, and distrust spikes at slow corners that undo themselves.
  5. Judge each corner by the segment total between corners, not by the deepest point of the trace.
  6. Treat telemetry mini-sector differences under about 0.05 s as noise unless they repeat across laps.
  7. Never stitch a composite lap from many noisy pieces, because the minimum of noisy numbers is biased low.
  8. Use segment colours to see where in a sector a driver improved, never as a pace ranking.
  9. Say what the data can't see: brake pressure, steering, tyre temperatures and energy state.

Key findings

  • Suzuka 2025: Verstappen 1:26.983 against Norris 1:26.995, a gap of 0.012 s. Norris was faster in S1 (by 0.029 s) and S2 (by 0.054 s) and lost 0.095 s in S3. Four corner segments went each way and summed to +0.012 s. The largest was +0.089 s to Verstappen at the Casio Triangle.
  • Across 81 dry poles from 2023 to 2026, the median margin was 0.141 s and the median sector swing 0.286 s. Only 26 % of pole-sitters won all three sectors.
  • Silverstone, 2026 against 2025: +3.219 s, of which 2.085 s was lost where the 2025 car was above 250 km/h.

What's Next

A single qualifying lap is the cleanest comparison F1 offers: low fuel, new tyres and no traffic. A race is the opposite. Chapter 20 takes lap-time analysis from one lap to sixty. It separates a car's true race pace from fuel burn, tyre age, traffic and dirty air, and that true race pace is the base pace Box Box's race simulator runs on.