Chapter 24 Exercises — Team Performance Trends

Difficulty: ⭐ concept check · ⭐⭐ calculation or short script · ⭐⭐⭐ multi-step analysis or judgment · ⭐⭐⭐⭐ open-ended research

All data come from the book's data snapshot (Jolpica-F1 qualifying 1994–2026 R21, OpenF1 2023–2026 R21). Scripts referred to are in this chapter's code/ folder; module functions are in project/boxbox/development.py. Never enable network fetching. Where an answer is a number, it comes from the chapter's own runs; where you are asked to extend a script, the expected shape of the output is given instead.


Part A — Concepts ⭐

A1. Explain in two sentences why this chapter measures the gap to the fastest team in percent rather than in seconds. Use the lap-time integral $T = \oint ds/v$ in your answer.

A2. What is the difference between a change point and an upgrade? Why does the chapter insist on the first term?

A3. A team's faster car is knocked out in Q1. Name the two biases that affect its gap: one in the "best of Q1–Q3" measure and one in the "like-for-like Q1" measure. Which direction does each push the gap?

A4. Why does the circuit-type regression include the race number $r$ as well as the type dummies? Describe a calendar in which leaving $r$ out would mislead you.

A5. In your own words, what does a permutation test assume when it shuffles a team's season? Give one reason why real gap series might break that assumption.

A6. What is the moving-reference problem? Give an example where a midfield team that is truly improving would show a development rate of zero.

A7. The chapter finds 10 change points in 41 team-seasons, but none survives Benjamini–Hochberg at a 5 % false discovery rate. Are these two statements in conflict? Explain.

A8. Why is the team gap not a pure measure of the car? Name two non-car effects that can move it.

A9. What is entry lineage, and why does the persistence analysis need it?


Part B — Calculations & Physics ⭐⭐

B1. Aston Martin's 2026 median best-time gap was 3.820 %. The 2026 pole at Spa was 1:44.361 (the pole table in the book's data snapshot). How many seconds per lap does that gap represent at Spa? Would it be more or fewer seconds at Monaco (2026 pole 1:12.051)?

Solution

At Spa: $0.03820 \times 104.361 = 3.99$ s. At Monaco: $0.03820 \times 72.051 = 2.75$ s. Fewer seconds at Monaco, because the lap is shorter, even though the percentage is the same. (In reality Aston Martin's gap also depended on circuit type: +1.07 pp worse than its average at high-speed tracks like Spa.)

B2. Sauber 2025's change point splits 22 races into 11 and 11, with segment means 1.842 % and 1.038 %. Compute the split statistic $S(k) = \frac{k(n-k)}{n}(\bar y_1 - \bar y_2)^2$.

Solution

$S = \frac{11 \times 11}{22} (1.842 - 1.038)^2 = 5.5 \times 0.804^2 = 5.5 \times 0.6464 = 3.56$. Its permutation p-value was 0.002: in 999 shuffles of the same 22 numbers, only about one produced a best split this large.

B3. The first-split p-values sorted from smallest are 0.002 (Sauber 2025), 0.004 (Aston Martin 2026), 0.013 (McLaren 2023), 0.021 (Alpine 2024), … out of $m = 41$. Using Benjamini–Hochberg at FDR 5 %, compute the critical value for each of the first three and decide which survive.

Solution

Critical value for rank $j$ is $0.05\, j / 41$: rank 1 → 0.00122, rank 2 → 0.00244, rank 3 → 0.00366. Sauber's 0.002 > 0.00122, Aston Martin's 0.004 > 0.00244, McLaren's 0.013 > 0.00366. BH keeps the largest $j$ with $p_{(j)} \le$ its critical value; there is none, so no change point survives. With 999 shuffles the smallest attainable p-value is 0.001, so the test is close to its resolution limit here.

B4. Alpine's 2024 development rate was −0.059 pp per race over 20 dry rounds (race index 1 to 20). (a) What season change does the slope imply? (b) Express it in seconds on a 90-second lap.

Solution

(a) $-0.059 \times 19 = -1.12$ pp (the script prints −1.113 using the unrounded slope). (b) $0.0112 \times 90 = 1.0$ s per lap. The 90-second lap is a round number for scale, not a specific circuit.

B5. If none of the 41 team-seasons had truly changed, and each development-rate interval had a 5 % chance of excluding zero independently, what is the expected number of intervals excluding zero? What is the probability of seeing 7 or more? Of seeing 10 or more change points?

Solution

Expected: $41 \times 0.05 = 2.05$. With $X \sim \text{Binomial}(41, 0.05)$: $P(X \ge 7) = 0.0039$; $P(X \ge 10) = 0.000026$. So the counts are very unlikely under "nothing changed", even though no single result is individually convincing. (Independence is an approximation: the gaps of different teams share the same reference team in each session.)

B6. For Red Bull 2026, project_gap reports level 0.183 %, rate −0.032 pp per race and a high-speed type effect of +0.095 pp. Reproduce the projected gap one race ahead, and convert it to seconds using the 2025 Qatar pole time of 79.387 s as a scale.

Solution

$0.183 - 0.032 + 0.095 = 0.246$ %. In seconds: $0.00246 \times 79.387 = 0.195$ s. The script's interval is 0.047 % to 0.481 % (0.037 s to 0.382 s).

B7. Chapter 16 measured track evolution at a median −0.019 s per minute of qualifying. Suppose the fastest Q1 lap is set 20 minutes before pole. How much evolution does that represent, and what is it as a percentage of a 90-second lap? Compare with the chapter's median "fastest Q1 vs pole" figure for 2025 (0.799 %).

Solution

$0.019 \times 20 = 0.38$ s, or $0.38 / 90 = 0.42$ %. That is about half of the 0.799 % median Q1-to-pole improvement. The rest is the front-runners' extra push in Q3 (fresh tyres, final engine modes, a fully committed lap). The 20 minutes is an assumption for the exercise; session lengths and gaps vary.

B8. The 2014–2020 trend in the team spread is −0.347 pp per season. The 2020 season median was 2.00 %. Ignoring the intercept fitted by the script, extrapolate naively from 2020 to 2024. What goes wrong if you keep extrapolating to 2030?

Solution

$2.00 - 4 \times 0.347 = 0.61$ % in 2024 (the observed 2024 median was 1.28 %). By 2030 the line would reach $2.00 - 10 \times 0.347 = -1.47$ %, a negative spread, which is impossible. Linear trends in a bounded quantity cannot be extrapolated far; this is also why the "projected vs observed" cost-cap comparison is sensitive to the choice of baseline years.


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

C1. Analyze this session ⭐⭐ — 2024 Monaco Grand Prix, Qualifying. Using dev.gap_to_fastest(2024), print every team's best time, gap and the session its faster car reached. Then compute each team's gap with method="q1". Which teams change rank between the two measures?

Expected shape: a 10-row table with team_ref, time_s, gap_pct, deepest, gap_pct_q1. Ferrari is the fastest team (gap 0.000) and Red Bull's best-time gap is 0.423 %. Teams eliminated in Q1 move up on the Q1 measure.

C2. Compare these drivers ⭐⭐⭐ — Aston Martin 2026, Alonso and Stroll. The team's change point is at the Bahrain Grand Prix in Malaysia (Sepang, round 16). Split the team gap into its two drivers: for each round, compute each driver's own best time vs the fastest team's best. Run dev.change_points() on each driver's series. Does the shift appear for both drivers, or is it carried by one?

Expected shape: two series of about 20 values, one change-point table per driver. If both drivers show a shift near round 16, the change is more likely the car; if only one does, consider driver form, penalties or a one-off.

C3. Build the strategy ⭐⭐ — window sensitivity. Run dev.project_gap() for every 2026 team with window=3, 5 and 8. For which teams does the projected gap move by more than 0.2 pp across windows? Which window would you use for a team with a recent change point, and which for a team without one?

Expected shape: an 11 × 3 table of projected gaps. With window=5 the values match the chapter's checkpoint output (for example Aston Martin 3.678 %, Mercedes 0.006 %).

C4. Predict the race ⭐⭐ — 2026 Qatar qualifying order. Convert the checkpoint's projected gaps into a predicted team order for round 22, and use the interval to say which adjacent pairs are too close to call (overlapping intervals). How many of the ten adjacent pairs are distinguishable?

Expected shape: an ordered list starting Mercedes, Red Bull, Ferrari, McLaren, RB, Audi, Alpine, Haas, Williams, Cadillac, Aston Martin, with a flag per pair. Qatar is not in the snapshot, so there is no result to check against yet.

C5. Analyze the season ⭐⭐⭐ — change points on race pace. Extend code/03_development_rates.py: run dev.change_points() on every team-season's race-pace gap (dev.race_pace_gaps). How many change points do you find, and how many coincide (within two races) with a qualifying change point for the same team-season?

Expected shape: a table like the chapter's qualifying change-point table. For Red Bull 2024 the race-pace change point is at round 13 (Hungary, +0.364 pp, p = 0.046), five rounds after the qualifying one at Monaco.

C6. Simulate ⭐⭐⭐ — heavier tails. Modify dev.detection_power() to draw noise from a Student-t distribution with 3 degrees of freedom, scaled to the same standard deviation (0.46 pp). Does the false-alarm rate stay near 5 %? Does the power at a 0.5 pp step go up or down?

Expected shape: a table of shift_pp, detect_rate, located_within_2 for shifts 0–1.25 pp. Because the permutation test is exact under exchangeability, the false-alarm rate should stay close to 5 %; the power will differ from the Gaussian 49.7 % at 0.5 pp.

C7. Analyze the field ⭐⭐ — spread without the newcomers. Recompute the 2006–2026 team-spread series with the two slowest teams of each round removed (use the slowest continuing team instead). How much of the 2010 and 2026 jumps survive?

Expected shape: a season table like 05_spread_and_cost_cap.py's. For 2026 the result should be close to Chapter 29's "without the two slowest" spread (1.61 % vs 0.70 % in 2025).

C8. Reproduce ⭐⭐ — the competitive spread. Run code/05_spread_and_cost_cap.py and confirm that the season medians for 2017–2025 match the table in 24.7 to two decimals. Then change min_teams from 2 to 10 and report whether any season changes.


Part D — Strategy & Judgment ⭐⭐⭐

D1. Call the pit stop — 2026 Barcelona Grand Prix (round 7). Ferrari's Hamilton leads Mercedes's Russell by 16.342 s at the end of lap 39 (Chapter 10, from metrics.gap_to_leader_by_lap). A virtual safety car (VSC) is deployed on lap 41. The race's green-flag pit loss is 23.682 s (41 stops); under a VSC the book's pooled pit loss is 15.671 s. Ferrari's 2026 qualifying development rate is −0.002 pp per race (interval −0.035 to +0.029); Mercedes is the season's reference team. Decision first: do you pit Hamilton under the VSC on lap 41, and does the team-trend information change your answer?

Reveal

Hamilton pitted on lap 41 under the VSC; his pit-lane time was 22.837 s, and at the end of lap 42 he still led, by 2.973 s (Chapter 10's figures). With a 16.3 s lead and a VSC pit loss of about 15.7 s, the stop costs less than the lead, so the call keeps the lead with fresher tyres. The team trend is irrelevant to this decision: development rates move gaps by hundredths of a percent per race, while the VSC saves about 8 s in one lap. Team trends matter for weekend-level base pace, not for a lap-level call.

D2. Design the setup — where to spend the next upgrade. Aston Martin's 2026 type effects are +1.07 pp at high-speed circuits and −0.37 pp at medium-speed ones (relative to its season median). The last two rounds of 2026 are Qatar (high-speed) and Abu Dhabi (medium-speed in the 2025 typing). If you could bring one aero package for both, would you trim for drag (help the high-speed weakness) or keep downforce (protect the medium-speed strength)? What data would you want first that this chapter cannot give you?

Reveal

A defensible answer: trim towards the weakness, because the high-speed deficit (+1.07) is about three times the medium-speed advantage (−0.37), so the potential gain is larger. But the chapter's data cannot tell you why the car is slow at high-speed tracks: drag, top-speed energy limits under the 2026 rules, or a lack of high-speed downforce. You would want speed-trap and full-throttle fade data (Chapters 10 and 29), and the team's own aero maps, which are not public.

D3. Judgment — a pundit's claim. A broadcaster says after round 13 of 2026: "Alpine's upgrade at Monza transformed the car." Our detector finds a change point for Alpine at Monza (−0.761 pp, p = 0.036). Write three sentences a careful analyst would say on air, using the chapter's numbers.

Reveal

One possible answer: "Alpine's qualifying gap dropped from about 1.7 % to about 1.0 % from Monza onwards, a shift our test rates at p = 0.036, so it's unlikely to be pure chance. But Monza is also where Gasly took pole, and the change-point location is uncertain by a few races, so we can't pin it to a specific part. And with ten such shifts across 41 team-seasons, about two of them will be noise."

D4. Judgment — the cost cap in one paragraph. A team principal says publicly that "the cost cap has made F1 the closest it has ever been". Using only the chapter's numbers, write a paragraph that agrees with what the data support and declines what they do not.

Reveal

The data support: the 2022–2025 team spread (median 1.29 %) was the lowest of any period since 1994, and 1.20 pp tighter than 2017–2020 (interval −1.46 to −0.95). The data do not support crediting the cap: the 2022 car rules arrived a year after the cap, the spread was already falling by 0.288 pp per season before it, and the field widened again in 2026 (2.94 %) under the same cap. "Closest" is true for qualifying spread in 2023–2025; "made it" is a causal claim the data cannot test.

D5. Build the strategy — a team head-to-head market. A bookmaker offers a "which team qualifies higher at Qatar 2026" market on Audi vs Alpine. The checkpoint projects Audi at 0.931 % (interval 0.769 to 1.650) and Alpine at 1.015 % (0.666 to 1.343). Without any odds in front of you, how confident should a model built on this chapter be that Audi out-qualifies Alpine, and what would make you trust it more or less?

Reveal

Not very. The projected difference is 0.08 pp, less than a fifth of the race-to-race noise (residual SD about 0.46 pp), and the two intervals overlap almost entirely. A model honest about this would put the probability not far from one half. You would trust it more if the race-pace trend pointed the same way, if both teams' recent levels were stable (no change point in the last few rounds), and if the type effect for Qatar rested on more than one season of data. You would trust it less if either team had a driver change or a grid penalty, which this chapter's module does not model. Chapter 38 shows how to turn a probability like this into a decision against real odds.


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

M1. (Chapters 16 and 24) ⭐⭐⭐. Use Chapter 16's qualifying.track_evolution() on the 2025 qualifying sessions to estimate each session's evolution slope, and correct the "best of Q1–Q3" gaps of Q1-eliminated teams for the minutes between their best lap and the pole lap. Does the corrected gap sit closer to the Q1 gap? Expected shape: one corrected gap per Q1-eliminated team-round (19 in 2025), with the median difference from the Q1 gap.

Answer sketch

The correction should close part, not all, of the gap between the two measures. Evolution at about 0.019 s per minute explains roughly half of the median 0.8 % Q1-to-pole improvement (Exercise B7); the rest is the front-runners' extra push in Q3, which no evolution correction can remove. If your corrected gaps land between the best-time and Q1 gaps, the method is working as expected.

M2. (Chapters 20 and 24) ⭐⭐⭐. The race-pace cross-check uses the fuel-correction assumption defaults. Rerun race_pace_gaps with start_fuel_kg = 110 and with the data-driven fuel slope of Chapter 20. Do any team-season race-pace rates change sign? Explain why the gap to the fastest team is less sensitive to the fuel assumption than absolute pace is.

M3. (Chapters 21 and 24) ⭐⭐⭐. Chapter 21's driver + car-season regression gives a car effect per team-season. Correlate those car effects with this chapter's season-median gaps for 2014–2026. Then ask: does a team-season with a large teammate gap (Chapter 21) have a noisier gap series here (larger residual SD)? Expected shape: a scatter of 13 seasons × ~10 teams, with a correlation coefficient.

Answer sketch

Expect a strong positive correlation between the car effects and the season-median gaps, because both are driven by the same qualifying times; the interesting part is the residual. A team whose two drivers are far apart sets its best time with one driver, so its team gap is that driver's gap, and a session where the faster driver has a problem switches the series to the slower driver. That is a plausible source of extra noise; whether the data show it is what you are testing.

M4. (Chapters 10 and 24) ⭐⭐⭐ — the "late-season fade". Every year someone says a team "has stopped developing the car to focus on next year". For 2025, which teams' data are consistent with that story (end-of-season gap larger than the start), and what alternative explanations does the chapter give you for the same pattern?

Reveal

From the start-vs-end table of 2025: Red Bull (+0.272 pp), RB (+0.238), Alpine (+0.216), Mercedes (+0.155) and Ferrari (+0.102) ended further from the reference than they started. Alternatives: the reference (McLaren) may have kept developing, so "stopped developing" and "developed more slowly than the leader" look identical in a gap; the last five races (Austin, Mexico City, São Paulo, Losail, Yas Marina, minus wet Las Vegas) have a different circuit mix from the first five; and none of these teams' 2025 development rates has an interval excluding zero. The data are consistent with the story and do not show it.

M5. (Chapters 22 and 24) ⭐⭐⭐. A team can develop its tyre usage as well as its one-lap pace. Using Chapter 22's degradation module, compute each team's median race-stint degradation slope (same fuel correction throughout, stated) per race in 2025, and run this chapter's trend() on it. Does any team's degradation improve through the season with an interval excluding zero? Compare with its qualifying development rate. Expected shape: one rate per team for 2025 with an interval, and a two-column comparison with the qualifying rates.

M6. (Chapters 19 and 24) ⭐⭐. Chapter 19 showed that the theoretical best lap (sum of best sectors) sits a median 0.051 s below the actual best in dry qualifying. Recompute this chapter's 2025 gaps using each team's theoretical best instead of its actual best. Does the residual SD of the gap series fall? If it does, a cleaner pace measure would raise the change-point detector's power: estimate by how much using dev.detection_power() with the new SD.


Part E — Research & Extension ⭐⭐⭐⭐

E1. A Bayesian change-point model. Replace binary segmentation with a Bayesian model that places a prior on the number and location of change points (for example, a product-partition model or a simple two-segment model with a uniform prior on location). Compare its posterior location for McLaren 2023 and Red Bull 2024 with the chapter's residual-bootstrap distributions. Which better expresses the uncertainty to a non-statistician?

E2. Upgrade timing from public sources. This chapter had no public, citable source for when parts were introduced. Find one for a single team-season (for example, event documents published by the FIA or the team's own announcements), and build a small table with the source of every row. Then run a before/after comparison at each documented event, controlled for circuit type, and report how many documented events coincide (within two races) with a detected change point. Discuss selection bias: teams may document many small parts that the timing data cannot see, and the detection-power curve in 24.6 tells you how many of them you should expect to miss.

E3. A long-run development curve. Using method="q1" from 1994, fit a diminishing-returns model $g(r) = g_\infty + (g_0 - g_\infty)e^{-r/\tau}$ to every team-season starting more than 2 % behind. Is $\tau$ (the time constant of catching up) shorter in reset seasons? Report the distribution of $\tau$ with intervals, and say how many team-seasons the fit fails for.