Chapter 15 Exercises — Wet Weather Strategy
Difficulty: ⭐ concept check · ⭐⭐ calculation or short code · ⭐⭐⭐ analysis or judgement · ⭐⭐⭐⭐ open-ended project
All code exercises run offline on the book's data snapshot (OpenF1 2023–2026 through the 2026 Las Vegas GP; Jolpica-F1 1950–2026). Start from the chapter scripts in code/ and the module project/boxbox/wet.py. Where an answer quotes a number, it comes from the chapter's own runs, so your output should match it.
Part A — Concepts ⭐
A1. Name the three tyre classes and, for each, the track condition it is built for. Why does the two-compound rule lapse once a driver uses intermediates or wets?
A2. In 11 wet Grands Prix from 2023 to 2026, 98.3% of the laps run on wet-weather tyres were on intermediates. Give two reasons, one about the tyres and one about race control, why full wets are used so rarely.
A3. Explain in two sentences why OpenF1's rainfall field is weak evidence of track wetness. Give one race from the chapter in which the field switched tyres while the rain flag barely registered.
A4. What is the wetness gauge $w$? Why is it defined using the intermediate rather than the slick or the full wet?
A5. The chapter says intermediates "stop getting faster" on a drying track. Explain the physical reason, and say which channel a team has that would show it directly but OpenF1 lacks.
A6. Define the pathfinder of a transition. Why is the pathfinder's second lap on the new tyre more informative than the first?
A7. Why does a naive regression of slick lap-time excess on intermediate excess, across all laps where both ran, give a slope below 1? Use the word truncation in your answer.
A8. "Being late costs the square of the delay." State the assumption about the lap-time delta that makes this true, and give one race in the chapter where the assumption clearly held and one where the delta barely grew.
A9. Why is the team-mate the right comparison for "wet-weather skill"? Name two things that team-mate comparisons still cannot control.
A10. List three things you cannot know about the 2021 Hungarian GP from Jolpica data alone, and say where the book gets them instead.
Part B — Calculations & Physics ⭐⭐
B1. Water flow. A tyre with an assumed contact width of 0.30 m runs at 250 km/h through a 1.5 mm water film. How many litres per second must it clear? Compare your answer with the published intermediate figures, each with its year.
Solution
$v$ = 250/3.6 = 69.4 m/s. $Q = h\,b\,v$ = 0.0015 × 0.30 × 69.4 = 0.0313 m³/s ≈ 31 L/s. That is above Pirelli's 2014/2016 intermediate figure (25 L/s per tyre at full speed) and inside the 2020 figure of 35–40 L/s at 300 km/h only if you scale that one down for speed (at 250 km/h, 35–40 L/s × 250/300 ≈ 29–33 L/s). The contact width is an assumption (🧪), so this is an order-of-magnitude comparison. There is no published 2026 figure to compare with.
B2. Aquaplaning speed. Using $v_{\text{aq}} \approx \sqrt{2p/\rho}$, find the smooth-tyre aquaplaning speed for an assumed contact pressure of 120 kPa and of 180 kPa. By what factor does the speed rise when the pressure rises by 50%?
Solution
120 kPa: $\sqrt{2 \times 120\,000 / 1000}$ = 15.5 m/s = 55.8 km/h. 180 kPa: $\sqrt{360}$ = 19.0 m/s = 68.3 km/h. The speed scales with $\sqrt{p}$, so a 50% rise in pressure raises it by $\sqrt{1.5}$ = 1.22, or 22%. Both pressures are assumptions (🧪); the point is the square-root scaling, and that both speeds are far below racing speed.
B3. The model at Silverstone. Use the chapter's WetPenaltyModel ($w^*_{\text{SLICK}}$ = 0.113, $s_{\text{SLICK}}$ = 1.36, $w^*_{\text{WET}}$ = 0.233, $s_{\text{WET}}$ = 0.42) and Silverstone 2024's dry pace of 92.340 s. Compute the slick, intermediate and full-wet lap times at $w$ = 0.09, 0.15 and 0.28, and name the fastest class at each.
Solution
The model's own output (script 02): at $w$ = 9%, slick 99.866, inter 100.651, wet 108.330 → SLICK. At 15%: slick 107.410, inter 106.191, wet 110.647 → INTER. At 28%: slick 123.756, inter 118.195, wet 115.669 → WET. Check one by hand: slick at 15% = 92.340 × (1 + 0.113 + 1.36 × 0.037) = 92.340 × 1.1633 ≈ 107.42 s (rounding in the parameters explains the last digit).
B4. Late-switch cost. The delta between intermediates and slicks grows at $g$ = 1.31 s per lap per lap (the chapter's value for the 2025 British GP drying crossover). Using $C(k) = k\,b + g\,k(k-1)/2$ with $b = g/2$, how much does a car lose by switching 1, 2, 3 and 4 laps late? How late can it be before the loss equals a green-flag pit loss of 22.512 s?
Solution
With $b = g/2$, $C(k) = g k^2/2$ exactly. $C$ = 0.655, 2.62, 5.90 and 10.48 s for $k$ = 1, 2, 3, 4. Setting $g k^2/2$ = 22.512 gives $k^2$ = 34.4, so $k$ ≈ 5.9 laps. At Zandvoort's $g$ = 3.77 the same loss arrives after $\sqrt{2 \times 22.512/3.77}$ ≈ 3.5 laps.
B5. Switching late in a race. It starts raining with 10 laps to go. Your strategist predicts intermediates will be 0 s faster on the next lap, then 2, 4, 6, 6, 6, 6, 6, 6, 6 s per lap faster on the following laps. Using $G(k) = \sum_{j \ge k} \Delta_j - P$, find the best lap to fit intermediates under a green-flag stop (22.512 s) and under a safety car (12.722 s).
Solution
Tail sums of the deltas from remaining lap $k$: $k$=1: 48; $k$=2: 48; $k$=3: 46; $k$=4: 42; $k$=5: 36; $k$=6: 30; … Fitting from lap 1 or 2 gains 48 − 22.512 = +25.5 s (green) or 48 − 12.722 = +35.3 s (SC). Lap 1's delta is 0, so pitting at the end of the current lap ($k$ = 1) and the next ($k$ = 2) tie; any later costs the lost deltas. The module's switch_decision returns the first maximum, $k$ = 1. Under either pit loss, switch now.
B6. When staying out is right. Same shower, but only 4 laps remain and the predicted deltas are 0, 2, 4, 6 s. Is any switch worth it under green? Under SC?
Solution
Best tail sum: 0 + 2 + 4 + 6 = 12 s. Green: 12 − 22.512 < 0 → stay out. SC: 12 − 12.722 = −0.7 s → still stay out, narrowly. This matches the checkpoint output: with 4 laps left, the module stays on slicks under both pit losses.
B7. Fuel and the penalty. The chapter applies no fuel correction to wet penalties. Using the book's data-driven fuel-and-evolution effect of −0.056 s per race lap (an upper bound), how much could a 25-lap separation between the dry reference laps and the wet laps bias an 85 s lap's penalty? Express it in seconds and in percentage points.
Solution
25 × 0.056 = 1.4 s at most, which is 1.4/85 = 1.6 points of lap time. If the wet laps come later in the race (lighter car), the true penalty is up to 1.6 points larger than measured; if earlier, smaller. Against a median intermediate penalty of 13.2%, that is a noticeable but second-order bias, which is why the chapter quotes the penalties to about ±2 points.
Part C — Data & Code ⭐⭐–⭐⭐⭐
C1. Analyze this session: 2023 Monaco GP, laps 48–70. Using wet.field_mix, wet.class_pace(s, min_cars=1) and wet.switch_table, describe both transitions in this race (slicks → intermediates, then intermediates → full wets for a few cars). Who was the pathfinder each time? On which laps did full wets beat intermediates, and at what gauge did the sign change?
Expected shape: a tyre-mix table for laps 48–70; two switch tables. Check: the slick→inter pathfinder is Stroll (in-lap 51), 19 cars change by lap 55; the inter→wet change involves 2 cars from lap 57; full wets are faster on the paired laps until laps 64–65, where the tie falls at a gauge of 24.5%.
C2. Compare these drivers: Verstappen and Pérez, 2023 Dutch GP. Using wet.teammate_lap_gaps, compute the pair's median gap on wet-tyre laps and on slick laps. Then rerun with only laps 13–58 counted as dry. How sensitive is the "wet shift" to which laps you call dry?
Expected shape: one row per pair, with wet_gap_pct, n_wet, dry_gap_pct, n_dry. Check: the chapter's run gives PER − VER as +0.989% wet (13 laps) and +0.378% dry (36 laps), a shift of +0.61 points.
C3. Build the strategy: the shower-forecast table. Extend code/project_checkpoint.py so the forecast gauge rises from 3% to a peak $w_{\max}$ of 14%, 18%, 22% or 26% in four laps. For each peak, and for 20, 12, 8 and 4 laps remaining, report the module's decision and net gain under green and SC pit losses. Present the result as a grid.
Expected shape: a 4 × 4 grid of decisions, for each of two pit losses. Check: at $w_{\max}$ = 22% you should reproduce the chapter's row: switch with 20 laps left (green +26.3 s, SC +36.1 s); with 8 laps left, stay out under green but switch under SC (+0.9 s); with 4 left, stay out under both.
C4. Analyze this session: 2025 Australian GP, laps 26–40. Two cars (Bortoleto and Bearman) ran slicks from lap 4 while the field stayed on intermediates. Compute their laps against the intermediate median on laps 8–32, using class_pace. Did they ever beat the intermediates? What gauge were the intermediates at by lap 32?
Check: script 02's rate-ratio table shows a near-identical per-lap improvement for both classes over laps 8–32 (−0.31 points per lap each). The slick pair stayed 1.2–2.3 s per lap slower on the laps printed in script 03 (e.g. lap 28: 92.630 vs 90.382). The intermediate excess fell to about 4.8% by lap 32: a gauge below the 11.3% tie, yet slicks still slower. Explain why one pair of cars is weak evidence about the crossover. (Hint: whose cars were they, and how many laps does this race's dry reference rest on? Script 02 prints 32.)
C5. Predict the race: transitions without a crossover. For each of the 17 transitions in code/03_crossovers.py, record whether a measured crossover lap exists. Propose a rule (for example, "the lap the pathfinder's second lap beat the old class's median") that gives an estimate for every transition, implement it, and compare it with the median in-lap.
Expected shape: a 17-row table with pathfinder_rule_lap, median_in and their difference. Check: only 4 of 17 transitions have a measured crossover; your rule should exist for most of the rest.
C6. Analyze this session: the 2024 São Paulo GP red flag. Using f1data.stints and f1data.laps, list every car that stopped on laps 24–31 and every car that did not, with its position after lap 27, after lap 34 and at the finish. Then compute the median position change from lap 27 to lap 34 for each group.
Check: the cars that had not stopped (Verstappen, Ocon, Gasly) went from P5 / P3 / P6 after lap 27 to P2 / P1 / P3 after lap 34. All 16 cars that started a new stint on lap 33 fitted intermediates during the suspension.
C7. Compare these drivers: wet qualifying. Rebuild script 05's qualifying measure, but use OpenF1 laps: each driver's best intermediate or full-wet lap in the six wet qualifying sessions. Compare the resulting shifts with the Jolpica best-common-session measure. Do the driver rankings agree?
Expected shape: a per-driver table with both measures and a Spearman correlation. Hint: drivers eliminated in Q1 set no laps on the later, often faster, track. Decide how to handle that before you look at the answer.
C8. Analyze this session: rain flag vs tyres. For every wet race, compute the lap on which half the field was on wet-weather tyres and the first lap on which at least half the laps carried a rain flag. Plot one against the other. In how many races does the rain flag lead the tyres, and in how many does it lag?
Expected shape: a scatter with a 45° line, one point per transition. Check: the 2026 São Paulo finale has no lap at all on which half the laps carried a rain flag.
Part D — Strategy & Judgment ⭐⭐⭐
D1. Call the pit stop: 2024 British GP, lap 19. You are Ferrari's strategist with Leclerc seventh on medium slicks. Race control has just posted LOW GRIP CONDITIONS; your lap 19 is slow, and the rain flag is up. Write down your call (box now, or stay out and why), then open the reveal.
Reveal
The data: on laps 21–25 the slick median ran 93.484, 92.495, 92.752, 93.792 and 95.542 s, and the three intermediate runners 102.846, 104.936, 106.593, 110.729 and 108.245 s. Slicks stayed about 10 s per lap faster until the rain returned on lap 26. Leclerc boxed after lap 19 and was 16th after lap 22. He made a second stop for fresh intermediates on lap 27 and finished 14th. Over laps 17–31, after removing his car's dry pace, he lost 108.3 s to the best-timed driver (script 04). The defensible call on lap 19 was to stay out: one slow lap in a shower is not a gauge, and the stop costs at least 22.5 s whenever you make it. The lesson is not "never react to rain", but "react to the lap times of the cars that tried it".
D2. Call the pit stop: 2026 São Paulo GP, lap 60. You are running fourth on slicks, 16 laps old. Two cars came in for intermediates on lap 59; four more come in now. Your own lap times have not dropped off yet, and the rain flag shows nothing. There are 11 laps left. Box now, next lap, or not at all? Justify it with the chapter's decision rule, then compare with what the leaders did (in-laps in Section 15.5).
Reveal
What happened: Pérez and Camara came in after lap 59; Alonso, Bortoleto, Albon and Bearman after lap 60; eight more after lap 61; and the last six, including the top three (Norris, Verstappen, Hadjar), after lap 62. The rain flag never covered more than a quarter of the laps (laps 62–63). Once the leaders were on intermediates, the median intermediate lap settled at about 85 s, roughly 12% off the race's 76.012 s dry pace. That gauge sits right at the model's 11.3% tie, so the gain per lap was small. The leaders' choice to wait until lap 62 is consistent with a small, slowly growing delta: with $g$ small, two laps "late" cost little, and waiting let them see whether the shower was real. A car in fourth that boxed on lap 60 would have taken the cold out-lap on intermediates two laps earlier than the cars around it, for no measurable gain. A defensible call is "box with the leaders, not before them", unless your own lap times start to fall away first.
D3. Design the setup: wet-biased or dry-biased? It's Saturday evening. The forecast gives a 60% chance of rain in the second half of Sunday's race. You can trim the car for more downforce (better in the wet, slower on the straights) or keep the dry trim. Using the chapter's penalty model and your own assumptions (labelled 🧪) for the lap-time effect of each trim, set up an expected-value calculation. What else would you want to know before deciding?
Hint
Write the expected race time as $0.6 imes T_{ ext{wet}}( ext{trim}) + 0.4 imes T_{ ext{dry}}( ext{trim})$ for each trim. Use the penalty model for the wet laps and a labelled assumption (🧪) for how many tenths per lap each trim gains or loses in each condition. Then ask: how many laps would be wet? (A shower in the last 15 laps is not a wet race.) What does qualifying in the dry trim do to your grid slot? Can you change the trim under parc fermé if a Rain Hazard is declared? The 2026 reference file lists that declaration and says it permits specified work in parc fermé, so check the rule text before relying on it.
D4. The flexible slick stint. São Paulo 2026 suggested that a long slick stint can turn a returning shower into your only stop. Write a short argument for and against deliberately running a long first slick stint when the forecast gives a 40% chance of rain in the last 15 laps. Use the Chapter 12 break-even and the Chapter 14 idea of keeping options open.
D5. When the data say "wait". At Zandvoort 2023 the five cars on slicks were 1.2 s faster on lap 8, and the field changed on laps 9–12. Argue the case that the field's delay was correct given what it knew on lap 8, then the case that it was wrong. Which argument does the time-over-window curve (curvature 2.50 s/lap², best in-lap 7.8) support?
Part M — Mixed / Interleaved ⭐⭐–⭐⭐⭐
M1. (Chapters 12 and 15) The Chapter 12 break-even for a stop is $P/\delta$. Show that it is the special case of the switch rule $G(k) = \sum_{j \ge k}\Delta_j - P$ with a constant $\Delta_j = \delta$ and $k = 1$. Then explain what the chapter's rule adds when $\Delta_j$ grows lap by lap.
Solution sketch
With $\Delta_j = \delta$ for all $R$ remaining laps, $G(1) = R\delta - P$, which is positive exactly when $R > P/\delta$: the Chapter 12 break-even. With a constant delta, $G(k)$ falls as $k$ rises, so the best time to stop is now or never. With a growing delta, the early $\Delta_j$ are small or negative (the new tyre is not yet faster), so $G(k)$ first rises with $k$ and then falls. That gives a best switch lap strictly inside the window, which is the crossover. The constant-delta rule can only say "stop" or "don't"; the growing-delta rule also says when.
M2. (Chapters 14 and 15) At the 2024 São Paulo GP, a VSC (lap 28) and a safety car (lap 30) came before a red flag (lap 32). Using the Chapter 14 pit losses (VSC 15.671 s, SC 12.722 s, red flag: free tyre change), explain why the cars that did not stop under the VSC ended up 1-2-3 at the restart. Was stopping under the VSC a bad decision at the time it was made?
Solution sketch
Under the VSC a stop cost about 15.7 s instead of 22.5 s, a saving of roughly 7 s, and fresh intermediates were worth having in heavy rain. That was a good bet at the time. What nobody could know was that a red flag would follow four laps later, and during a red flag every car may change tyres for free. The cars that stopped under the VSC paid about 15.7 s for a tyre change that the cars behind them then got for nothing, and lost that time in track position. In the data, Verstappen, Ocon and Gasly, none of whom stopped on laps 24–31, ran 2-1-3 after lap 34. This is the Chapter 14 lesson in a wet setting: judge a decision by the information and odds at the time, not by the outcome. A Monte Carlo (Chapter 27) that includes the red-flag hazard in heavy rain is the way to price it properly.
M3. (Chapters 4, 5 and 15) Chapter 5's two-node thermal model has a surface node and a bulk node. Sketch how you would add a "water cooling" term that grows with the wetness gauge, and predict what it does to the intermediate's lap time on a drying track. Which data in this chapter would you use to calibrate it?
M4. (Chapters 21 and 15) Chapter 21's teammate chain rates drivers through shared team-mates. The wet-skill network in this chapter has four disconnected groups. Explain why Verstappen's wet effect cannot be compared with Hamilton's on the same scale, and what kind of driver move would connect the groups.
M5. (Chapters 13 and 15) An undercut on a drying track: the car behind switches to slicks one lap before the car ahead. Using the measured inter → slick near-field loss (29.27 s, which includes the cold first lap) and a delta that grows at $g$ = 1.31 s/lap², estimate whether a one-lap-early switch gains track position on a car 2.0 s ahead. State every assumption.
Part E — Research & Extension ⭐⭐⭐⭐
E1. A gauge without intermediates. The chapter's wetness gauge only exists when intermediates are running. Design a second gauge from sector times (OpenF1 duration_sector_1/2/3) that works on all-slick laps, and test whether it detects the onset of rain earlier than the field's tyre choice in the five slick-to-intermediate transitions. Report the lead time in laps with an interval.
E2. The full-wet question. Using every session in the snapshot (practice and qualifying included), collect all laps on which full wets and intermediates ran together. Re-estimate the inter/wet tie point and the full-wet slope with this larger sample. Does the 23.3% tie survive? Where does practice data mislead (fuel loads, programmes, cars not pushing)?
E3. Historical rain from lap times. Build a classifier for "wet race" for 1996–2022 using only Jolpica lap times: for example, the share of laps whose field median exceeds 1.08 × the race's 5th-percentile lap without a detector flag. Validate it against the 2023–2026 races, where OpenF1 tells you which races were wet. Report precision and recall, then list the wet races it finds before 2023.