Chapter 22 Exercises — Tire Degradation Modeling

Difficulty legend: ⭐ concept check · ⭐⭐ calculation or short code · ⭐⭐⭐ analysis with judgment · ⭐⭐⭐⭐ open-ended research

All data come from the book's free snapshot (OpenF1 2023–2026 through the Las Vegas GP, Jolpica-F1). No exercise needs a network connection. Every degradation number you report must name its fuel correction: raw, default (the toolkit's 100 kg × 0.03 s/kg assumption) or data-driven (boxbox.degradation.fuel_slope).


Part A — Concepts ⭐

A1. In your own words, define the book's canonical degradation rate. List the four rules that decide which laps enter the fit.

A2. A friend says: "Hards don't degrade. Look, the lap times were flat for 30 laps." Explain, using the fuel effect, why flat raw lap times on a hard tyre are what you should expect, and what number you would show her.

A3. Why must stint lap 1 always be dropped from a degradation fit? What happens to the slope if it is kept?

A4. Explain the difference between the default fuel correction and the data-driven one. Which assumption does each make, and why is the data-driven slope called an upper bound on the pure fuel effect?

A5. A quadratic model beats a straight line on BIC in about a third of long stints, yet forecasts the end of a stint worse in 72% of them. Explain the apparent paradox in two or three sentences.

A6. What does a mixed model do that the median of stint slopes does not? Name one question where you would use the mixed model, and one where the median is enough.

A7. "Compound explains 1% of the variance in stint degradation." Does that mean softs and hards wear at the same rate at every circuit? Explain, referring to Figure 22.9.

A8. Why does the pit loss not affect the optimal lap of a one-stop strategy, and why does it matter for the number of stops?

A9. What makes a model run "degenerate" in Anchor B? Give a circuit where this happens often, and say why.

A10. Name three things a team knows about its tyres that our timing data cannot see, and for each say how it could bias a degradation estimate.


Part B — Calculations & Physics ⭐⭐

B1. The default correction. For a 53-lap race, how much does the default fuel correction (100 kg, 0.03 s/kg, linear burn) add to every raw stint slope? A stint's raw slope there is −0.012 s/lap. What is its default-corrected rate?

Solution

$\Delta d = 0.03 \times 100 / 53 = 0.0566$ s/lap. Corrected rate $= -0.012 + 0.0566 = 0.0446$ s/lap, close to the pooled medium/hard median (0.051/0.048 s/lap, default correction). Both inputs are labelled assumptions, so say "default-corrected".

B2. Grip and lap time.

🧪 Illustrative model: parameters are assumptions chosen to be plausible for a current F1 car, not team data. 55% of an 88 s lap is grip-limited cornering; the tyre loses 0.15% of its friction coefficient per lap of age; ignore downforce.

Using $\delta T_{\text{grip}}/T_{\text{grip}} \approx -\tfrac{1}{2}\,\delta\mu/\mu$, estimate the degradation rate.

Solution

$\delta t = 0.5 \times 0.0015 \times 0.55 \times 88 = 0.0363$ s per lap of age. This is of the same order as the measured medians (0.05–0.06 s/lap default-corrected), which shows how small a physical grip loss produces real strategic effects.

B3. Tyre time of a stint. Using stint_time's closed form, compute the tyre time lost over a 30-lap stint from new at 0.051 s/lap. Then compute it for a 30-lap stint starting on a set 3 laps old.

Solution

From new: $0.051 \times (0 + 1 + \dots + 29) = 0.051 \times 435 = 22.19$ s. From age 3: the ages are 3…32, which sum to $30 \times 3 + 435 = 525$, so the loss is $0.051 \times 525 = 26.78$ s. The three qualifying laps on the set cost 4.6 s over the stint.

B4. Closed-form optimum. A 58-lap race, one stop MEDIUM → HARD, new medium at the start. Wear rates (default correction): medium 0.060, hard 0.050 s/lap. Offsets: medium 0, hard −0.039 s/lap. Use $s^* = \dfrac{d_2 N + o_2 - o_1 + (d_1 - d_2)/2 - d_1 a_0}{d_1 + d_2}$.

Solution

Numerator: $0.050 \times 58 + (-0.039 - 0) + (0.060 - 0.050)/2 - 0 = 2.900 - 0.039 + 0.005 = 2.866$. Denominator: 0.110. So $s^* = 26.1$, a stop around lap 26. Note how the hard's small pace advantage when new ($-0.039$) pulls the stop slightly earlier.

B5. Sensitivity. Repeat B4 with the medium rate lowered to 0.045 s/lap. How many laps does the optimum move? Compare with the Mexico City sensitivity runs in 22.7.

Solution

Numerator: $2.900 - 0.039 + (0.045 - 0.050)/2 = 2.8585$. Denominator: 0.095. $s^* = 30.1$. A 0.015 s/lap change in one rate moves the call about 4 laps. At Mexico City a 0.01 s/lap change in the soft rate moved it 3–4 laps. The ratio of the two rates is what matters.

B6. Critical degradation. For a 66-lap race with a pit loss of 23.7 s, compute the wear rate at which a second stop ties a one-stop, $d^* = 2(k+1)(k+2)\,P/N^2$ with $k = 1$ (ignore warm-up). Is a race with field wear of 0.18 s/lap on the medium a one- or two-stop race by this test?

Solution

$d^* = 12 \times 23.7 / 4356 = 0.0653$ s/lap. Wear of 0.18 s/lap is nearly three times the threshold, so it is a two-stop race at least. For a third stop, $d^* = 2 \times 3 \times 4 \times 23.7 / 4356 = 0.131$, also exceeded. That is consistent with the 2026 Barcelona GP of Chapter 12, which the model priced as a two- or three-stop race.

B7. Shrinkage. A circuit's mean residual over 2 training cells is +0.040 s/lap. With $\kappa = 4$, what circuit effect does DegModel use? With 8 cells and the same mean residual?

Solution

$0.040 \times 2/(2+4) = 0.0133$ s/lap with 2 cells; $0.040 \times 8/12 = 0.0267$ s/lap with 8 cells. The more evidence, the less shrinkage.

B8. Temperature. Using the within-circuit estimate (+0.017 s/lap per +10 °C), how much extra tyre time does a 25-lap stint lose on a day 12 °C hotter than the circuit's norm?

Solution

Extra rate $= 0.0017 \times 12 = 0.0204$ s/lap. The ages 0…24 sum to 300, so the extra time is $0.0204 \times 300 = 6.1$ s. That is enough to move a one-stop by a lap or two, but small next to circuit-to-circuit differences.

B9. Practice to race. Case Study 2 measured a median practice/race degradation ratio of 2.01 across 55 weekend-compound pairs. Your FP2 medium long runs give 0.150 s/lap (pooled data-driven correction). What race rate would you plan around? If the pre-race model predicts 0.060 s/lap for this circuit, form the simple average of the two forecasts.

Solution

Scaled practice: $0.150 / 2.01 = 0.075$ s/lap. Average with the model: $(0.075 + 0.060)/2 = 0.0675$ s/lap. In Case Study 2 this kind of average had the lowest error of the four pre-race forecasts (MAE 0.035 s/lap), but its error is still about half the size of the number itself. Plan around the average and carry a ±0.03 s/lap band into the strategy model.

B10. How much does the fuel label move the stop count? For a 57-lap race with pit loss 22.5 s, the critical rate for a second stop is 0.083 s/lap (Chapter 12's formula). A team measures a raw stint slope of 0.040 s/lap on the hard. Is it a one- or two-stop race on the raw number? On the default-corrected number?

Solution

Raw: 0.040 < 0.083, so one stop. Default-corrected: $0.040 + 0.03 \times 100 / 57 = 0.040 + 0.053 = 0.093 > 0.083$, so two stops. The fuel correction alone flips the decision. This is exactly the failure that cost the raw-lap model 15 points in the retrodiction of 22.8.


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

C1. Analyze this session: 2024 Bahrain Grand Prix (Race). ⭐⭐ Build the stint table with D.stint_table(f1data.laps(s), fuel) for all three fuel conventions. Report the median SOFT and HARD rates and the number of stints under each. Which convention makes the soft wear "twice the hard"? Expected shape: a 3 × 2 table of medians with n; the raw rates near zero or low, the corrected ones roughly 0.09 s/lap each. (For reference, the book's circuit-season table, default correction, gives SOFT 0.094 (n = 23) and HARD 0.092 (n = 37) for this race.)

C2. Compare these drivers: Mexico City 2025, soft tyre. ⭐⭐ Using D.mixed_deg(D.correct_fuel(f1data.laps(s), "default"), "SOFT"), list every driver-stint's own slope and mixed-model slope. Which two stints move most, and why? Expected: the field slope is +0.0631 s/lap [0.054, 0.072]. Russell's third stint, the steepest, moves from 0.119 to 0.081, and Alonso's 15-lap first stint from 0.015 to 0.046 (see the output in code/04_mixed_models_output.txt).

C3. Analyze this session: the fuel slope. ⭐⭐ Run D.fuel_slope for every dry race of 2025 (use boxbox.tyres.dry_race_keys). Plot it against race distance $N$. Overlay the default assumption's $-3.0/N$. In how many 2025 races is the data slope steeper than the default? Expected shape: 20 points scattered around −0.055 (the 2025 median); the default curve lies between −0.04 and −0.07.

C4. Build the strategy: rolling validation of your own DegModel. ⭐⭐⭐ Re-run code/06_predictive_model.py with $\kappa \in \{1, 2, 8\}$ for M2 and report the rolling MAE for 2025 alone. Does the best $\kappa$ on the 2024 fold remain best in 2025? Expected: MAEs within a few thousandths of 0.032 s/lap (M2 with $\kappa = 4$ scores 0.0324 in 2025). Report the numbers your run prints.

C5. Predict the race: one-stop windows for 2025. ⭐⭐⭐ For every dry 2025 race whose winner made one green-flag stop (the candidate list in code/anchor_b_candidates.csv), compute the 1-s window under race-opening inputs. In how many is the winner's actual stop inside the window? Expected: among the book's 19 candidate races (2023–2026), the race-opening inputs put the actual stop inside the 1-s window in 7 of 12 non-degenerate runs. Filter to 2025 and report your count.

C6. Analyze this session: a cliff hunt. ⭐⭐⭐ Run D.fit_stint(..., model="hinge") on every stint of the 2025 Chinese Grand Prix. Which stints show a cliff? Plot the strongest one. Expected: Norris's 40-lap hard stint is the strongest, with a break at tyre age 36 and an extra +0.953 s/lap (Figure 22.5). Report any others your run finds, with their F-test p-values (fit.extra["cliff_p"]).

C7. Compare these drivers: team deg residuals, 2026. ⭐⭐⭐ From code/stints_dry_2023_2026.csv (default rows), compute each 2026 team's median degradation relative to the race-compound median. Rank the teams. Then split the season into odd and even rounds and compute the correlation of the two halves. Expected: Audi (−0.017) and Mercedes (−0.011) are gentlest, Cadillac (+0.018) the hardest (22.5). Across all four seasons the split-half correlation is +0.32; report yours for 2026 alone and comment on n.

C8. Build the strategy: the fuel lesson as a decision. ⭐⭐⭐ Modify code/08_season_retrodiction.py to add a "practice" input set (via D.practice_long_runs) for non-sprint weekends. Compare its stop-count agreement with the opening-stint and pre-race sets. Expected shape: fewer races (only weekends with ≥ 3 long runs per compound); a strong tendency to call too many stops, because practice wear runs about twice race wear (Case Study 2). Report your hit rate with a Wilson interval.

C9. Analyze this session: the opening-stint trap. ⭐⭐⭐ For every dry race of 2025, compute the correlation between an opening stint's slope (default correction) and the lap on which it ended, as in Case Study 1. In how many races is the correlation above +0.5? Do those races have larger Anchor-B-style errors? Expected shape: a table of 20 races with r and n; Hungary 2025 has r = +0.76 (n = 15 medium stints). Report the races you find and discuss whether a high r should trigger a warning in race_early_deg.

C10. Compare these drivers: per-driver wear at Barcelona 2026. ⭐⭐ Run D.mixed_deg on the 2026 Barcelona Grand Prix medium stints. Report the field slope and Verstappen's final-stint slope, own and shrunk. Expected: field fixed slope 0.179 s/lap [0.153, 0.205]; Verstappen laps 41–66, own 0.166, mixed 0.165 (22.4). Then price his 26-lap stint with each rate and confirm the difference of about 5 s.


Part D — Strategy & Judgment ⭐⭐⭐

D1. Call the pit stop: 2025 Hungarian Grand Prix, end of lap 30. Norris (P1 on the road after the leaders' first stops) is on 30-lap-old mediums and has not stopped. Piastri stopped after lap 18 and is on hards. The opening-stint medium rate measured so far is 0.016 s/lap (default correction, 15 first stints), and the hard has run at 0.050 s/lap. There is no safety car. Your model says the optimal single stop is lap 52. Do you stop now, stretch to 40, or follow the model?

Reveal

Norris stopped after lap 31 and one-stopped to the flag, beating the two-stopping Piastri by 0.699 s. The race-opening model priced lap 31 at 14.4 s worse than its lap-52 optimum. The near-zero medium rate came largely from short opening stints run in a train (Case Study 1 shows the opening-stint slope correlates r = +0.76 with stint length), not from a tyre that could truly run 52 laps. A sensible call weighs the model's window against the hard tyre's need to last 39 laps, the gap to Piastri on fresher tyres and the risk of a late safety car. Stopping on 31 was a defensible trade.

D2. Design the setup: a "tyre-friendly" car. A team is choosing between two setups for a high-degradation circuit. Setup A is 0.10 s/lap faster on a new tyre and wears at the field rate. Setup B is no faster when new but wears 0.010 s/lap more slowly. Over a 25-lap stint from new, which is faster, and at what stint length do they tie?

Solution

A gains $0.10 \times 25 = 2.5$ s. B gains $0.010 \times (0 + \dots + 24) = 0.010 \times 300 = 3.0$ s. B is faster by 0.5 s. They tie when $0.10\,n = 0.010\,n(n-1)/2$, so $n - 1 = 20$ and $n = 21$ laps. Longer stints favour the gentler setup. Note that 22.5 found real team differences in wear of about ±0.01 s/lap, so this is a realistic trade.

D3. Practice data on Friday night. Your FP2 long runs say medium 0.169 and soft 0.126 s/lap (pooled data-driven correction), and the model says two stops are 44 s faster. What do you tell the team principal? Use the evidence in 22.7 and Case Study 2.

Guidance

A good answer has three parts. (1) Discount the level. Practice long runs have run a median 2.01× race wear across weekends (Case Study 2) and 2.34× the race's opening stints in Anchor B's candidates. Halving these rates gives about 0.06–0.085 s/lap, close to the circuit's history. (2) Distrust the ratio. Here the medium "wears faster" than the soft, and practice ratios are noisy (the Mexico City medium runs ranged from −0.007 to 0.371 s/lap). The stop lap depends on that ratio (22.7). (3) Plan a decision rule, not a number. Start on the planned one-stop, re-estimate both compounds from the race's opening stints by lap 15–20, and switch to two stops only if race-trim wear on the second compound clears the critical rate. At the real 2025 Mexico City GP, the race-opening inputs priced the two-stop within 0.5 s of the one-stop, not 44 s.

D4. Defend a flat curve. A journalist writes that the winner "pitted two laps too early according to the data". Using the 1-s window concept, write a 150-word reply.

Guidance

Make four points. The optimum of a one-stop sits at the bottom of a shallow bowl: at Mexico City 2025 every stop from lap 33 to 40 was within 1 s in the race-trim model, and the actual lap 34 cost 0.318 s. The wear inputs themselves are uncertain by about ±0.02 s/lap, which moves the model's optimum by three or four laps (22.7). The model omits undercut threats, traffic and safety-car risk, each of which can easily be worth more than 0.3 s. So "two laps early" inside the window is not evidence of a mistake. The interesting claims are the ones outside the window, and even those need a reason the model cannot see.

D5. When to ignore the optimiser. List three race situations in which you would overrule a non-degenerate degradation model's stop lap, and say what extra information each brings (cross-reference Chapters 13 and 14).

Guidance

Examples: (a) the car behind is within about a second and has a fresh-tyre undercut available; Chapter 13 measured undercut success at 78.6% when the gap is under 1 s, so covering it can be worth more than the model's cost of an early stop. (b) A safety car or VSC is deployed inside the window; the pit loss falls to about 12.7 s under SC and 15.7 s under VSC (Chapter 14), and a cheap stop two laps early beats a full-price stop on the optimal lap. (c) Traffic: stopping on the model's lap would put the car behind a slower car it can't pass, so a lap earlier or later buys clean air. In each case the extra information is about other cars or the race state, which the single-car linear stint model does not contain.


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

M1. (Ch 4 + Ch 22) Chapter 4's TyreModel has a warm-up term, a linear rate and an optional cliff. This chapter's forecast test says the line extrapolates best. Write a short design note: which parts of TyreModel should Box Box use when forecasting, and which only when describing a finished stint?

Guidance

Forecasting: the warm-up term (it is measured from thousands of stints and repeats reliably: medium about 0.42 s on stint lap 2) and the linear rate, plus a small late-stint allowance for the line's positive bias (median +0.103 s). Describing only: per-stint curvature and the cliff hinge. They are real in some stints, but they are fitted after the fact and extrapolate badly. A cliff should enter forecasts only as a hard tyre-life limit (CompoundParams.max_laps in boxbox.strategy), not as a fitted slope.

M2. (Ch 12 + Ch 22) Using Chapter 12's critical-degradation formula and this chapter's DegModel predictions for 2026 Abu Dhabi (soft 0.072, medium 0.071, hard 0.053 s/lap, default correction; pit loss 22.67 s; 58 laps), say whether the model should prefer one stop or two. Check your answer against the checkpoint output (best two-stop +4.93 s).

Solution

$d^* = 12 \times 22.67 / 58^2 = 272.0 / 3364 = 0.081$ s/lap. The predicted rates (0.053–0.072 s/lap) are all below it, so one stop. The optimiser agrees: S-H after lap 25 is best, and the best two-stop is 4.93 s slower. DegModel's typical error is about 0.037 s/lap, so a real Abu Dhabi race at 0.09 s/lap would not be a surprise: re-check with the race's opening stints on the day.

M3. (Ch 14 + Ch 22) A VSC on lap 30 of a 71-lap race cuts the pit loss from about 22.6 s to 15.7 s (the near-field green and VSC figures in Chapter 14). Re-run the Mexico City one-stop model with a stop on lap 30 at the VSC pit loss. Does the cheaper stop beat a green stop on lap 36? By how much? Hint: the one-stop curve's lap-30 cost relative to lap 36 is about 2.2 s (race-opening inputs, rounded).

Guidance

The VSC saves roughly $22.6 - 15.7 = 6.9$ s of pit loss, against a 2.2 s penalty for stopping six laps before the model's optimum, so the VSC stop wins by about 4.7 s in this simple accounting. Two refinements belong in a full answer: every car's laps are slow under a VSC, so the comparison should use the near-field definition of Chapter 14; and rivals can make the same cheap stop, so the gain in position may be smaller than the gain in time.

M4. (Ch 19 + Ch 22) Chapter 19 found that mini-sector differences under about 0.05 s are not evidence at 3.7 Hz. Give the degradation analogue: what is the smallest difference in race-level wear between two teams at one race that you would treat as real, and why? Use the mixed model's interval widths.

Guidance

The median 95% interval on a race's field slope is 0.046 s/lap wide, about ±0.023. A single team has only about two stints per compound per race, so its interval is wider still. A difference under about 0.03 s/lap between two teams at one race is not evidence. Pooling across races (the team-season residuals of 22.5) shrinks the noise, but even then the split-half reliability was only r = 0.32.

M5. (Ch 21 + Ch 22) Chapter 21's driver ratings shrink small-sample drivers towards the mean; this chapter's mixed model shrinks short stints. Compare the two: what plays the role of "a driver with few races" in each?

Guidance

In the ratings, a driver with few teammate comparisons; here, a stint with few usable laps (Alonso's 15-lap soft stint at Mexico City moved from 0.015 to 0.046 s/lap). In both, the estimate is a precision-weighted compromise between the unit's own data and the population. DegModel uses the same idea a third time: a circuit seen in only one or two races has its effect shrunk by $n/(n+4)$.


Part E — Research & Extension ⭐⭐⭐⭐

E1. A traffic-aware degradation fit. Using the interval field in the laps table, flag laps run within 1.5 s of the car ahead. Refit the 2023–2026 stint table excluding those laps. Does the pooled rate change? Do short opening stints (Case Study 1) still show negative slopes? Write up the method, the change in the compound medians and their intervals.

E2. A season-aware pre-race model. DegModel M4 learns a single season shift. Extend it to a season × compound shift with its own shrinkage. Run it through the rolling validation. Does it beat M2? Report honestly even if it does not.

E3. Compound C-numbers. Collect, from Pirelli's public race previews, the C-numbers nominated at each 2025 race. Add them as a column (with source and date) and test whether "C-number of the SOFT" explains any of DegModel's residuals. Document every source in the style of data/reference/tyres.csv, and never type a value you have not sourced.