54 min read

Silverstone, 5 July 2026. Andrea Kimi Antonelli starts the British Grand Prix from pole and leads the

Chapter 34 — Pit Stop Analytics: The 2-Second Ballet — Measuring Performance, Identifying Errors, and Optimizing the Fastest Operation in Sport

Silverstone, 5 July 2026. Andrea Kimi Antonelli starts the British Grand Prix from pole and leads the first 35 laps. On lap 35 he makes a routine stop, MEDIUM to HARD. The wheels are stationary for 2.4 seconds and the whole stop costs him 19.584 s against staying out. He rejoins second, behind Charles Leclerc, and stays there for six laps.

On lap 41 he comes in again, HARD to MEDIUM. This time the timing data read like a different sport:

 lap_number compound_in compound_out  flag  stop_s  pit_lane_s  rel_s  in_lap_s  out_lap_s  ref_lap_s  pit_loss_s  pos_before  pos_out  pos_after
         35      MEDIUM         HARD GREEN     2.4      28.948 -0.636    92.976    113.810    93.6010      19.584           1        2          2
         41        HARD       MEDIUM GREEN    15.3      41.215 11.631    97.116    137.782    92.7035      49.491           2        6          7
         43      MEDIUM       MEDIUM GREEN     7.5      33.650  4.066    99.872    121.316    93.5030      34.182           6       10         10

Fifteen point three seconds stationary. The race's median pit-lane time was 29.584 s, and this one was 11.631 s longer. The out-lap took 137.782 s. Second place at the end of lap 40 became sixth at the end of the out-lap. Two laps later the car was back in for a fresh set of the same compound, with 7.5 s stationary this time, and it left the pit lane tenth. Stops two and three together cost 83.673 s of pit loss. A single stop like his first costs 19.584 s, so the extra was 64.089 s.

A safety car late in the race bunched the field, and Antonelli crossed the line ninth. He was then classified fifteenth. Race control had issued a 5-second penalty for track limits on lap 47. In a field that the safety car had squeezed into about eight seconds, five seconds was worth six places: his race time of 5,239.340 s minus 5 s would have ranked ninth.

Running order of six front-runners at the 2026 British GP, laps 30–52, with in-laps marked and Antonelli's stationary times labelled.

📊 Figure (described): Positions at the end of each lap for Antonelli (thick teal line), Leclerc, Hamilton, Russell, Norris and Verstappen, with a dot on every in-lap and shading for safety-car and VSC laps. Antonelli holds second from lap 36 to lap 41. Then two dots, labelled 15.3 s and 7.5 s stationary, drop him to tenth by lap 44. The takeaway: two stops in three laps undid a race he had led.

Two bar panels for all 51 stops of the 2026 British GP: OpenF1 stationary time and pit-lane time relative to the race median.

📊 Figure (described): Every stop of the race, sorted by pit-lane time relative to the race median, in team colours. On the left is the stationary time, and on the right the pit-lane time minus the race median, with the +2 s slow-stop line dashed. Most stops sit within a second of the median. Fifteen are more than 2 s slow, by up to 16.7 s, including Antonelli's lap-41 stop at +11.6 s. Three of the fifteen were serving time penalties, and the stops labelled SC or VSC were made under neutralisations. The takeaway: the slow stops are rare, large and of several kinds, and the next sections separate them.

What happened in the box on lap 41? The data cannot tell you. Race control sent eight messages naming car 12 that afternoon, and none of them concerns the pit lane or a release. A wheel that would not come off, a gun that failed, a car held for traffic, a problem the team chose not to describe: every one of these is consistent with a 15.3 s stationary time, and the timing feed records only the clock. That is the first lesson of this chapter. A pit-stop analyst who says why a stop was slow without a source is guessing.

The second lesson is less obvious. Antonelli lost 64 seconds and finished fifteenth, and yet the season-long data say that most slow stops cost time, not places. The third lesson is the one teams pay for: the difference between the quickest crews and the slowest is not the typical stop, which is within a few tenths for almost everyone. It is the tail, the one stop in ten that goes wrong.

The fastest stop in Formula 1 history took 1.80 s (McLaren, Lando Norris, 2023 Qatar Grand Prix, per data/reference/records.csv). In this chapter we put that number next to 3,161 race stops from the OpenF1 timing archive and 12,441 from Jolpica going back to 2011. By the end you'll be able to measure a crew, rank crews honestly, price a slow stop and a double stack, read the stewards' pit-lane record, and give Box Box a stop-time model with a realistic tail.

🏎️ Fan Track: Read 34.1 (the three clocks), 34.2 (the record), 34.5 (what a slow stop costs) and 34.7 (double-stacking). The figures and their descriptions carry the story, and the code is optional.

📊 Analytics Track: The core is 34.3–34.6 and 34.9: pooling across circuits, separating crew error from penalties, shrinkage for small samples, and sampling stop times for a simulator. You'll extend all of them in the exercises.

🔧 Engineering Track: 34.1 has the pit-lane transit physics. 34.8 covers what race control records about releases, and 34.10 lists what no timing feed can see (wheel guns, blankets, crew procedures).


34.1 Three clocks: what "a pit stop" means in data

Watch any broadcast and you'll hear "a 2.3-second stop" and "the stop cost him 22 seconds" within a minute of each other. Both are right. They are measuring different things, and mixing them up is the most common error in pit-stop analysis.

📐 Definition: the three clocks. - Stationary time: from the car stopping in its box to the car moving again. This is the crew's number, and the one on the DHL graphic. - Pit-lane time: from the pit-entry timing line to the pit-exit timing line. It adds the drive through the lane at the speed limit, the braking into the box and the launch out of it. - Pit loss: what the stop costs against staying out. The toolkit's canonical green-flag pit loss (metrics.pit_loss) is (in-lap + out-lap) − 2 × the driver's median clean lap nearby. It adds the slow-down before the entry line and the cold-tyre out-lap, and it subtracts the stretch of track the pit lane bypasses.

Which clocks do we have? Every stop in our data has pit-lane time. Jolpica gives it for every race stop since 2011 (duration_s), and OpenF1 gives it for 2023 onward (pit_lane_s); the two agree to within 0.1 s on all 2,982 stops we can match. Pit loss we compute from lap times (Chapter 12 built it). Stationary time is the hard one. DHL publishes only the fastest stop of each race, to the hundredth (data/reference/dhl_pitstops.csv). OpenF1 added a stop_s field, rounded to 0.1 s, that covers 18.1% of race stops in 2024, 85.5% in 2025 and 71.1% in 2026, and nothing in 2023. So we have partial stationary times for three seasons and pit-lane times for sixteen. The question is how far the clock we always have can stand in for the one we usually don't.

The physics of the pit lane

A car crosses the pit-entry line already at the speed limit $v$ (80 km/h at most circuits per the reference table engineering_reference.csv; 60 km/h at Monaco). It drives a distance $D$ to the exit line, but somewhere in the middle it brakes to zero, waits $t_{\text{stat}}$, and accelerates back to $v$. If it braked at $a_b$ and accelerated at $a_a$, each phase takes $v/a$ seconds and covers $v^2/2a$ metres, so compared with cruising past the box at $v$ it loses half of each phase's duration:

$$t_{\text{lane}} = \frac{D}{v} + t_{\text{stat}} + \frac{v}{2a_b} + \frac{v}{2a_a}$$

In plain English, pit-lane time is the cruise time for the lane's length, plus the stationary time, plus a fixed manoeuvre penalty for stopping and starting. Only $t_{\text{stat}}$ belongs to the crew. $D$ and $v$ belong to the circuit, and the manoeuvre term is nearly the same for every car.

A worked number: at $v$ = 80 km/h = 22.22 m/s, and with braking and launch both at about 1 g, the manoeuvre costs $22.22/19.62 + 22.22/19.62 = 2.27$ s.

🧪 Illustrative model: the 1 g braking and launch figures are assumptions chosen to be plausible at pit-lane speed, not team data. They only set the size of the manoeuvre term.

We can then turn a measured transit time (pit-lane time minus stationary time) into an implied lane length. Script code/02_three_clocks.py does it:

Illustrative: at 80 km/h (22.22 m/s), stopping and launching at 1 g costs 2.27 s over cruising;
  spa          transit 20.89 s -> implied lane length (entry to exit line) ~ 414 m
  hungaroring  transit 19.15 s -> implied lane length (entry to exit line) ~ 375 m
  monza        transit 22.09 s -> implied lane length (entry to exit line) ~ 441 m
  zandvoort    transit 15.10 s -> implied lane length (entry to exit line) ~ 285 m

Treat these lengths as a sanity check, not as surveyed values. The point is the size of the terms. Twenty seconds of transit is set by tarmac and a speed limiter. The crew controls about three.

Does the stationary clock explain the pit-lane clock?

If the formula is right, then within one race every extra second stationary should appear as one extra second in the pit lane: the slope should be 1. To test it, we subtract each race's median from both clocks. This event-relative form removes $D/v$ and the manoeuvre term, which are the same for everyone at that race.

h = O[O.stop_s.notna() & (O.stop_s < 30) & O.tyre_change].copy()
h["stop_rel_s"] = h.stop_s - h.groupby("session_key").stop_s.transform("median")
h["lane_rel_s"] = h.pit_lane_s - h.groupby("session_key").pit_lane_s.transform("median")
for label, d in [("all", h), ("stationary under 6 s", h[h.stop_s < 6])]:
    m = sm.OLS(d.lane_rel_s, sm.add_constant(d.stop_rel_s)).fit(
        cov_type="cluster", cov_kwds={"groups": d.session_key})   # races are the clusters
Stops with both clocks (tyre change, stop_s < 30 s): 1369 in 51 races (2024: 144, 2025: 672, 2026: 553)
  all                    n = 1369: slope 1.006 [0.960, 1.053], intercept +0.031 s, R^2 0.929, residual SD 0.832 s
  stationary under 6 s   n = 1229: slope 0.997 [0.866, 1.128], intercept +0.035 s, R^2 0.536, residual SD 0.665 s

The slope is 1.006 over all stops and 0.997 over ordinary ones, and both intervals contain 1. A second lost stationary is a second lost in the pit lane. Over all stops the stationary clock explains 93% of the variation in event-relative pit-lane time. Among ordinary stops (under 6 s stationary) it explains 54%, with a residual of 0.67 s. That residual is the part of the pit lane the crew doesn't touch: the 0.1 s rounding of stop_s, how hard the driver brakes into the box, a car in the fast lane at release, and how cleanly the car crosses the lines.

Scatter of event-relative stationary time against event-relative pit-lane time, with a slope-1 reference line.

📊 Figure (described): Each dot is one 2024–2026 race stop, with both clocks measured relative to that race's median. The cloud follows the dashed slope-1 line from ordinary stops near zero out to stops 20 s and more slow. Near the origin the spread is about half a second either way, which is the noise the pit-lane clock adds. The takeaway: for anything bigger than about a second, pit-lane time relative to the race median is a faithful stand-in for the stationary clock.

🔍 Why this works: the race median cancels the circuit. Every car at a race drives the same lane at the same limit, so $D/v$ is a constant for that race. Subtracting the race median removes it, along with the typical manoeuvre and typical stationary time. What is left is the difference between this stop and an ordinary stop at the same place. That is why we can pool Monaco (60 km/h, a short lane) with Monza (80 km/h, a long one). The same trick runs through this whole chapter as rel_s, and it has one weakness. A race with few stops has a noisy median, so single-race rankings rest on very little.

Figure 4 puts the three clocks side by side for every circuit with enough stops.

               n_stat  stationary_s  transit_s  lane_s  n_loss  pit_loss_s  loss_minus_lane_s
spa                48          3.15     20.890  24.076      91      19.274             -4.802
monaco             59          2.70     21.846  24.525      69      20.668             -3.857
albert_park        44          2.80     16.062  19.218      42      20.906              1.687
silverstone        73          2.90     26.289  29.201      35      21.203             -7.998
zandvoort          67          2.90     15.103  18.043      76      21.805              3.762
monza              26          2.90     22.092  24.967      76      25.409              0.442
imola              37          2.70     27.617  30.317      37      28.164             -2.153

(A selection of rows. The full table is in code/02_output.txt.)

Horizontal stacked bars of median stationary and transit time per circuit, with a diamond for the median green-flag pit loss.

📊 Figure (described): For 24 circuits, the orange segment is the median stationary time (2.6–3.2 s everywhere) and the blue segment is the median transit through the lane. Together they make the pit-lane time. The black diamond is the median green-flag pit loss. Stationary time barely varies between circuits; the transit and the loss vary by more than 10 s. The diamond lands left of the bar's end at Silverstone and Spa, where the lane cuts off a slow part of the lap, and right of it at Zandvoort and Albert Park, where it doesn't.

Read the last column carefully. The pit loss is less than the pit-lane time at Silverstone (by 8.0 s) and Spa (4.8 s): the lane bypasses a stretch of track that would take a long time at racing speed. At Zandvoort and Albert Park the loss is more than the lane time, because the timing lines sit so that much of the slowing and accelerating happens outside them. The pooled green-flag pit loss over all circuits is the familiar 22.512 s (n = 1,921), against a median pit-lane time of 23.318 s for the same stops. The two numbers are close by coincidence. They measure different things.

Across all 1,369 stops with both clocks, the median transit time was 20.724 s and stationary time was 11.8% of the median pit-lane time. That share is what the crew controls.

⚠️ Common pitfall: the "23-second pit stop". No ordinary stop is 23 seconds stationary. A pit loss can be, and so can a pit lane. If a source says "a 23-second stop", decide which clock it means before you use the number. Then quote the right one for the circuit: green-flag pit loss runs from 19.274 s at Spa to 28.164 s at Imola (circuits with at least 20 stops, 2023–2026), and no universal value exists.

📺 On the broadcast: The stationary clock you see on screen after a stop is DHL's timing, the same source as our reference table. When the graphic says "2.1 s", the car still spent about 21 seconds in the lane on top of that, and the race lost about 22.5 seconds on an average circuit. When the commentator says "that slow stop cost him the place", check two things: how much slower than the race median the stop was, and how big the gap behind was. Section 34.5 shows that those two numbers decide it.

🔄 Check your understanding 1. At a circuit with a 60 km/h limit, which term of $t_{\text{lane}}$ grows, and which do not change? 2. Why do we regress event-relative pit-lane time on event-relative stationary time, rather than the raw values? 3. Silverstone's pit loss (21.2 s) is lower than its pit-lane time (29.2 s). What does that tell you about where the lane runs?

Answer

  1. $D/v$ grows, because cruising the same length at a lower $v$ takes longer. The manoeuvre term $v/2a$ shrinks slightly. Stationary time doesn't depend on the limit. 2. The raw pit-lane time is mostly the circuit's $D/v$. Pooling raw values across races would correlate lane length with whatever else differs by race. Subtracting the race median leaves only each stop's difference from an ordinary stop there. 3. The lane bypasses a part of the lap that takes much longer at racing speed than the pit lane does at the limiter, so a car "saves" lap time while it is in the lane.

34.2 The stationary clock: DHL, the record, and OpenF1's stop_s

The record, correctly attributed

The 1.80 s stop is McLaren's: Lando Norris, 2023 Qatar Grand Prix, lap 27, per Formula1.com as recorded in data/reference/records.csv. It is sometimes credited to Red Bull, which held the previous record. Here is the progression the reference file supports:

 year value            team         driver                                   race                                    source_name
 2023  1.80         McLaren   Lando Norris         2023 Qatar Grand Prix (lap 27)                                   Formula1.com
 2019  1.82 Red Bull Racing Max Verstappen              2019 Brazilian Grand Prix                                   Formula1.com
 2019  1.88 Red Bull Racing Max Verstappen    2019 German Grand Prix (Hockenheim)                                   Formula1.com
 2019  1.91 Red Bull Racing   Pierre Gasly  2019 British Grand Prix (Silverstone)                                        f1i.com
 2016  1.92        Williams   Felipe Massa        2016 European Grand Prix (Baku)                                 Motorsport.com
 2013 1.923 Red Bull Racing    Mark Webber 2013 United States Grand Prix (Austin)                                 Motorsport.com

(The DHL results-table duplicate of the 2023 row is dropped here.) Red Bull lowered the record three times in 2019. McLaren took 0.02 s off it in 2023, and nobody has beaten it since: the season-fastest stops were 1.90 s in 2024, 1.91 s in 2025 and 1.99 s in 2026 to Las Vegas.

What the DHL table can and cannot say

The DHL table has one row per race: the fastest stationary time of that race and the team that set it. It runs from 2017, with 215 rows for 213 races (two races had ties).

        races  fastest  median_race_fastest  slowest_race_fastest  under_2s
season
2017       20     2.02                 2.25                  2.62         0
2019       21     1.82                 2.07                  2.27         5
2020       17     1.86                 2.03                  2.43         7
2022       22     1.98                 2.28                  2.74         1
2023       22     1.80                 2.16                  2.35         3
2024       24     1.90                 2.09                  2.52         6
2025       24     1.91                 2.08                  2.32         4
2026       21     1.99                 2.17                  2.44         1

Dot plot of the fastest stationary time at each race, 2017–2026, with the seasonal median and the 1.80 s record line.

📊 Figure (described): Each dot is the fastest stop of one Grand Prix, and the black line is the median for the season. The median fell from 2.25 s (2017) to 2.03 s (2020), jumped to 2.28 s in 2022, and has sat between 2.08 and 2.17 s since. The dashed line at 1.80 s is touched by one dot, Qatar 2023. The takeaway: the best stop at a race is about 2.1 s, and that number hasn't improved since 2019.

Notice what this table cannot show. It is the fastest stop of 20 cars at each race, the extreme of a distribution. It says nothing about the typical stop, and nothing at all about slow ones. A team can lead the DHL count and still have the most slow stops. The race-fastest count does tell us who was quickest at the top end. Red Bull had the most race-fastest stops (jointly with Williams in 2019) every season from 2019 to 2024, Ferrari had 10 in 2025, and in 2026 Mercedes and Racing Bulls have 5 each with two rounds to run.

OpenF1's stop_s: a sample, not a measurement standard

From 2024 the OpenF1 pit table often carries a stationary time. Is it DHL's number? We compare the fastest OpenF1 stop_s at each race with DHL's fastest, in races where OpenF1 covers at least 90% of stops:

DHL vs OpenF1, races where OpenF1 has stop_s for >= 90% of stops: n = 36
  OpenF1 fastest - DHL fastest: median +0.00 s; within 0.1 s in 75% of races; range -0.28 to +0.21 s
  same team holds the fastest stop in both: 25 of 36
  largest disagreements:
 year          race  dhl_s     dhl_team  openf1_min_s openf1_team  diff_s
 2025         Qatar   2.08      McLaren           1.8     mclaren   -0.28
 2025     Las Vegas   1.99     Red Bull           2.2    mercedes    0.21
 2026     Australia   2.17     Mercedes           2.3    mercedes    0.13
 2026         Miami   2.08 Racing Bulls           2.2    mercedes    0.12
 2026 Great Britain   2.18     Mercedes           2.3        audi    0.12

They usually agree to a tenth, but not always. Qatar 2025 is the telling case. OpenF1 lists a McLaren stop at 1.8 s, which would equal the all-time record, while DHL's fastest stop at that race is 2.08 s. The two systems are measuring the same physical event with different rules, and OpenF1 also rounds to 0.1 s. In 11 of the 36 races they even disagree about which team had the fastest stop.

So here is the rule for this book. Quote DHL for records and race-fastest stops. Use OpenF1 stop_s for distributions within a season, and never mix the two in one comparison.

⚠️ Common pitfall: "a new record in the timing data". Sort OpenF1's stop_s ascending and you will find a 1.8 s McLaren stop at the 2025 Qatar Grand Prix. It is not a record-equalling stop. The official DHL figure for that race's fastest stop is 2.08 s. A record needs the official measurement.

With that caveat, OpenF1's sample is the only window we have on typical stationary times. In the crew sample (defined properly in 34.4: green flag, dry, a tyre change, no penalty pending):

  2025: n = 470, median 2.6 s, IQR 2.3-3.1, under 2.5 s 37.2%, over 4 s 8.9%
  2026: n = 285, median 2.9 s, IQR 2.5-3.6, under 2.5 s 18.6%, over 4 s 20.0%

Interquartile bars of OpenF1 stationary time by team, 2025 and 2026 side by side, with median markers.

📊 Figure (described): For each team, the paler bar spans the middle half of its 2025 stops and the darker bar its 2026 stops, with the median marked. In 2025 the medians run from 2.30 s (Ferrari, McLaren) to 3.00 s (Haas). In 2026 nearly every bar moves up and gets longer, from Ferrari's 2.50 s to Cadillac's 4.00 s. The takeaway: the typical 2026 stop is about 0.3 s slower than in 2025, and the spread widened more than the median moved.

Why would 2026 stops be slower? The data show the shift, not its cause. The 2026 cars and tyres are new (the reference file regulations_2026.md describes narrower tyres and other changes), and new hardware can mean new wheel-nut and jack procedures. That is a plausible reading. It is not a finding.

🔄 Check your understanding 1. Why can the DHL table never tell you which team has the most slow stops? 2. OpenF1 says 1.8 s and DHL says 2.08 s for the fastest stop at the 2025 Qatar GP. Which do you quote, and why? 3. The typical stationary time rose from 2.6 s (2025) to 2.9 s (2026). Give one reason that comparison might be biased, using what you know about OpenF1's coverage.

Answer

  1. It lists only each race's fastest stop, the minimum of the distribution, so the tail is invisible.
  2. DHL: it is the official measurement, it is reported to the hundredth, and OpenF1 values are rounded and come from a different system. 3. Coverage was 85.5% of race stops in 2025 and 71.1% in 2026. If the missing 2026 values aren't missing at random (for example, if some teams or stop types are covered less often), the two samples aren't like-for-like.

34.3 Sixteen seasons of pit-lane time

Stationary times cover three seasons. Pit-lane times cover sixteen. Jolpica holds every race stop from 2011 (sprint stops live in a separate table, sprint_pitstops, and are not used here). We keep stops with a pit-lane time of 60 s or less, because longer passages are repairs or cars waiting in the lane under a red flag. That leaves 12,441 stops in 330 races.

📐 Definition: event-relative pit-lane time and the slow stop. rel_s = the stop's pit-lane time − the median pit-lane time of all such stops at that race. A slow stop is one with rel_s > 2.0 s. Both definitions are the book's standard (boxbox.pitstops.jolpica_stops, openf1_stops). The 2-second line is a convention, chosen to sit well beyond the spread of an ordinary stop (34.4 shows that spread is about ±0.5 s).

from boxbox import pitstops as ps
J = ps.jolpica_stops()                      # race stops 2011-2026, pit lane <= 60 s, rel_s, slow
for y, g in J.groupby("year"):
    p, lo, hi = metrics.wilson_ci(int(g.slow.sum()), len(g))   # slow share with a Wilson interval
 year  races  stops  per_race  median_s   q25   q75  rel_p90  slow_pct  slow_lo  slow_hi
 2011     19   1113     58.58     22.37 21.15 24.50     3.35     16.17    14.13    18.45
 2014     19    791     41.63     24.22 22.86 25.86     2.24     11.38     9.35    13.78
 2017     20    675     33.75     23.58 21.94 25.84     5.72     19.70    16.88    22.87
 2018     21    536     25.52     23.65 22.10 25.70     3.86     12.13     9.63    15.16
 2021     21    688     32.76     23.65 21.62 26.96     5.09     20.64    17.78    23.82
 2022     22    752     34.18     23.69 21.86 25.59     2.60     11.97     9.84    14.48
 2023     22    808     36.73     23.67 21.91 25.92     4.89     15.47    13.14    18.13
 2024     24    770     32.08     23.29 21.92 26.61     2.73     11.69     9.61    14.15
 2025     24    821     34.21     23.12 21.19 24.79     4.88     16.44    14.07    19.13
 2026     21    766     36.48     24.07 22.08 27.73     4.24     16.58    14.11    19.38

(Selected seasons; all 16 are in code/03_output.txt.)

Two panels: the season median and IQR of pit-lane time 2011–2026, and the slow-stop share with Wilson intervals.

📊 Figure (described): The top panel shows the season's median pit-lane time with its interquartile band. It rose about 1.4 s between 2013 and 2014 and has stayed between 23.1 and 24.3 s since. The bottom panel shows the share of slow stops with 95% Wilson intervals. It moves between about 11% and 21% with no trend. The takeaway: the typical stop barely changes from year to year, while the slow-stop share jumps around, and some of that is penalties (34.4).

Three things stand out.

First, the volume of stops. In 2011 the field made 58.6 stops per race. By 2018 it was 25.5, and in 2026 it is 36.5. Stops per race track tyre strategy (Chapter 12), not crews.

Second, the 2014 step. The median rose from 22.87 s in 2013 to 24.22 s in 2014. We can see the step, but our data don't explain it. The circuits changed a little between those seasons, and the regulations changed a lot, but a lane-length or speed-limit change would need a source we don't have. That's why we work with event-relative time: within each race, any such change cancels.

Third, the slow-stop share is noisy. It was 19.70% in 2017, 12.13% in 2018 and 20.64% in 2021. These Jolpica shares include stops in which a time penalty was served and stops under safety cars, and Jolpica can't tell those apart. The 2023–2026 OpenF1 data can, and 34.4 does exactly that.

Who owns the pit lane?

Heat map of each team's median event-relative pit-lane time by season, 2011–2026, blue quicker, red slower.

📊 Figure (described): Rows are teams (Jolpica names, so a rebrand starts a new row), columns are seasons, and colours show the team's median stop relative to the race median. Blue is quicker and red is slower, saturating at ±1 s. Red Bull's row is blue or neutral in every season, darkest in 2011–2014 and 2020–2022. HRT, Virgin and Lotus Racing in 2011, Manor in 2015–16 and Cadillac in 2026 are the deepest red. The takeaway: the gap between the best and worst crews is about a second at the median. The ordering is remarkably stable, except for new teams.

Quickest team each season (event-relative median, >= 10 stops):
 year team_ref   n   med
 2011 red_bull 104 -0.79
 2015 mercedes  75 -0.66
 2016 williams  85 -0.59
 2022 red_bull  83 -0.61
 2023  ferrari  69 -0.47
 2024 red_bull  80 -0.38
 2025  ferrari  87 -0.20
 2026 mercedes  68 -0.49
Seasons topped, 2011-2026: {'red_bull': 9, 'mercedes': 4, 'ferrari': 2, 'williams': 1}

Red Bull had the quickest median stop in 9 of the 16 seasons. The margin at the top has also narrowed: the best team was 0.79 s quicker than the race median in 2011, but only 0.20 s quicker in 2025 (Ferrari) and 0.49 s in 2026 (Mercedes). The best crews are bunching together.

🧩 Productive struggle: is pit-crew speed a trait? Before reading on, decide how you'd test this. You have each team's median rel_s and its slow-stop share for every season. If crew performance is mostly skill (people, equipment, procedures), what should you see between season t and season t + 1? If it is mostly luck, what then? Which of the two measures do you expect to be more persistent, and why? Write down a prediction, including a rough correlation, before you look below.

Here is one way to test it. Follow each team across rebrands (Toro Rosso → AlphaTauri → RB is one lineage, using boxbox.data.team_lineage from Chapter 2). Pair each team's season with the next one, and compute the rank correlation. Then compare it with what a random shuffle of the pairs gives.

Pooled over 151 team-season pairs: Spearman 0.763; median of the 15 season pairs 0.636
Shuffled pairs (2,000 permutations): 95% of rho within [-0.159, 0.158]
Slow-stop share, pooled pairs: Spearman 0.252 (n = 151)

The answer splits in two. The median stop is a trait. A team's median stop this season predicts next season's with a rank correlation of 0.763, far outside the shuffle band of ±0.16. The slow-stop share is mostly not. Its year-to-year correlation is 0.252: real, but weak. A crew's ordinary stop reflects its people and kit, and those carry over. Its disasters come at a rate that is partly a trait and largely chance, so one season's count is a poor guide to the next.

That split shapes everything that follows. When you rank crews, rank them on the typical stop and treat slow-stop counts with suspicion. When you simulate, give each team its own typical stop and a slow-stop rate pulled toward the field's rate (34.6).

🔄 Check your understanding 1. Why does a rebrand (Toro Rosso to AlphaTauri, say) need special handling in the persistence test? 2. The best team's median advantage fell from −0.79 s (2011) to −0.20 s (2025). Give two different explanations that the data can't separate. 3. Why compare the observed correlation with a shuffle instead of with zero?

Answer

  1. Jolpica gives the renamed team a new team_ref, so without a lineage map the pair (2019 Toro Rosso, 2020 AlphaTauri) is lost, and with it the information that the same factory and much of the same crew carried over. 2. Either the best crews got relatively slower, or the rest of the field caught up (convergence). With only relative times we can't distinguish these. It is also possible that a tighter field of ordinary stops leaves less room above the median. 3. The shuffle gives the spread of correlations that chance alone produces with this many pairs, here about ±0.16. It tells you how big a correlation has to be before it means something.

34.4 Slow stops: how often, and whose fault

A slow stop in the timing data is not always a crew's slow stop. A car can sit stationary for 7 s because the crew is serving a 5-second penalty, or because a team-mate is in the box ahead of it. Before we count crew errors, we have to filter these out.

The OpenF1 data for 2023–2026 have everything we need to do that. We know the tyre compounds on the in-lap and out-lap, the track status, the rain flag and every race-control message. Here is the filter cascade, applied one step at a time:

s1 = O[O.tyre_change]                 # an actual stop, not a drive-through or a no-change passage
s2 = s1[~s1.wet]                      # dry tyres on both laps, no rain flag
s3 = s2[s2.flag == "GREEN"]           # no SC / VSC / red flag on the in- or out-lap
s4 = s3[s3.lap_number > 1]            # not a lap-1 stop (damage, first-lap chaos)
s5 = s4[s4.penalty_s == 0]            # no time penalty pending: the crew sample
Filter cascade:
  all stops                                  n =  3161  slow  476 =  15.1% [13.9, 16.3]
  + tyre change only                         n =  2874  slow  423 =  14.7% [13.5, 16.1]
  + dry                                      n =  2539  slow  342 =  13.5% [12.2, 14.9]
  + green in- and out-lap                    n =  1930  slow  226 =  11.7% [10.4, 13.2]
  + not lap 1                                n =  1912  slow  215 =  11.2% [9.9, 12.7]
  + no time penalty pending (crew sample)    n =  1852  slow  155 =   8.4% [7.2, 9.7]

The headline slow-stop rate falls from 15.1% to 8.4% once we remove stops the crew couldn't control. The biggest single step is the last one.

📐 Definition: the crew sample. OpenF1 race stops (2023+) with a tyre change, dry tyres on both laps, no SC/VSC/red flag on the in- or out-lap, an in-lap after lap 1, and no time penalty pending. A penalty counts as pending when race control issued a time penalty to that car earlier in the race and this is the car's first tyre-change stop after the message (boxbox.pitstops.crew_sample).

How do we know which stops served a penalty? Race control publishes every stewards' decision, such as "FIA STEWARDS: 5 SECOND TIME PENALTY FOR CAR 31 (OCO) - SPEEDING IN THE PIT LANE". A time penalty is served at the car's next stop, before the crew may work on the car. The module's penalties() parses these messages, and openf1_stops() attaches each one to the right stop:

Stops serving a time penalty: n = 85 (5 s: 52, 10 s: 31, 15 s+: 2); median rel_s 7.60 s; median (rel_s - penalty) +1.10 s; slow 99%
Slow stops in all stops that were penalty stops: 84 of 476

Of the 476 slow stops in the raw data, 84 (18%) were penalties being served. Notice the second number: once you subtract the penalty itself, these stops were still a median 1.10 s slower than an ordinary stop. Serving a penalty costs more than the penalty. The car waits out the seconds, the crew starts work when the stewards' time is up, and the stop that follows is a full stop.

The clearest example is the 2024 Mexico City Grand Prix. Race control gave Max Verstappen two 10-second penalties (on laps 13 and 19, per the race-control messages). He served both at his only stop:

2024 Mexico City GP, VER stops:
 lap_number  pit_lane_s  stop_s  rel_s  penalty_s  pos_before  pos_out
         26       43.73    24.0  21.04       20.0           3       15

The stationary clock reads 24.0 s. An analyst who ranks Red Bull's 2024 crew on raw stationary times counts that as the worst stop of their season. It wasn't a crew error at all.

⚠️ Common pitfall: treating every long stationary time as a crew error. Before you blame a crew, check three things: whether a time penalty was pending, whether the team-mate was in the box (34.7), and whether the stop happened under a safety car, when queues form. In our data penalty stops make up 18% of all raw slow stops, and they would dominate any "worst stops" list.

The shape of the tail

What does an ordinary crew-sample stop look like?

Crew sample, event-relative pit-lane time quantiles (s): P5 -0.90 P25 -0.40 P50 +0.00 P75 +0.45 P90 +1.60 P95 +4.18 P99 +12.05

The middle half of stops falls within −0.40 to +0.45 s of the race median, a band under a second wide. Then the distribution breaks. The 90th percentile is +1.60 s, the 95th is +4.18 s and the 99th is +12.05 s. That isn't a bell curve with a long tail. It is two processes: an ordinary stop with small noise, and a "something went wrong" stop that occasionally costs many seconds.

Histogram on a log scale of event-relative pit-lane time for the crew sample and for penalty-serving stops.

📊 Figure (described): Blue bars are the 1,852 crew-sample stops and orange bars the 85 penalty-serving stops, with a log-scale count axis. The blue distribution is a tall narrow peak at zero with a thin tail stretching past +30 s. The orange bars cluster from about +5 to +12 s, where 5 s and 10 s penalties plus a normal stop would put them. The red dashed line marks the +2 s slow-stop threshold. The takeaway: the crew's distribution is a sharp core and a long, sparse tail, and without a penalty filter the tail looks about twice as heavy as it is.

A model of this distribution needs two parts, and fit_stop_mixture provides them.

📐 Definition: the stop-time mixture. With probability $1 - p$ a stop is ordinary: $r \sim \mathcal{N}(\mu, \sigma)$, truncated at the threshold $c$ = 2 s. With probability $p$ it is slow: $r = c + E$, where $E \sim \text{Exponential}(\text{mean } m)$. Here $\mu$ and $\sigma$ come from the median and the MAD (median absolute deviation) of stops at or below $c$, $p$ is the share above $c$, and $m$ is their mean excess over $c$.

The expected stop is then

$$E[r] \approx (1-p)\,\mu + p\,(c + m)$$

In plain English, the expected stop is the ordinary stop, weighted by how often things go right, plus the threshold and the average overrun, weighted by how often they go wrong. For the 2023–2026 crew sample:

Mixture fit (crew sample, all teams): core median -0.079 s, core sigma 0.489 s, P(slow) 0.084, mean excess beyond +2 s 4.77 s
  quantile check (empirical vs mixture):
    P50: +0.00 vs -0.02
    P75: +0.45 vs +0.36
    P90: +1.60 vs +0.94
    P95: +4.18 vs +4.38
    P99: +12.05 vs +12.11
  mean: +0.538 vs +0.488; expected tail cost per stop p x E[excess] = 0.399 s

Worked number: $E[r] \approx 0.916 \times (-0.079) + 0.084 \times (2 + 4.77) = -0.072 + 0.569 = 0.496$ s, close to the simulated 0.488 s. The fit is good at the median, P95 and P99, and too low at P90 (+0.94 s against +1.60 s). Real stops between 1 and 2 s slow are more common than a normal core allows: these are "a little bit wrong" stops, such as a slightly sticky nut or a late release. The mixture is good enough to simulate with, and the empirical bootstrap in 34.9 avoids the problem altogether.

The headline: across the field, the tail costs 0.40 s per stop on average. The core contributes nothing on average, by construction. When teams talk about "consistency", that is the part they mean.

By season the crew-sample slow share was 7.1% (2023), 4.7% (2024), 12.1% (2025) and 10.8% (2026). 2025 and 2026 run more than twice the 2024 rate, a real change (the Wilson intervals, [3.2, 6.9] for 2024 and [9.4, 15.3] for 2025, don't overlap). The data don't say why.

🔄 Check your understanding 1. A stop serving a 5 s penalty has rel_s = +6.3 s. Roughly how much of that would you attribute to the crew, using this section's numbers? 2. Why use the median and MAD for the core of the mixture rather than the mean and standard deviation of all stops? 3. If a team halves its slow-stop rate but its slow stops get 50% longer, does its expected stop improve? Use $p \times m$.

Answer

  1. Subtract the penalty to get +1.3 s. The typical penalty stop runs +1.10 s beyond the penalty, so this one is about ordinary for a penalty stop. Little of it is a crew error. 2. The tail would inflate both the mean and the standard deviation. The median and MAD describe the ordinary stop without being dragged by a 15 s disaster. 3. Yes: $p \times m$ becomes $0.5p \times 1.5m = 0.75\,pm$, a 25% cut in the expected tail cost.

34.5 What a slow stop costs: time first, places sometimes

The cost in time is simple. Every extra second in the pit lane is an extra second on the race clock (34.1 showed the slope is 1). Pit loss adds nothing on top for a slow stop: the in-lap and the out-lap at racing speed don't care what happened in the box. A 4 s overrun costs 4 s.

The cost in places is what the broadcast talks about, and it is harder. A slow stop loses a place only if a car was close enough behind to slip through during the extra seconds. We can count those cars directly from the timing line.

📐 Definition: places lost to the delay. For a stop with rel_s > 0 on in-lap L, let T be the moment the pitting car crosses the line at the end of its out-lap (lap L + 1). The places lost are the number of cars on the same lap that crossed the line in the window [T − rel_s, T). With a median-length stop, the pitting car would have crossed rel_s earlier, ahead of all of them (boxbox.pitstops.places_lost_to_delay). This holds everyone else's race fixed, which is an approximation: some of those cars were pitting too.

P = ps.places_lost_to_delay(C)                       # C = the crew sample
P["delay_bin"] = pd.cut(P.rel_s, [-10, 0, 0.5, 1, 2, 3, 5, 10, 40])
P.groupby("delay_bin", observed=True).places_lost.agg(n="size", mean="mean",
                                                     p_any=lambda v: 100 * (v >= 1).mean())
                 n  mean  p_any  p_two
delay_bin
(-10.0, 0.0]  1013  0.00   0.00   0.00
(0.0, 0.5]     408  0.04   3.92   0.00
(0.5, 1.0]     161  0.10   9.94   0.00
(1.0, 2.0]     115  0.16  15.65   0.00
(2.0, 3.0]      35  0.49  34.29   8.57
(3.0, 5.0]      37  0.65  43.24  21.62
(5.0, 10.0]     55  0.69  45.45  14.55
(10.0, 40.0]    28  1.00  46.43  21.43
Through-origin slope: 0.075 places per second of delay (n = 839 stops slower than the median)
  front six before the stop : 0.220 places/s (n = 209)
  P7 and behind             : 0.061 places/s (n = 630)

Bars of mean places lost and a line of the share losing at least one place, by how slow the stop was.

📊 Figure (described): Stops are grouped by how much slower than the race median they were, from 0–0.5 s to 10–40 s. Blue bars show the mean number of places lost during the delay, and the orange line shows the share of stops that lost at least one. A stop under a second slow almost never costs a place (under 10%). Stops 3–10 s slow lose a place about 44% of the time. Even the 28 stops more than 10 s slow lost a place only 46% of the time, though when they did they often lost two.

This is the counter-intuitive result promised at the start. Most slow stops cost time and no places. On average, a second of delay is worth 0.075 places, or about one place per 13 seconds. The reason is that Formula 1 fields are spread out: in the middle of a race the gap to the car behind is often several seconds. The front six are different. There the rate is 0.220 places per second, about one place per 4.5 seconds, because the leading cars race in closer company. (The race-fixed-effects regression of position change on rel_s gives 0.139 places/s [0.066, 0.212]. Positions after a stop are noisy because everyone else is pitting too, but it points the same way.)

Antonelli's afternoon at Silverstone was the bad case: a car at the front, a delay of more than 11 s, then a second delay and a penalty. Most slow stops are not like that. A strategist uses this table the other way round. Before a stop you know the gap to the car behind. If that gap is less than your typical stop plus your tail risk, the risk of losing the place is the probability of a delay longer than the gap. For an ordinary crew, that is the share of stops slower than the gap. You can read it straight off the quantiles in 34.4 (P90 = +1.60 s), or better, off your own team's distribution (34.6).

📋 Try it — Analyze this session. Load the 2026 British GP with ps.openf1_stops(2026) and filter to that race. For each of the six stops with rel_s > 4 s, run places_lost_to_delay and compare the result with the change from pos_before to pos_out. For which stops do the two disagree, and why? (Hint: other cars pitting on the same lap move pos_out, but they don't enter the places-lost window.) Expected shape: a six-row table. Antonelli's lap-41 stop should show a large position change, and the backmarkers' long stops should lose almost nothing.

🔄 Check your understanding 1. Why does the places-lost count hold "everyone else's race fixed", and in what situation does that assumption break? 2. Front-runners lose 0.220 places per second of delay and the rest of the field 0.061. Give a reason based on the gaps. 3. You lead by 3.2 s and your crew's P90 delay is +1.6 s. Roughly how risky is the stop to your lead from the crew alone?

Answer

  1. It assumes the cars behind would have crossed the line at the same moments whatever your stop did. That breaks when your stop changes their decisions (they pit in response) or when they pit on the same lap. 2. Cars at the front race in closer company and are often separated by a second or two, so a few seconds of delay is more likely to let one through. 3. A delay of more than 3.2 s is above the crew sample's P90 and below its P95 (+4.18 s), so the risk is roughly 5–10% from the crew alone, before traffic or the other car's stop.

34.6 Consistency rankings: who is reliably quick?

Now we can rank crews properly. We use the crew sample, so penalties and neutralised stops are out, and we describe each team-season with four numbers:

  • the median rel_s: how quick the ordinary stop is;
  • the IQR width, the 75th minus the 25th percentile: how repeatable the ordinary stop is;
  • the P90: where the bad-but-not-disastrous stops sit;
  • the slow share with a Wilson interval: how often it goes wrong.

team_consistency ranks teams on the IQR and the slow share, and the mean of those two ranks is the consistency_rank. Here is 2026 to Las Vegas, and the top and bottom of 2023:

 year     team_ref  n  median_rel_s  iqr_s  p90_rel_s  slow_pct  slow_lo  slow_hi  consistency_rank
 2026      ferrari 29         -0.16   0.55       0.81      0.00     0.00    11.70               2.0
 2026     mercedes 26         -0.63   0.53       0.27      3.85     0.68    18.89               2.5
 2026           rb 32         -0.04   0.79       1.28      3.12     0.55    15.74               3.5
 2026       alpine 32         -0.03   0.73       1.72      6.25     1.73    20.15               4.0
 2026         haas 31          0.49   0.44       2.61     12.90     5.13    28.85               4.0
 2026     red_bull 30         -0.25   0.80       1.19      6.67     1.85    21.32               6.0
 2026 aston_martin 23         -0.02   0.80       2.02     13.04     4.54    32.13               7.5
 2026      mclaren 35         -0.10   0.87       2.69     11.43     4.54    25.95               7.5
 2026         audi 31          0.02   1.38       3.21     12.90     5.13    28.85               8.5
 2026     williams 37          0.00   0.83       5.58     13.51     5.91    27.98               9.0
 2026     cadillac 26          0.96   2.06       3.22     38.46    22.43    57.47              11.0
 2023      ferrari 47         -0.50   0.56       0.20      2.13     0.38    11.11               1.5
 2023      mclaren 55         -0.20   1.55       7.37     18.18    10.19    30.33              10.0

Read three things off this table.

Speed and reliability are related but different. Mercedes has the quickest 2026 median (−0.63 s) but ranks second on consistency, behind Ferrari, which has never crossed the slow line in 29 crew-sample stops. Haas has the tightest IQR in 2026 (0.44 s) but a slow median (+0.49 s): its ordinary stop is repeatable, just slower. Across all 41 team-seasons, the rank correlation between a team's median and its slow share is 0.419. Quick crews tend to be reliable crews, but not strongly.

The sample sizes are small. Twenty to fifty-odd crew-sample stops per team-season means wide intervals. Ferrari's 0 slow stops in 29 has a Wilson interval up to 11.7%, and Cadillac's 38.5% runs from 22.4% to 57.5%. Most of the middle of the table overlaps.

McLaren 2023 is an example. It had the worst consistency rank in the field that year, with an IQR of 1.55 s and 18.18% slow, but its median stop (−0.20 s) was quicker than the race median. The same crew set the all-time record at Qatar that October. A crew can be capable of the fastest stop in history and still have a bad-tail season. These are different measurements.

Scatter of each team-season's median event-relative stop against its slow-stop share, with Wilson intervals, 2023–2026.

📊 Figure (described): Each marker is one team-season, coloured by team with its shape giving the season. The x-axis is the median stop relative to the race median, and the y-axis is the slow share with its 95% Wilson interval as a grey line. The points drift up and to the right: slower medians come with more slow stops. Cadillac 2026 sits alone at top right. Most intervals overlap the 5–15% band. The takeaway: the extremes are real, but the middle of the field can't be ordered on slow stops from one season's data.

Shrinking small samples toward the field

A team with 0 slow stops in 29 hasn't shown it will never have one. When we feed a slow-stop rate to a simulator, we want our best estimate of next race's rate, not this season's raw count. The standard remedy is shrinkage: we pull each team's raw rate toward the field rate, and pull harder the fewer stops it rests on.

📐 Definition: shrunk slow-stop risk. With $k$ slow stops in $n$, a field rate $\bar p$ and a prior worth $n_0$ stops, $$\hat p = \frac{k + n_0\,\bar p}{n + n_0}.$$ In plain English, add $n_0$ imaginary stops at the field rate to the team's real ones. slow_stop_risk uses $n_0 = 40$, roughly one season of crew-sample stops.

Worked example: Ferrari 2026 has $k = 0$, $n = 29$, and the 2026 field rate is 10.8%. Then $\hat p = (0 + 40 \times 0.108)/(29 + 40) = 4.32/69 = 0.063$.

        team  n  slow  p_raw        ci  p_shrunk  mean_excess_s  tail_cost_s
     ferrari 29     0   0.00  0.0-11.7      6.29           0.00         0.00
          rb 32     1   3.12  0.6-15.7      7.41           1.28         0.09
    mercedes 26     1   3.85  0.7-18.9      8.09           9.63         0.78
    williams 37     5  13.51  5.9-28.0     12.13           7.64         0.93
    cadillac 26    10  38.46 22.4-57.5     21.72           1.11         0.24
Field rate 2026: 10.8%

(Selected rows; code/06_output.txt has all eleven teams.)

Shrinkage moves Ferrari from 0% to 6.3% and Cadillac from 38.5% to 21.7%. The ordering survives; the extremes soften. The last column, $\hat p \times$ mean excess, is the expected tail cost per stop, and it tells a different story from the slow share. Cadillac's slow stops are frequent but short (a mean excess of 1.11 s over the threshold). Williams's are less frequent but long (7.64 s). Per stop, Williams's tail costs 0.93 s and Cadillac's 0.24 s.

🔍 Why this works: noise, not skill, makes the extremes. Section 34.3 showed that a team's slow share in one season correlates only 0.252 with the next. A split-half test inside seasons shows the same thing. Rank teams on odd-numbered rounds against even-numbered rounds:

text year teams slow_share_rho median_rho 2023 10 0.57 0.92 2024 10 0.05 0.72 2025 10 -0.47 0.60 2026 11 0.50 0.45

The median stop ranks consistently (0.45 to 0.92). The slow share doesn't (−0.47 to 0.57). When a measure is this noisy, the most extreme raw values are mostly the luckiest and unluckiest teams, and pulling them toward the average predicts the next sample better. It is the same logic Chapter 21 uses for driver ratings (Chapter 21).

⚠️ Common pitfall: ranking crews on DHL points or a handful of slow stops. The DHL award rewards the ten fastest stops of each race. It says nothing about the tail, which is where the time is lost. A season's slow-stop count rests on a few events. Rank on the median and IQR, report the slow share with its interval, and shrink before you predict.

🔄 Check your understanding 1. Compute the shrunk risk for a team with 3 slow stops in 23, with a field rate of 10.8% and $n_0$ = 40. 2. Which would you rather have: Williams 2026's tail or Cadillac 2026's? Use the expected tail cost. 3. Why might the 2026 consistency table be less trustworthy than the 2025 one, even before shrinkage?

Answer

  1. $(3 + 40 \times 0.108)/(23 + 40) = (3 + 4.32)/63 = 0.116$, or 11.6% (the module gives 11.65% for Aston Martin with the unrounded field rate). 2. Cadillac's: 0.24 s per stop against Williams's 0.93 s. Williams's slow stops are rarer but far longer. 3. Fewer crew-sample stops per team (23–37), with two rounds still to run, so the intervals are wider.

34.7 Double-stacking: two cars, one box

When a safety car comes out, both cars of a team often want new tyres on the same lap. They share one pit box, so the second car must wait for the first to leave. This is a double stack.

📐 Definition: double stack. Team-mates whose in-lap is the same lap and who both change tyres. The order is the OpenF1 pit timestamp. second_extra_s is the second car's rel_s minus the first car's, and the team baseline is that team's median rel_s over non-stacked crew-sample stops in the same season (boxbox.pitstops.double_stacks).

Double stacks 2023-2026 (dry, no penalty on either stop): 146 pairs in 48 of 91 races
By flag on the stop laps: {'SC': 84, 'VSC': 34, 'GREEN': 28}
  all   n = 146: first car vs team baseline +0.05 [-0.06, +0.21] s; second car +0.62 [+0.36, +0.97] s; second car slow 27%; median pit-timestamp gap 12.9 s
  GREEN n =  28: first car vs team baseline +0.13 [-0.06, +0.30] s; second car +0.19 [-0.08, +0.72] s; second car slow 11%; median pit-timestamp gap 13.7 s
  SC    n =  84: first car vs team baseline +0.07 [-0.19, +0.22] s; second car +0.87 [+0.35, +1.51] s; second car slow 33%; median pit-timestamp gap 12.1 s
  VSC   n =  34: first car vs team baseline -0.02 [-0.22, +0.41] s; second car +0.79 [+0.32, +1.93] s; second car slow 26%; median pit-timestamp gap 14.1 s

Double stacks are a neutralisation phenomenon. Of the 146 pairs, 84 came under a safety car, 34 under a VSC and only 28 under green flags. That makes sense. Under a safety car the pit loss shrinks to about 12.7 s (the near-field value measured in Chapter 14), so stopping both cars is cheap, and the field is bunched, so the second car loses little by waiting. Under green flags a team usually splits its stops to cover two strategies, or to avoid exactly this queue.

The cost to the second car is real but modest on average: +0.62 s [+0.36, +0.97] against the team's normal stop. The median hides the shape, though. About a quarter of second cars (27%) have a slow stop, and the cost depends on how closely the second car follows the first:

Second car's extra over the first, by pit-timestamp gap:
            n  median   slow
gap_bin
(4, 8]     39    1.67  41.03
(8, 15]    38    0.22  15.79
(15, 30]   33    0.12  12.12
(30, 200]  27    0.16  22.22

When the two cars arrive 4–8 s apart, the second car pays a median 1.67 s, and two in five of them have a slow stop. That is the queue: the first car is still on the jacks when the second arrives. With more than 8 s between them, the crew has largely reset and the cost shrinks to a few tenths. No pair in this sample arrived less than 4 s apart, so the table says nothing about true nose-to-tail stacks; and OpenF1 doesn't document exactly what its pit timestamp marks, so read the gap bins as approximate.

Scatter of the second car's extra pit-lane time against the gap between the two cars' pit timestamps, by flag.

📊 Figure (described): Each marker is one same-lap team-mate pair: circles under SC, squares under VSC and diamonds under green. The x-axis is the time between the two cars' pit timestamps, and the y-axis is how much longer the second car spent in the lane than the first. The cluster at 5–10 s sits mostly above zero, with several pairs at +3 to +7 s. Beyond about 20 s the points collapse onto the zero line. The takeaway: the closer the second car arrives, the more likely it waits.

📋 Try it — Call the pit stop. 2026 British Grand Prix, end of lap 47 of 52. The safety car is about to be deployed (race control: SC from lap 48). The order and the line-crossing gaps to the leader are:

text acronym gap_to_LEC_s compound tyre_age LEC 0.000 HARD 21 HAM 20.309 HARD 23 RUS 32.490 MEDIUM 18

You run Ferrari. Stopping under this safety car costs about 12.7 s against the cars that stay out (the near-field SC pit loss from Chapter 14: 12.722 s, 95% CI 11.02–14.50, n = 137). Four laps will remain after the stop. Do you stop Leclerc? Do you stop Hamilton? If both, in what order, and what is the risk to each?

The reveal

Ferrari stopped both on lap 48, Leclerc first and Hamilton 27.3 s later by the pit timestamps. That was far enough apart that Hamilton didn't queue: his stop was 0.852 s quicker than the race median, at 2.6 s stationary. Leclerc's 32.5 s cushion over Russell was safe. Hamilton's cushion was 32.490 − 20.309 = 12.181 s, inside the SC pit-loss interval. Russell stayed out on 19-lap-old mediums, and at the end of lap 49 he was 0.887 s ahead of Hamilton:

text acronym date pit_lane_s stop_s rel_s pos_before pos_out pos_after stack_order LEC 2026-07-05 15:20:34.855000+00:00 28.887 2.5 -0.697 1 1 1 1 HAM 2026-07-05 15:21:02.162000+00:00 28.732 2.6 -0.852 2 3 3 2

Russell finished second, 0.345 s ahead of Hamilton (Jolpica race times 5,231.762 and 5,232.107 s). The double stack itself cost nothing. The call on Hamilton was a coin flip on the SC pit loss, and it came down on the wrong side. Whether fresh softs for four laps were worth that risk is the real strategic question, and Chapter 14's tools answer it.

🔄 Check your understanding 1. Why are double stacks so much more common under safety cars than under green flags? 2. In the gap table, why does the cost fall off beyond 15 s? 3. In the Silverstone call, what would have made stopping Hamilton safe?

Answer

  1. The SC pit loss is about 55% of the green one (Chapter 14), and the field bunches, so stopping is cheap and waiting costs little. Under green flags teams usually split the stops. 2. After 15 s the first car has left the box and the crew has reset, so the second car's stop is an ordinary stop.
  2. A cushion over Russell comfortably larger than the SC pit loss's upper bound (about 14.5 s), or Russell also stopping.

34.8 Unsafe releases and the pit-lane rulebook in race control

The crew's other job is to release the car safely. Every pit-lane offence the stewards look at appears in race-control messages, with a fixed grammar: "PIT LANE INCIDENT INVOLVING CARS 44 (HAM) AND 14 (ALO) NOTED - UNSAFE RELEASE", then "UNDER INVESTIGATION", then a decision. pit_lane_incidents() groups the messages into incidents and records the last decision in the feed. That last phrase matters: many decisions are taken after the race, and those don't appear in our data.

Pit-lane incidents in race-control messages, 2023-2026: 89 (80 in 91 races, 9 in sprints)

Races, by category and season:
year                          2023  2024  2025  2026
category
OTHER PIT INFRINGEMENT           8     4     0     1
PIT ENTRY/EXIT LINE OR LIGHT     1     3     1     5
PIT LANE SPEEDING                7     5     6    13
UNSAFE CONDITION                 0     3     4     1
UNSAFE RELEASE                   5     5     4     4

Penalised in the feed: 43 of 80; decision not in the feed (after the race): 21

Horizontal stacked bars of pit-lane incidents by category, split by the outcome recorded in race control.

📊 Figure (described): Five offence categories in 91 races. Each bar is split into a penalty in the feed (red), no action or no investigation (green), decided after the race (amber) and other. Pit-lane speeding (31 incidents) is almost entirely red. Unsafe release (18) is split between penalties, no action and after-the-race. "Unsafe condition" (8) is mostly decided after the race. The takeaway: speeding is mechanical and penalised on the spot, while releases are judgement calls.

Speeding is the most common offence: 31 race incidents, 27 of them 5-second time penalties and 3 drive-throughs. The speed limiter makes it a measurement question, and it is settled during the race. 2026 has 13 cases, against 5–7 in each earlier season. The data show the jump. They don't explain it.

Unsafe releases run at 18 in 91 races, about 0.20 per race. Only 5 were penalised in the feed: 4 time penalties and one 10-second stop/go (Lawson, 2024 Abu Dhabi GP). Nine ended with no further action or no investigation, and 4 were left for after the race. Unsafe releases are actually more common in qualifying than in races: 25 qualifying incidents in the same seasons, because there every car is in the pit lane at once.

"Unsafe condition" is race control's term when a car is released, or driven, in a state the stewards want to look at. Two of the eight race cases ended in 10-second stop/go penalties (Albon, 2024 Emilia Romagna GP; Bearman, 2025 Qatar GP). We use race control's wording and add no cause. Whether a wheel was loose is a claim for the team's or the stewards' published documents, not for the timing feed.

⚠️ Common pitfall: reading the feed's last word as the final decision. "WILL BE INVESTIGATED AFTER THE RACE" is the last message for 21 of the 80 race incidents. The outcome exists, in the stewards' published decisions, but not in our data. Even an in-race penalty can be reviewed later. Count what the feed records and say what it doesn't.

📺 On the broadcast: When the graphic says "Incident noted: unsafe release", the timing feed has just recorded the first message of a thread that ends, on our data, in a penalty about a quarter of the time (5 of 18). If the next message is "under investigation", it will usually be settled during the race. "Will be investigated after the race" means you won't learn the result on the broadcast.

34.9 Stop-time risk in the simulator

Until now Box Box has treated a pit stop as a constant: the circuit's green-flag pit loss, with SC and VSC versions from Chapter 14. That's the right expected value for an average team. It is wrong for a particular team, and it is wrong about the spread. sample_stop_time replaces the constant with a draw:

def sample_stop_time(team=None, year=None, n=1, rng=None, base_s=0.0, method="empirical", ...):
    """base_s + an event-relative pit-lane draw for that team-season."""
    if method == "empirical":
        x = _pick(team, year, source, stops).rel_s.dropna().to_numpy()   # crew-sample rel_s values
        return base_s + rng.choice(x, size=n, replace=True)                 # bootstrap them
    mix = mixture or fit_stop_mixture(_pick(team, year, source, stops).rel_s)
    ...                                                                      # or draw core + tail

Set base_s to the circuit's pit loss and the draws are pit losses. Set it to the circuit's median pit-lane time and they are pit-lane times. Here is a 2026 comparison, using the pooled 22.512 s green pit loss as the base:

    team  n_stops  mean_s  p50_s  p90_s  p99_s  mix_mean_s  one_stop_vs_field_s  two_stop_vs_field_s
      rb       32  22.488 22.496 23.819 25.792      22.549               -0.024               -0.048
mercedes       26  22.490 21.889 22.812 34.143      22.363               -0.022               -0.044
 ferrari       29  22.495 22.348 23.689 24.249      22.349               -0.017               -0.034
red_bull       30  22.848 22.268 23.998 33.044      22.776                0.336                0.671
 mclaren       35  23.174 22.410 25.972 33.740      23.070                0.662                1.323
    haas       31  23.302 23.001 25.119 26.406      23.305                0.790                1.580
williams       37  23.786 22.512 31.978 38.116      23.742                1.274                2.548
cadillac       26  24.019 23.479 25.850 27.642      24.077                1.507                3.014

The median and the mean tell different stories. Mercedes has the quickest median (21.889 s) but a P99 of 34.143 s: one disaster in 26 stops pulls its mean back to the level of Racing Bulls and Ferrari. Williams has a median right at the base (22.512 s) and the second-worst mean (23.786 s), driven entirely by its tail, with a P90 of 31.978 s. Cadillac has the worst mean (24.019 s), from a slow median and a short but frequent tail. Over a two-stop race, Williams's crew costs 2.548 s more than the 22.512 s base in expectation. A simulator that used the median would never see that.

⚠️ Common pitfall: bootstrapping from thirty stops. An empirical bootstrap can only replay the stops it has seen. Twenty-six Mercedes stops contain one disaster, so the bootstrap gives Mercedes a 4% chance of one at every stop, and it can never produce a disaster longer than the longest it has seen. For a forecast, use the mixture with the shrunk slow-stop rate from 34.6, or pool two seasons.

The undercut, with real crews

Chapter 13's two-car model gives the expected gain of an undercut. For a MEDIUM-to-HARD stop with 20-lap-old tyres, one lap apart, it gives 0.927 s. In that model both crews take the same time. What happens when they don't?

🧪 Illustrative model: the gain comes from the Chapter 13 deterministic model, whose degradation and warm-up inputs are the book's measured pooled values. The only randomness is the two crews' 2026 stop draws. Traffic, driving variation and the in-lap are left out on purpose, so these probabilities isolate the crew effect. They are not success rates for real races; Chapter 13 measures those (42.9%, n = 168).

g = undercut.undercut_gain(20, k=1, deg_s_per_lap=undercut.DEG_FC["MEDIUM"], old_compound="MEDIUM",
                           new_compound="HARD", deg_new_s_per_lap=undercut.DEG_FC["HARD"])
ra = ps.sample_stop_time(att, 2026, n=N, rng=np.random.default_rng(1))   # attacker's crew
rd = ps.sample_stop_time(dfn, 2026, n=N, rng=np.random.default_rng(2))   # defender's crew
gain = g["gain_s"] + (rd - ra)          # a slow defender stop helps the attacker, and vice versa
  attacker ferrari   vs defender ferrari  : P(clear 0.5 s) 0.717, P(clear 1.0 s) 0.439, P(clear 1.5 s) 0.238; median gain 0.927 s
  attacker ferrari   vs defender cadillac : P(clear 0.5 s) 0.913, P(clear 1.0 s) 0.823, P(clear 1.5 s) 0.682; median gain 2.132 s
  attacker cadillac  vs defender ferrari  : P(clear 0.5 s) 0.277, P(clear 1.0 s) 0.149, P(clear 1.5 s) 0.069; median gain -0.263 s
  attacker cadillac  vs defender cadillac : P(clear 0.5 s) 0.601, P(clear 1.0 s) 0.473, P(clear 1.5 s) 0.379; median gain 0.927 s

Lines of the probability that the undercut gain exceeds the gap, by gap, for four crew pairings, with the deterministic step.

📊 Figure (described): The dotted step is the deterministic model: it clears every gap below 0.927 s and nothing above. The four lines add crew variance. Ferrari attacking Cadillac (green dashed) clears a 1.5 s gap 68% of the time. Cadillac attacking Ferrari (orange dashed) clears even 0.5 s only 28% of the time. The takeaway: the crews alone can move the success probability at a 1 s gap from about 15% to 82%.

Two lessons. First, crew quality is a strategic input, not just a time cost. A team with a reliable crew can attempt undercuts from further back. Chapter 13 found the same thing from the other direction: the attacker's pit loss was lower than the defender's in 73.6% of successful undercuts (n = 72) but in only 30.2% of failed ones (n = 96). Second, variance flattens the curve. With two noisy crews (Cadillac against Cadillac), the undercut clears large gaps more often and small gaps less often than the deterministic model says.

📋 Try it — Build the strategy. You are the attacker, 1.2 s behind. Use sample_stop_time with your team and your rival's team for 2025 (a larger sample than 2026). Compute P(gain > 1.2 s) for k = 1 and k = 2 (the rival stops one or two laps later), using undercut.undercut_gain(..., k=2). At what gap does your success probability fall below 50%? Expected shape: a two-row table of probabilities with k = 2 higher, and a 50% gap close to each k's deterministic gain for two average crews.

🔄 Check your understanding 1. Why can a team have the quickest median stop and only an average mean stop? 2. In the undercut simulation, why is the median gain for Ferrari against Cadillac (2.132 s) larger than the deterministic 0.927 s? 3. Name one thing the undercut simulation leaves out that Chapter 13's measured success rate includes.

Answer

  1. The mean includes the tail. A few very long stops (Mercedes 2026's P99 is 34.143 s) pull the mean up without moving the median. 2. Cadillac's typical stop is slower than Ferrari's (+0.96 s against −0.16 s median rel_s in 2026), so the defender usually loses extra time, which adds to the attacker's gain. 3. Traffic on the out-lap, the defender's in-lap pace, driver variation, or how the defender responds.

34.10 What the timing data cannot see

Pit-stop discussions often turn to wheel-gun failures, cross-threaded nuts, tyre-blanket temperatures and pit-window coordination. Here is what our sources can and cannot say about each.

  • Wheel guns, wheel nuts, cross-threading, jacks. None of these is in any free feed. A 15 s stop tells you something went wrong, not what. When a team explains a slow stop publicly, an analysis that uses the explanation must cite the statement. The book's reference tables contain none, so this chapter makes no such claims.
  • The crew itself. How many people work a stop, who does what, and how they train are not in our data. The reference tables hold no sourced crew-size figure, so we don't quote one.
  • Tyre blankets. The rules are sourced. Per tyres.csv (FIA/Pirelli event documents), slick blankets were limited to 70 °C for 2 h in 2023, with intermediates at 60 °C and no blankets for full wets. The 2026 limits were 70 / 60 °C for slicks and intermediates early in the season with none for wets, 70 / 70 / 40 °C from Miami, and 70 / 70 / 60 °C by Las Vegas. The temperature a set actually had at the stop is not public, and OpenF1 has no tyre-temperature channel (Chapter 2's telemetry limits).
  • The tyre allocation. Also sourced (regulations_2026.md): 2 hard, 3 medium and 8 soft sets per driver at a standard 2026 event, and 2 / 4 / 6 at a sprint event. Box Box's strategy.py already enforces it (Chapter 12).
  • Pit-window coordination. We can see the outcome, as in the double-stack table and the Silverstone call in 34.7. We can't see the plan. The radio index has audio links but no transcripts, and we don't quote it.
  • Practice and qualifying stops. OpenF1's 2026 practice and qualifying pit coverage is thin, and those stops aren't comparable with race stops. Every number in this chapter is a race stop.

Spaced Review

From Chapter 12 (Race Strategy Fundamentals). What is the break-even stint length for an extra stop, and which two inputs set it? Try to answer before reading on. It is the pit loss divided by the fresh-tyre advantage per lap: with the measured 22.512 s and 1.078 s/lap, 20.9 laps. This chapter adds a twist. The pit loss in that ratio is a team-specific random variable. Williams 2026's expected stop is 1.274 s worse than the base, which adds about 1.2 laps to its break-even (1.274 / 1.078). Other things being equal, a tail-heavy crew should stop less often.

From Chapter 13 (The Undercut and Overcut). Why does the undercut succeed less often than its expected gain suggests? Recall that the measured success rate is 42.9% (n = 168), falling from 78.6% inside 1 s to 19.3% at 2–3 s. Section 34.9 gave one mechanism: variance. Two noisy crews spread the outcome, so small gaps succeed less often than the deterministic model predicts.

From Chapter 14 (Safety Cars, VSCs and Red Flags). What does a stop under a safety car cost, and how do you measure it? The near-field pit loss: 12.722 s [11.02, 14.50] (n = 137) under SC and 15.671 s under VSC, against 22.512 s green. Section 34.7 used that interval to call Hamilton's Silverstone stop a coin flip. It also explains why 84 of the 146 double stacks came under a safety car.


Project Checkpoint: pitstops.py

Aisha has been bothered by one line in Box Box since Chapter 12: a single pit-loss number per circuit. Every car, every crew and every stop gets the same value.

Aisha: That's an average. Our simulator has never seen a 15-second stop.

Ray: In my experience the slow stop is exactly the event people underprice. Can you give it a probability?

Aisha: One per team, shrunk so a clean half-season doesn't read as a guarantee, plus a draw from each team's real distribution.

This chapter's module, project/boxbox/pitstops.py, does that. Its public functions:

Function What it gives Box Box
jolpica_stops(years), openf1_stops(years) race stop tables with rel_s, slow, flags, tyre change, positions, penalties and stacking
crew_sample(stops) the stops that measure the crew
pitlane_distribution(team, year, ...) median with CI, IQR, P90/P95, slow share with Wilson CI
slow_stop_risk(team, year, ...) raw and shrunk P(slow), mean excess, expected tail cost
fit_stop_mixture(rel_s), sample_stop_time(team, year, n, ...) the stop-time model for the simulator
team_consistency(stops), persistence(stops, metric) rankings and season-to-season stability
double_stacks(stops), places_lost_to_delay(stops), position_cost(stops) stacking cost and places lost
penalties(), pit_lane_incidents() race-control penalties and pit-lane offences
dhl_reference(), dhl_vs_openf1() the DHL table and the source check

Here is the demo, code/project_checkpoint.py, run on 2025 data at Monza:

for team in ("ferrari", "williams"):
    d = ps.pitlane_distribution(team, 2025)
    r = ps.slow_stop_risk(team, 2025)
pl = metrics.pit_loss(f1data.session(2025, "monza", "R"))
two = ps.sample_stop_time(team, 2025, n=2 * 50_000, base_s=pl["pit_loss_s"], rng=rng).reshape(-1, 2).sum(axis=1)
pitlane_distribution('ferrari', 2025): n = 52, median -0.354 s [-0.398, -0.201], IQR -0.585 to -0.069, P90 +0.717, P95 +5.148, slow 9.6% [4.2, 20.6]
slow_stop_risk('ferrari', 2025): raw 9.6%, shrunk 10.7% (field 12.1%), mean excess 2.72 s, expected tail cost 0.291 s per stop

pitlane_distribution('williams', 2025): n = 46, median -0.039 s [-0.180, +0.351], IQR -0.254 to +1.080, P90 +4.459, P95 +7.713, slow 17.4% [9.1, 30.7]
slow_stop_risk('williams', 2025): raw 17.4%, shrunk 14.9% (field 12.1%), mean excess 4.12 s, expected tail cost 0.615 s per stop

Monza 2025 canonical green pit loss: 25.289 s (n = 19)
  two stops for ferrari : mean 50.85 s, P10 49.32, P90 55.37, P(> 2 x median + 4 s) 14.8%
  two stops for williams: mean 52.81 s, P10 49.94, P90 58.96, P(> 2 x median + 4 s) 22.6%

Two stops at Monza cost Ferrari's 2025 crew 50.85 s on average and Williams's 52.81 s. The 2.0 s difference is almost all tail. The chance of losing at least 4 s more than two typical stops is 14.8% for Ferrari and 22.6% for Williams.

How it plugs in. Chapter 27's Monte Carlo engine (Chapter 27) can draw each car's stop from sample_stop_time instead of using a constant, scaling the base with Chapter 14's SC and VSC ratios and keeping the same rel_s draw. Chapter 37 (Chapter 37) can take penalties() and pit_lane_incidents() as its pit-lane offence inputs. Chapter 40's report (Chapter 40) can show each team's stop distribution next to its strategy. One design rule: for forecasts, the simulator should draw from the mixture with the shrunk slow-stop rate. The raw bootstrap describes the past.


Chapter Summary

Formulas and metrics

Quantity Definition Book value (source)
Pit-lane time entry line → exit line median 23.318 s, green stops 2023–26
Transit model $t_{\text{lane}} = D/v + t_{\text{stat}} + v/2a_b + v/2a_a$ manoeuvre ≈ 2.27 s at 80 km/h and 1 g (🧪)
Stationary vs lane slope of lane_rel on stop_rel 1.006 [0.960, 1.053], n = 1,369
Green-flag pit loss (in + out) − 2 × reference lap 22.512 s, n = 1,921; Spa 19.274 → Imola 28.164
Event-relative time rel_s stop − race median pit-lane time crew-sample IQR −0.40 to +0.45 s
Slow stop rel_s > 2.0 s 8.4% crew sample (n = 1,852); 15.1% of all stops
Tail cost $p \times m$ 0.40 s per stop (field, 2023–26)
Places lost to delay cars crossing the line in [T − rel, T) 0.075 places/s (front six 0.220)
Shrunk risk $(k + n_0\bar p)/(n + n_0)$, $n_0 = 40$ Ferrari 2026: 0% → 6.3%
Persistence Spearman, season t vs t + 1 median stop 0.763; slow share 0.252 (151 pairs)
Double-stack cost second car vs team baseline +0.62 s; median +1.67 s when 4–8 s apart
Record stationary time DHL / Formula1.com 1.80 s, McLaren (Norris), Qatar 2023

Decision checklist

  1. Name the clock: stationary, pit-lane or pit loss. Never compare across clocks.
  2. Use DHL for records, OpenF1 stop_s for within-season distributions, and event-relative pit-lane time for history.
  3. Before calling a stop a crew error, check for a pending penalty, a team-mate in the box, the flags and wet tyres.
  4. Rank crews on the median and IQR. Report slow shares with intervals, and shrink before predicting.
  5. Price a slow stop in time first. It costs a place only if the gap behind is smaller than the delay.
  6. Under a safety car, stacking is usually cheap. Leave at least 15 s between the cars if you can.
  7. For race-control outcomes, quote what the feed says, and say when the decision came after the race.

What's Next

A slow stop costs places only when a car is close enough to take them. In the pit lane that is a matter of time; on track it takes an overtake. Chapter 35 counts the real passes (not OpenF1's raw overtakes records), finds where they happen, and builds the pass-probability model Box Box needs for a car that rejoins in traffic.