On lap 19 of the 2024 British Grand Prix, race control printed two messages a few seconds apart: DRS DISABLED and LOW GRIP CONDITIONS. Rain had arrived at Silverstone. The weather station's rainfall flag was set on 68% of the laps the field...
In This Chapter
- 15.1 What Rain Changes
- 15.2 The Physics of Water
- 15.3 How Much Slower Is a Wet Lap?
- 15.4 Where the Tyres Tie: A Crossover Model from Paired Laps
- 15.5 Timing the Crossover in Real Races
- 15.6 The Cost of Being Early or Late
- 15.7 Is There Such a Thing as a Rain Master?
- 15.8 Before 2023: Reading a Wet Race from Lap Times Alone
- 15.9 What Our Data Can't See
- Spaced Review
- Project Checkpoint: wet.py
- Chapter Summary
- What's Next
Chapter 15 — Wet Weather Strategy: Intermediates, Full Wets, Timing the Crossover, and Winning in the Rain
On lap 19 of the 2024 British Grand Prix, race control printed two messages a few seconds apart: DRS DISABLED and LOW GRIP CONDITIONS. Rain had arrived at Silverstone. The weather station's rainfall flag was set on 68% of the laps the field completed on lap 18, and on every lap from 19 to 37. Four cars came into the pit lane at the end of that lap and took intermediate tyres: Charles Leclerc's Ferrari, Sergio Pérez's Red Bull, Esteban Ocon's Alpine and Zhou Guanyu's Sauber. Leclerc had been seventh.
Here is what the timing data show over the next seven laps. Each number is the median lap of the cars on that tyre class, using laps with no safety car and no pit stop in them.
2024 British GP, laps 18-28: median representative lap by class (s), cars per class
cls SLICK_s n_SLICK INTER_s n_INTER
lap_number
18 95.789 19.0 NaN NaN
19 104.151 15.0 NaN NaN
20 97.330 15.0 NaN NaN
21 93.484 15.0 102.846 3.0
22 92.495 15.0 104.936 3.0
23 92.752 16.0 106.593 3.0
24 93.792 16.0 110.729 3.0
25 95.542 16.0 108.245 3.0
26 103.260 9.0 105.696 2.0
27 109.747 1.0 112.538 1.0
28 NaN NaN 102.042 8.0
The shower eased. On lap 22 the cars that stayed on slicks lapped in 92.5 s and the cars on intermediates in 104.9 s, a gap of 12.4 seconds per lap. Race control posted NORMAL GRIP CONDITIONS on lap 24. By lap 25 the blue flags were out for Leclerc and Pérez: the leaders were about to lap them. Then the rain came back. Between laps 26 and 28 every other car switched to intermediates. Leclerc had been seventh after lap 18 and was sixteenth after lap 22. He took a second set of intermediates on lap 27 and finished fourteenth. His team-mate Carlos Sainz, who stayed on slicks until lap 26, finished fifth.
The early four were not wrong about the weather. It did rain, and it rained hard enough that by lap 28 nobody was on slicks. They were wrong about when. The tyre that suits the conditions in five laps' time is not the tyre that suits them now, and every lap you run on the wrong tyre costs you the difference between the two.

📊 Figure (described): Top: the median slick lap (grey) and median intermediate lap (green) from lap 14 to lap 45, with Leclerc (solid red) and Sainz (dashed red) drawn lap by lap, pit laps included. For laps 21–25 the grey line sits about 10 s below the green one: the early intermediates were the slow tyre. The lines meet around laps 26–27, and the field's tyre mix (bottom) flips to green. On laps 37–39 the field returns to slicks. The dashed black line is the share of laps with a rainfall flag, which stayed at 100% from lap 19 until lap 37, including the six laps on which slicks were faster.
Ines: So Ferrari saw rain and pitted. That's what I'd do. Aisha: And for six laps the cars that ignored the rain were ten seconds a lap faster. Ines: Then why did everyone else pit on lap 26 instead of never? Aisha: Because by lap 27 the one car left on slicks was three seconds a lap slower than the intermediates. The answer was right. The timing was seven laps early.
This chapter is about that timing problem. You will learn: - the three tyre classes (slicks, intermediates and full wets) and the physics of why each one works; - how much slower a wet lap is, measured race by race against the same race's dry pace; - where each tyre class beats the next one. That point is the crossover, and this chapter measures it from every wet race in our data; - what it costs to switch early or late, and why the cost grows with the square of the delay; - whether "rain masters" exist in the 2023–2026 data, and how sure we can be; - how to read the famous wet races before 2023, when the free data carry lap times but no compounds and no flags.
You will also add wet.py to Box Box. It is the module that tells the simulator what a wet track does to lap time, and when to change tyres.
🏎️ Fan Track: Read 15.1–15.3 and 15.5–15.8, and skim the equations in 15.4 and 15.6. You will come away able to judge a pit call in the rain as it happens. When the first car on slicks sets a purple sector, you will know whether the rest of the field is already late.
🔧 Engineering Track: Sections 15.2 (water film, tread and aquaplaning) and 15.4 (the penalty model) are yours. Pair them with the tyre physics of Chapter 4 and the thermal model of Chapter 5.
📊 Analytics Track: Everything, with the code. The hard part is statistical: tyre choice is not random, so the cars on each tyre are a selected sample. Section 15.4 shows how that breaks the obvious regression, and what to do instead.
15.1 What Rain Changes
Rain does three things to a Grand Prix at once.
First, it removes grip. A slick tyre works by pressing a smooth rubber surface into the micro-texture of the asphalt, as Chapter 4 explains. A film of water between the two breaks that contact. Intermediate and full-wet tyres carry grooves, called tread, that cut through the film. The tread costs grip on a dry track, because there is less rubber touching the road and the tread blocks move around under load.
Second, it creates a choice. In dry conditions a team chooses among slick compounds that differ by tenths of a second per lap. In wet conditions it chooses among tyre classes that can differ by ten seconds per lap or more, as the opening table showed.
📐 Definition: A tyre class is one of three groups: SLICK (the SOFT, MEDIUM and HARD dry compounds), INTERMEDIATE (Pirelli's green-marked Cinturato Green, with shallow tread for a damp or lightly wet track; Appendix H lists the compounds) and WET (the blue-marked Cinturato Blue full wet, with deep tread for standing water). In data contexts we write them as OpenF1 does: SOFT, MEDIUM, HARD, INTERMEDIATE, WET.
Third, it changes the rules. Under the Sporting Regulations each driver normally has to use at least two different dry specifications in a race. That rule does not apply if intermediates or wets were used (data/reference/tyres.csv, FIA 2025 Sporting Regulations Art. 30.2; regulations_2026.md, B6.3.8 for 2026). Each driver gets 5 sets of intermediates and 2 sets of full wets per event, in both 2025 and 2026 (2026 sprint weekends: 6 intermediates allocated, 5 usable). The tyre-blanket limits also differ by class, and they changed during 2026. The reference table has them, read from the FIA's Pirelli preview documents:
| Season and event | Slicks | Intermediates | Full wets |
|---|---|---|---|
| 2023 (Las Vegas preview) | — | 60 °C, 2 h | no blankets (the blanket-free full wet debuted at Monaco 2023) |
| 2024–2025 | 70 °C | 60 °C | no blankets |
| 2026, early season (Japan) | 70 °C | 60 °C | no blankets |
| 2026, from Miami | 70 °C | 70 °C | 40 °C |
| 2026, Las Vegas | 70 °C | 70 °C | 60 °C |
Source: data/reference/tyres.csv (FIA Race Director, Pirelli preview documents for each event). The limits are set event by event.
The 2026 reference file also lists an in-season package for the wet: higher intermediate blanket temperatures, reduced maximum ERS deployment in the wet, simplified rear-light signals, and a new "Rain Hazard" declaration when the forecast rain probability exceeds 40% (regulations_2026.md). We will not test those rules here; we have only one wet 2026 Grand Prix with substantial intermediate running.
How often does it rain?
Less often than the folklore suggests. Our first script scans every race and sprint in the OpenF1 snapshot for laps on intermediates or wets.
# code/01_wet_races_map.py (excerpt)
ws = wet.wet_sessions(kinds=("R", "S")) # sessions with any INTERMEDIATE or WET lap
gp = ws[ws.kind == "R"]
n_gp = len(f1data.sessions(kind="R"))
p, lo, hi = metrics.wilson_ci(len(gp), n_gp) # Wilson interval for a proportion
allR = f1data.laps(kind="R")
print(f"Share of ALL 2023-26 GP laps on INTERMEDIATE or WET: "
f"{100*allR.compound.isin(['INTERMEDIATE','WET']).mean():.2f}% of {len(allR):,}")
Grands Prix with wet-tyre running: 11 of 91 = 12.1% (6.9-20.4)
Laps on INTERMEDIATE in those 11 GPs: 4757, on WET: 84, on slicks: 7788
Share of wet-weather-tyre laps that were INTERMEDIATE: 98.3%
Share of ALL 2023-26 GP laps on INTERMEDIATE or WET: 4.75% of 101,949
Eleven of 91 Grands Prix had any running on wet-weather tyres. That is 12.1%, with a 95% Wilson interval of 6.9% to 20.4%. Count rain more loosely (a rainfall flag at the weather station, or wet tyres) and the book's weather table finds 21 of 91, which is 23.1% (15.6–32.7). The gap between the two numbers matters. Ten races had a rain flag and no wet-tyre laps at all: the drizzle never got heavy enough to beat a slick.
The second number is the striking one. Of all wet-weather-tyre laps in those 11 races, 98.3% were on intermediates. Only 84 laps in four seasons of Grands Prix were run on full wets. The full wet is the tyre you carry and almost never use. The modern wet race is an intermediate race, with a slick phase at one or both ends.

📊 Figure (described): One strip per wet Grand Prix. Grey is the share of cars on slicks, green on intermediates, blue on full wets. Most races show one or two clean transitions in which the field changes class within a few laps (Monaco 2023 laps 51–56, Zandvoort 2023 at both ends, Canada 2024 laps 40–47, Silverstone 2024 twice, Australia 2025 twice, São Paulo 2026 twice). Full wets appear only as thin blue slivers: Monaco 2023, Zandvoort 2023, Canada 2024 and São Paulo 2024.
Read the figure as a list of decisions. Every edge between grey and green is a lap on which some cars changed tyre class and others did not. Those edges are this chapter's raw material: 17 transitions in 11 races, in which 233 cars changed class (Section 15.5).
⚠️ Common pitfall: "It rained, so it was a wet race." OpenF1's
rainfallfield is a 0/1 flag from the circuit's weather station, not a measure of how wet the track is. In the 2026 São Paulo GP, every car switched from slicks to intermediates between laps 59 and 62. On the laps run mostly on wet-weather tyres, the rain flag was set for only 2% of them. In the 2025 British GP, the figure was 14% across 41 laps run mostly on intermediates. A track stays wet long after the station stops reporting rain, and a light shower can wet one sector while the station stays dry. Use the tyres the field chose as your wetness evidence, not the rain flag.
🔄 Check your understanding 1. Why is "11 of 91 races had wet-tyre running" a better base rate for strategy work than "21 of 91 had rain"? 2. A friend says teams should develop the full wet harder because "it's raining more". What does the 98.3% figure suggest about where the lap time is?
Answer
- Strategy changes when the tyres change. Ten of the 21 races had a rain flag but no wet-tyre laps, so they were strategically dry races with a weather footnote.
- Almost all wet running is on intermediates. A better intermediate, or a better crossover call, touches far more laps than a better full wet. (Full wets are also used mostly behind the safety car, which is a separate problem; see Section 15.4.)
15.2 The Physics of Water
Why does a slick fail on a wet track, and how does tread fix it? Start with how much water a tyre has to move.
The water a tyre must move
Picture the tyre rolling over a uniform film of water of depth $h$. In one second, the tyre's contact patch sweeps a strip of road of width $b$ and length $v$ (the car's speed in metres per second). All the water on that strip has to go somewhere: forwards, sideways, or up through the tread grooves and out of the back. The volume flow the tyre must handle is
$$ Q = h \, b \, v $$
In words: the water a tyre must clear each second is the film depth times the width of tyre on the road times the distance travelled per second.
A worked number. Take $v$ = 300 km/h (186 mph) = 83.3 m/s, a film of $h$ = 1 mm, and a contact width of $b$ = 0.30 m.
🧪 Illustrative model: parameters are assumptions chosen to be plausible for a current F1 car, not team data. The 0.30 m contact width and the film depths are assumptions; our reference tables have no official tyre contact width.
$$ Q = 0.001 \times 0.30 \times 83.3 = 0.025 \text{ m}^3/\text{s} = 25 \text{ L/s} $$
That is exactly the figure Pirelli gave for its intermediate in 2014: 25 litres per second per tyre at full speed, with a tread depth of 2.5 mm (tyres.csv, Pirelli press, 23 April 2014). So under our assumed width, a 2014 intermediate could clear about a 1 mm film at top speed. The 2014 full wet's 65 L/s corresponds to about 2.6 mm.
The published figures depend on the year, and the reference table keeps every one of them with its date (Figure 15.2):
- Intermediate: 25 L/s per tyre (Pirelli, 2014 and 2016); 35–40 L/s at 300 km/h (Pirelli, 2020).
- Full wet: 65 L/s (Pirelli, 2014 and 2016); "the old wet was able to disperse 60 litres per second at 300kph" and the newer one "up to 85" (Pirelli's Mario Isola, quoted by Autosport in 2021, referring to the pre-2017 and 2017–2021 tyres); "over 85" L/s at 300 km/h for the 18-inch tyres used until 2025 (Motor Sport Magazine, 2026).
- 2026: no figure. Pirelli's 2026 rule-change article gives no water-dispersal number, and the reference table records that it was not found.

📊 Figure (described): Circles are intermediates and squares are full wets, placed by the tyre generation each figure describes. The intermediate figure rose from 25 L/s (2014/2016) to 35–40 L/s (2020). The full-wet figure is 60–65 L/s for the pre-2017 tyre and 85 L/s or more for the wider tyres from 2017. Nothing is plotted for 2026 because no figure has been published. Never quote one of these numbers without its year.
⚠️ Common pitfall: quoting "intermediates clear 25 L/s, wets 65 L/s" as if it described today's tyres. Those are 2014/2016 figures for the tyres used before the wider 2017 specification. The 2021 quote puts the 2017–2021 full wet at 85 L/s, a 2026 article puts the 18-inch full wet of 2022–2025 at "over 85", and Pirelli has published no figure at all for the 2026 tyres. A number without a year is not a fact about the current car.
Why a slick aquaplanes
Now ask what happens if the water cannot get out of the way. The tyre is moving at speed $v$ into a film of water. The water has density $\rho$ = 1000 kg/m³. Bringing it to rest against the tyre's leading edge builds a dynamic pressure of
$$ p_{\text{dyn}} = \tfrac{1}{2} \rho v^2 $$
In words: water you hit at speed pushes back with a pressure that grows with the square of the speed.
The tyre presses down on the road with roughly its inflation pressure, $p_{\text{tyre}}$. When the water's dynamic pressure matches the tyre's contact pressure, the water can hold the tyre up off the road. That is full aquaplaning (hydroplaning). Setting the two equal gives the speed at which a tyre with no escape route for the water starts to float:
$$ v_{\text{aq}} \approx \sqrt{\frac{2\,p_{\text{tyre}}}{\rho}} $$
🧪 Illustrative model: we assume a contact pressure of 150 kPa (about 22 psi), plausible for a racing tyre but not a published Pirelli figure. Real aquaplaning also depends on film depth, tread and contact-patch shape; this is the textbook smooth-tyre, deep-water limit.
$$ v_{\text{aq}} \approx \sqrt{\frac{2 \times 150\,000}{1000}} = 17.3 \text{ m/s} \approx 62 \text{ km/h} $$
A smooth tyre in deep standing water can start to float at around 60 km/h. That is why a slick on a wet track is not merely slower. Above a certain water depth it stops working at all, at a speed the car exceeds on every straight. Tread lowers the pressure by giving the water a channel to escape through: in the contact patch, the grooves turn a wall of water into a stream. The deeper and wider the channels, the more water per second the tyre can pass, which is what the L/s figures measure.
The same arithmetic explains why rain hurts most at high speed. At 300 km/h, $p_{\text{dyn}} = \tfrac{1}{2} \times 1000 \times 83.3^2 \approx 3.5$ MPa, more than twenty times our assumed contact pressure. At that speed, any water the tread cannot evacuate in the few milliseconds the patch spends on it lifts part of the tyre. Assume a contact patch about 0.15 m long (🧪 an assumption): the tyre passes over a given patch of road in 0.15 / 83.3 ≈ 1.8 milliseconds. Tread design is the business of emptying that patch in under two milliseconds.
Why intermediates stop getting faster
There is a second piece of physics, and the data show it clearly. An intermediate's tread blocks flex and slide, and that generates heat. On a wet track the water cools the tyre and keeps it inside its working window (the temperature band in which the rubber grips best; Chapter 4). As the track dries, the cooling disappears, the tread blocks overheat, and the tyre stops gaining grip even though the track is still improving. The slick has no tread to overheat, so it keeps improving with the track.
Look at the 2023 Dutch Grand Prix (Section 15.5 has the full story). Between laps 5 and 11, the intermediate runners' median lap barely moved: 84.100, 84.370, 84.843, 84.884, 85.012, 84.904 and 85.107 s. Over the same laps, the five cars that had never left slicks went from 100.899 s to 78.922 s. The track was drying fast, but the intermediates could not use it. Measured as a share of the race's dry pace, the slick runners improved by 4.74 percentage points per lap, while the intermediate runners got slightly slower, by 0.20 points per lap (script 02). That asymmetry is why the crossover from intermediates to slicks comes on suddenly: the slick keeps getting faster, and the intermediate has stopped.
📺 On the broadcast: when the commentator says "the intermediates are starting to go away" on a drying track, this is what it looks like in the lap times. The intermediate runners' laps flatten out or creep upwards while the track is clearly improving. When you see that and one car on slicks is within a second of them, the crossover is close.
🔄 Check your understanding 1. Using $Q = h\,b\,v$ with the same assumed 0.30 m width, what film depth does Pirelli's 2020 intermediate figure (35–40 L/s at 300 km/h) correspond to? 2. Why does doubling the speed quadruple the water pressure a tyre has to overcome, but only double the volume of water it has to clear?
Answer
- $h = Q/(b\,v)$ = 0.035/(0.30 × 83.3) = 1.4 mm to 0.040/(0.30 × 83.3) = 1.6 mm. Treat this as an illustrative conversion: the width is assumed, and the tyre generation is 2020.
- Volume flow is linear in $v$ (you sweep twice as much road per second). Dynamic pressure is quadratic in $v$ (the water arrives twice as fast and each kilogram carries four times the kinetic energy per unit volume). That is why aquaplaning is a high-speed problem.
15.3 How Much Slower Is a Wet Lap?
To build a simulator we need a number: how much slower is a lap on intermediates than a dry lap? Comparing against other years runs into a problem. The cars change, and 2026 cars are slower than 2025 cars at the same circuits (the book's 2026 comparison puts the median dry pole at +2.48%). Our approach is to compare each wet lap with the same race's own dry pace.
📐 Definition: The dry reference of a race is the median representative slick lap on laps where at least 90% of the cars were on slicks and no lap carried a rainfall flag. A representative wet-weather lap relaxes two of the book's standard clean-lap rules (toolkit README §4). It must not be lap 1, not an in- or out-lap, not touched by a safety car, VSC or red flag, and it must have a valid time. A local yellow flag is allowed, because wet races are full of them. The 107% rule is replaced by a cap at 1.40 × the dry reference, because a stint that starts dry and ends wet has no stable median.
No fuel correction is applied to any comparison in this chapter. The dry reference and the wet laps come from different parts of the race, so they carry different fuel loads. The book's data-driven fuel-and-track-evolution effect is −0.056 s per race lap (an upper bound; see Chapter 12). Over a 30-lap separation that is at most about 1.7 s, or about 2% of lap time. That is small next to the 8–22% effects below, but it is not zero. Read the wet penalties as accurate to a couple of percentage points.
# code/02_wet_penalty.py (excerpt)
for _, w in ws.iterrows():
ref = wet.dry_reference(w.session_key) # the race's own dry pace
rl = wet.representative_laps(w.session_key, dry_ref=ref["dry_ref_s"])
for c in ("INTER", "WET"):
x = rl[rl.cls == c].ratio # lap / dry reference
r[f"{c.lower()}_excess_pct"] = round(100 * (x.median() - 1), 1)
Wet-tyre penalty over the race's own dry pace (median representative lap; p10 = the 10th percentile)
event dry_ref_s n_dry inter_n inter_excess_pct inter_p10_pct wet_n wet_excess_pct
2023 Monaco GP R 78.430 916.0 372.0 21.6 10.1 39.0 24.9
2023 Dutch GP R 76.221 666.0 209.0 10.6 7.7 0.0 NaN
2024 Canadian GP R 78.358 230.0 688.0 13.2 9.4 15.0 21.3
2024 British GP R 92.340 447.0 189.0 11.7 9.1 0.0 NaN
2025 Australian GP R 85.257 32.0 468.0 7.7 5.0 0.0 NaN
2025 British GP R 91.466 124.0 335.0 13.9 10.9 0.0 NaN
2026 São Paulo GP R 76.012 768.0 452.0 15.5 12.0 0.0 NaN
INTERMEDIATE, races/sprints with >= 30 representative inter laps (n = 7): median of race medians 13.2%
(bootstrap 95% CI 10.6 to 15.5); range 7.7 to 21.6%
(Rows with too few laps, and races with no dry phase such as the 2024 São Paulo GP, are omitted here; the full table is in code/02_output.txt.)
A lap on intermediates is typically 13% slower than the same race's dry pace: the median of seven race medians is 13.2%, with a bootstrap interval of 10.6% to 15.5%. On an 80-second lap, that is about 10.5 seconds per lap. The book's weather table measures the same thing a different way, against dry slick laps at the same circuit in other years, and gets +11.8% (bootstrap 95% CI +10.1% to +14.3%) across 10 race and sprint sessions. Two methods with different weaknesses agree to within about 1.5 points.
The range matters more than the median. Monaco 2023 ran at 21.6% on intermediates; Australia 2025 at 7.7%. "Wet" is not one condition. It is a continuum from a damp line to standing water, and the median hides it. The full wet, where we can measure it at all, ran at 24.9% (Monaco 2023, 39 laps) and 21.3% (Canada 2024, 15 laps).
The 10th-percentile column (inter_p10_pct) tells a second story. Even in the wettest race, Monaco, the fastest tenth of intermediate laps ran within 10.1% of dry pace. Within one race, conditions swing from heavy to light. A single "wet penalty" per race throws that information away. Section 15.4 keeps it.
🔄 Check your understanding 1. Why compare each wet lap with the same race's dry pace rather than with last year's dry race at the same circuit? 2. The 2025 Australian GP intermediate penalty is 7.7%, Monaco 2023's 21.6%. Is the Monaco intermediate a worse tyre?
Answer
- The car generation, the drivers and much of the track surface are the same within a race, so the comparison isolates the water. Across years, the cars change (2026 cars are about 2.5% slower than 2025 cars at the same circuits in dry qualifying).
- No. The penalty measures the conditions as much as the tyre: Monaco 2023 had the heaviest rain of the seven races, including a spell on full wets. The same tyre in different water gives a different penalty, which is why the gauge in Section 15.4 uses the intermediate as the instrument.
🧩 Productive struggle: You want to know the wetness level at which slicks become faster than intermediates. You have no water-depth sensor. You have lap times, and you know which tyre each car was on. Before reading on, sketch a method. What would you compare, on which laps? What could go wrong with the cars that happen to be on each tyre?
15.4 Where the Tyres Tie: A Crossover Model from Paired Laps
Here is the method most people sketch: find laps on which some cars ran slicks and others ran intermediates, and compare them. That is the right start. We call those laps paired laps: in our 11 wet Grands Prix and 4 wet sprints, slicks and intermediates ran on the same lap on 77 laps in 10 sessions, and full wets ran alongside intermediates on 28 laps in 2 sessions (Monaco 2023 and Canada 2024).
The problem is the next step. We still need a measure of how wet the track was on each lap. We have no water-depth sensor, so we use the one instrument every car carries: the intermediate tyre itself.
📐 Definition: The wetness gauge $w$ on a lap is the intermediate runners' median representative lap as an excess over the race's dry reference: $w = t_{\text{inter}} / t_{\text{dry}} - 1$. A gauge of 0.12 means intermediates are lapping 12% slower than this race's dry pace. The crossover between two tyre classes is the gauge (or, in a race, the lap) at which their lap times tie.
Using the intermediate as the yardstick has a convenient consequence: the intermediate's own penalty line is the identity, $p_{\text{INTER}}(w) = w$. We then need the slick line and the full-wet line against it.
The tie points: where the sign flips
The most robust evidence is a sign change: a pair of consecutive laps on which one class was faster on the first lap and the other class on the second. Interpolating the gauge between the two laps gives the tie.
# code/02_wet_penalty.py (excerpt)
P = wet.paired_laps(ws.session_key.tolist(), min_cars=1) # one row per (session, lap)
ts = wet.tie_points(P, "SLICK") # slick/inter sign changes
tw = wet.tie_points(P, "WET") # wet/inter sign changes
Tie points: sign changes between consecutive paired laps (gauge = inter's excess over dry pace at the tie)
pair event laps faster_before faster_after gauge_pct
slick/inter 2023 Dutch GP R 7-8 INTER SLICK 11.3
slick/inter 2025 British GP R 42-43 INTER SLICK 8.2
slick/inter 2026 São Paulo GP R 15-16 INTER SLICK 14.5
wet/inter 2023 Monaco GP R 64-65 WET INTER 24.5
wet/inter 2024 Canadian GP R 6-7 WET INTER 22.1
Three drying crossovers, from intermediates to slicks, in three different seasons and circuits, fall at gauges of 8.2%, 11.3% and 14.5%. Two crossovers from full wets to intermediates fall at 22.1% and 24.5%. With five tie points, this is a small sample. But the two clusters are well separated, and they give a usable rule of thumb:
- Slicks beat intermediates once intermediates are lapping within about 11% of dry pace (median of 3; range 8–15%).
- Full wets beat intermediates once intermediates are more than about 23% off dry pace (median of 2; 22–25%).
The slopes: how fast each class loses time as the water builds
A tie point tells you where two lines cross. To predict lap times away from the crossing, a simulator also needs the slopes. Here the obvious regression fails, and the reason is worth understanding.
Naive pooled WLS of slick excess on inter excess (77 paired laps): slope 0.435 (SE 0.152), intercept 6.1 pts
Regress the slick excess on the intermediate excess across all 77 paired laps, and the slope comes out at 0.435. Read literally, that says slicks lose less time than intermediates as the track gets wetter. That is physically backwards: Section 15.2 showed the slick is the tyre that floats.
🔍 Why this works (and why the naive version doesn't): tyre choice is not random. A team keeps a car on slicks only while slicks are competitive, so paired laps exist only near the tie. Wherever slicks would be hopeless (a high gauge), there are no slick laps to observe. The sample is truncated exactly where the slope is steepest, and a regression on a truncated sample flattens the line towards the tie. The fix is to estimate the slope from how each class changes over time within a run of consecutive paired laps, where the same cars are watched as conditions evolve:
$$ \text{slope}_{\text{slick}} \approx \frac{\Delta(\text{slick excess})/\Delta L}{\Delta(\text{inter excess})/\Delta L} $$
In words: over the same laps, how many points of lap time did slicks gain (or lose) for each point the intermediates gained (or lost)?
Slick-vs-inter sensitivity: per-lap change of each class's excess over runs of >= 4 paired laps
event laps slick_pts_per_lap inter_pts_per_lap ratio
2023 Dutch GP R 5-11 -4.74 0.20 NaN
2024 Canadian GP R 42-46 -1.05 -0.65 1.62
2024 British GP R 21-27 2.83 1.25 2.27
2025 Australian GP R 8-32 -0.31 -0.31 1.01
2025 British GP R 39-43 -2.40 -0.97 2.48
2025 Miami GP S 4-11 0.09 0.21 0.44
2026 São Paulo GP R 11-16 -0.57 -0.52 1.10
2026 Bahrain GP in Malaysia R 3-8 -0.23 0.54 NaN
Six runs give a defined ratio, with a median of 1.36. (Zandvoort and Sepang give none, because there the intermediate's time barely changed or moved the other way: the overheating effect of Section 15.2.) Slicks lose, or gain, about 1.4 points of lap time for every point the intermediates do. For the full wet the side-by-side spells are long enough to regress directly. The slope is 0.418 (SE 0.079, 28 laps): a full wet loses well under half a point per point of gauge, which is what deep tread is for.
The model
Put the pieces together. Each non-intermediate class is a straight line through its measured tie point with its measured slope:
$$ p_c(w) = w^*_c + s_c\,(w - w^*_c), \qquad p_{\text{INTER}}(w) = w $$
In words: each tyre's penalty over dry pace equals the gauge at its tie point, plus its sensitivity times how far the current gauge is from that tie.
The fitted values are $w^*_{\text{SLICK}}$ = 0.113, $s_{\text{SLICK}}$ = 1.36, $w^*_{\text{WET}}$ = 0.233 and $s_{\text{WET}}$ = 0.42. The predicted lap time on class $c$ is $t_{\text{dry}}\,(1 + p_c(w))$.
WetPenaltyModel (gauge w = intermediate excess over dry pace):
slick: tie with inters at w = 11.3% (median of 3 tie points), slope 1.36 (median of 6 rate ratios)
wet: tie with inters at w = 23.3% (median of 2 tie points), slope 0.42 (28 laps)
best class: SLICK below w = 11.3%, INTER up to 23.3%, WET above
2026 Sao Paulo dry pace 76.012 s: w = 6.0% slick 79.102 inter 80.573 wet 88.221 best SLICK
2026 Sao Paulo dry pace 76.012 s: w = 15.0% slick 88.417 inter 87.414 wet 91.082 best INTER
2026 Sao Paulo dry pace 76.012 s: w = 28.0% slick 101.873 inter 97.295 wet 95.215 best WET
A worked number, at Interlagos with the 2026 dry pace of 76.012 s and a gauge of 15% (intermediates lapping at 87.414 s): slicks would lap at $76.012 \times (1 + 0.113 + 1.36 \times (0.15 - 0.113))$ = 88.417 s. That is 1.0 s per lap slower than intermediates. At a 6% gauge the order flips, and slicks are 1.5 s per lap faster. A gauge swing of nine points, about seven seconds of intermediate lap time at this circuit, turns the right tyre into the wrong one.

📊 Figure (described): The x-axis is the wetness gauge (how far intermediates are off dry pace); the y-axis is each tyre class's penalty over dry pace. The thick segment of each line marks where that class is fastest: slicks below 11.3%, intermediates from 11.3% to 23.3%, full wets above. Black markers are the five observed tie points. The lines are local approximations around the ties, fitted from 77 + 28 paired laps.

📊 Figure (described): Left: every lap on which slicks and intermediates both ran, with the intermediate excess on the x-axis and the slick excess on the y-axis. Points above the diagonal are laps on which intermediates were faster. The cloud hugs the diagonal between about 5% and 18%, because teams only run the "wrong" tyre when it is close. The Zandvoort 2023 points (blue circles) trace the drying crossover almost vertically: the slicks improved while the intermediates stood still. Right: full wets against intermediates. Wets are faster (below the line) only beyond about 22–25%.
🧪 Illustrative model: the model's structure (straight lines through tie points) is an assumption of convenience, not physics. Its parameters are measured from five tie points and eight short runs of laps. Treat the slopes as order-of-magnitude values, and expect a real car's slick line to steepen sharply in heavy rain, beyond anything our paired laps can see.
🔄 Check your understanding 1. Using the model, at what intermediate lap time would slicks and intermediates tie at a circuit whose dry pace is 92.340 s (Silverstone 2024)? 2. Why can't we estimate the slick line from laps where only slicks ran?
Answer
- At $w$ = 11.3%: $92.340 \times 1.113 \approx$ 102.8 s. When intermediates are lapping slower than about 1:42.8, they are the right tyre. When they are lapping faster than that, slicks are.
- On those laps the wetness gauge is undefined, because no intermediates are running to measure it. The gauge only exists where intermediates run, which is also why the model cannot be trusted far outside the range of paired laps.
15.5 Timing the Crossover in Real Races
A model says where the crossover is. A race asks a harder question: when will the track get there, and will you be first, on time, or late? This section looks at every transition in our data.
📐 Definition: A transition is a spell of a few laps in which cars change from one tyre class to another. The pathfinder is the first car to change. The in-lap is the last lap on the old tyres. The spread is the number of laps between the first and the last in-lap. The measured crossover lap (wet.crossover_lap) is the first lap from which the new class's median representative lap beats the old class's on two consecutive laps.
Tyre-class transitions in Grands Prix, 2023-2026 R21 (in-lap = last lap on the old tyres)
race change n_cars pathfinder first_in median_in last_in spread_laps crossover_lap under_sc_vsc
2023 Monaco SLICK->INTER 19 STR L51 51 54.0 55 4 NaN 0
2023 Monaco INTER->WET 2 PER L57 57 58.0 59 2 59.0 0
2023 Dutch SLICK->INTER 15 PER L1 1 2.0 4 3 5.0 0
2023 Dutch INTER->SLICK 15 STR L9 9 10.0 12 3 8.0 0
2023 Dutch SLICK->INTER 17 BOT L59 59 60.0 61 2 NaN 0
2024 Canadian WET->INTER 2 MAG L7 7 9.5 12 5 7.0 0
2024 Canadian INTER->SLICK 18 GAS L40 40 44.0 47 7 NaN 0
2024 British SLICK->INTER 19 LEC L19 19 26.0 28 9 NaN 0
2024 British INTER->SLICK 18 RIC L37 37 38.0 39 2 NaN 0
2024 Sao Paulo INTER->WET 5 PER L27 27 28.0 28 1 NaN 5
2025 Australian INTER->SLICK 14 ANT L33 33 33.0 39 6 NaN 14
2025 Australian SLICK->INTER 15 NOR L44 44 44.0 47 3 NaN 4
2025 British INTER->SLICK 15 ALO L37 37 41.0 44 7 NaN 0
2026 Canadian INTER->SLICK 7 PIA L1 1 2.0 3 2 NaN 0
2026 Bahrain in Malaysia INTER->SLICK 11 VER L1 1 1.0 9 8 NaN 1
2026 Sao Paulo INTER->SLICK 21 STR L9 9 16.0 17 8 NaN 0
2026 Sao Paulo SLICK->INTER 20 PER L59 59 61.0 62 3 NaN 0
Transitions: 17; cars changing: 233; median spread first->last in-lap: 3 laps (range 1-9)
Drying (INTER->SLICK) n = 8: median spread 6 laps; wetting (SLICK->INTER) n = 6: median spread 3 laps
Three patterns stand out.
The field moves together. The median transition is complete within three laps of the first car changing. Teams watch the same timing screens, and once the pathfinder's lap times show the answer, almost everyone follows within a lap or two.
Drying transitions are slower than wetting ones. A drying transition takes a median of six laps from the first to the last in-lap; a wetting one, three. That fits the physics. When rain arrives, a slick's penalty grows quickly and visibly: in Australia 2025 the slick runners' median lap went 84.749 → 88.332 → 93.045 → 98.086 s over laps 43–46, a loss of 3.6 to 5.0 s per lap. When a track dries, the first slick laps are slow while the tyres warm up on a damp surface, so the signal is murkier.
The measured crossover is rarely observable. Only four of 17 transitions have one, because the old class usually empties before the new one has two clean laps. That is the strategist's real problem. You cannot wait for the data to prove the crossover has happened, because by then the field has already moved.
A drying crossover: Zandvoort 2023
The 2023 Dutch GP started in rain on slicks. Most cars pitted for intermediates on laps 1–4, but five never did: Alexander Albon, Valtteri Bottas, Nico Hülkenberg, Oscar Piastri and Logan Sargeant. Those five became a running experiment.
2023 Dutch GP, laps 3-12: median representative lap by class (s)
cls SLICK_s n_SLICK INTER_s n_INTER delta_inter_minus_slick
lap_number
5 100.899 5.0 84.100 13.0 -16.799
6 94.451 5.0 84.370 15.0 -10.081
7 87.654 5.0 84.843 15.0 -2.811
8 83.722 5.0 84.884 15.0 1.162
9 81.456 5.0 85.012 12.0 3.556
10 79.887 5.0 84.904 4.0 5.017
11 78.922 8.0 85.107 1.0 6.185
Inter -> slick changes: STR L9, MAG L9, HAM L9, NOR L10, ZHO L10, OCO L10, TSU L10, ALO L10, LAW L10,
SAI L10, RUS L10, VER L11, GAS L11, LEC L11, PER L12
The slick runners were 16.8 s per lap slower on lap 5, 2.8 s slower on lap 7, and 1.2 s faster on lap 8. The measured crossover is lap 8. The 15 intermediate runners came in on laps 9–12, with a median in-lap of 10, so their first lap on slicks was a median of three laps after the crossover. On those late laps the delta was 3.6, 5.0 and 6.2 s per lap.

📊 Figure (described): The grey line (median slick lap) falls steeply from lap 5 to lap 12 while the green line (median intermediate lap) stays flat at about 84–85 s. They cross between laps 7 and 8. The lower panel shows the intermediate share collapsing between laps 9 and 12. Verstappen (who changed on lap 11) and Albon (who never took intermediates) are drawn individually.
Were the 15 late? With hindsight, yes, by two or three laps. But consider what the pit wall could see on lap 8. It had one lap of evidence that the slicks were faster, from five cars that were all in the lower half of the field. Section 15.6 prices exactly this delay.
Both crossovers in one race: São Paulo 2026
The 2026 São Paulo GP (Jolpica lists it as the Brazilian Grand Prix) gives us the current season's clearest example, at both ends of the race. All 22 cars started on intermediates. Lance Stroll took slicks after lap 9. Six laps later the field followed: 21 cars changed between laps 9 and 17, with a median in-lap of 16.
Laps 14-22 class medians (s):
cls SLICK_s n_SLICK INTER_s n_INTER
lap_number
14 88.930 1.0 88.310 18.0
15 88.389 1.0 87.682 15.0
16 86.645 2.0 86.872 5.0
17 84.597 5.0 NaN NaN
18 83.788 16.0 NaN NaN
19 81.749 21.0 NaN NaN
20 80.584 21.0 NaN NaN
Stroll's slick laps on laps 14 and 15 were 0.6–0.7 s slower than the intermediate median. On lap 16 the two slick runners were 0.2 s faster. The field changed on laps 16 and 17. This time the field was on time: it switched within one lap of the tie, at a gauge of 14.5%. The delta then grew quickly, as slick laps fell from 84.6 to 80.6 s in three laps, but by then everyone was on slicks.
The race's last laps reversed it. Pérez (Cadillac) and Rafael Camara (Haas) took intermediates after lap 59; four more cars followed after lap 60, eight after lap 61, and the last six, including the top three, after lap 62. All 20 running cars made the change within four laps.
2026 Sao Paulo GP: rain-flag share and tyre mix, laps 56-65
cls SLICK INTER rain_share status
lap_number
59 20 0 0.00 GREEN
60 18 2 0.00 GREEN
61 14 6 0.05 GREEN
62 6 14 0.25 YELLOW
63 0 20 0.25 YELLOW
64 0 20 0.00 GREEN
Weather records with rainfall = 1 during the race: 7 of 160
Look at the rain_share column. On the lap the last cars stayed out on slicks, only a quarter of the laps carried a rain flag, and the station recorded rain in just 7 of its 160 records for the whole race. A strategist who waited for the weather feed to confirm the shower would have been the last car on slicks.

📊 Figure (described): The race in one picture. Intermediates (green) from the start to lap 16, slicks (grey) from lap 17 to about lap 61, intermediates again for the last ten laps. Verstappen and Norris are drawn individually, with their pit laps marked. The dashed black line in the lower panel is the share of laps with a rainfall flag: it barely rises (to 25% on laps 62–63) even though every car switched to intermediates. The rain that changed the race barely registered at the weather station.
📺 On the broadcast: "He's gone purple in sector one on the slicks!" is the pathfinder signal. One fast sector on a new tyre class is the earliest evidence a pit wall gets, a full lap before a lap time can confirm it. Watch the other cars' in-laps in the next minute: in our data, the median transition is complete within three laps of the first car changing.
📋 Try it: Analyze this session — 2024 Canadian GP, laps 38–50. Run wet.switch_table(s, "INTER", "SLICK", (38, 50)) and wet.class_pace(s, min_cars=1).loc[38:50] for the 2024 Canadian GP race. Who was the pathfinder? How many laps did the transition take? On how many laps were the slick runners' median laps faster than the intermediate runners'? Predict first: was this field early, on time or late?
Reveal
Pierre Gasly was the pathfinder (in-lap 40). Eighteen cars changed between laps 40 and 47, a median in-lap of 44 and a spread of seven laps, among the slowest transitions in the table. On the five laps where both classes ran (42–46), the slick median never beat the intermediate median: the delta went from −1.92 s to −0.52 s, growing at only 0.31 s per lap per lap (script 04). A plausible reading is that the slick runners were on their first flying laps, still warming their tyres on a damp track. This is a field that moved before the measured crossover. With $g$ that small, being a lap or two early cost little, and waiting for proof would have cost more.
🔄 Check your understanding 1. In the transition table, Australia 2025's drying change shows all 14 cars changing "under SC/VSC". Why would a safety car make a crossover look tidier than it really was? 2. The Zandvoort field switched a median of three laps after the measured crossover; the São Paulo 2026 field switched within one lap of it. Name one difference in what each pit wall could see.
Answer
- A safety car makes the stop cheap (Section 15.6) and freezes the order, so everyone pits on the same one or two laps whatever the exact crossover was. The timing of an SC change tells you about the safety car, not about the track.
- At Zandvoort the evidence came from five cars at the back that had never pitted, and it arrived as one lap of slicks being faster. At São Paulo the slick pathfinder had been within a second of the intermediates for five laps, so the trend was visible before the tie.
15.6 The Cost of Being Early or Late
What a wet stop costs
Start with the stop itself. In Chapter 12 we measured the green-flag pit loss at 22.512 s (pooled median, n = 1,921 stops). In Chapter 14 we measured it at 12.722 s under a safety car and 15.671 s under a VSC, against the cars nearby. Those are dry stops. What happens in the rain?
The physics suggests a discount. The pit-lane speed limit doesn't change, but the stretch of track the pit lane bypasses takes longer to drive on a wet track. The difference between the two should shrink, just as it does under a safety car. Our data can test that only for stops that change to a fresh set of the same class, because a change of class mixes the stop's cost with the new tyre's speed.
Near-field pit loss (s) in the 11 wet Grands Prix, by tyre change and track status
median size
pair status
INTER->INTER GREEN 25.20 5
SC 13.57 9
INTER->SLICK GREEN 29.27 23
SLICK->INTER GREEN 19.50 25
SLICK->SLICK GREEN 24.68 76
INTER -> fresh INTER under green: median near-field loss 25.20 s [14.03, 46.54] (n = 5)
Pit-lane time, wet-tyre stops minus slick stops, same race (green): median +0.75 s over 6 races
We cannot see the discount. There are only five green-flag stops from intermediates to fresh intermediates, and their interval runs from 14 to 47 s. The pit-lane time itself is a median 0.75 s longer for wet-tyre stops in the same races. The honest statement is that a wet stop costs about what a dry stop costs, give or take more than our data can resolve. For a simulator, use the dry values (22.512 / 12.722 / 15.671 s) and treat any wet discount as unproven.
The class changes are more informative, because their "loss" includes the new tyre's first lap. Measured against the cars that stayed out, a change from intermediates to slicks costs 29.27 s (n = 23), about 6.7 s more than a dry green stop measured the same way (22.56 s, Chapter 14). That excess is the out-lap on cold slicks on a damp track. A change from slicks to intermediates costs only 19.50 s (n = 25), because the cars being compared with it are struggling on slicks on a wet track. Both numbers carry a lesson for the decision. The first slick lap is expensive, so switching to slicks pays only when there are laps left to use them.
Why being late costs the square of the delay
Now the timing. Suppose the lap-time delta between the classes, $\Delta(L) = t_{\text{old}}(L) - t_{\text{new}}(L)$, passes through zero at the crossover and then grows by $g$ seconds per lap, every lap. (Here $g$ is in seconds per lap, per lap.) If you switch $k$ laps after the crossover, you spend those $k$ laps on the slower tyre, losing
$$ C(k) = \sum_{j=0}^{k-1} \left(b + g j\right) = k\,b + g\,\frac{k(k-1)}{2} $$
In words: the cost of being late adds up the growing delta over every lap you stayed out. Here $b$ is the delta on the first late lap. If the crossover falls mid-lap, $b \approx g/2$, and the formula simplifies to
$$ C(k) \approx \tfrac{1}{2}\, g\, k^2 $$
Being late costs the square of the delay. One lap late costs $g/2$; two laps cost $2g$; three laps cost $4.5g$. The same holds in reverse for being early, as long as the delta grows at a similar rate before the crossover. The stop costs the same whenever you make it, so it drops out of the timing question: if you are going to stop anyway, the only thing that matters is the sum of the deltas on the laps you spent on the wrong tyre.
How big is $g$? We measure it directly as the slope of the paired-lap delta around each observed crossover:
Delta growth around observed crossovers: OLS slope of (old class - new class) median lap on lap number
race change laps n g_s_per_lap2 delta_first delta_last
2023 Dutch Grand Prix INTER->SLICK 5-11 7 3.768 -16.80 6.19
2025 British Grand Prix INTER->SLICK 39-43 5 1.310 -5.80 0.24
2026 São Paulo Grand Prix INTER->SLICK 11-16 6 0.041 -0.50 0.23
2024 Canadian Grand Prix INTER->SLICK 42-46 5 0.314 -1.92 -0.52
2023 Monaco Grand Prix WET->INTER 59-69 11 0.403 -1.12 1.96
2024 Canadian Grand Prix WET->INTER 2-11 10 0.908 -4.14 3.00
2024 British Grand Prix SLICK->INTER 21-27 7 1.459 -9.36 -2.79
Drying INTER->SLICK, g median 0.81 s/lap per lap (range 0.04 to 3.77, n = 4)
late_switch_cost(g = 1.0): 1 lap late 0.50 s, 2 laps 2.00 s, 3 laps 4.50 s, 5 laps 12.50 s
late_switch_cost(g = 2.0): 1 lap late 1.00 s, 2 laps 4.00 s, 3 laps 9.00 s, 5 laps 25.00 s
The range is enormous, and it is the most useful thing in the table. At Zandvoort 2023, $g$ was 3.77 s per lap per lap. Three laps late at that rate costs about $\tfrac{1}{2} \times 3.77 \times 9 \approx 17$ s, most of a pit stop. At São Paulo 2026, $g$ was 0.04 near the tie, and the timing barely mattered as long as you were within a few laps. The value of getting the call right depends on how fast the track is changing, and that can be read off the pathfinder's lap times as they arrive.
Testing it: time over the window against the switch lap
If the quadratic is right, a driver's total time across a transition should form a U against the lap he changed. We add up every lap in a window, pit laps included, for every finisher who changed class inside it. Then we subtract each car's dry-pace offset (its median dry lap minus the field's) times the number of laps, so that a fast car doesn't look like a good strategy.
# code/04_switch_timing.py (excerpt)
t = timing_table(s, a, b, win) # per driver: in-lap, window time, dry-pace offset
t["adj_s"] = t.window_s - (hi - lo + 1) * t.pace_offset_s
c2, c1, c0 = np.polyfit(t.in_lap, t.adj_s - t.adj_s.min(), 2)
best_in_lap = -c1 / (2 * c2) # vertex of the parabola, if it opens upwards
2023 Dutch GP, inters -> slicks, window laps 6-18 (n = 13 drivers)
quadratic: curvature 2.50 s per lap^2 (so g = 2 x curvature = 4.99), best in-lap 7.8; median in-lap 10
Spearman(|in-lap - best|, time lost) = 0.70
2025 British GP, inters -> slicks, window laps 34-50 (n = 15 drivers)
quadratic: curvature 0.13 s per lap^2 (so g = 2 x curvature = 0.25), best in-lap 43.2; median in-lap 41
Spearman(|in-lap - best|, time lost) = -0.10
2024 British GP, slicks -> inters, window laps 17-31 (n = 19 drivers)
quadratic: curvature 1.68 s per lap^2 (so g = 2 x curvature = 3.37), best in-lap 26.3; median in-lap 26
Spearman(|in-lap - best|, time lost) = 0.62

📊 Figure (described): Four panels, one per transition. Each dot is a finisher: the x-axis is his in-lap, the y-axis his time over the window relative to the best, after removing his car's dry pace. Squares made two or more stops in the window. Zandvoort 2023 (top right) and Silverstone 2024 (bottom right) show clear U-shapes, with best in-laps of 7.8 and 26.3. Silverstone 2025 (bottom left) is flat. In São Paulo 2026 (top left), everyone changed within four laps of a near-zero delta, and the fit has no U-shape at all.
Two of the four transitions show the predicted U. The Zandvoort curvature of 2.50 s per lap² implies $g$ ≈ 5.0, the same order as the 3.77 we measured from the paired laps, using a completely different calculation. Its best in-lap, 7.8, sits right on the measured crossover of lap 8. The Silverstone 2024 curve bottoms out at lap 26.3; the field's median in-lap was 26. And on the left side of that panel are the four cars that changed after lap 19. After removing their cars' pace, Leclerc lost 108.3 s, Pérez 101.4 s, Zhou 112.9 s and Ocon 80.1 s to the best timing over the 15-lap window. That is four to five pit stops' worth of time, every one of them spent on the wrong tyre or making an extra stop to fix the first decision.
The two flat panels are just as instructive. When $g$ is small (São Paulo 2026) or the field moves together (Silverstone 2025), the timing differences are smaller than the noise of traffic, car damage and driver error, and the data cannot rank the switch laps at all. The quadratic tells you when timing can matter. It does not promise that it always will.
The stop the rain saved
Rain late in a race offers one more trick, and São Paulo 2026 shows it. Because the two-compound rule lapses once intermediates are used, a driver on a long slick stint loses nothing by never making a slick-to-slick stop. When the rain came back on lap 59, three cars were still on the only slick set they had used, fitted after lap 15 or 16: George Russell, Charles Leclerc and Sergio Pérez.
One slick set (no slick-to-slick stop): RUS, LEC, PER; mean places gained lap 18 -> finish +3.3 vs -0.3
for two-set drivers
Russell went from seventh after lap 18 to fourth at the flag, Leclerc from 13th to 8th, Pérez from 20th to 18th. The 17 drivers who used two slick sets gained −0.3 places on average over the same span. Three drivers is far too few to call it a strategy. But the mechanism is real: in a race where rain is likely to return, a long slick stint keeps open the option of turning the next weather change into your only stop.
The decision rule
Strip it down, and the switch decision becomes a sum over the laps that remain.
📐 Definition: For a forecast delta $\Delta_j$ on each remaining lap $j$ (positive when the new class is faster) and a pit loss $P$, fitting the new tyres from remaining lap $k$ onward gains
$$ G(k) = \sum_{j \ge k} \Delta_j \;-\; P, $$
and the best choice is the $k$ that maximises $G$, or staying out if no $G(k)$ is positive.
In words: switch when the time the new tyre will save over the rest of the race exceeds what the stop costs; among the laps on which that is true, pick the one that wastes the fewest laps on the wrong tyre.
This is the Chapter 12 break-even (pit loss ÷ gain per lap) with a gain that changes lap by lap. Two consequences follow straight away. Late in a race, the right answer can be to stay on the wrong tyre. With 8 laps left and a 2 s per lap advantage, a green stop at 22.512 s never pays back: 8 × 2 = 16 s. A safety car changes the answer. At 12.722 s, the same switch pays. The Project Checkpoint runs the module's switch_decision on exactly this case.
📋 Try it: Call the pit stop — 2025 Australian GP, lap 44. You are on slicks, running in the top eight. You fitted them during the lap-34 safety car. The track has been dry for ten laps: the slick median was 84.749 s on lap 43. Rain is now falling. Your lap 44 is about 3.6 s slower than your lap 43, and the leader, Lando Norris, has just come in for intermediates at the end of lap 44. There are 13 laps to go. Do you pit at the end of lap 44, or stay out a lap or two and hope the shower passes?
Reveal
The data:
2025 Australian GP, laps 42-46: class medians (s)
SLICK_s n_SLICK INTER_s n_INTER
42 86.979 16.0 NaN NaN
43 84.749 16.0 NaN NaN
44 88.332 7.0 NaN NaN
45 93.045 7.0 NaN NaN
46 98.086 4.0 91.718 6.0
SLICK->INTER changes: NOR L44, BOR L44, STR L44, ANT L44, RUS L44, PIA L44, HUL L44, ALB L44, BEA L44,
OCO L46, VER L46, GAS L46, TSU L47, LEC L47, HAM L47
NOR: P1 after lap 43, P1 after lap 48, finish P1 (grid 1)
VER: P3 after lap 43, P2 after lap 48, finish P2 (grid 3)
RUS: P4 after lap 43, P3 after lap 48, finish P3 (grid 4)
HAM: P8 after lap 43, P9 after lap 48, finish P10 (grid 8)
LEC: P6 after lap 43, P10 after lap 48, finish P8 (grid 7)
TSU: P5 after lap 43, P11 after lap 48, finish P12 (grid 5)
ALB: P7 after lap 43, P4 after lap 48, finish P5 (grid 6)
The slick median got 3.6, 4.7 and 5.0 s slower on successive laps, so $g$ was about 4–5 s per lap per lap. On lap 46 the six cars already on intermediates lapped 6.4 s faster than the four still on slicks. Nine cars pitted at the end of lap 44. Of those, Norris, Russell and Albon held or gained places: Albon went from seventh to fourth. The cars that stayed out two or three laps (Tsunoda, Leclerc, Hamilton) were running P1–P4 on lap 46 as others pitted, and fell to P9–P11 by lap 48, even though Leclerc and Hamilton then got their stop under the lap-47 safety car. With $g$ ≈ 4.5, two laps late costs about $\tfrac{1}{2} \times 4.5 \times 4 = 9$ s; three laps, about 20 s. Pit at the end of lap 44. (Oscar Piastri also pitted on lap 44 and dropped from P2 to P13. The data show the drop but not its cause, so it isn't evidence either way about the call.)
🔄 Check your understanding 1. If $g$ = 2 s per lap per lap, how late can you be before the timing error costs as much as a green stop (22.512 s)? 2. Why does the stop's own cost drop out of the timing question but not out of the "stop at all?" question?
Answer
- $\tfrac{1}{2} \times 2 \times k^2 = 22.5$ gives $k^2$ = 22.5, so $k$ ≈ 4.7 laps.
- If you are certain to stop, the stop is a fixed cost wherever you put it, so only the laps on the wrong tyre vary. Whether to stop at all compares the remaining gain with the stop's cost, so the cost decides it.
15.7 Is There Such a Thing as a Rain Master?
Fans and commentators often say that certain drivers gain more in the rain than their car would predict. The 2026 São Paulo GP will be offered as evidence. Max Verstappen started 21st and was sixth by lap 10, still on intermediates, before finishing second (Jolpica grid and running positions). One race is a story, though. Is there a pattern?
The only clean comparison is with the team-mate: same car, same race, same conditions. We build two measures, each of them the change in a team-mate gap from dry to wet, in percentage points of lap time.
- Race: for each team-mate pair in each wet race or sprint, the median paired-lap gap on laps where both ran wet-weather tyres, minus the same pair's median gap on laps where both ran slicks in the same race. Pairs need at least 8 laps of each kind.
- Qualifying: the best-common-session gap (the toolkit's
teammate_quali_gap) in the six qualifying sessions run at least 80% on wet-weather tyres, minus the pair's median gap in that season's dry qualifying sessions.
Wet qualifying sessions (>= 80% of laps on INTER/WET): 2023 R8, 2023 R13, 2024 R14, 2024 R21, 2025 R22, 2026 R20
Pair-events: race 41, quali 61
Shift (wet gap - dry gap), percentage points of lap time: median |shift| 0.68, SD 2.29 (race SD 0.72, quali SD 2.90)
For scale: |dry gap| median 0.25 pp across the same pairs
The first fact is scale. A typical dry team-mate gap in these pairs is 0.25% of lap time. A typical change from dry to wet is 0.68 points, nearly three times larger, and the standard deviation is 2.29 points. Rain reshuffles team-mates by more than the gap between them. The question is whether it reshuffles them consistently.
We test that in two ways.
A formal test. Model each pair-event's shift as $s = \theta_a - \theta_b + \varepsilon$, where $\theta$ is a driver's wet effect, and fit the θs by least squares through the team-mate network (the same network idea as Chapter 21). If wet skill did not exist, each shift would be equally likely to be positive or negative. So we flip the signs at random 2,000 times and see how often the driver effects explain as much as they do on the real data.
Driver effects explain 44.3% of the shift variance; sign-flip permutation (2,000 runs, seed 42): p = 0.011
(null mean 36.3%)
Race-measure vs quali-measure driver effects, drivers in both: n = 29, Spearman -0.07
Driver effects explain 44.3% of the variance, against 36.3% expected by chance. The permutation p-value is 0.011. So there is something driver-specific in how team-mate gaps change in the rain. But the race measure and the qualifying measure disagree completely: their driver rankings correlate at −0.07. Whatever the structure is, it is not one stable trait that shows up on Saturday and Sunday alike.
Per driver. For drivers with at least 8 pair-events, the mean shift against whoever the team-mate was:
Per driver, >= 8 pair-events: mean shift vs his team-mates (bootstrap 95% CI of the mean, seed 42)
mean_shift_pp lo hi n n_neg
driver
HUL -1.515 -3.566 -0.138 10 7
ALB -1.241 -2.740 -0.003 10 6
NOR -0.969 -1.623 -0.441 10 8
VER -0.737 -1.288 -0.230 9 7
OCO -0.698 -1.931 0.071 9 6
LEC -0.634 -1.631 0.246 10 6
BOT -0.601 -1.112 -0.026 8 5
RUS -0.553 -1.200 0.022 10 5
ALO -0.479 -0.987 0.075 10 8
SAI 0.349 -0.666 1.551 10 6
TSU 0.378 -0.315 1.072 10 4
STR 0.479 -0.075 0.987 10 2
GAS 0.581 -0.239 1.778 10 3
HAM 0.615 0.058 1.201 11 5
PIA 0.969 0.441 1.623 10 2

📊 Figure (described): One row per driver with at least 8 wet pair-events. A dot left of zero means the driver did relatively better against his team-mates in the wet than in the dry. Green rows have 95% intervals that exclude zero; grey rows do not. The right-hand column counts how many of his events went his way.
How should you read this? Carefully, for four reasons.
- The rows are not independent. Norris and Piastri have been team-mates for the whole period, so their rows are mirror images (−0.969 and +0.969): one comparison, shown twice. Across our network, McLaren's pair is an isolated group, and so are Alonso–Stroll and the Red Bull family (Verstappen and his team-mates).
- "Relative to his team-mates" depends on the team-mates. Verstappen's −0.737 [−1.288, −0.230] (7 of 9 events negative) is measured against Pérez, Lawson, Tsunoda and Hadjar. Hamilton's +0.615 [+0.058, +1.201] is measured against Russell (2023–2024) and Leclerc (2025–2026). Neither number places a driver on an absolute scale.
- Seven of 15 intervals exclude zero, against 0.8 expected by chance. That fits the permutation test: there is a signal. But with two mirror pairs and overlapping team-mates, the count overstates how many independent findings there are.
- The qualifying measure is very noisy (SD 2.90 points). One session in which a driver was caught out by a shower, or set his lap just before the track dried, can move a driver's mean by half a point.
The honest verdict for 2023–2026: team-mate gaps change a lot in the rain, and part of the change is driver-specific (p = 0.011). But no ranking of "rain masters" is stable across races and qualifying (Spearman −0.07), and every individual estimate rests on 8 to 11 noisy events. In this window, Norris against Piastri and Verstappen against his team-mates are the cleanest cases of a driver gaining in the wet. The familiar lists of rain masters are hypotheses that these data can neither confirm nor rule out.
⚠️ Common pitfall: remembering the wet races in which a reputed rain master shone and forgetting the ones in which he didn't. Wet races are rare (11 Grands Prix in four seasons), memorable and chaotic. That is the ideal recipe for a story built on a few vivid examples. Before you believe one, count all the wet events and compare like with like.
🔄 Check your understanding 1. Why is a sign-flip permutation the natural null test here? 2. Verstappen's mean shift excludes zero; Leclerc's does not. Does that mean Verstappen is a better wet-weather driver than Leclerc?
Answer
- Under "no wet skill", the dry-to-wet change in a team-mate gap is pure noise, equally likely to favour either driver, so its sign is a coin toss. Flipping signs at random keeps the data's size and network structure while destroying any real skill.
- No. They were never team-mates in these data, and they sit in different parts of the network (Verstappen's group is isolated). Each number is relative to a different set of team-mates, and their intervals overlap.
15.8 Before 2023: Reading a Wet Race from Lap Times Alone
The famous wet races, Brazil 2016, Hungary 2021 and Spa 2021, come before OpenF1. For them our free data are Jolpica lap times, running positions, pit-lane times and results: no compounds, no flags and no weather. Everything about tyres and flags has to come from the sourced fact sheets in data/reference/notable_races.md, or be inferred from lap times and labelled as an inference. Case study 2 works through all three. Here is the method, on the most famous of them.
2016 round 20: Brazilian Grand Prix; 71 laps; 21 drivers with lap times
Verstappen's pit stops (Jolpica: lap = in-lap; duration = pit-lane time; compounds NOT recorded):
stop lap duration_s
1 13.0 24.186
2 20.0 2009.643
3 28.0 1481.433
4 43.0 24.435
5 54.0 24.041
Lowest position after lap 54: P14 (lap 55); places gained from then to the flag: 11
Laps 58-70, median lap (s): VER 86.249, HAM 86.468, ROS 87.014, PER 87.859, VET 88.073
Jolpica records five pit rows for Verstappen. Two of them are not stops at all. Rows 2 and 3, at laps 20 and 28, last 2,009 s and 1,481 s. Those are the two red flags, which the fact sheet dates to lap 20 (Räikkönen's crash) and to a second stoppage after 8 more safety-car laps (formula1.com race report). Jolpica records time in the pit lane during a suspension as a "pit stop". Every car shows the same pattern: 18 rows each on laps 20 and 28.
The real stops are laps 13, 43 and 54. The fact sheet tells us what two of them were: intermediates on lap 43 and full wets on lap 54 (formula1.com). In Jolpica's running order Verstappen was 14th after lap 55 and third at the flag, a gain of 11 places in 16 laps. (The fact sheet warns that F1's own report gives no consistent count of places gained, so quote ours as "in Jolpica's running order".) Over laps 58–70 his median lap was 86.249 s, against 86.468 s for Hamilton, the winner, and 1.266 s per lap quicker than the field median.

📊 Figure (described): Top: running positions for Verstappen, Hamilton and Rosberg, with Verstappen's five Jolpica pit rows as dotted lines (laps 20 and 28 are the red flags). Bottom: the field-median lap with pit laps removed. Red dots mark laps the toolkit's lap-time detector calls neutralised. The opening laps behind the safety car and the stoppages show as peaks. The long slow spell around laps 48–55 is flagged too, though the detector cannot say whether it was a safety car, rain or both.
⚠️ Common pitfall: treating the lap-time detector as a flag feed in wet races. The detector compares each lap with a rolling local median precisely so that rain does not trigger it (its "rain guard"; toolkit README §4). In wet conditions that guard cuts both ways. The fact sheet says the first 7 laps of Brazil 2016 ran behind the safety car, but the detector flags only laps 1 and 5, because the whole opening spell was slow and the local median rose with it. Before 2023, a wet race has no reliable lap-level flag record in our free data. Say so whenever you analyse one.
🔄 Check your understanding 1. In Jolpica, how can you tell a red-flag suspension from a real pit stop? 2. Name two things you cannot know about the 2016 Brazilian GP from Jolpica alone, and where the book gets them instead.
Answer
- By duration and by how many cars share it: a suspension shows as a "stop" lasting tens of minutes, recorded for most of the field on the same lap (18 rows each on laps 20 and 28 in Brazil 2016).
- Which tyres were fitted (intermediates on lap 43, full wets on lap 54), and when the safety car and red flags were called. Both come from the sourced fact sheet in
data/reference/notable_races.md(formula1.com).
15.9 What Our Data Can't See
Every number in this chapter comes from timing and weather data. Here is what a team has and we don't, and how much it matters.
- Track wetness. Teams have their own weather service, trackside observers and the driver's voice. We have a 0/1 rain flag from one weather station, updated about once a minute. Our wetness gauge is the intermediate's lap time, which only exists when intermediates are running.
- Tyre temperatures. The intermediate's overheating on a drying track (Section 15.2) shows up in the lap times. Teams see it in tyre-temperature channels that OpenF1 does not carry.
- What each driver was asked to do. Team radio in OpenF1 is an index of audio URLs with no transcripts. We cannot say why a car pitted, only when, and what happened next.
- Spray and visibility. Full wets are used mostly when visibility, not grip, is the limiting factor, and races are often neutralised for it. We have no visibility measure. The 98.3% intermediate share partly reflects races being stopped rather than run on wets.
- The 2026 tyres. No water-dispersal figure has been published, and the 2026 penalty model rests on two wet 2026 Grands Prix with real intermediate running (Sepang, briefly, and São Paulo).
- Pre-2023 races. Lap times, positions and pit-lane times only. No compounds, no flags, no weather.
None of this stops the analysis, but it sets its resolution. Our crossover estimates are good to a few percentage points of gauge, and to a lap or two in timing. A team with tyre temperatures and its own radar can do better. That is also where judgement takes over: theme 3 of this book, data sharpens instinct, is never more literal than when a driver says "it's raining in sector 2" and the model has no channel for sector 2.
Spaced Review
From Chapter 12. Before you look: what is the break-even number of laps for a stop that buys a constant advantage $\delta$ per lap, at pit loss $P$? And what does it predict for a switch with 8 laps left, a 2 s per lap advantage and a green stop?
Answer
$P/\delta$. At 22.512 s and 2 s per lap it is 11.3 laps, so with 8 laps left the green stop does not pay. Section 15.6 generalises this to a delta that changes every lap.
From Chapter 14. Why did a safety car cut the pit loss from 22.512 s to 12.722 s, and what does that do to a wet crossover?
Answer
Under a safety car the stretch of track the pit lane bypasses is driven slowly, so the pit lane costs much less by comparison. In a crossover, an SC makes it cheap to switch early: at Australia 2025, all 14 cars that changed to slicks on laps 33–39 did it under the safety car.
From Chapter 4. The working window: which side of it does an intermediate fall off on a drying track, and what does that look like in lap times?
Answer
The hot side. Without water to cool the tread, the blocks overheat and grip falls, so the intermediate runners' laps flatten or get slower while the track improves (Zandvoort 2023, laps 5–11: +0.20 points of dry pace per lap, while slicks improved by 4.74 points per lap).
Project Checkpoint: wet.py
Aisha's simulator could already race a dry Grand Prix, price a safety car, and decide between one and two stops. It could not cope with rain. This chapter's module, project/boxbox/wet.py, gives it a wet track.
Aisha: I need two things from the rain. A lap-time penalty for each tyre at a given wetness, and a rule for when to change. Tom: And you don't have a wetness sensor. Aisha: So the intermediate is the sensor. If inters are 12% off dry pace, that's the gauge.
What the module contains:
- Who ran what: tyre_class(compound), wet_sessions(years, kinds) and field_mix(session) (the tyre-class share of the field, the rain-flag share and the track status, lap by lap).
- Pace by class: dry_reference(session), representative_laps(session) and class_pace(session).
- Crossovers: crossover_lap(session, from_cls, to_cls, laps=...) (pathfinder lap, half-field lap and measured crossover), switch_table(...) (who changed when) and window_time(...).
- The model: paired_laps, tie_points, slick_rate_ratio and wet_slope, assembled by wet_penalty_model(pairs) into a WetPenaltyModel with penalty(cls, w), lap_time(cls, w, dry_ref_s), delta_s(old, new, w, dry_ref_s), crossover(a, b) and best_class(w).
- Decisions: late_switch_cost(g, k, b), switch_decision(delta_s, pit_loss_s) and worth_switching(laps_left, delta, kind). The last uses Chapter 12's strategy.break_even_laps, and can scale a circuit's own green loss with Chapter 14's neutralisation.sc_pit_loss.
- Wet skill: teammate_lap_gaps(session).
The checkpoint script fits the model and calls a switch for a forecast shower at three points in a race:
# code/project_checkpoint.py (excerpt)
M = wet.wet_penalty_model(wet.paired_laps(wet.wet_sessions(kinds=("R", "S")).session_key.tolist()))
for laps_left in (20, 8, 4):
w = np.minimum(0.03 + 0.0475 * np.arange(laps_left), 0.22) # gauge rises 3% -> 22% in 4 laps
delta = M.delta_s("SLICK", "INTER", w, ref["dry_ref_s"]) # positive = inters faster
for kind in ("GREEN", "SC"):
d = wet.switch_decision(delta, pit_loss_s=wet.PIT_LOSS[kind])
4. switch_decision for a forecast shower (w: 3% -> 22% over 4 laps, then steady), dry pace 76.012 s
20 laps left, GREEN pit loss 22.512 s: inters from remaining lap 3 (in-lap = remaining lap 2) (net gain +26.3 s)
20 laps left, SC pit loss 12.722 s: inters from remaining lap 3 (in-lap = remaining lap 2) (net gain +36.1 s)
8 laps left, GREEN pit loss 22.512 s: stay on slicks (net gain +0.0 s)
8 laps left, SC pit loss 12.722 s: inters from remaining lap 3 (in-lap = remaining lap 2) (net gain +0.9 s)
4 laps left, GREEN pit loss 22.512 s: stay on slicks (net gain +0.0 s)
4 laps left, SC pit loss 12.722 s: stay on slicks (net gain +0.0 s)
worth_switching(8 laps, 2.0 s/lap, GREEN) = False; under SC = True
🧪 Illustrative model: the shower forecast (a gauge rising from 3% to 22% in four laps) is an assumption chosen to show the decision logic, not a forecast of any real race.
Read the output as a decision table. With 20 laps left the module switches on the lap the gauge passes the 11.3% tie, whatever the pit loss. With 8 laps left a green stop never pays back, but a safety-car stop does, by 0.9 s. With 4 laps left you stay on slicks and suffer. These are exactly the calls the 2025 Australian and 2026 São Paulo finales asked of real pit walls.
How it plugs in later: Chapter 27's Monte Carlo engine will draw weather scenarios (built in Chapter 36's conditions.py) as gauge paths. It will use WetPenaltyModel.lap_time for every car's lap and switch_decision as the default wet pit rule. Chapter 40 wires it into the command-line simulator.
Chapter Summary
| Quantity | Definition | Value (OpenF1 2023–2026 R21 unless stated) |
|---|---|---|
| Wet Grands Prix | any INTERMEDIATE/WET lap | 11 of 91 = 12.1% (6.9–20.4); rain flag or wet tyres: 21 of 91 |
| Share of wet-tyre laps on intermediates | INTER / (INTER + WET) | 98.3% (4,757 vs 84 laps) |
| Intermediate penalty | median lap vs the race's own dry pace (no fuel correction) | 13.2% (10.6–15.5), n = 7 races; range 7.7–21.6% |
| Full-wet penalty | same | 24.9% (Monaco 2023), 21.3% (Canada 2024) |
| Wetness gauge $w$ | $t_{\text{inter}}/t_{\text{dry}} - 1$ | — |
| Slick/inter crossover | median tie point | $w$ = 11.3% (8.2, 11.3, 14.5; n = 3) |
| Inter/wet crossover | median tie point | $w$ = 23.3% (22.1, 24.5; n = 2) |
| Slick slope / wet slope | rate ratio / WLS on the gauge | 1.36 (n = 6) / 0.42 (SE 0.08, 28 laps) |
| Transition spread | first to last in-lap | median 3 laps (drying 6, wetting 3), 17 transitions, 233 cars |
| Delta growth $g$ | slope of the paired-lap delta | drying median 0.81 s/lap² (0.04–3.77) |
| Late-switch cost | $C(k) \approx \tfrac{1}{2} g k^2$ | Zandvoort 2023 curvature 2.50 s/lap², best in-lap 7.8 |
| Wet pit loss | near-field, fresh inters, green | 25.20 s (14.03–46.54), n = 5: no measurable discount |
| Inter → slick stop | near-field, includes the cold first lap | 29.27 s (n = 23) vs dry 22.56 s (same method) |
| Wet skill | team-mate gap shift, network permutation test | p = 0.011; race vs quali rankings Spearman −0.07 |
Decision checklist for a crossover: 1. What is the gauge now? (Intermediate lap ÷ dry pace − 1.) Below about 11%, slicks; above about 23%, full wets. 2. Who is the pathfinder, and how did their second lap on the new tyre compare? (The first one is a warm-up lap.) 3. How fast is the delta growing? A large $g$ means every lap of delay costs more than the last: go now. 4. How many laps are left? Use $G(k) = \sum \Delta_j - P$. Late in a race, the right call can be to stay out. 5. Is there a safety car? It cuts the stop to about 12.7 s, and it can make an early switch the right one. 6. Don't wait for the rain flag. The tyres the field is choosing are better evidence.
What's Next
Rain also reshapes Saturday. In Chapter 16 we turn to qualifying: track evolution, traffic and run timing, and what happens to all of them when the track is drying and the last car across the line has the fastest track of all. The crossover logic of this chapter becomes a question of when to set your one lap.