Chapter 39 Exercises — Other Motorsport Analytics

Difficulty legend: ⭐ recall and concepts · ⭐⭐ calculation or a short script · ⭐⭐⭐ multi-step analysis or judgement · ⭐⭐⭐⭐ open-ended research.

All scripts referred to are in this chapter's code/ folder and run offline from the book's data snapshot. Where an exercise asks you to change a script, copy it first (for example code/ex_c1.py), so the chapter's own outputs stay reproducible. Parameters marked 🧪 are assumptions, not data from any series.

Before you start Part C, run all eight chapter scripts and project_checkpoint.py once, from the chapter directory, and keep their printed output open. Several exercises ask you to reproduce a chapter number first (a known-answer check) before you extend the analysis. If your first number doesn't match, fix that before going further; a mismatch almost always means a filter has changed. For exercises built on the 🧪 profiles, say in your answer which conclusions would survive a change of the assumed values and which would not.


Part A — Concepts ⭐

A1. Name the four ingredients of a race-strategy model from Section 39.1. For each, give one example of how it changes when you move from F1 to an oval series.

A2. In your own words, what is a rule profile? Why is it useful to treat two series with identical profiles as "the same series" for strategy purposes?

A3. The refuelling era (1996–2009 in our lap data) averaged about the same number of stops per finisher as 2010–2026. Give two reasons why removing refuelling did not simply cut the number of stops.

Hint

Look at which seasons sit highest in Figure 39.1 after 2010, and think about what the tyre supplier was asked to provide in those years. Then reread Section 39.2's pitfall about 2026: what else makes cars stop besides tyres and fuel?

A4. Explain the sign of the stop step (lap time after a stop minus before) in each era: why is it positive with refuelling and negative without?

A5. Why do refuelling-era stints cluster more tightly around a typical length than modern stints? Relate your answer to what ends a stint in each era.

Hint

A fuel load is decided before the race and burns at a nearly constant rate. Tyre life depends on compound, circuit, temperature, traffic and driving style. Which of the two produces more predictable stint lengths?

A6. In endurance racing, why does the optimisation variable shift from "how many stops?" to "how often to change tyres?"

A7. What is the difference between a random caution and a scheduled one (stage racing) for strategy? Which kind rewards a flexible policy and which a planned one, and why?

Hint

Compare the three stage-racing results in Section 39.5: the plan with stops inside the stage yellows, the plan one lap before them, and the opportunistic policy. The first two differ by 48.3 s with no random cautions. What does the opportunistic policy give up to stay flexible?

A8. A motorcycle cannot corner at 2.5 g on a flat road without downforce, however good the rider. Explain why, using the lean-angle and friction relations.

A9. Why is the time cost of saving energy convex, and what allocation rule follows from convexity?

Hint

Write the time lost by coasting a distance $x$ before a braking point, and the energy saved over that distance. One grows linearly in $x$, the other with $x^2$. Then ask what happens to the total time if you move a little saving from a lap that saves a lot to a lap that saves a little.

A10. List three channels that sim-racing telemetry commonly provides and our OpenF1 car data does not. For each, name the chapter of this book where we had to infer or model it instead.


Part B — Calculations & Physics ⭐⭐

B1. Fuel on board. Using $s_{\text{fuel}} = 0.035$ s/kg (the press estimate in the reference table), how much faster is a lap at 15 kg of fuel than at 95 kg?

Solution

$0.035 \times (95 - 15) = 0.035 \times 80 = 2.8$ s per lap faster. That difference between the start and the end of a stint is why refuelling-era stints show a strong "sawtooth".

B2. Fuel as degradation. A car burns 🧪 1.75 kg per lap and fuel costs 0.035 s/kg. (a) What is the equivalent "degradation rate" of fuel when refuelling is allowed? (b) Compared with the 2026 MEDIUM/HARD median tyre slope of 0.052 s/lap, by what factor does refuelling increase the total "degradation" the strategist faces?

Solution

(a) $0.035 \times 1.75 = 0.061$ s per lap. (b) $(0.052 + 0.061) / 0.052 = 0.113 / 0.052 \approx 2.2$. The effective degradation roughly doubles, which is why the Box Box optimum moves from one stop to two (Section 39.3).

B3. Optimal stops from the closed form. With linear degradation $d$ and $n$ equal stops in an $L$-lap race, the total wear penalty is about $dL^2 / (2(n+1))$. Take $d = 0.113$ s/lap (tyres plus fuel, from B2), $L = 57$ and a stop cost of 26.5 s (23.6 s pit loss plus extra refuelling time, assumed). Compare the total of wear plus stop costs for $n = 1, 2, 3$.

Solution

$dL^2/2 = 0.113 \times 3249 / 2 = 183.6$ s. - $n = 1$: $183.6/2 + 26.5 = 91.8 + 26.5 = 118.3$ s - $n = 2$: $183.6/3 + 53.0 = 61.2 + 53.0 = 114.2$ s - $n = 3$: $183.6/4 + 79.5 = 45.9 + 79.5 = 125.4$ s

Two stops is best by about 4 s, the same answer as the full Box Box optimiser. The closed form ignores the discrete laps and the cliff, so the gaps differ from the optimiser's 8.7 s and 7.9 s.

B4. Drafting. A power-limited car shows 296 km/h in clean air. Following another car cuts its drag area by 4.5%. (a) Estimate its trap speed. (b) In 2023–2025 the measured tow at 1–2 s was 2.06 km/h at 302 km/h. What drag reduction does that imply?

Solution

(a) $\Delta v / v \approx \tfrac{1}{3} \times 4.5\% = 1.5\%$, so $296 \times 1.015 = 300.4$ km/h. (b) $2.06 / 302 = 0.68\%$ speed, so $3 \times 0.68\% \approx 2.0\%$ drag.

B5. Lean angle with a wide tyre. A bike corners at the friction limit with 🧪 μ = 1.3. (a) What is the physics lean angle $\theta$? (b) With 🧪 $h = 0.6$ m and crown radius $t = 0.1$ m, solve $\tan\theta = (h - t)\sin\varphi / (t + (h - t)\cos\varphi)$ for the bike's actual lean $\varphi$ numerically (bisection is fine). (c) How much extra lean does tyre width add?

Solution

(a) $\theta = \arctan 1.3 = 52.4°$. (b) Bisection between $\theta$ and 85° gives $\varphi$ between the chapter's values for μ = 1.2 (59.0°) and μ = 1.4 (63.8°): 61.6°. (c) 61.6° − 52.4° ≈ 9.1°. A few lines of Python: f = lambda p: 0.5*np.sin(p)/(0.1+0.5*np.cos(p)) - 1.3, then bisect on p in radians.

B6. Pitch-over limits. A racing motorcycle has its centre of mass at 🧪 $h = 0.62$ m, 🧪 0.66 m ahead of the rear contact patch and 🧪 0.74 m behind the front one. (a) What is its maximum acceleration before the front wheel lifts? (b) Its maximum braking before the rear lifts? (c) Compare (b) with the "up to 6 g" braking figure for F1 cars in the engineering reference table.

Solution

(a) $a = g\,b/h = 9.81 \times 0.66 / 0.62 = 10.4$ m/s², or 1.06 g. (b) $a = g\,c/h = 9.81 \times 0.74 / 0.62 = 11.7$ m/s², or 1.19 g. (c) F1's figure is about five times higher. Downforce multiplies the F1 car's normal load, and its long, low layout and four contact patches mean it cannot pitch over at these decelerations.

B7. Energy split. You must save 0.3 units of energy over three identical laps. The cost per lap is $6 \times (\text{saving})^2$ seconds. Compare (a) all on the last lap, (b) 0.2 + 0.1 + 0, (c) equal split.

Solution

(a) $6 \times 0.09 = 0.54$ s. (b) $6 \times (0.04 + 0.01) = 0.30$ s. (c) $3 \times 6 \times 0.01 = 0.18$ s. The equal split is best, a third of the "all at the end" cost.

B8. A second safety car. F1's 2023–2026 SC+VSC hazard is 2.17 periods per 100 race laps. Assume a constant hazard. (a) What is the probability of at least one neutralisation in the next 31 laps? (b) In the next 10 laps?

Solution

(a) $1 - (1 - 0.0217)^{31} = 1 - 0.9783^{31} \approx 1 - 0.507 = 0.49$. (b) $1 - 0.9783^{10} \approx 1 - 0.803 = 0.20$. A constant hazard is a simplification. Chapter 14 shows the hazard varies by circuit and by lap (lap 1 especially).


Part C — Data & Code ⭐⭐–⭐⭐⭐

C1. Analyze this session: the last refuelling season against the first without. Using 01_refuelling_era_stops.py, compute for 2009 and 2010 separately: mean inferred stops per classified finisher, the share of 0-stop finishers, and the stint-share distribution (median, IQR). Expected output shape: a two-row table. From the chapter's run, the season means are 2.05 (2009) and 1.60 (2010); your table adds the other columns. Then explain in two sentences why 2010 had fewer stops than 2011 (2.93), even though both banned refuelling.

C2. Compare these drivers: the sawtooth for the whole podium. Extend 02_refuelling_sawtooth.py to plot the 2006 Spanish GP podium (look the finishers up with history.results(2006, 6)) on one chart, each driver's lap time minus their own median, with stops marked. Expected output: one PNG and, for each driver, inferred stop laps and per-stint raw slopes. Do all three show negative raw slopes in their early stints, as the winner's did (−0.085 and −0.059 s/lap)?

C3. Build the strategy: a rule-profile sweep. Using boxbox.series, take the calibrated 2026 profile from 04_rule_profiles.py and sweep deg_s_per_lap from 0.02 to 0.20 in steps of 0.02, under (a) 2026 rules and (b) refuelling allowed. Plot the best stop count against degradation for both. Expected output: a step chart with two lines. At the chapter's 0.052 s/lap you should reproduce one stop (2026) and two stops (refuelling). Where does each line step up?

C4. Predict the race: the window threshold. In 05_cautions_and_ovals.py the opportunistic policy pits under caution only if the tank is below 30% (window_open=0.7). Re-run at hazard 0.02 with window_open = 0.5, 0.6, 0.7, 0.8 and 0.9. Expected output: a table of mean paired difference (opportunistic − fixed) and share of wins. At 0.7 you should reproduce −10.08 s and 0.833. Is there an interior optimum, and why would a threshold that is too low or too high hurt?

C5. Analyze this session: separate straights from bends. The energy measure in 08_energy_as_the_variable.py cannot tell a flat-out bend from a straight. For 2026 rounds 1–8 (qualifying position data exist), compute the path curvature along each fastest lap from x/y (fit circles over a sliding window, or differentiate a smoothed path) and keep only full-throttle samples on near-straight path (radius > 1,000 m). Recompute the top-speed-run drop for those circuits. Expected output: an 8-row table with the original drop and the straight-only drop. Do Suzuka (63 km/h) and Albert Park (53 km/h) fall sharply, as Section 39.7 predicts?

C6. Analyze this session: the tow by rule set at one circuit. Using 06_slipstream_speed_trap.py, restrict to Monza (circuit_ref == "monza") and print the gap-band table for 2023–2025 and for 2026. Expected output: two 7-row tables. Case Study 2 reports a 1.0–2.5 s tow of 3.06 km/h (2023–25) and 7.72 km/h (2026) at Monza. Does the shape of the curve, and not just the 1–2.5 s level, change between rule sets?

C7. Analyze this session: corner radii at a new circuit. Run 07_lean_angle_physics.py for the 2026 Miami and Canadian qualifying sessions (both have position data). Expected output: a corner table (apex speed, radius, fit residual, lateral g) per circuit and an updated Figure 39.10. How many corners pass the quality filters, and what is the median lateral g at each circuit compared with the chapter's five-circuit median of 2.58 g?

C8. Analyze this session: validate the stop detector by circuit. Using the validation code in 01_refuelling_era_stops.py, compute precision and recall by circuit for 2011–2026. Expected output: a table with one row per circuit (n stops, precision, recall). Which circuits does the detector handle worst, and can you relate that to pit-lane layout (the timing line inside the pit lane at some circuits, toolkit README §5)?


Part D — Strategy & Judgment ⭐⭐⭐

D1. Call the pit stop: Las Vegas 2026, from second place. You are George Russell's strategist. At the end of lap 18 he is 2nd. The SC is deployed on lap 19 and the leader is entering the pits. Your options: (a) box with everyone; (b) stay out and take the lead, then stop under green later. Decide, and justify with the chapter's numbers (green pit loss 23.6 s; clean-race cost of stopping on lap 19 instead of 25 is 1.87 s; chance of another neutralisation in 31 laps ≈ 49%).

Reveal

The timing data show that Russell boxed on lap 19 and was still 2nd at the restart. Staying out would have bought the lead only until a green stop, which costs the full 23.6 s against a field that had paid a discounted price, a deficit no realistic pace advantage on old SOFTs could recover in 31 laps. The only way (b) works is a second neutralisation in the right window, which is roughly a coin flip and needs good timing on top. Boxing was the robust call. (Russell finished 9th; that loss came after the restart, and strategy data alone don't explain it. See Case Study 1.)

D2. Design the setup: a long, low motorcycle. A designer can lower the centre of mass by 🧪 3 cm (from 0.62 m to 0.59 m) or lengthen the wheelbase so the centre of mass moves 3 cm further from the rear contact patch (0.66 m to 0.69 m). Which gives the bigger increase in the wheelie limit $g\,b/h$? What might each change cost elsewhere (turn-in, braking limit $g\,c/h$)?

Reveal

Lower: $0.66 / 0.59 = 1.119$ g (from 1.065). Move forward: $0.69 / 0.62 = 1.113$ g. Lowering gives a slightly bigger gain and also raises the braking limit ($c/h$ grows as $h$ falls). Moving the mass forward lowers $c$ and so reduces the braking limit. A longer bike also tends to turn in more slowly. A low centre of mass is the cleaner gain, if packaging allows it.

D3. Build the strategy: double-stint or not? Your endurance car's tyre change adds 🧪 15 s of stationary time and your degradation is 🧪 0.025 s/lap. Using Figure 39.7 (or by running series.optimise(series.adapt(series.ENDURANCE, deg_s_per_lap=0.025, tyre_change_s=15), 9, tyre_every=k) for k = 1–3), decide your tyre-change interval. What new information mid-race would make you switch?

Reveal

The neighbouring cells of Figure 39.7 (0.02 or 0.03 s/lap at 10 or 20 s) are split between "every 1" and "every 2", so this case sits near the boundary. Run the optimiser for the exact answer. Near a boundary, the robust choice is to plan for double-stinting but decide each tyre change at the stop, using the measured wear of the current set. A higher-than-planned wear rate, a cooler night track, or a safety car that makes the stop cheaper are all reasons to switch.

D4. Call the energy plan after a safety car. In a 30-lap energy-limited race with a 90% budget, a four-lap safety car comes out on lap 12. Using series.energy_plan, what should the energy use on the remaining green laps be, and how much time does the safety car "give back" compared with the no-SC plan (1.80 s lost)?

Reveal

From the chapter's run, with the SC laps using 30% energy, the even plan with the SC loses only 0.01 s, against 1.80 s without it. Green laps can run at 0.992 of free energy (the project-checkpoint output). The SC banked almost exactly the energy the race needed you to save. The lesson is to re-plan immediately, not to carry on saving at the pre-SC rate.

D5. Design the setup: where to coast. In an energy-limited race you must save 🧪 0.2 MJ per lap. The lap has three braking zones: after a 1.2 km straight at 🧪 300 km/h, after a 0.5 km straight at 🧪 250 km/h, and after a 0.3 km straight at 🧪 200 km/h. Using $\Delta t \approx a_c x^2 / (2v^3)$ for a coast of length $x$ (same coasting deceleration $a_c$ everywhere, and energy saved proportional to $x$ at roughly constant drive force), where should you take the coasting, and should it be split?

Reveal

Two effects. Because $\Delta t$ grows with $x^2$, the saving should be split across zones, not taken in one. Because $\Delta t$ falls with $v^3$, coasting costs least where the car is fastest: $(300/200)^3 = 3.4$, so a metre of coasting before the 300 km/h zone costs less than a third of a metre before the 200 km/h zone. Equalising the marginal cost $a_c x_i / v_i^3$ across zones gives $x_i \propto v_i^3$: coast longest before the fastest braking zone. (This ignores how much energy each metre saves at different speeds and regeneration under braking, both of which a real energy model includes. Treat it as the first-order answer.)


Part M — Mixed / Interleaved ⭐⭐–⭐⭐⭐

M1. (Chapter 14 + 39.) Chapter 14 measured how SC hazard varies by circuit. Rebuild the oval Monte Carlo of Section 39.5 with an F1 circuit's own SC+VSC hazard (from race control, 2023–2026) and its own pit loss, in place of the oval profile. For a high-hazard street circuit and a low-hazard permanent circuit, is the opportunistic policy worth more than 5 s? Report both numbers with n.

M2. (Chapter 20 + 39.) Chapter 20's fuel correction assumes 100 kg and 0.03 s/kg. Using the refuelling-era stop step (+0.38 s median, 1996–2009), set up an equation for the step in terms of tyre gain and added fuel mass. If you assume the tyre gain equals the modern step (1.21 s), what fuel effect $s_{\text{fuel}}$ and added mass combinations are consistent with +0.38 s? Why is this not an identified estimate?

M3. (Chapter 22 + 39.) Fit compound degradation for the 2024 Spanish GP with the Chapter 22 tools, then compute the raw within-stint slopes for Verstappen's stints (the chapter found +0.067, +0.008 and +0.045 s/lap). Explain the difference between the raw slope and the fuel-corrected degradation slope for each stint.

M4. (Chapter 3 + 39.) Using the aero model from Chapter 3 (downforce $\propto v^2$) and a 🧪 friction coefficient, fit a single "downforce coefficient" to the 30 corners in Figure 39.10 so that $v^2/R = \mu (g + k v^2)$. Report $k$ and the fit residual. Which corners lie furthest from the fit, and why might they?

M5. (Chapter 27 + 39.) Chapter 27's Monte Carlo engine treats the opponent explicitly. Extend series.simulate_cautions to two cars: one fixed, one opportunistic, starting 2 s apart, with gaps reset to 0.5 s at each caution. Report each car's win probability across the hazard sweep, and compare with the time-based result in Figure 39.8.

M6. (Chapter 32 + 39.) Chapter 32 normalised performance across eras. The stop step (Figure 39.3) and the stop cost (Figure 39.5) are both era-dependent. Build a table by era (Chapter 32's era boundaries from history.eras()) of: mean inferred stops, median stop step, median stop cost and the share of 0-stop finishers. Which era boundary produces the biggest change in each column? Is it always the refuelling ban (2009/2010)? Report n for every cell.


Part E — Research & Extension ⭐⭐⭐⭐

E1. Driver rotation as an assignment problem. Extend series.py with a function that, given an endurance profile, a list of drivers with their own 🧪 lap-time means and standard deviations (Chapter 9's driver model), and minimum/maximum driving-time constraints, assigns drivers to fuel stints to minimise expected race time. Use integer programming or a simple search. Document every assumption, and write the constraints from a published endurance sporting regulation if you can find one; cite it, and don't invent values.

E2. The 2005 anomaly. Figure 39.3 shows 2005's stop step at +0.93 s, far above its neighbours. Find the 2005 FIA Formula One Sporting Regulations (or a reliable secondary source that cites them) and identify any rule that limited what could be done at a pit stop that season. Then test whether the rule explains the data: compare the 2005 step with 2004 and 2006 at the same circuits, and discuss what else changed. Cite your source exactly.

E3. Build a sourced rule profile for another series. Choose one series (IndyCar, WEC, NASCAR, MotoGP or Formula E). From its published sporting and technical regulations only, fill in as many RuleProfile fields as you can (race length, refuelling, minimum stops, tank or energy limits, stage lengths), with a citation for each value. Leave unsourced fields as labelled assumptions. Then run series.optimise (or simulate_cautions) and write one page on which conclusions depend on sourced values and which on assumptions.