Exercises — Chapter 11: Lap-Time Simulation
Difficulty: ⭐ concept check · ⭐⭐ calculation or short script · ⭐⭐⭐ analysis with judgement · ⭐⭐⭐⭐ open-ended project
All data come from the book's snapshot (OpenF1 qualifying car_data and location, 2025–2026). Scripts referred to are in code/; run them from the chapter directory. Numeric answers quoted below come from the chapter's own runs. Every car parameter is an assumption or an effective fit (🧪).
Part A — Concepts ⭐
A1. In one sentence each, say what the corner limit, the backward pass and the forward pass compute, and why the simulated lap is their minimum.
A2. "Quasi-steady-state" means every point of the lap is treated as a steady state. Name two real phenomena on a qualifying lap that violate that assumption.
A3. Why does a point-mass model have no understeer or oversteer? What would you need to add to get them?
A4. Chapter 1's grip envelope was fitted through the median apex. Explain why a simulator built on it must be too slow, even if every other part is perfect.
A5. The chapter reports two error metrics: lap-time error and RMS speed error. Describe a simulated lap with a lap-time error of zero and a large RMS speed error. Which metric would mislead you, and when?
A6. What is the noise floor, and why does it include more than sensor noise?
A7. Explain the difference between a parameter the data identify and one they do not, using the braking scale (bounded at 1.2) and the 2026 drag area (1.211 vs 1.068 m² in the two folds) as examples.
A8. Why is a lap simulator more trustworthy for the difference between two setups than for an absolute lap time?
A9. In 2026 the simulator says a bigger MGU-K is worth almost nothing at most circuits but something at Monaco. Explain why in terms of the energy budget.
A10. The track line is rescaled to the reference lap's integrated distance (a factor between 0.992 and 1.007 across the 42 sessions). What would go wrong if the simulated lap were 1 % longer than the distance implied by the real speed channel?
A11. Why does the 2026 simulator need a rule for spending energy at all, and why can the data not tell us the teams' real rule?
Part B — Calculations & Physics ⭐⭐
B1. Corner limit by hand. The calibrated 2026 envelope is $a_{y,\max}/g = 1.734 + 7.94\times10^{-4}v^2$ (v in m/s). (a) Above what radius is a corner flat out? (b) What is the corner limit in a 40 m hairpin and in a 120 m corner?
Solution
In SI: $a_{y,\max} = 1.734 \times 9.81 + 7.94\times10^{-4}\times 9.81\, v^2 = 17.01 + 7.79\times10^{-3} v^2$. (a) Flat out where $|\kappa| \le 7.79\times10^{-3}$, i.e. $R \ge 128$ m (the chapter's output says 128 m). (b) $v^2 = 17.01/(1/R - 0.00779)$. For $R = 40$: $17.01/(0.025 - 0.00779) = 988$, so $v = 31.4$ m/s = 113 km/h. For $R = 120$: $17.01/(0.00833 - 0.00779) = 17.01/0.00054 \approx 31{,}500$, $v \approx 177$ m/s, which is beyond any top speed: the corner is effectively flat out, and tiny changes in the radius estimate move the limit enormously. That sensitivity near the flat-out radius is one reason curvature smoothing matters.
B2. Braking distance. Using the 2026 preset braking envelope $a/g = 0.84 + 7.50\times10^{-4}v^2$ and the closed form from Chapter 7, $d = \frac{1}{2gB}\ln\frac{A + Bv_0^2}{A + Bv_1^2}$, compute the distance from 320 to 100 km/h, then add the 0.172 s onset delay at 320 km/h.
Solution
$v_0 = 88.9$ m/s, $v_1 = 27.8$ m/s. $A + Bv_0^2 = 0.84 + 7.50\times10^{-4}\times7{,}901 = 6.77$; $A + Bv_1^2 = 0.84 + 0.579 = 1.42$. $d = \ln(6.77/1.42)/(2\times9.81\times7.50\times10^{-4}) = 1.562/0.01472 = 106$ m. Onset: $88.9 \times 0.172 = 15.3$ m. Total about 121 m. Chapter 7's measured big stops (≥ 320 to ≤ 120 km/h) took a median 146 m, which is one reason the simulator brakes differently from the real cars.
B3. Friction ellipse. A car is braking at 4.0 g where its pure-braking limit is 5.0 g. Using the ellipse, how much lateral acceleration can it use at the same time if its lateral limit is 4.5 g?
Solution
$(4/5)^2 + (a_y/4.5)^2 = 1 \Rightarrow a_y/4.5 = \sqrt{1 - 0.64} = 0.6$, so $a_y = 2.7$ g.
B4. The ICE-only top speed. The 2026 calibrated car has $C_DA = 1.154\ \text{m}^2$. With 0.92 × 400 kW at the wheels and air at 1.148 kg/m³, what speed can the ICE alone hold (ignore rolling resistance)? How much MGU-K power at the wheels is needed to hold 340 km/h?
Solution
$v^3 = 2P/(\rho C_DA) = 736{,}000/(1.148\times1.154) = 555{,}600$, $v = 82.2$ m/s = 296 km/h. At 340 km/h (94.4 m/s): $P = \tfrac12\times1.148\times1.154\times94.4^3 = 0.662\times841{,}200 = 557$ kW at the wheels, so about 189 kW more than the ICE gives. The Overtake curve allows $7100 - 20\times340 = 300$ kW at that speed (276 kW at the wheels), so it is possible, but only while energy lasts.
B5. Energy per straight. Deploying 300 kW for 8 s uses how many MJ? What share of an 11 MJ qualifying budget is that?
Solution
$300\ \text{kW}\times 8\ \text{s} = 2.4$ MJ, 22 % of 11 MJ. Four such straights would use 88 % of the budget, which is why the 2026 simulator must ration deployment.
B6. The lap-time integral. A 400 m stretch is covered at 200 km/h in the simulator and at 210 km/h by the real car. How much time does the simulator lose there? Compare with a 400 m stretch at 300 km/h vs 310 km/h.
Solution
$400/55.56 - 400/58.33 = 7.200 - 6.857 = 0.343$ s. At 300 vs 310: $400/83.33 - 400/86.11 = 4.800 - 4.645 = 0.155$ s. The same 10 km/h error costs more than twice as much at the lower speed, which is why the RMS speed error and the lap-time error weight the lap differently.
B7. Mass and fuel. The calibrated simulator's lap-time cost of mass is 0.0251 s/kg at Las Vegas (2026). A team considers starting a 50-lap race with 5 kg less fuel and lifting and coasting to save it. Ignoring the lift-and-coast cost, what is the gain over the race if the extra fuel would have been carried for half the race on average?
Solution
5 kg × 0.0251 s/kg = 0.126 s per lap at full weight. Carried on average for half the race (it burns off linearly): 0.126 × 50 / 2 ≈ 3.1 s. That is the upper side of what the lift-and-coast must not exceed to be worth it. (Qualifying-trim sensitivity; a race car on worn tyres may differ.)
B8. Grip and the corner limit. At low speed the corner limit is $v_{\max} pprox \sqrt{\mu g R}$. If a grip change raises $\mu$ by 10 %, by what percentage does the hairpin's corner speed rise, and roughly what does that save over a 100 m stretch driven at 80 km/h?
Solution
$v \propto \sqrt{\mu}$, so $\sqrt{1.1} = 1.049$: about +4.9 %. 100 m at 80 km/h (22.2 m/s) takes 4.500 s; at 83.9 km/h (23.3 m/s) it takes 4.290 s, a saving of about 0.21 s. That is per slow stretch; a circuit with several such corners collects the saving several times, and the exits are faster too. This is the mechanism behind the large lap-time value of grip in the sensitivity tables (for example −2.576 s for +10 % $\mu$ at Las Vegas).
B9. Cross-validation arithmetic. In two-fold cross-validation of the 2026 car, fold 0 trains on 10 sessions and fold 1 on the other 10. The test medians of RMS speed error are 19.52 and 15.52 km/h, and the pooled out-of-sample median over all 20 sessions is 18.149 km/h. Why is the pooled median not the mean of the two fold medians (17.52 km/h)?
Solution
The median of a combined set is not the average of the two halves' medians; it depends on how the two distributions overlap. Here the fold-0 test sessions (the ones fold 0 did not train on) happen to be the harder ones, and the pooled median sits nearer the upper half. Always compute the pooled statistic from the per-session values, never from fold summaries.
B10. The density split. In Case Study 1, Mexico City's thin air (0.905 against 1.148 kg/m³) changes the simulated 2026 lap by −1.180 s through drag alone and +2.695 s through downforce alone, and by +1.680 s together. (a) What is the interaction term? (b) If the turbocharger lost 5 % of ICE power at altitude, and +10 % ICE power is worth about 1 s per lap at a typical 2026 circuit, roughly how much would that add?
Solution
(a) $1.680 - (-1.180 + 2.695) = 1.680 - 1.515 = +0.165$ s: the two effects together cost more than their sum. (b) Using the chapter's 2026 median of −0.932 s for +10 % ICE power as a rough guide, −5 % would cost about +0.47 s, assuming the effect is roughly linear and Mexico behaves like the median circuit (it does not exactly; check with lapsim.sensitivity). The altitude response of the power unit is not public, so this is a what-if, not an estimate.
Part C — Data & Code ⭐⭐–⭐⭐⭐
C1. Analyze this session — 2026 Monaco GP qualifying. ⭐⭐ Run the calibrated 2026 car (ch11_common.params_for(case, load_fit()[2026])) on the 2026 Monaco case. Report the lap-time error, RMS speed error, the share of lap time in each limiting mode (SimResult.summary()), and the deployment share. Expected shape: a dict like the one printed in §11.6. The out-of-sample fold gave +0.539 s and 19.7 km/h; the all-season fit will be close. Explain why Monaco's deployment share is near 1.
C2. Test the smoothing window. ⭐⭐⭐ Rebuild the cases with window_m=40 and window_m=80 (all_cases(window_m=...)) and rerun the 2026 two-fold calibration of 04_calibration.py for each. Expected output: a three-row table (40, 60, 80 m) of out-of-sample median absolute lap-time error and median RMS speed error. In the chapter's exploratory runs, 60 m was slightly better than 40 m for both seasons; does 80 m continue the trend or reverse it? Which circuits change most?
C3. Compare these drivers — the noise floor up close. ⭐⭐ For the 2025 Japanese GP qualifying (Suzuka), align the top three quality-checked laps on the session line and compute the pairwise RMS speed differences. Expected: three RMS values in the 4–7 km/h range (the session's noise floor in the chapter is in code/_cache/noise_floor.csv). Plot the speed differences against track position and mark where the drivers differ most; are those the same places where the simulator's residuals are largest?
C4. Analyze this session — residuals by corner. ⭐⭐⭐ For the 2026 British GP, split the calibrated residual (from compare_to_lap) into the segments between successive speed minima of the real lap. Report mean and RMS residual per segment, with the segment's minimum speed. Expected: a table of roughly 10–14 segments; the chapter found the 2,900–3,900 m segment at a mean −32.7 km/h. Which segment types (slow, medium, fast) carry most of the squared error?
C5. Build the strategy input — lap time per kg everywhere. ⭐⭐ From code/_cache/sensitivity.csv, list the s/kg value for every circuit and season, and fit a linear model of s/kg on lap length and full-throttle share. Expected: 42 rows; medians 0.0330 (2025) and 0.0331 s/kg (2026); per-km medians 0.00655 and 0.00596 s/kg/km. Is lap length or full-throttle share the better predictor?
C6. Predict the session — out of sample by design. ⭐⭐⭐ Refit the 2026 car on rounds 1–14 only and predict rounds 15–21 (Baku to Las Vegas). Expected: seven predictions with errors. Compare the median absolute error with the chapter's two-fold figure of 1.38 s. Does training on the early season, with its 8 MJ qualifying Recharge limit for rounds 1–3, bias the late-season predictions?
C7. The energy rule. ⭐⭐⭐ Add a third deployment rule to lapsim: deploy fully only where speed is below a threshold $v^*$ and not at all above it, with $v^*$ chosen to spend the budget. Compare all three rules (latch, spread, threshold) on the 2026 Monza and Las Vegas laps for lap time and RMS speed error. Expected: a 2 × 3 table; the chapter found spread better on RMS (22.2 vs 26.7 km/h at Monza with the preset car) and latch better on lap time.
C8. Compare these seasons — braking residuals. ⭐⭐ From code/_cache/residuals_final.parquet, compute the mean braking-phase residual per circuit for both seasons. Expected: 42 rows; pooled means +13.8 (2025) and +9.6 km/h (2026). Are the circuits with the largest braking residuals the ones with the highest-speed braking zones (Chapter 7's circuit table)?
C9. Analyze this session — the preset's worst miss. ⭐⭐ The preset car missed 2025 Jeddah by +18.36 s, and even the calibrated car missed it by +9.80 s out of sample. Plot the calibrated simulation against the 2025 Saudi Arabian GP pole lap with its residual, as in Figure 11.8, and locate the three 500 m stretches with the most negative cumulative time loss. Expected: a two-panel figure and a three-row table. Are they fast direction changes (a smoothing problem), long straights (an energy or drag problem) or braking zones?
Part D — Strategy & Judgment ⭐⭐⭐
D1. Design the setup — Singapore 2026. You can take one of three packages: (a) +10 % downforce, (b) −10 % drag, (c) +5 % downforce and −5 % drag. Using the chapter's calibrated 2026 numbers for Marina Bay (+10 % downforce −1.512 s, −10 % drag −0.448 s), estimate (c) assuming the effects scale linearly, then check it with lapsim.sensitivity. Which do you choose, and what would make you change your mind?
Discussion
Linear estimate for (c): half of each, −0.756 − 0.224 = −0.980 s, so (a) still wins. The answer changes if the downforce package brings drag with it (the realistic case): at Singapore it would take roughly 24 % extra drag to cancel 10 % more downforce, so (a) is robust there. At Monza the same calculation flips at about 2.7 % extra drag.
D2. Design the setup — the Monza wing frontier. Build a "wing curve" for the calibrated 2025 car at Monza: five wing levels from −10 % to +10 % downforce, each with drag changing by a chosen fraction $k$ of the downforce change ($\Delta C_DA/C_DA = k\,\Delta C_LA/C_LA$). For $k = 0.5, 1.0, 1.5$, find the best wing level. What value of $k$ makes the lowest-drag wing optimal? Relate it to the chapter's 1.55 vs 1.47 s comparison.
Discussion
To first order, a wing step of +10 % downforce with $k imes10$ % more drag changes the lap time by about $-1.548 + k imes1.474$ s (2025 Monza values). That is negative (more wing is better) for $k < 1.05$ and positive for $k > 1.05$. So the lowest-drag wing is optimal at Monza only if the wing family costs more than about 1.05 % of drag per 1 % of downforce at the margin. Run the five levels to see how far the linear estimate holds; at Monaco, with −2.154 vs −0.321 s, the threshold is $k pprox 6.7$, which no real wing approaches, so maximum downforce wins.
D3. Call the pit stop — the fuel decision. It is the 2026 Las Vegas GP. A rival strategist claims that starting with 5 kg less fuel is worth "half a second a lap". Using the calibrated simulator's 0.0251 s/kg at Las Vegas, decide whether to believe it before you look.
Reveal
5 × 0.0251 = 0.126 s per lap at the start, falling to zero as the fuel burns off. "Half a second a lap" would need about 20 kg at this circuit's sensitivity. The claim is four times too large on the simulator's numbers, though remember the simulator's value is for qualifying trim and the race-data fuel effect (0.033 s/kg, an upper bound) is somewhat larger.
D4. Judge the model. A colleague shows you a simulator that matches every 2026 pole lap within 0.3 s but has never been compared with a speed trace. Write the three questions you would ask before using it to choose a wing level, and explain what answer to each would make you trust it.
Discussion
(1) Was it tested on sessions it was not fitted to? A model tuned per circuit can hit every lap time and still predict nothing. (2) What is its RMS speed error at matched track positions, against the noise floor of two real laps? A lap-time match with an 18 km/h RMS error means errors are cancelling. (3) Do its fitted parameters make physical sense, and are any of them at a bound or unidentified? For a wing decision specifically, ask also whether the downforce–drag exchange rate it implies at the circuit has been checked against anything independent, such as straight-line speeds at a low-drag circuit.
D5. Predict the race weekend. Before the 2026 season, suppose you had only the calibrated 2025 car and the FIA's announced targets (about 30 % less downforce, about 55 % less drag). Describe how you would use lapsim to forecast the 2026 pole-lap change at each circuit, and list the two inputs you would be least sure of. Then compare your plan with Case Study 2, which found that the downforce step alone is worth +4.5 to +4.9 s in the median while the whole real change was +2.18 s.
Part M — Mixed / Interleaved ⭐⭐–⭐⭐⭐
M1. With Chapter 1. ⭐⭐ Chapter 1 estimated that downforce equals weight at 171 km/h for the 2026 preset. Compute the same "crossover" speed for the calibrated 2025 and 2026 envelopes and explain what moved it. (The chapter's Spaced Review gives 126 and 168 km/h.)
Solution
Crossover $v = \sqrt{\mu/B}$ with $B$ in g per (m/s)². 2026 calibrated: $\sqrt{1.734/7.94 imes10^{-4}} = 46.7$ m/s = 168 km/h. 2025 calibrated: $\sqrt{1.421/1.165 imes10^{-3}} = 34.9$ m/s = 126 km/h. The grip scale multiplies both terms, so by itself it does not move the crossover (the preset 2026 value is 171 km/h); the small shift comes from the session air density used in the fit. The large difference between the seasons is the aero term: the 2026 car has about a third less of it, so mechanical grip dominates up to a higher speed, matching Chapter 8's finding that many more 2026 corners sit below the crossover.
M2. With Chapter 3. ⭐⭐ Chapter 3 found an apex-based downforce ratio 2026/2025 of 0.70 (0.59–0.85). The calibrated simulator gives 0.68. These were fitted to overlapping data; list what is shared and what is independent between the two estimates, and say how much the agreement should raise your confidence.
Hint
Shared: the same qualifying sessions, the same location feed and curvature method (both rely on Chapter 1's averaged line), and the same speed channel. Independent: Chapter 3 uses only apex points with a robust fit; the simulator uses whole laps, and its aero term is constrained also by braking zones, straights and the energy model. The agreement mostly rules out a gross error in the method; it cannot rule out a bias common to both (for example, curvature that is systematically too small in fast corners).
M3. With Chapter 6. ⭐⭐⭐ Chapter 6 measured the 2026 clipping signature (speed falling at full throttle at the end of long straights). Using the calibrated simulator with the "spread" rule, measure the same fade on the simulated 2026 Albert Park and Suzuka laps with power.clipping_metrics-style logic (peak minus speed at the last full-power point on the longest straight). Expected: the simulated fade is much smaller than Chapter 10's 58 and 54 km/h, because a constant deployment share does not create a fade. What rule would?
M4. With Chapter 7. ⭐⭐ Redo the chapter's braking-residual analysis using the uniform-rescale alignment (telemetry.delta_time-style: rescale integrated distance to the line length) instead of the location line. How much larger does the RMS speed error get, and in which phase? This quantifies Chapter 7's warning about integrated-distance alignment for simulators.
M5. With Chapter 10. ⭐⭐⭐ Chapter 10 clustered circuits into speed types. Group the chapter's out-of-sample RMS errors by Chapter 10's 2026 speed types (high-speed, medium, low-speed). Which type does the simulator handle best? Expected: a three-row table with n per type.
M6. With Chapter 5. ⭐⭐⭐ Chapter 5's load-sensitive tyre says each extra newton of downforce adds slightly less grip than the last. Replace the constant $\mu$ in corner_limit with $\mu(F_z)$ from pacejka.mu_at_load (per-wheel load = quarter of weight plus downforce) and recalibrate. Do the slow/medium apex biases of §11.3 shrink?
Part E — Research & Extension ⭐⭐⭐⭐
E1. Shapley attribution of the 2026 change. Extend Case Study 2 to a full Shapley decomposition over all 720 orderings of the six parameter groups (or a seeded sample). Report each group's median contribution with an interval across circuits, and compare it with the forward and reverse orders.
E2. A two-axle simulator. Replace the point mass with a steady-state two-axle model: front and rear axle loads with Chapter 8's load transfer, each axle with its own grip limit (setup.axle_limits), and a rear-wheel-drive traction limit. Calibrate it the same way and report whether it beats the point mass out of sample. Be explicit about every new 🧪 parameter.
E3. An optimal energy strategy. Formulate 2026 deployment as an optimisation: choose MGU-K power along the lap to minimise lap time subject to the energy budget and the speed-dependent cap. Solve it (for example, by iterating on a Lagrange multiplier: deploy where the time saved per joule exceeds λ) and compare the optimal profile's shape with the real speed traces at Monza and Las Vegas. Does the optimum look more like the real cars than "latch" or "spread"?