Chapter 12 Exercises — Race Strategy Fundamentals
Difficulty legend: ⭐ concept check · ⭐⭐ calculation or short code · ⭐⭐⭐ multi-step analysis · ⭐⭐⭐⭐ open-ended project
Every script referred to here is in this chapter's code/ folder. All data come from the book's processed OpenF1 and Jolpica snapshot. Nothing needs a network connection. Unless a problem says otherwise, degradation rates are fuel-corrected at the toolkit's labelled assumption (100 kg start fuel, 0.03 s per kg per lap), and pit loss means the canonical green-flag pit loss (in-lap + out-lap − 2 × the driver's nearby median clean lap).
Part A — Concepts ⭐
A1. In one sentence each, define stationary time, pit-lane time and green-flag pit loss. Which of the three belongs in a strategy model, and why?
A2. Explain the threshold concept "strategy minimises total race time, not lap time" to a friend who asks why a team would deliberately make its car 20 s slower for two laps.
A3. Raw lap times on mediums and hards in race trim are almost flat through a stint (median raw slopes of 0.003 and −0.002 s/lap in 2023–2026), yet the chapter says those tyres degrade at about 0.05 s/lap. Reconcile the two statements.
A4. Why do the base-pace and fuel terms of the race-time equation not affect which strategy is optimal?
A5. The critical degradation rate for a second stop is $12(P + w)/N^2$. In words, what happens to the case for a second stop when (a) the pit loss rises, (b) the race gets longer, (c) a new set's warm-up penalty grows?
A6. What does the two-compound rule do at a circuit where the tyres barely wear? Use the 2025 Italian GP as your example.
A7. Give three reasons why the M-H-H runners at the 2026 Barcelona GP stopped earlier than the single-car optimiser recommends. Which of the three could the optimiser in this chapter represent, and which could it not?
A8. "Two-stoppers finish 1.43 places further back than one-stoppers from the same grid slot." Why is it wrong to conclude that a second stop costs 1.43 places?
A9. Name two blind spots of boxbox.strategy that would make it recommend too few stops, and one that could make it recommend too many.
Answers to Part A
A1. Stationary time is the time the car is stopped with its wheels being changed. Pit-lane time runs from the pit-entry line to the pit-exit line. Green-flag pit loss is the race time lost relative to staying out: (in-lap + out-lap) − 2 × the driver's nearby median clean lap. Only pit loss belongs in the model, because it is the time the strategy actually costs. Pit-lane time ignores the stretch of track the lane replaces and the out-lap warm-up; stationary time ignores the speed limit entirely.
A2. A stop buys fresh tyres that are about a second a lap faster. If 20 s lost now is repaid at 1 s a lap for the next 25 laps, the race finishes 5 s sooner. Strategy adds up every lap; it does not try to make each lap fast.
A3. Fuel burn makes the car faster every lap, by about as much as wear makes it slower. Correcting each lap for the fuel it carried isolates the tyre-age effect, which strategy needs because every strategy carries the same fuel on the same lap.
A4. Every strategy covers the same laps with the same car and burns the same fuel over them, so those terms are identical across strategies and cancel in any comparison.
A5. (a) A higher pit loss raises $d^*$, which weakens the case. (b) A longer race lowers $d^*$ as $1/N^2$, which strengthens it a lot. (c) A larger warm-up penalty raises $d^*$, which weakens it.
A6. It forces a stop that the race would not otherwise need. At Monza 2025, with fuel-corrected wear of 0.007 (MEDIUM) and 0.015 (HARD) s/lap, the model's no-stop "strategy" is 21 s faster than the best legal one-stop. The rule turns the stop into a tax whose timing is free: 19 stop laps lie within 1 s of the optimum.
A7. (1) Covering the undercut from the car behind. (2) Track position and traffic on rejoining. (3) Inputs that differ from the field median, such as a car that wears its mediums faster. The optimiser can represent (3) by supplying a team-specific CompoundParams. It cannot represent (1) or (2), because it races one car on an empty track.
A8. Strategy choice is not random. Drivers move to two stops after damage, a bad first stint or a cheap safety-car stop. The 1.43 mixes the effect of the strategy with the effect of whatever caused the switch.
A9. Too few stops: no safety-car hazard (cheap stops arrive at random), and no tyre-life limits or cliff (race data show managed stints). The track evolution absorbed into measured deg also understates wear. Too many: a deg rate inflated by a few short, hard-pushed stints. A thin-sample compound is the same problem, which is why fit_race_model has min_stints.
Part B — Calculations & Physics ⭐⭐
B1. Pit-lane physics. 🧪 Assume a 380 m pit lane with an 80 km/h limit, and assume the car would cover the parallel stretch of track at an average of 210 km/h. Ignoring braking, acceleration and stationary time, how much time does the speed limit alone cost? If the measured green-flag loss at that circuit is 21.1 s, how much is left for everything else?
Solution
80 km/h = 22.22 m/s and 210 km/h = 58.33 m/s. The lane takes 380/22.22 = 17.10 s and the track stretch 380/58.33 = 6.51 s, so the limit costs 10.59 s. That leaves 21.1 − 10.59 = 10.5 s for the stop itself, the deceleration and acceleration, and the out-lap on cold tyres. (Both speeds and the lane length are assumptions; the 80 km/h default is from the sporting regulations, as noted in data/reference/circuits_2023_2026.csv.)
B2. Pit loss from laps. At the 2026 Barcelona GP, Russell's second stop had an in-lap of 87.737 s and an out-lap of 99.632 s, with a reference lap of 82.884 s. Compute his pit loss. His pit-lane time was 21.677 s. Why are the two numbers so close at this circuit but 7.74 s apart at Silverstone?
Solution
87.737 + 99.632 − 2 × 82.884 = 21.601 s (the script prints 21.601). At Barcelona the pit-loss median is only 0.88 s above the pit-lane median. At Silverstone the median loss is 21.20 s against a lane time of 28.95 s: the lane is long and replaces a stretch of track that itself takes a lot of time, so the loss is much smaller than the lane time.
B3. Break-even. Using the measured median fresh-tyre delta of 1.078 s/lap, compute the break-even laps at Monza (pooled pit loss 25.41 s) and Miami (19.73 s). Then repeat with the weak-delta quartile (0.640 s/lap). What does the second pair of numbers tell you about stopping "for fresh tyres" late in a race?
Solution
Median delta: Monza 25.41/1.078 = 23.6 laps and Miami 19.73/1.078 = 18.3 laps. Weak delta: 39.7 and 30.8 laps. When the fresh set's advantage is small (a harder compound, or an old set that is not yet worn), a late stop rarely pays back before the flag. That is why late "free" stops happen mainly under safety cars, when the price falls.
B4. Critical deg. A 63-lap race at Imola (pooled pit loss 28.16 s), with warm-up ignored. Compute the critical deg for a second and for a third stop. The 2024 Emilia Romagna GP measured a median race deg of 0.069 s/lap. Which stop count does the formula predict? (Check: the finishers' median in that race was 1 stop.)
Solution
$d^*_{1\to2} = 12 \times 28.16/63^2 = 0.0851$ s/lap and $d^*_{2\to3} = 0.170$ s/lap. Since 0.069 < 0.085, the formula predicts one stop, which matches the field.
B5. Closed-form one-stop. Barcelona 2026 inputs: MEDIUM $d_1 = 0.182$, $o_1 = 0$; HARD $d_2 = 0.124$, $o_2 = -0.039$; $N = 66$; new starting set. Compute $s^*$ for Medium→Hard. Compare it with the search result.
Solution
$s^* = (0.124 \times 66 + (-0.039) - 0 + (0.182 - 0.124)/2)/(0.182 + 0.124) = (8.184 - 0.039 + 0.029)/0.306 = 8.174/0.306 = 26.7$. The module prints 26.6 (unrounded inputs) and the exhaustive search picks lap 27.
B6. A used starting set. For the same Medium→Hard one-stop, suppose the medium starts 3 laps old ($a_0 = 3$). The closed form subtracts $d_1 a_0/(d_1 + d_2)$. How many laps earlier should the stop come?
Solution
$0.182 \times 3/0.306 = 1.78$ laps earlier, so about lap 25. The used set "starts" its wear clock 3 laps in, so its stint should be shortened by a little over half that.
B7. The VSC stop. At the end of lap 40, Hamilton led Russell by 22.786 s. Over laps 41–42 Hamilton (pitting under the VSC) lost 19.797 s to Russell. The green-flag pit loss at the race was 23.682 s. Compute (a) the saving from the VSC and (b) where Hamilton would have rejoined with a green-flag stop. Compare (a) with the book's pooled VSC saving of 7.82 s per stop.
Solution
(a) 23.682 − 19.797 = 3.885 s. (b) 22.786 − 23.682 = −0.896 s, i.e. 0.9 s behind. The saving is well below the pooled VSC median because the VSC covered only part of the two laps (it was deployed during lap 41). The pooled figure, from the near-field variant in the book's reference tables, applies when both laps are inside the VSC window.
B8. Wear saved by extra stops. With $d = 0.124$ s/lap (Barcelona HARD) and $N = 66$, compute the wear saved by the second stop and by the third under equal stints. With $P = 23.68$ s, which stops pay?
Solution
Second: $0.124 \times 66^2/12 = 45.0$ s, which exceeds 23.68, so it pays. Third: $0.124 \times 4356/24 = 22.5$ s, just under 23.68 (and lower still once warm-up is added), so it does not quite pay. This is why the all-hard three-stop and the two-stop were close, and why the medium's faster wear decides it once the allocation forces a medium stint.
Part C — Data & Code ⭐⭐–⭐⭐⭐
C1. Analyze this session ⭐⭐. Run boxbox.strategy.fit_race_model and optimise(max_stops=3) on the 2025 Spanish Grand Prix (Race). Report the per-compound deg (with $n$ stints), the race pit loss and the best strategy per stop count. The finishers' median in that race was 3 stops, while the model in code/race_stop_table.csv predicts 2. Use the sensitivity approach of 07_rules_and_sensitivity.py to find how much the wear rates must be scaled before three stops win.
Expected output shape: an inputs table (3 rows), a best-by-stops table (3 rows), and a printed scale factor.
C2. Compare these drivers ⭐⭐. At the 2024 Bahrain Grand Prix (Race), price Verstappen's S-H-S (17, 37) and Sainz's S-H-H (14, 35) with race_time, both with first_stint_age=3. Then price S-H-H at Verstappen's laps and S-H-S at Sainz's laps. How much of the difference is the compound choice for the last stint, and how much the timing?
Hint: Case Study 1 prints the model cost of each actual strategy: VER 0.00 s and SAI 2.19 s against the optimum for a 3-lap-old starting set.
C3. Build the strategy ⭐⭐⭐. For the 2026 Hungarian Grand Prix (Race) (70 laps, Norris won M-H-H-S), fit the model and optimise with sets_available=S.ALLOCATION_2026["standard"]. Then reprice Norris's actual strategy with his own starting-set age. Write a three-sentence explanation of the gap, using the five sources of error from Section 12.7.
Expected output shape: a best-by-stops table, Norris's model cost in seconds, and a race-control summary of any neutralisations (f1data.track_periods).
C4. Analyze this session ⭐⭐. Recreate Figure 12.11 for three races of your choice from one season. Label each curve with its 1-s window width, as the script prints it. Is there a season where every window is wider than 10 laps?
C5. Predict the race ⭐⭐⭐. Build a pre-race model for the 2026 Austrian Grand Prix: use the 2025 Austrian GP's race deg (fit_race_model on 2025) and the circuit's pooled pit loss (21.28 s, Figure 12.3), and set total_laps to the 2026 race length. Predict the optimal stop count, then compare it with the 2026 finishers' median from race_stop_table.csv (2 stops; Russell won M-H-H). Repeat with hindsight inputs from the 2026 race itself. Did hindsight change the call?
C6. Compare these drivers ⭐⭐⭐. Extend 05_strategy_vs_pace.py to the 2026 Barcelona GP pair Norris (P3, M-H-H) vs Verstappen (P4, S-M-H-M). Decompose their final gap into strategy, clean-lap pace, VSC laps, pit laps and other, exactly as the chapter did for Hamilton and Russell.
Expected output shape: the same five-row table. Check that the components sum to the actual summed-lap gap.
C7. Analyze this session ⭐⭐. Use actual_strategies on every race of one season to compute, for dry races, the median first-stop lap as a share of race distance for one-stoppers. Compare with the pooled 41.8% (IQR 31.8–54.7%, n = 610, 2023–2026) from 06_stop_counts.py. Which season stopped earliest?
C8. Build the strategy ⭐⭐⭐. Add a tyre-life limit to the Barcelona 2026 model: replace(model.compounds["MEDIUM"], max_laps=20) and SOFT max_laps=14. Re-optimise with the allocation. Does the best two-stop change? Does the best three-stop come closer?
Part D — Strategy & Judgment ⭐⭐⭐
D1. Call the pit stop: 2024 Bahrain Grand Prix. You are Verstappen's strategist. He leads from pole on softs that were 3 laps old at the start. The race has no neutralisations. Your inputs are the race model's numbers: SOFT and HARD wear about 0.09 s/lap, pit loss about 24.3 s. - End of lap 12: Pérez, behind, has just stopped. Do you cover? - End of lap 17: your soft is 20 laps old. Stop now for hards? - End of lap 36: hards or softs for the final 20 laps?
Write your call at each step before opening the reveal.
Reveal
The model's best strategy for a 3-lap-old starting set is S-H-S, stopping after laps 17 and 37 (Case Study 1). Verstappen stopped after laps 17 and 37 on S-H-S, which the model prices at 0.00 s from its optimum. Whether to cover a rival's early stop depends on the gap on the road, which the solo model cannot see; check it on the gap chart (plots.gap_chart) before answering. A team-mate's stop is usually not one you cover. On the last stint, the model gives a soft finish a small edge over a hard one because of the soft's negative offset; S-H-S and S-H-H differ by about 1.2 s in the age-0 model.
D2. Call the pit stop: 2026 Barcelona Grand Prix, lap 36. You are Russell's strategist. Hamilton, 7.6 s behind on 7-lap-old mediums, is catching you on 22-lap-old hards. Your planned second stop is at lap 41 (the model's M-H-H optimum). Hamilton must still stop once more. Do you stop now (lap 36), at lap 41 as planned, or later? Consider the undercut, Hamilton's third stop, and the risk of a neutralisation.
Discussion
Russell stopped after lap 36. In the model, stopping 5 laps early costs a few seconds. But Hamilton was gaining more than a second a lap on fresher tyres (Figure 12.2); waiting to lap 41 risked losing more on track than the early stop cost in the model. Stopping first also left Hamilton to make his own third stop. Under green flags, the gap arithmetic (Section 12.7) says Hamilton would have rejoined about 0.9 s behind. What Russell could not control was the VSC on lap 41, which cut the cost of Hamilton's stop by about 3.9 s. A robust call weighs the chance of exactly that. Chapter 14 shows how to price it.
D3. Design the setup (strategy edition). A team expects a race with 0.07 s/lap wear and a 22 s pit loss over 60 laps. It can trade some qualifying pace for a car that is gentler on its tyres (say, −0.02 s/lap of wear). Using the critical-rate formula, explain how that trade changes the optimal stop count and what it is worth in race time. Then name one reason it might not be worth it.
Discussion
With $P = 22$ s, $N = 60$ and warm-up ignored, the critical rate for a second stop is $12 \times 22/3600 = 0.073$ s/lap. At 0.07 s/lap the race is a near coin flip between one and two stops: a second stop saves $0.07 \times 3600/12 = 21.0$ s of wear, against a 22-s price. Cutting wear to 0.05 s/lap makes it a clear one-stop. Over a one-stop with two 30-lap stints, the wear term falls from $2 \times 0.07 \times 435 = 60.9$ s to $2 \times 0.05 \times 435 = 43.5$ s, a gain of about 17 s in race time. Divided by 60 laps, that is roughly 0.29 s per lap of average race pace, which is the most qualifying pace the trade could be worth. It might still not be worth it. Qualifying position buys track position, and in races where passing is hard (Chapter 35) a grid slot can be worth more than its lap-time equivalent. The wear figures here are also assumptions, not measurements of a real setup.
D4. Plan A / Plan B. For the 2026 Barcelona race, write a strategy brief with a Plan A (two stops) and a Plan B (three stops). Use Figure 12.12 to say which measured inputs would make you switch, and Figure 12.7 to say how far the stops can move without real cost.
Guidance
A good brief has four parts. - Plan A is M-H-H with stops near laps 17 and 41. The 3-s contour of Figure 12.7 allows the pair to move roughly together, earlier or later, by several laps. - Plan B is a three-stop that keeps both hard sets for the long stints (for example M-H-H-M around laps 13, 33 and 53). - The switch trigger comes from Figure 12.12. Move to Plan B if the observed wear runs about 10–20% above the race's median, or if a neutralisation makes one stop cheap. Measure the wear from the first stint's laps. - The non-negotiable is that no plan contains a one-stop: it never appears on the grid.
D5. Grade the decision. "Mercedes chose the wrong strategy at Barcelona 2026." Using only the evidence in Section 12.7 (the model costs, the decomposition table and Figure 12.12), write a 150-word verdict. Separate what was knowable at the time from what was luck.
Discussion
Under green flags, the model prices Russell's M-H-H as 3.74 s from the allocation-legal optimum and Hamilton's S-H-M-H as 13.83 s. Russell's strategy was the better one for identical cars, by about 10 s. The sensitivity grid shows that two versus three stops was within the inputs' uncertainty, so neither plan was a clear error before the race. Hamilton's 19.6-s win came from clean-lap pace (−14.6 s) and the VSC laps (−11.2 s), and the VSC timing was not knowable in advance. A fair verdict is that the strategy was sound and the race was lost to pace and to a neutralisation that rewarded the car still due to stop. Grading the decision by its outcome alone would be the mistake.
Part M — Mixed / Interleaved ⭐⭐–⭐⭐⭐
M1. (Ch 4 + Ch 12) Chapter 4 explained why tyres lose grip as they age. Pick one stint from the 2024 Bahrain GP (Case Study 1, Figure CS1.2) where the 95% CI of the slope is narrow, and one where it is wide. Explain in physical terms what could make one stint's wear curve noisier than another's, and what that noise does to the width of the optimiser's pit window.
M2. (Ch 10 + Ch 12) Chapter 10 profiled circuits by layout. Take the pit-loss table in code/pit_loss_by_circuit.csv and the deg table in code/race_stop_table.csv. Group circuits into "street", "permanent high-speed" and "permanent technical" (state your classification). Do the groups differ more in pit loss or in deg? Which one drives stop counts more?
M3. (Ch 2 + Ch 12) Chapter 2 explained OpenF1's stint boundaries and the toolkit's fix for stints that start on the in-lap. Show, for one race at Albert Park, Monaco or Villeneuve, how actual_strategies would miscount stop laps if the boundary fix had not been applied. (Use stints.lap_start_raw.)
M4. (Ch 6 + Ch 12) Chapter 6 discussed the fuel load. Re-run fit_race_model for the 2026 Barcelona GP with the degradation slopes computed from raw lap times instead of fuel-corrected ones. (Pass a dict of CompoundParams built from metrics.degradation(..., y="lap_duration").) How does the optimal stop count change? Why is the fuel-corrected version the right input?
M5. (Ch 9 + Ch 12) Chapter 9 measured the driver's lap-to-lap noise. If a driver's clean laps scatter with a standard deviation of a few tenths, how many laps of a stint do you need before a 0.05 s/lap degradation slope is distinguishable from zero? Relate your answer to the 8-lap minimum fit_race_model uses.
Part E — Research & Extension ⭐⭐⭐⭐
E1. Fix the bias. Case Study 2 shows the model never predicts more stops than the field does, and all 18 of its misses predict fewer stops. Propose and test two modifications: (a) a quadratic wear term fitted per compound (metrics.degradation(model="quadratic")), and (b) a soft life limit from the 90th-percentile stint length on each compound in the same race. Do either raise the 75.3% agreement rate without making the model predict too many stops?
E2. Pre-race only. Rebuild Case Study 2 using inputs available before each race: the previous season's race deg at the circuit (where one exists) and the circuit's pit loss from other seasons. How much does the agreement rate fall from the hindsight version? Report it with a Wilson interval. This is the honest test of the model as a decision tool.
E3. Team-specific models. Fit CompoundParams per team (median stint slope per team and compound, with a minimum of 3 stints and a fallback to the field median). For the 2026 Barcelona GP, does a team-specific model price Verstappen's S-M-H-M closer to what he actually achieved? What happens to the Hamilton/Russell decomposition's pace term?