64 min read

Tom has his laptop open on the Sector Four call, and he is annoyed in the specific way that only an

Chapter 30 β€” Car Development: CFD, the Wind Tunnel, the Simulator, and the Upgrade Pipeline

Tom has his laptop open on the Sector Four call, and he is annoyed in the specific way that only an aerodynamicist can be annoyed by a spreadsheet.

Tom: Our Formula Student team gets one weekend in a university tunnel per year, if we're lucky. In F1 the rules hand the slowest team more tunnel time than the champion. The table says the last-placed team gets 115 % of the baseline and the champion gets 70 %.

Ray: So the slow teams catch up and the order flips every few years. I've been watching since the eighties. It doesn't flip.

Aisha: Then either the extra time doesn't do much, or it does something we can't see. Those are two very different answers.

Ines: And how would we even know? Nobody publishes when they bring a new floor.

Ines has put her finger on the problem this chapter is about. Let us start with what we can count.

The FIA's sliding scale is in the book's reference tables (data/reference/cost_cap.csv, from the 2025 Sporting Regulations, Appendix 7, and the 2026 Operational Regulations, Section F). Every Aerodynamic Testing Period, a team at 100 % may make 320 wind-tunnel runs, with 80 hours of "wind-on" time, and may solve 2,000 new CFD geometries. From 2022 the champion gets 70 % of that and the tenth-placed team gets 115 %. Over a year the gap is 1,344 runs against 2,208: the last team gets 1.64 times the champion's tunnel time.

When we turn the constructors' standings into allowances, period by period, the totals for the whole 2022–2025 rules cycle run from 5,532 runs for Red Bull to 8,208 for Williams. That is 1.48 times as much testing for the entry that had the most of it.

So did the extra time show up? We fitted every team-season's in-season development rate from qualifying, covering 205 team-seasons from 2007 to 2026, and then asked whether last year's backmarkers closed faster after the scale arrived than they had before it existed. The answer is a careful "maybe, a little".

  • In 2022–2026 the line tilts the right way. A team that finished last the year before closes about 0.21 percentage points more of the lap over a season than the team that won.
  • Before the scale, the same line was flat.
  • But the difference between the eras has a 95 % interval from βˆ’0.032 to +0.013 pp per race, which includes zero.
  • The smallest effect our design could reliably see is about 0.64 pp per season, roughly half a second a lap.

The scale might well be working. Our stopwatch is just too coarse to prove it.

This chapter is about the machinery behind that answer. We cover:

  • the tools teams develop cars with: computational fluid dynamics (CFD), the wind tunnel and the driver-in-the-loop simulator;
  • the physics that makes each tool imperfect, using small πŸ§ͺ models you can run on a laptop;
  • the rules that ration those tools;
  • the statistics of finding an upgrade in public timing data.

By the end you will be able to explain why a 60 % model at 50 m/s never sees the flow a real car sees. You will also be able to turn the testing rules into per-team allowances, test an upgrade honestly, and run a correlation exercise of your own between our lap simulator and real telemetry.

πŸ”§ Engineering Track: This is your chapter. Sections 30.2–30.4 build the aerodynamic tools from first principles (thin-airfoil theory, a vortex panel method, Reynolds scaling), and 30.8 is a full correlation exercise with the Chapter 11 simulator. Read Chapter 3 first if downforce and drag areas are not yet second nature.

πŸ“Š Analytics Track: Sections 30.5–30.7 are the statistical core: dose-response under confounding, power analysis, and why a before/after test at a data-chosen split lies to you. They build directly on Chapter 24's change points.

🏎️ Fan Track: Read 30.1 (the upgrade pipeline), 30.4 (the wind tunnel) and 30.5 (the sliding scale), and skim the figures in 30.6–30.7. You will come away knowing what "they've brought a big upgrade package this weekend" can and cannot mean in the data.


30.1 The upgrade pipeline: from an idea to a part on the car

A modern F1 car is never finished. From the first test to the last race, every team is replacing parts: front-wing endplates, floor edges, diffuser strakes, sidepod inlets, brake-duct winglets, suspension fairings. Each new part has to travel the same road before it reaches the car, and every stage of that road is a filter.

  1. Concept. An aerodynamicist proposes a change. It might be a new floor-edge shape, a different front-wing flap profile, or a way to steer the front tyre wake away from the floor.
  2. CFD. The idea is drawn in CAD (computer-aided design), and its geometry is meshed and solved numerically. Dozens of variants may be screened in CFD for every one that goes further.
  3. Wind tunnel. The best variants are made as parts for a scale model and run in the tunnel, where the air is real, the model is physical, and forces are measured by a balance.
  4. Simulator and lap-time model. The measured aerodynamic map (downforce and drag, and their balance, as functions of ride height, yaw and steering) goes into a vehicle model. A lap-time simulation and the driver-in-the-loop simulator answer the question that matters: is it faster around a lap, and can a driver use it?
  5. Release and manufacture. Parts are made at full size from carbon composite, inspected and scheduled. The cost cap prices every one of them.
  6. Track. The part runs, often in a back-to-back comparison in practice. If the track result agrees with what the tools predicted, the tools are said to be correlated. If it doesn't, the team has a correlation problem, which is far worse than a slow part, because it means every future prediction is suspect too.

πŸ“ Definition: Correlation (in development) is the agreement between a virtual or scale-model prediction and the full-size track measurement of the same quantity: a downforce change, a balance shift, a lap-time gain. A team is "well correlated" when tunnel and CFD deltas reliably predict track deltas. It is not the statistical correlation coefficient, although we will use that too.

Three things ration this pipeline, and they are worth separating, because they bind different teams in different ways.

  • Physics sets the error bars on each tool. CFD solves an approximation of the equations of fluid motion. The tunnel solves the real equations, but on a model that is too small and too slow. The simulator replaces a car with a model. We look at each of these in 30.2–30.4 and 30.8.
  • The aerodynamic testing restrictions (ATR) cap how much tunnel and CFD work each team may do, with the sliding scale by championship position (30.5).
  • The cost cap limits how much each team may spend on parts, people and production. For 2026 it is USD 215m for up to 24 races, plus USD 1.8m for each race above that (FIA 2026 F1 Regulations, Section D, Art. D4.1, via cost_cap.csv). Chapter 31 covers it in full. Here the point is that a part which passed the tunnel still costs money to make, so development is an allocation problem under two separate budgets: test time and money.

That is theme 1 in its purest form: F1 is an optimization problem. Development searches for downforce and efficiency through a space constrained by the rules, the physics of each tool, two budgets and the calendar. The best ideas are worthless if they reach the car after the season is decided.

πŸ“Ί On the broadcast: When the commentator says "they've brought a big upgrade here, new floor and sidepods", that information comes from the team or the paddock, not from the timing screens. Our data snapshot holds no record of which parts were new or when. So in this chapter we never call a shift in pace an "upgrade". We call it a change point, a statistical object that the timing data supports, and we keep the two ideas apart deliberately.

What our data can and cannot see

Before we build anything, here is the honest inventory, the same habit Chapter 24 taught.

  • We can see: qualifying and race lap times for every team (Jolpica, OpenF1); speed, throttle and brake telemetry at about 3.7 Hz in qualifying and races; car position on track in qualifying; the testing rules and each team's position-based allowance (reference tables); the cost cap.
  • We cannot see:
  • when any part was introduced, or what it was;
  • any tunnel, CFD or simulator data, because those belong to the teams;
  • how a team spent its allowance (runs on next year's car or this year's);
  • ride height, aerodynamic load, or any pressure tap.

So the chapter has two halves. The first half builds teaching versions of the teams' tools (πŸ§ͺ throughout), so you understand what they compute and where they go wrong. The second half asks what the public data can say about the results of development, and how sure we can be.

πŸ”„ Check your understanding 1. Name the six stages of the upgrade pipeline, in order. 2. Why is a correlation problem worse than a slow part?

Answer

  1. Concept, CFD, wind tunnel, simulator and lap-time model, release and manufacture, track.
  2. A slow part costs one part. A correlation problem means the tools' predictions no longer match the track, so every future part they approve is suspect too, until the disagreement is understood.

30.2 Where lift comes from: thin wings and a panel method (πŸ§ͺ)

Chapter 3 treated downforce as a single number, $C_L A$, multiplied by dynamic pressure. Development lives one level down: why does a wing of a given shape, at a given angle, produce the lift it does? And how does a computer predict it before anyone makes a part?

Circulation and the Kutta–Joukowski theorem

A wing makes lift by turning the air. In inviscid theory, the turning is summarised by the circulation $\Gamma$, the line integral of velocity around the wing. The Kutta–Joukowski theorem links it to force:

$$L' = \rho\, U\, \Gamma$$

Here $L'$ is lift per metre of span, $\rho$ is the air density and $U$ the freestream speed. In plain English: the force on a wing is set by how strongly it makes the air swirl around it. Double the swirl at the same speed and you double the lift.

Worked number. Air at 1.18 kg/mΒ³ and 250 km/h (69.4 m/s), with a section circulation of 10 mΒ²/s, gives $L' = 1.18 \times 69.4 \times 10 \approx 820$ N per metre of span. The circulation here is an assumed value for the arithmetic only.

What sets $\Gamma$? The Kutta condition: the flow must leave the sharp trailing edge smoothly, rather than whipping around it. That single physical requirement picks out one circulation from the infinitely many that potential flow allows.

Thin-airfoil theory

For a thin, gently cambered section at small angle of attack $\alpha$, classical thin-airfoil theory gives a beautifully simple answer:

$$C_l = 2\pi\,(\alpha - \alpha_{L0}), \qquad \alpha_{L0} = -\frac{1}{\pi}\int_0^{\pi}\frac{dz_c}{dx}\,(\cos\theta - 1)\,d\theta$$

Here $C_l$ is the section lift coefficient, $L'/(\tfrac12\rho U^2 c)$ with chord $c$, and $z_c(x)$ is the camber line. In plain English: every thin wing has the same lift slope, $2\pi$ per radian (about 0.11 per degree). Camber does not change the slope. It shifts the whole line, so that the wing makes lift even at zero angle.

Worked number. For the NACA 4412 camber line (4 % camber at 40 % chord), the integral gives $\alpha_{L0} = -4.154Β°$. At $\alpha = 4Β°$ the theory predicts $C_l = 2\pi \times (4 + 4.154)\,\pi/180 = 0.894$.

A discrete vortex panel method

Thin-airfoil theory is elegant, but it needs a closed-form integral, and it cannot handle a wing near the ground or two elements interacting. The workhorse that can is a panel method. Ours is the simplest member of the family, the lumped (discrete) vortex method described in Joseph Katz's aerodynamics texts.

  1. Split the camber line into $N$ straight panels.
  2. Put a point vortex of unknown strength $\Gamma_j$ at the quarter-point of each panel.
  3. At each panel's three-quarter point (the collocation point), require that the flow does not pass through the surface: the velocity normal to the panel is zero.
  4. That gives $N$ linear equations, $\mathbf{A}\boldsymbol{\Gamma} = -\mathbf{U}\cdot\mathbf{n}$, for the $N$ unknown strengths. The quarter/three-quarter placement satisfies the Kutta condition automatically.
  5. Sum the forces with Kutta–Joukowski, using the local velocity at each vortex.
# code/01_airfoil_panel.py (excerpt): the whole solver is a matrix of induced velocities
def induced(points, sources, sign=1.0):
    """Velocity (u, w) at points from unit clockwise vortices at sources."""
    dx = points[:, None, 0] - sources[None, :, 0]
    dz = points[:, None, 1] - sources[None, :, 1]
    r2 = dx**2 + dz**2
    r2 = np.where(r2 < 1e-14, np.inf, r2)
    return sign * dz / (2 * np.pi * r2), sign * -dx / (2 * np.pi * r2)

u, w = induced(C, V)                       # collocation points C, vortices V
if ground_z is not None:                   # a mirror image of opposite sign makes w = 0 on the ground
    img = np.column_stack([V[:, 0], 2 * ground_z - V[:, 1]])
    ui, wi = induced(C, img, sign=-1.0)
    u, w = u + ui, w + wi
A = u * Nn[:, [0]] + w * Nn[:, [1]]        # normal velocity per unit vortex strength
gam = np.linalg.solve(A, -(U * Nn[:, 0]))  # flow tangency at every collocation point

The NumPy idiom points[:, None, 0] - sources[None, :, 0] builds an $N \times N$ matrix of every pairwise distance in one line (broadcasting), so the solver has no Python loops. Run it and compare it with the theory:

Thin-airfoil zero-lift angle, NACA 4412 mean line: -4.154 deg
alpha  Cl_flat(panel)  Cl_flat(theory)  Cl_4412(panel)  Cl_4412(theory)
 -4.0        -0.4383          -0.4386          0.0044           0.0169
  0.0         0.0000           0.0000          0.4441           0.4556
  4.0         0.4383           0.4386          0.8815           0.8942
  8.0         0.8745           0.8773          1.3147           1.3329
 12.0         1.3063           1.3159          1.7415           1.7715
lift-curve slope (NACA 4412, panel): 6.2271 per rad (2 pi = 6.2832)

Lift coefficient against angle of attack: panel model and thin-airfoil theory for a flat plate and the NACA 4412 camber line

πŸ“Š Figure (described): Lift coefficient against angle of attack from βˆ’4Β° to 12Β°. For the flat plate, the 40-panel model's circles sit on the $2\pi\alpha$ line. For the NACA 4412 camber line, the squares sit parallel to the theory line but slightly below it, and both lines are lifted by about 0.45 relative to the flat plate. The takeaway: camber shifts the lift line without changing its slope, and a 40-panel model already gets within about 1.5 % of the theory.

Two details in that table are worth a moment, because they are exactly the kind of small disagreement that correlation work is made of.

  • The flat plate at 12Β°. The model gives 1.3063 and the linear theory 1.3159. The model is in fact computing $2\pi\sin\alpha$ ($2\pi \sin 12Β° = 1.3063$), because it applies the boundary condition on the real tilted plate. The theory linearises $\sin\alpha \approx \alpha$. Neither is "wrong"; they make different approximations.
  • The cambered line. Even with 4,096 panels, the model converges to 0.8921 at 4Β°, which is 0.24 % below the theory's 0.8942. That is the theory's linearisation of the camber, not a bug in the model.

πŸ§ͺ Illustrative model: parameters are assumptions chosen to be plausible for a current F1 car, not team data. Here that means the camber line (NACA 4412), the incidences and the flap geometry. The physics is inviscid: there is no boundary layer, so the model can never stall. Real wing sections do stall, at an angle that depends on their shape and on the Reynolds number (30.4).

The wing near the ground

Now the reason racing cars care. Turn the wing upside down so that it pushes down, and bring it towards the road. In potential flow, the ground is a wall the air cannot cross. The classic trick for enforcing that is a mirror image: for every vortex on the wing, place an equal and opposite vortex the same distance below the ground. By symmetry, the vertical velocity on the ground plane is then exactly zero, which is the wall condition.

Inverted wing, incidence 6 deg. Downforce coefficient in free air: single 1.102, two-element 2.490
h/c    single CL   ratio   two-element CL   ratio
0.100      3.985   3.615          11.642   4.675
0.200      2.315   2.100           6.466   2.596
0.500      1.474   1.337           3.832   1.539
1.000      1.251   1.135           3.088   1.240
3.000      1.141   1.035           2.668   1.071

Downforce relative to free air against ground clearance over chord, for a single-element and a two-element inverted wing

πŸ“Š Figure (described): Downforce relative to the same wing in free air, against ground clearance in chords (log scale). Both curves rise steeply as the wing approaches the ground: the single element doubles its downforce at a clearance of 0.2 chords, and the two-element wing (main plane plus flap) rises faster. The takeaway: in an inviscid model, ground proximity is a downforce multiplier. Real wings stop gaining and then lose downforce very close to the ground, because their boundary layers separate, and this model cannot show that.

πŸ” Why this works: The air under an inverted wing near the ground is squeezed between the wing's suction surface and the road. To get through the smaller gap it must speed up, and by Bernoulli faster air has lower pressure, so the suction under the wing grows. In the vortex picture, the image vortex below the ground induces extra velocity on the wing's lower surface, which raises the circulation needed to satisfy the Kutta condition. This is the same physics that makes the 2022–2025 ground-effect floors work, and it is why those cars were so sensitive to ride height: the gain is steepest where the gap is smallest.

That steepness has a strategic consequence that runs right through this chapter. A device whose output depends steeply on ride height is also one whose output depends steeply on the setup, the fuel load, the kerbs and the tyre wear. The wind tunnel holds the model at fixed ride heights and measures a map across them; the car on track never holds still. Every step that turns a measured map into lap time adds a chance for the prediction and the track to disagree.

πŸ”„ Check your understanding 1. Thin-airfoil theory says camber does not change the lift slope. What does it change? 2. Why does the panel model put the vortex at the quarter-point and the control point at the three-quarter point of each panel? 3. The inviscid model says downforce keeps rising as the wing approaches the ground. Name the physical effect it leaves out that stops this happening on a real car.

Answer

  1. It shifts the zero-lift angle: a cambered wing makes lift at zero incidence (here $C_l = 0.444$ at 0Β° for the NACA 4412 line), so the whole lift line moves up.
  2. That placement satisfies the Kutta condition at the trailing edge automatically: it reproduces the exact flat-plate result for any number of panels, so the flow leaves the trailing edge smoothly.
  3. Viscosity: the boundary layer on the wing's suction side, and on the ground, thickens and separates under the strong adverse pressure gradient in a tight gap, so the suction collapses.

30.3 CFD: meshes, turbulence models and the cost of the next decimal place

Our panel method is a CFD code in miniature. It splits a continuous problem into pieces, solves a linear system, and gets closer to the truth as the pieces get smaller. A team's CFD does the same thing in three dimensions, with viscosity, around a whole car, often with rotating wheels and moving ground. What changes is the size of the problem and the physics left out.

Discretisation: what a mesh buys and what it costs

Run the panel method at finer and finer resolution, and time it:

Convergence to the 4,096-panel answer (Cl = 0.8921)
panels  rel_error   solve_time_s
     8   6.15e-02      0.00015
    32   1.48e-02      0.00019
   128   3.58e-03      0.00065
   512   8.06e-04      0.03097
  2048   1.16e-04      0.57747
error falls as N^-1.05; cost grows as N^2.33 (N >= 256)

Two panels: relative error against number of panels, and solve time against number of panels, both log-log

πŸ“Š Figure (described): Left: the relative error in lift falls in a straight line on log-log axes, roughly halving each time the number of panels doubles (slope about βˆ’1). Right: the solve time is flat until about 128 panels, then grows steeply, about as the 2.3 power of the panel count on this laptop. The takeaway: each extra decimal place of accuracy costs many times more compute than the last one.

That trade-off is the economics of CFD in one chart. Our error falls as $N^{-1.05}$ while the cost rises as $N^{2.33}$, so halving the error costs about $2^{2.33/1.05} \approx 4.7$ times the compute. Real 3D codes have different exponents, but the shape of the bargain is the same. It is why the regulations ration CFD by compute rather than by number of runs.

RANS, DES and LES in one paragraph each

The equations of viscous flow, the Navier–Stokes equations, are known exactly. What makes them expensive is turbulence: eddies on every scale, from the size of the car down to fractions of a millimetre, all interacting. The three families of turbulence treatment differ in how much of that range they compute and how much they model.

  • RANS (Reynolds-averaged Navier–Stokes) solves for the time-averaged flow and replaces every eddy with a turbulence model, an equation for how much extra mixing the eddies cause. It is cheap enough to run thousands of geometries, and it is the screening workhorse. Its weakness is exactly where racing cars live: separated flow, strong vortices and wakes, where the averaged-eddy assumption is weakest.
  • LES (large-eddy simulation) computes the large, energetic eddies directly in time and models only the small ones. It captures unsteady wakes and vortex wandering far better than RANS, but it needs much finer meshes and small time steps, especially near walls.
  • DES (detached-eddy simulation) and its relatives are hybrids: RANS in the thin boundary layers near the surface, where LES would be ruinously expensive, and LES in the separated regions and wakes, where RANS is least trustworthy.

How fast does the grid grow with the Reynolds number? The turbulence literature has standard estimates. Dean Chapman's 1979 analysis, revisited by Haecheon Choi and Parviz Moin in 2012, gives grid-point counts for a turbulent boundary layer that scale as about $Re^{1}$ for wall-modelled LES, $Re^{13/7}$ for wall-resolved LES and $Re^{37/14}$ for direct numerical simulation (DNS, which models nothing). Apply them to the jump from tunnel-model Reynolds number to full-size Reynolds number at 250 km/h, a factor of 2.31 (see 30.4):

Grid points needed to go from model Re to full-size Re at 250 km/h (Re x 2.31):
  wall-modelled LES  N ~ Re^1.000: x 2.31
  wall-resolved LES  N ~ Re^1.857: x 4.75
  DNS                N ~ Re^2.643: x 9.19

In plain English: simulating the real car at real speed, rather than the tunnel model at tunnel speed, multiplies the mesh by roughly 2 to 9, depending on how much of the turbulence you insist on computing. And that is before the time steps shrink to match.

The CFD ration

The ATR ration CFD in two currencies (cost_cap.csv, from the 2025 Sporting Regulations, Appendix 7, and unchanged in the 2026 Section F):

  • the number of new 3D geometries solved: 2,000 per period at C = 100 %;
  • the compute used: 6 MAUh per period. A MAUh is a million Allocation Unit hours, the regulations' hardware-normalised accounting unit.

Our reference table gives the unit only as "1 MAUh = 1,000,000 AUh", so we do not convert it to core-hours. What we can say is that at any coefficient the ratio is fixed: 3,000 AUh per new geometry on average. Spend more per geometry, for example on LES of a wake, and you can afford fewer geometries.

For scale, there is one public figure from a sourced development programme. Formula1.com's account of how the 2022 car rules were developed reports more than 10,000 CFD simulations and 16.5 million core-hours (engineering_reference.csv). That is at most about 1,650 core-hours per simulation. It was F1's own rules project, not a team's car programme.

⚠️ Common pitfall: "More CFD means more accuracy." It means more answers. A RANS model with the wrong turbulence closure for a separated floor edge will give you 2,000 confidently wrong geometries per period. CFD's value comes from comparing it with the tunnel and the track (30.8). Raw compute is the cheap part.

πŸ”„ Check your understanding 1. In one sentence each: what does RANS model, and what does LES compute? 2. The regulations allow 2,000 new geometries and 6 MAUh per period at C = 100 %. If a team spends 6,000 AUh on each geometry, how many geometries can it afford?

Answer

  1. RANS solves the time-averaged flow and models all the turbulent eddies; LES computes the large eddies directly in time and models only the smallest ones.
  2. 6,000,000 / 6,000 = 1,000 geometries: half the geometry allowance, because the compute runs out first.

30.4 The wind tunnel: real air, wrong size

The wind tunnel has the opposite problem to CFD. Its air is perfectly real, with exactly the right turbulence, because it is turbulence. But the regulations fix its scale and speed. From cost_cap.csv, quoting the 2025 Sporting Regulations, Appendix 7, and the 2026 Section F, Art. F4.3, teams may not run a model larger than 60 % of full size, or a tunnel air speed above 50 m/s (180 km/h).

A modern F1 tunnel also has a rolling road: a steel belt under the model, running at the air speed. Without it, the air near the floor would see a stationary ground. A boundary layer would grow on that ground and choke the very gap that ground-effect floors depend on. On track, the road and the air move at the same speed relative to the car, so there is no such boundary layer. The wheels of the model turn too, because a spinning tyre's wake is not a static tyre's wake.

Reynolds number: the dimensionless that won't match

Fluid flows are similar when their dimensionless numbers match. The one that matters most for a tunnel model is the Reynolds number:

$$Re = \frac{\rho\, V\, L}{\mu}$$

Here $\rho$ is density, $V$ speed, $L$ a characteristic length and $\mu$ the dynamic viscosity of air. In plain English: $Re$ is the ratio of the air's inertia to its stickiness. It decides how thick the boundary layers are, where they turn turbulent and when they separate.

Worked number. Use the maximum 2026 wheelbase of 3.4 m as the length (regulations_2026.md), air at 25 Β°C ($\mu = 1.84\times10^{-5}$ PaΒ·s by Sutherland's law) and the book's standard warm-day density of 1.18 kg/mΒ³.

  • The full-size car at 250 km/h: $Re = 1.18 \times 69.4 \times 3.4 / 1.84\times10^{-5} = 1.52\times10^7$.
  • The largest legal model, 60 % of 3.4 m = 2.04 m, at 50 m/s: $Re = 6.55\times10^6$.

To match Reynolds number at 60 % scale, the tunnel would need to run at $69.4/0.6 = 116$ m/s, more than twice the legal limit.

Largest legal model: 60% scale, L = 2.04 m, 50 m/s (180 km/h) -> Re = 6.551e+06
Full-size car matches that Re at V = 30.0 m/s = 108 km/h
  full size at 150 km/h: Re = 9.099e+06; model/full Re ratio = 0.720; Mach 0.120
  full size at 250 km/h: Re = 1.517e+07; model/full Re ratio = 0.432; Mach 0.201
  full size at 350 km/h: Re = 2.123e+07; model/full Re ratio = 0.309; Mach 0.281
Model Mach at 50 m/s: 0.144

That second line is the punchline. The tunnel, run flat out at its legal limit, reproduces the Reynolds number of the full-size car at 108 km/h: a slow-corner speed. Every faster corner and every straight is being represented at the wrong Reynolds number, and the faster the corner, the bigger the mismatch.

Two panels: Reynolds number against speed for the full-size car and the 60 % model; and the model's skin-friction error against the full-size speed represented

πŸ“Š Figure (described): Left: the full-size car's Reynolds number rises linearly with speed. The model line stops at the 50 m/s limit, at the Reynolds number of the full-size car at 108 km/h. Right: the model's flat-plate skin-friction coefficient relative to full size, which reads high for every speed above 108 km/h: about +18 % at 250 km/h for a turbulent boundary layer, and much more for a laminar one. The takeaway: tunnel numbers need Reynolds corrections, and the corrections are largest at high speed.

What does a Reynolds mismatch actually do? We can make it concrete with textbook flat-plate correlations: Prandtl's turbulent law, $C_f = 0.074\,Re^{-1/5}$, and Blasius's laminar result, $C_f = 1.328\,Re^{-1/2}$. They are not a car, which is why they carry the πŸ§ͺ label. But they show the direction and the size of the effect.

At 250 km/h full size (Re 1.52e+07) vs the model at 50 m/s (Re 6.55e+06):
  turbulent flat-plate Cf: full 0.00271, model 0.00321 -> model reads +18.3%
  laminar flat-plate Cf:   full 0.000341, model 0.000519 -> model reads +52.1%
  Prandtl-Glauert factor: full size at 350 km/h 1.0419, model at 50 m/s 1.0106 (pressure coefficients differ by 3.1%)

Three lessons sit in those lines.

  1. Friction-type forces read high. A turbulent boundary layer on the model is relatively thicker and draggier than on the real car. A team must correct the tunnel's drag figure for that, and the correction is a model of its own.
  2. Transition and separation move. Where a boundary layer turns from laminar to turbulent, and where it separates, depends on Reynolds number. A floor edge or a diffuser that holds attached flow at full size may separate on the model, or the reverse. That is the dangerous kind of mismatch, because it is qualitative: the model and the car can behave differently, not just by different amounts.
  3. Compressibility is small but not zero. At 50 m/s the model runs at Mach 0.14. The full-size car at 350 km/h is at Mach 0.28. The Prandtl–Glauert factor, a first-order compressibility correction to pressure coefficients, differs by about 3 % between them. That is small next to the Reynolds problem, but in an industry that chases a tenth of a percent, it is not nothing.

🧩 Productive struggle: Before reading on, design a better tunnel within the rules. You may not exceed 60 % scale or 50 m/s. Reynolds number is $\rho V L/\mu$. Which of the four quantities can you still change, and how? Write down your answer, then look at the hint.

Hint and discussion

With $V$ and $L$ capped, only the fluid properties remain: raise $\rho$ (pressurise the tunnel) or lower $\mu$ (cool the air, since the viscosity of air falls as it gets colder). At the regulated speed, either raises Reynolds number. Pressurised and cryogenic tunnels exist in aerospace research. Whether any F1 tunnel uses such techniques, and whether the regulations allow them, is not something our reference tables cover, so we do not claim either way. The engineering lesson is general: when you cannot match a dimensionless group by the obvious route, look at the other terms.

The budget in minutes

The tunnel ration is counted three ways per period at C = 100 %: 320 runs, 80 hours of wind-on time (air speed above 15 m/s) and 400 hours of occupancy (cost_cap.csv). Divide them out:

Wind-on minutes per run at any C: 15.0; occupancy / wind-on = 5.0
Per year (6 ATPs), 2022-2026 scale:
  P1  C  70.0 %:  1344 runs,  336.0 h wind-on,   8400 geometries,  25.2 MAUh
  P5  C  90.0 %:  1728 runs,  432.0 h wind-on,  10800 geometries,  32.4 MAUh
  P10 C 115.0 %:  2208 runs,  552.0 h wind-on,  13800 geometries,  41.4 MAUh
P10 / P1 = 1.643; extra runs per year 864; extra wind-on hours 216

A "run" averages 15 minutes of wind-on time whatever the coefficient, because the run count and the hours scale together. Occupancy is five times wind-on, so for every hour of air there are four hours of changing parts, calibrating, and the model sitting still. The tenth-placed team gets 864 extra runs a year over the champion, which is a lot of floor-edge variants. Whether those runs turn into lap time is the question of 30.6.

πŸ”„ Check your understanding 1. At what full-size speed does the largest legal tunnel model, run at its maximum speed, match Reynolds number? Why does that matter more for high-speed corners than for hairpins? 2. Why does a tunnel need a rolling road for a ground-effect car in particular? 3. Halving the panel method's error costs about how many times the compute, on our exponents?

Answer

  1. About 108 km/h (0.6 Γ— 50 m/s = 30 m/s). Slow corners near that speed are represented at roughly the right Reynolds number; a 250 km/h corner is represented at only 43 % of its real Reynolds number, so its boundary-layer behaviour (transition, separation) is the most likely to differ.
  2. A stationary floor would grow its own boundary layer in exactly the narrow gap where the floor's suction is generated, distorting the flow that matters most. The real road moves with the air relative to the car.
  3. About 4.7 times: the error falls as $N^{-1.05}$ and the cost rises as $N^{2.33}$, so halving the error needs $2^{1/1.05}$ times the panels and $2^{2.33/1.05} \approx 4.7$ times the compute.

30.5 The sliding scale: rationing the tools by results

Section 30.4 gave the baseline. The sliding scale decides how much of it each team gets. Everything below comes from cost_cap.csv and regulations_notes.md, which quote the 2021 Sporting Regulations (Appendix 8), the 2025 Sporting Regulations (Appendix 7) and the 2026 Operational Regulations (Section F, Art. F4).

  • Six Aerodynamic Testing Periods (ATPs) a year. ATP 1 runs from 1 January to the end of week 9. ATPs 2, 3 and 5 last 8 weeks, ATP 4 lasts 10 weeks and includes the summer shutdown, and ATP 6 ends on 31 December.
  • Coefficient C scales every allowance: runs, wind-on hours, occupancy, new geometries and CFD compute. Results are rounded up to the nearest integer.
  • 2021 (transitional): 90 % for the champion, rising in 2.5-point steps to 112.5 % for tenth.
  • 2022–2025, and unchanged for 2026: 70 % for the champion, rising in 5-point steps to 115 % for tenth place or a new team.
  • The basis switches mid-season. For ATPs 1–3, C is set by the previous season's final constructors' position. For ATPs 4–6, it is set by the standings at the end of ATP 3. The 2021 text used calendar halves instead, switching on 30 June.

πŸ“ Definition: Coefficient C is a team's aerodynamic testing allowance as a percentage of the baseline (320 tunnel runs, 80 h wind-on, 400 h occupancy, 2,000 new CFD geometries and 6 MAUh per ATP). Allowance = baseline Γ— C, rounded up.

Our module turns that text into a table. upgrades.atr_allocation(position, period) gives one team's allowance per ATP. upgrades.team_atr(year) builds every team's allowance in every ATP from the Jolpica constructors' standings.

# code/03_atr_allocation.py (excerpt)
from boxbox import upgrades
upgrades.atr_allocation(1, 2025)     # champion
upgrades.atr_allocation(10, 2026)    # tenth or a new team
atp = pd.concat([upgrades.team_atr(y) for y in range(2021, 2027)])
  2025: P1 70% (224), P2 75% (240), P3 80% (256), P4 85% (272), P5 90% (288), P6 95% (304), P7 100% (320), P8 105% (336), P9 110% (352), P10 115% (368)
Bases used for the in-season switch (end of ATP 3 or 30 Jun 2021):
  2023: ATP 3 ends 2023-06-25; H2 basis = 2023 after R8
  2025: ATP 3 ends 2025-06-22; H2 basis = 2025 after R10
  2026: ATP 3 ends 2026-06-21; H2 basis = 2026 after R7

The module reproduces the one published worked example we have. Motorsport.com's mid-2025 table, cited in regulations_notes.md, gives the P1 team 224 runs and 56 wind-on hours per period, and P10 368 runs and 92 hours. Those are exactly the module's values.

Bar chart of Coefficient C by constructors' position for the 2021 scale and the 2022–2026 scale, labelled with runs per period

πŸ“Š Figure (described): Coefficient C by championship position, with paired bars for 2021 and for 2022–2026. The 2021 scale is shallow (90 % to 112.5 %). From 2022 it is steep, from 70 % to 115 %, with the runs per period printed above each bar (224 for P1 up to 368 for P10). The takeaway: from 2022 the champion gets 64 % less tunnel time than the last-placed team gets, measured against the champion's share.

Two modelling choices are ours, and we flag them in the module's output.

  • "Week" means ISO week. The regulation text in the reference table does not define the week convention, so ATP dates can be a day or two off. We switch allowances at ATP boundaries, not on exact dates.
  • 2026 has 11 teams, but the table has 10 rows. Cadillac enters as a new team at 115 %. When the standings at the end of ATP 3 rank 11 teams, the module gives positions 10 and 11 the P10 value. That is an assumption: our reference tables do not show an eleventh row.

Every team, every period, 2021–2026

Heatmap of each team's Coefficient C in each of six testing periods per season, 2021 to 2026

πŸ“Š Figure (described): Rows are teams (renamed entries are linked, such as Alfa Romeo, Sauber and Audi), columns are the 36 testing periods from 2021 to 2026, and colour is Coefficient C from about 60 % (dark) to 115 % (yellow). The top rows, Red Bull, Mercedes, Ferrari and McLaren, are dark for most of the period; Williams, Haas and the Sauber/Audi entry are bright. The darkest cells are Red Bull's from late 2022 to late 2023. The takeaway: the scale moves real resources, and it moves them mid-season too, when a team's position changes at the end of ATP 3.

That dark patch is the only penalty in the reference tables to touch aerodynamic testing. The FIA's Accepted Breach Agreement with Red Bull Racing for the 2021 cost-cap period, dated 26 October 2022, included a "Minor Sporting Penalty": a 10 % reduction of Coefficient C for 12 months. The FIA's own example was $70\% \times (1 - 0.10) = 63\%$. We apply it to every ATP that starts inside that window:

 year  atp  atp_start            basis  position  penalty_pct  coefficient_pct  runs
 2022    6 2022-10-31    2022 after R9         1         10.0             63.0   202
 2023    1 2023-01-01 2022 final (R22)         1         10.0             63.0   202
 2023    5 2023-09-04    2023 after R8         1         10.0             63.0   202
 2023    6 2023-10-30    2023 after R8         1          0.0             70.0   224

Case Study 2 follows that penalty through the timing data. Here are the team-season totals that the rest of the chapter uses:

2022-2025 cycle: total wind-tunnel runs by entry (four seasons):
  Red Bull             5532 runs over 4 seasons
  Mercedes             6000 runs over 4 seasons
  McLaren              6336 runs over 4 seasons
  Aston Martin         7296 runs over 4 seasons
  Williams             8208 runs over 4 seasons
  most / least = 1.484

2025 allowance (the year the 2026 cars were developed alongside the 2025 ones):
  McLaren            H1 C  70.0 %  H2 C  70.0 %  runs  1344
  Mercedes           H1 C  85.0 %  H2 C  75.0 %  runs  1536
  Aston Martin       H1 C  90.0 %  H2 C 105.0 %  runs  1872
  Alpine             H1 C  95.0 %  H2 C 115.0 %  runs  2016
  Kick Sauber        H1 C 115.0 %  H2 C 110.0 %  runs  2160

The 2025 list is the one to keep in mind when you read the 2026 results. Mercedes, who lead the 2026 constructors' standings after 21 of 23 rounds and whose driver Antonelli has clinched the drivers' title, developed their 2026 car in a year when they had 1,536 runs, the third-lowest allowance on the grid. Kick Sauber, now Audi, had 2,160. In the 2026 season medians from Chapter 24, Mercedes is the fastest team (0.000 %) and Audi sits 1.538 % behind. One season proves nothing about a dose-response, and the 2026 rules also changed the power unit, so this is not evidence against the scale either. It is a reminder that tunnel time is one input among many: people, ideas, power unit, money and correlation.

πŸ“‹ Try it: Analyze this session. Take the 2024 constructors' standings after Round 10 (the end of ATP 3 in 2024, per the module). Use upgrades.team_atr(2024) to list which teams' Coefficient C changed between ATP 3 and ATP 4, and by how much. Which team gained the most tunnel time mid-season, and which lost the most? Before you run it, predict the answer from the 2023 final order and what you remember of the first ten races of 2024.

What you should find

Compare h1_c and h2_c in season_allocation([2024]). The biggest gains are a tie: Williams rises from 100 % to 110 % and Mercedes from 75 % to 85 %. The biggest losses are also a tie: Haas falls from 115 % to 105 % and RB from 105 % to 95 %. Sauber rises from 110 % to 115 %. The full table is printed by code/03_atr_allocation.py. Note how a team's mid-season C rewards a bad first half: an incentive question worth discussing (exercise D3).

πŸ”„ Check your understanding 1. Which constructors' position sets a team's Coefficient C in ATPs 1–3, and which in ATPs 4–6? 2. In 2023, how many wind-tunnel runs per period did Red Bull have, and why not 224?

Answer

  1. ATPs 1–3 use the previous season's final position; ATPs 4–6 use the standings at the end of ATP 3 (late June).
  2. 202 runs for ATPs 1–5 of 2023: the champion's 70 % cut by 10 % to 63 % under the 2021 cost-cap breach penalty, and 320 Γ— 0.63 = 201.6, rounded up to 202. ATP 6 went back to 224.

30.6 Does more tunnel time show up as faster improvement?

Now the question from the hook. If the sliding scale works, teams that finished lower last year, and so received more testing, should improve faster than teams that finished higher. Should improve faster than what, though? That is where the difficulty starts.

Measuring improvement without fooling ourselves

We reuse Chapter 24's machinery, with one deliberate change. Chapter 24's headline gap was the team's best time of Q1–Q3 against the fastest team. Its own analysis found that this "best of" gap inflates the deficit of Q1-eliminated teams by 0.8–1.3 percentage points, because they never drive on the faster Q3 track. The teams eliminated in Q1 are the backmarkers, and the backmarkers are exactly the high-C teams. A bias correlated with the dose would contaminate the test. So here we use the like-for-like Q1 gap: every team's best Q1 time against the fastest Q1 time, the same convention as the book's competitive-spread series.

⚠️ Common pitfall: Measuring development with a metric whose bias depends on where a team qualifies. A team that climbs from Q1 exits to Q2 appearances gains track evolution for free under "best of Q1–Q3", and the improvement looks like aerodynamics. When the treatment (tunnel time) depends on the team's position, use a metric that treats every position the same.

Two outcomes:

  • Outcome A, in-season: each team-season's development rate, the OLS slope of its Q1 gap on race number (development.trend), in percentage points of lap time per race. Negative means closing on the front.
  • Outcome B, winter: the change in a team's season-median Q1 gap from one year to the next, linking renamed teams through Chapter 24's lineage table.

Both are de-meaned within each season. Every gap is measured against the same fastest team, so if that team has a brilliant year, everyone's gap grows together. Subtracting the season mean removes that common movement.

The design: a dose-response line, before and after

The dose is last year's relative constructors' position, $r = (\text{position} - 1)/(n_\text{teams} - 1)$: 0 for the champion and 1 for last. In 2022–2026 the scale converts $r$ from 0 to 1 into C from 70 % to 115 %. Before 2021 the reference tables have no position-based scale, so those seasons tell us how improvement related to last year's position without it. That is the counterfactual we need, because slow teams might naturally improve faster (they have more low-hanging fruit) or slower (they have fewer resources). The estimate of the scale's effect is the change in the slope of the line:

$$\hat\delta_\text{ATR} = \hat\beta_{2022\text{–}26} - \hat\beta_{2007\text{–}20}, \qquad y_{ts} = \alpha_s + \beta\, r_{ts} + \varepsilon_{ts}$$

Here $y_{ts}$ is team $t$'s de-meaned rate in season $s$. In plain English: we ask whether the "slow teams catch up" tilt got steeper once the rules started giving slow teams more tunnel time. This is a difference-in-differences on a dose-response line.

A. In-season development rate (pp per race, de-meaned by season) vs previous-year relative position
  pre: slope -0.0009 per unit rel_pos  team-season CI [-0.0189, +0.0178]  season-cluster CI [-0.0194, +0.0170]  n = 145 (14 seasons)
  atr: slope -0.0104 per unit rel_pos  team-season CI [-0.0241, +0.0024]  season-cluster CI [-0.0223, +0.0026]  n = 50 (5 seasons)
  ATR - pre: -0.0095  team-season CI [-0.0326, +0.0115]  season-cluster CI [-0.0316, +0.0128]  share of cluster draws < 0: 0.796
  => a last-placed team vs the champion: ATR-era difference -0.209 pp over a median 20-race season; extra vs pre-2021 pattern -0.190 pp

Scatter of de-meaned in-season development rate against previous-year relative position, with fitted lines for 2007–2020 and 2022–2026

πŸ“Š Figure (described): Each point is a team-season: grey circles for 2007–2020 (n = 145) and orange squares for 2022–2026 (n = 50). The x-axis is last year's position from champion (0) to last (1); the y-axis is the development rate relative to that season's average team. The grey fitted line is flat; the orange line tilts gently downwards, so last year's backmarkers close slightly faster in the scale era. The scatter around both lines is several times larger than the tilt. The takeaway: the direction is the one the scale intends, and the size is inside the noise.

Read the output as a scientist would.

  • The point estimate points the right way. In the scale era, a team that finished last the previous season closed about 0.21 pp more of the lap over a 20-race season than the previous champion. Before the scale the same comparison was close to zero, so the extra is about βˆ’0.19 pp. For an 85-second lap that is roughly 0.16 s.
  • The interval includes zero. The 95 % interval on the difference runs from βˆ’0.032 to +0.013 pp per race, and the season-cluster bootstrap gives almost the same answer. About 80 % of the bootstrap draws fall on the "scale helps" side. That is suggestive, not a finding.
  • The cluster bootstrap matters. Team-seasons within a season share a reference team and a calendar, so they are not independent. Resampling whole seasons is more honest. With only five scale-era seasons it is also crude, which is one more reason not to over-read the result.

A finer-grained check inside the scale era, using the actual first-half coefficient as the dose, tells the same story:

ATR era only, dose = H1 Coefficient C: slope -0.0023 pp/race per +10 pp of C [-0.0051, +0.0006], n = 50; with circuit-type control -0.0019
  Spearman(H1 C, de-meaned rate) = -0.217 (p = 0.130)
ATR era, in-season rate by previous position band (raw slope, pp/race; median and mean):
  P1-P3 (70-80 %)        n = 15  median +0.0019  mean +0.0025  closing share 47%
  P4-P7 (85-100 %)       n = 20  median -0.0045  mean -0.0080  closing share 60%
  P8-P10 (105-115 %)     n = 15  median -0.0085  mean -0.0045  closing share 53%

Each extra 10 points of C is associated with closing 0.0023 pp per race faster. Adding Chapter 10's circuit-type control barely changes it (βˆ’0.0019). The band table shows why the line is so shallow: the top-three teams drift very slightly away from the front, and the middle and bottom bands close at about the same median rate.

The winter tells a different story

B. Winter change in season-median gap (pp, de-meaned by season) vs previous-year relative position, all winters
  pre: slope -0.3914 per unit rel_pos  team-season CI [-0.7702, -0.0382]  season-cluster CI [-0.7212, -0.0838]  n = 149 (14 seasons)
  atr: slope -0.1974 per unit rel_pos  team-season CI [-0.5669, +0.1779]  season-cluster CI [-0.5500, +0.1668]  n = 50 (5 seasons)
  ATR - pre: +0.1940  team-season CI [-0.3345, +0.7272]  season-cluster CI [-0.2682, +0.6724]  share of cluster draws < 0: 0.207
B'. Same, excluding regulation-reset winters (2009, 2014, 2017, 2022, 2026)
  pre: slope -0.3084 per unit rel_pos  ...  n = 118 (11 seasons)
  atr: slope -0.2920 per unit rel_pos  ...  n = 30 (3 seasons)
  ATR - pre: +0.0165  team-season CI [-0.4740, +0.5330]  season-cluster CI [-0.4794, +0.4947]

Scatter of de-meaned winter change in season-median gap against previous-year relative position, by era

πŸ“Š Figure (described): The same layout for winter changes. Both fitted lines slope downwards: last year's backmarkers gain more over the winter than last year's front-runners, in both eras. The scale-era line is, if anything, slightly shallower. The takeaway: winter catch-up is real and predates the scale, so it is regression to the mean and convergence, not evidence for the scale.

This is the confounder made visible. Before any sliding scale existed, a team that finished last gained about 0.39 pp of lap time on the field over the winter, relative to the champion (CI βˆ’0.72 to βˆ’0.08 with season clusters). That is regression to the mean: part of any bad season is bad luck and bad correlation that does not repeat, and the leaders' rivals copy their ideas. In the scale era the winter slope is βˆ’0.20, not steeper. Excluding the five regulation-reset winters, the two eras are almost identical (βˆ’0.31 and βˆ’0.29). If we had only looked at the scale era, we would have seen backmarkers catch up over the winter and credited the tunnel. The pre-2021 comparison is what stops us.

πŸ” Why this works (and where it doesn't): A difference-in-differences removes any relationship between last year's position and this year's improvement that was already there before the scale. It assumes that relationship would have stayed the same without the scale. That assumption is weakest exactly where F1 changed most: the cost cap arrived in 2021 too, constraining the richest teams' spending at the same time as their tunnel time; the 2022 and 2026 car rules reset everyone's development (Chapter 28); and the grid grew to 11 teams in 2026. Any effect we found would be "the scale plus the cap plus the rules", not the scale alone. Chapter 31 meets the same problem when it asks whether the cap compressed the field.

Power: what could we possibly have seen?

A non-significant result is only informative if the test could have detected a meaningful effect. So ask the power question before drawing conclusions:

SE of the ATR - pre difference (in-season, pp/race per unit rel_pos): team-season 0.0113, season-cluster 0.0114
Minimum detectable difference at 80 % power, alpha 0.05 (2.80 SE): team-season 0.0318 = 0.635 pp per season; season-cluster 0.0320 = 0.640 pp per season
  true extra closing 0.25 pp/season -> power 0.20 (team-season), 0.19 (cluster)
  true extra closing 0.50 pp/season -> power 0.60 (team-season), 0.59 (cluster)
  true extra closing 0.75 pp/season -> power 0.91 (team-season), 0.91 (cluster)

Power curve: probability of detecting a true extra in-season closing effect for a P10 versus a P1 team, by effect size

πŸ“Š Figure (described): The probability that the test detects a true scale effect, against the effect size (extra closing for a P10 team over a P1 team, in percentage points of lap time per season). Power is about 20 % for a 0.25 pp effect, 60 % for 0.5 pp and above 90 % for 0.75 pp. The two curves, independent team-seasons and season clusters, almost coincide. The takeaway: only an effect of roughly 0.6 pp a season or more, about half a second a lap, was likely to show up.

The minimum detectable difference is about 0.64 pp per season. Our point estimate is 0.19 pp. So the data are consistent with no effect, and also with a modest effect a third of the size we could detect. Here is what we can and cannot say:

  • We can say that the scale did not produce a large, obvious acceleration in the backmarkers' in-season development, of half a second a season or more.
  • We cannot say that it does nothing. An effect of a tenth or two of a second a season, which would be enormous by F1 standards, is invisible to this design.

⚠️ Common pitfall: "Not significant, so the scale doesn't work." Absence of evidence is evidence of absence only when the test had the power to see the thing. Report the interval and the minimum detectable effect together, as we did, and let the reader see both.

Change points by tunnel time

Chapter 24 found ten statistically supported change points in 41 team-seasons from 2023 to 2026, of which none survives a Benjamini–Hochberg correction for multiple testing. Do they cluster in the high-C teams?

Improving change point by H1 C >= 100 %:
 improving_cp  False  True
hi
False            21      3
True             12      5
Fisher exact p = 0.241

Five of the 17 team-seasons with at least 100 % tunnel time had an improving change point (29 %), against three of the 24 with less (12.5 %). The direction again matches the scale's intent. With these counts, Fisher's exact test gives p = 0.24. And remember Chapter 24's power result: its detector finds a 0.5 pp step only half the time, so many real steps are missing from both rows of the table.

πŸ”„ Check your understanding 1. Why does the chapter use the like-for-like Q1 gap rather than the best of Q1–Q3 for this test? 2. Backmarkers catch up over the winter in the scale era. Why is that not evidence that the scale works? 3. Our point estimate is 0.19 pp per season and the minimum detectable effect is 0.64 pp. Write one honest sentence a journalist could quote.

Answer

  1. The best-of gap inflates Q1-eliminated teams' deficits by 0.8–1.3 pp, and those teams are the ones with the most tunnel time. The bias would be correlated with the dose.
  2. They caught up just as much (more, in fact: βˆ’0.39 vs βˆ’0.20 pp per unit of position) before the scale existed, so the catch-up is regression to the mean and convergence, which a before/after comparison would wrongly credit to the scale.
  3. For example: "In qualifying data from 2007 to 2026, backmarkers developed slightly faster after the sliding scale arrived, by about two tenths of a percent of lap time a season, but that is well within the noise; an effect smaller than about six tenths of a percent a season could not have been detected."

30.7 Measuring an upgrade: the before/after estimator

The scale question is about the whole field. The everyday analytics question is about one team: did the new floor work? Without a list of upgrade dates, we cannot answer that for a specific part. But we can build the estimator a team analyst, or a journalist with a date from the team, would need, and we can learn its two great dangers.

upgrades.before_after(gaps, team_ref, year, split_round) takes Chapter 24's per-race gaps, with the circuit-type adjustment applied (gap_adj), and compares the mean gap before and after a split round. It returns four things:

  • the shift, after minus before, in percentage points;
  • a bootstrap 95 % CI, resampling races within each side;
  • a Welch t-test p-value, the textbook comparison of two means;
  • a placebo p-value: the share of the season's other split rounds that show a shift at least as large. The placebo test asks whether this round is special or just one more point on a noisy series. Because it uses the team's own season, it automatically respects trends and autocorrelation, which the t-test assumes away.

It also returns the minimum detectable shift at 80 % power for that season's noise and sample sizes:

$$\text{MDS}_{80} = (z_{0.975} + z_{0.80})\;\sigma\;\sqrt{\tfrac{1}{n_\text{before}} + \tfrac{1}{n_\text{after}}}$$

In plain English: the smallest real change that a comparison of two groups of races would catch four times in five. Worked number: with a residual SD of 0.45 pp and ten races each side, $\text{MDS}_{80} = 2.80 \times 0.45 \times \sqrt{0.2} = 0.56$ pp. That is about 0.48 s on an 85-second lap.

Danger one: choosing the split after looking

Chapter 24 found its change points by searching for the split that maximises the difference. What happens if we then run a before/after test at that split?

Before/after at the data-chosen change points (Chapter 24): naive Welch p vs the change-point permutation p
 year              team  round   shift  p_welch  p_perm_ch24  p_placebo
 2023           McLaren      7 -0.9621   0.0006        0.013     0.0833
 2025       Kick Sauber     13 -0.8035   0.0000        0.002     0.0667
 2026      Aston Martin     16 -1.2187   0.0014        0.004     0.0769
 ...
Median naive Welch p 2.05e-03 vs median permutation p 0.032

The naive Welch p-values are typically 15 times smaller than the permutation p-values that account for the search. The placebo p-values all sit at the smallest value the test allows: by construction, the data-chosen split is the most extreme split in its own season. A simulation of pure noise makes the point without any real team involved:

Noise only (n = 20 races, sd 0.445 pp, 4000 seasons): false-positive rate at p < 0.05 -> pre-specified split 0.054, best-of-13 splits 0.266

Histograms of Welch t-test p-values on simulated noise seasons, for a split fixed in advance and for the best of thirteen splits

πŸ“Š Figure (described): Two histograms of p-values from 4,000 simulated seasons of pure noise. With the split fixed in advance, the p-values are spread evenly and 5.4 % fall below 0.05, as they should. With the best of 13 possible splits chosen after looking, the histogram piles up near zero and 26.6 % fall below 0.05. The takeaway: searching for the split, then testing it as if it had been chosen in advance, turns a 5 % false-alarm rate into one in four.

⚠️ Common pitfall: "The team improved by 0.8 % after Round 13, p = 0.004." If Round 13 was chosen because that is where the improvement appeared, the p-value is meaningless. Either use a split fixed in advance (an announced date, or a calendar point), or use a test that accounts for the search, like Chapter 24's permutation change-point test.

Danger two: low power

Now use the estimator properly, at a split chosen before looking at a single lap time: the first race after the summer shutdown, found from the calendar by upgrades.summer_split(year). We make no assumption about when teams introduce parts. The split is a calendar fact fixed before we looked at any lap time, and that is all the test requires.

Summer split rounds: {2023: 13, 2024: 15, 2025: 15, 2026: 12}
Team-seasons tested: 41
Welch p < 0.05: 7 of 41; placebo p < 0.05: 0 of 41; expected by chance 2.1
Benjamini-Hochberg (FDR 5 %) on placebo p: 0 survive
Median residual SD 0.445 pp; median n before/after 11/9; median minimum detectable shift (80 % power) 0.554 pp
Median |shift| 0.202 pp; share of shifts negative (closing after the break) 73%
Largest summer shifts:
  2026 Aston Martin       -0.779 pp [-1.299, -0.246]  placebo p 0.400
  2023 AlphaTauri         -0.681 pp [-1.125, -0.306]  placebo p 0.071
  2025 Kick Sauber        -0.621 pp [-0.966, -0.262]  placebo p 0.529
  2026 Alpine             -0.609 pp [-1.082, -0.154]  placebo p 0.267

Forest plot of 2026 before-versus-after summer-break shifts by team with 95 % CIs and the minimum detectable shift band

πŸ“Š Figure (described): For each 2026 team, the change in circuit-adjusted gap to the fastest team from before to after the summer break (split at Round 12), with a 95 % bootstrap interval and its placebo p-value. Aston Martin and Alpine moved closest to the front, by about 0.6–0.8 pp, with intervals that exclude zero. A grey band marks Β±0.63 pp, the median minimum detectable shift for 2026. Most teams' shifts sit inside the band. The takeaway: a typical half-season comparison can only reliably see changes of half a second or more.

Several things happen at once in that output, and each one is a lesson.

  1. The Welch test and the placebo test disagree. Seven of 41 shifts have a Welch p below 0.05, against 2.1 expected by chance. None has a placebo p below 0.05. Part of that is mechanical. With 20 races and at least three on each side, a season has only about 14 alternative splits, so the smallest possible placebo p is about 1/15 = 0.067. A single season cannot produce placebo evidence at the 5 % level. That is an honest limit of the design, not a flaw to hide. The other part is that seasons have trends: a team improving steadily all year shows a "significant" Welch shift at almost any split, and the placebo test correctly refuses to credit the summer break in particular.
  2. Most shifts are smaller than the test can see. The median absolute shift is 0.20 pp, and the median minimum detectable shift is 0.55 pp. Most real summer changes, if they exist, are below the noise.
  3. 73 % of shifts are negative. Thirty of 41 team-seasons were closer to the fastest team after the break. Because every gap is measured against the fastest team, and that team is often the same one all year, this may mean partly that the leader's margin shrank. It is a field-level pattern, not 30 separate upgrades.

πŸ“‹ Try it: Predict the race. Before 2026 Round 16 (Sepang), Aston Martin's circuit-adjusted gap had averaged about 4.26 % from Round 1 to Round 15. Using only data available before the weekend, what would you have predicted for Sepang qualifying? Use development.project_gap (Chapter 24) with a five-race window, then compare it with what happened. How would your prediction have changed if you had known (hypothetically) that the team had announced new parts?

Reveal

Aston Martin's raw gap at Sepang was 2.20 %, and the change-point detector puts a new level of about 3.04 % from that round (shift βˆ’1.22 pp, p = 0.004). A five-race projection from Rounds 11–15 (gaps between 3.37 % and 4.11 %) would have missed it by well over a percentage point. An announced upgrade should widen your prediction interval, not move its centre by a guessed amount: you know something changed, not how much. Case Study 1 looks at where on the lap the gain appeared.

πŸ”„ Check your understanding 1. What does the placebo p-value in before_after compare the chosen split against? 2. Why can a single 20-race season never give a placebo p-value below 0.05? 3. A team improves steadily by 0.03 pp every race all season. What will a Welch test at the summer break say, and what will the placebo test say?

Answer

  1. Against the same shift statistic at every other admissible split in that team's season: is the chosen round more extreme than the season's other rounds?
  2. With at least three races each side there are only about 14 other splits, so the smallest possible placebo p is about 1/15 = 0.067.
  3. The Welch test will probably call the shift significant, because the second half's mean is lower than the first half's. The placebo test will not, because nearly every split in a steady trend shows a similar shift, so the summer break is not special. The trend is real; the "summer upgrade" is not supported.

30.8 Correlation: when the tools and the track disagree

We now have tools that predict (30.2–30.4) and data that measure (30.5–30.7). Correlation is the work in between: comparing a prediction with a measurement, finding the pattern in the disagreement and fixing the tool. Teams do it with tunnel data, CFD, track sensors and pressure taps we will never see. We can do the same exercise in miniature with the one virtual tool we own end to end: the Chapter 11 lap simulator, boxbox.lapsim, against real qualifying telemetry.

The setup mirrors a real correlation loop.

  1. Day one. Take the simulator's 2026 preset car (πŸ§ͺ: every parameter is an assumption or an effective value fitted in Chapters 1, 3, 6, 7 and 8). Build each circuit's track from the qualifying session's averaged racing line (lapsim.track_from_session, which uses the location feed). Compare the simulated lap with the session's reference lap.
  2. Calibrate. Fit two correction factors, a grip scale on the lateral envelope and a drag-area scale, on three training circuits, one fast (Silverstone) and two medium-speed (Hungaroring, Miami).
  3. Validate. Apply those factors, unchanged, to 14 test circuits the calibration never saw.
# code/06_lapsim_correlation.py (excerpt)
def run(c, kg=1.0, kc=1.0, kl=1.0):
    rnd, tr, al = cases[c]                       # round, Track, aligned reference lap
    p0 = lapsim.preset(2026, rnd)                # round-aware energy budget (Chapter 6)
    p = p0.with_(mu=p0.mu * kg, cd_a=p0.cd_a * kc, cl_a=p0.cl_a * kl)
    r = lapsim.simulate_lap(tr, p)
    return r, lapsim.compare_to_lap(r, al)       # lap-time error and RMS speed error vs the real lap

res = minimize(loss, [1.2, 1.0], args=(TRAIN,), method="Powell",
               bounds=[(0.7, 2.0), (0.6, 1.6)])  # loss = RMS speed error over the training laps
1. Day-one correlation ... Median lap-time error +11.20 % (range +6.26 to +17.86 %); median RMS speed error 26.2 km/h
2. Calibrated on ['silverstone', 'hungaroring', 'miami']: grip scale 1.120, drag-area scale 0.906 (training RMS speed error 17.2 km/h, 84 simulator calls)
Test circuits (n = 14): median |lap error| preset 11.66 % -> calibrated 5.52 %; median RMS 28.2 -> 21.2 km/h
  high-speed / low-drag          n =  7  median calibrated lap error +4.88 %
  low-speed / traction-limited   n =  2  median calibrated lap error +6.98 %
  medium-speed / mixed           n =  5  median calibrated lap error +8.20 %
Spread of calibrated test errors (SD): 3.08 pp of lap time

Speed against distance at 2026 Suzuka qualifying: the real lap, the preset model and the calibrated model

πŸ“Š Figure (described): Speed along a lap of 2026 Suzuka qualifying: Piastri's real reference lap (black, 89.132 s), the preset model (orange dashed, 103.400 s) and the calibrated model (blue, 97.465 s). The calibrated car carries more speed through the medium and fast corners than the preset and gets close to the real minimum speeds in several slow corners. It still reaches lower top speeds on the long straights, and it brakes and accelerates differently from the real car through the Esses. The takeaway: calibration fixed the level of grip, not the shape of the disagreement.

Lap-time error by circuit before and after calibration, with training circuits marked

πŸ“Š Figure (described): Simulated minus real lap time, in % of the real lap, for 17 circuits: the preset model (circles) and the calibrated model (squares), joined by grey lines. Every circuit moves left, from errors of 6–18 % to 1–11 %, but none crosses zero, and the medium-speed circuits stay furthest off. The takeaway: two global factors halve the error, while the circuit-to-circuit pattern tells you which physics is still missing.

Read the result as a correlation engineer would.

  • The day-one model is badly off: 11 % slow, everywhere. That is not embarrassing; it is information. An error that is the same sign at every circuit points to a global parameter. Here that is grip, which the calibration raised by 12 %.
  • The day-one error depends on choices made before the car is touched. Chapter 11 ran the same preset car and found it a median 6.73 s (8.76 %) slow in 2026, and 4.10 s slow at Silverstone, where this run gives 6.08 s. The two runs build the track differently. Chapter 11 smooths the racing line over a 60 m window and uses each session's measured air density; this section takes lapsim.track_from_session's default 40 m window and the preset's standard density. A shorter window keeps more wiggle in the curvature, so corners look tighter and the simulated car slows for them. That is a correlation lesson in itself: write down the track-building settings with every simulator result.
  • Calibration halved the error on circuits it never saw, from 11.7 % to 5.5 %. A correction that transfers is a correction that captures something real. Chapter 11's own calibration agrees on the direction: fitted on all 20 dry 2026 sessions, it raised grip by a factor of 1.148 and cut the drag area to 1.154 mΒ² (about 0.91 of the preset's 1.27 mΒ²), close to our 1.120 and 0.906. Chapter 11 also fitted the traction share, the braking envelope and the energy deployed, and with five parameters on its 60 m track lines it reached a median out-of-sample error of 1.38 s (1.77 % of the lap). Two factors leave more of the error in place.
  • The remaining error has structure. Every test circuit is still simulated too slow, and the medium-speed group is worst (+8.2 %). The scatter (an SD of 3.1 pp across circuits) is far larger than any upgrade we hope to measure. A team in this position would not trust the simulator's lap-time delta for a new part until the structure was explained.
  • What is missing is knowable. The Chapter 11 model is a quasi-steady point mass: it has no load transfer, no yaw, no tyre temperature, no driver, and a simplified energy-deployment rule for 2026. The residual pattern (too slow in the medium corners, too slow at the end of the straights) points at the lateral envelope's speed dependence and at energy deployment as the next things to fix. This is exactly the logic of a real correlation problem. You do not tune the car until the numbers match; you ask which piece of physics would produce this pattern of error.

πŸ§ͺ Illustrative model: parameters are assumptions chosen to be plausible for a current F1 car, not team data. The simulator's preset values, the two correction factors and the sensitivities below are properties of our teaching model. They tell you how to reason about correlation, not what any team's car does.

The simulator as a sensitivity tool

A calibrated model is useful even when its absolute lap time is off, as long as its derivatives are roughly right. That is how teams use lap-time simulation in development: not "this car laps in 1:28.1", but "this part is worth a tenth here and two tenths there". Use the calibrated car to ask what 1 % more downforce ($C_L A$) and 1 % more drag ($C_D A$) are worth at each circuit:

Median: +1 % ClA = -0.157 s (-0.174 %) per lap; +1 % CdA = +0.053 s
A 0.554 pp shift (80 % detectable) needs about 3.2 % more ClA in this model (range 2.1 to 6.4 % across circuits)
Chapter 24's 0.5 pp step (detected ~50 % of the time) = about 2.9 % ClA

Bar chart of the lap time gained from 1 % more downforce at each 2026 circuit, coloured by circuit type

πŸ“Š Figure (described): Lap time gained from +1 % downforce, as a percentage of lap time, for 17 circuits, coloured by Chapter 10's circuit types. The Hungaroring (0.26 %) and Suzuka (0.23 %) gain most; Spa (0.09 %) and the Red Bull Ring (0.10 %) least. The median is about 0.17 % of the lap. The takeaway: a downforce gain is worth about twice as much at a twisty circuit as at a power circuit, and a change of a few percent is needed before it clears the noise in public timing data.

This number closes the loop between the physics half of the chapter and the statistics half.

  • In our model, 1 % more downforce is worth about 0.17 % of a lap. The detection threshold from 30.7 is 0.55 pp of lap time. So, to be caught four times in five, an upgrade has to deliver roughly 3 % more downforce at no drag cost: 2 % at the Hungaroring, 6 % at Spa.
  • An aerodynamic programme that adds downforce a fraction of a percent at a time, which is how development usually moves, is invisible to us part by part. It only shows up summed over a season, as a development rate.
  • The reference tables quote a rule of thumb from F1's former chief technical officer Pat Symonds: "10 points of downforce ~ 0.1 s per lap" for the 2022 rules (engineering_reference.csv, Motor Sport, February 2022). The table does not define a "point", and we do not guess its size. The useful lesson is the shape of his statement: lap time is roughly linear in small downforce changes, which is what our sensitivity bars assume too.

The driver-in-the-loop simulator

There is one more virtual tool, and it is the one Kenji knows best.

Kenji: My sim rig is basically the same thing as the teams', right? Wheel, pedals, screen, a car model.

Tom: Same idea, different job. Yours has to feel right. Theirs has to predict right: the vehicle model runs the team's own tunnel maps and tyre models, so that a change made in the morning can be driven in the afternoon.

Aisha: So it's a lap simulator with a human optimiser instead of my forward–backward pass.

Kenji: And the human tells you if the car is driveable, which your optimiser never complains about.

That exchange is the whole case for the driver-in-the-loop simulator. Our lap simulator finds the fastest speed profile a point mass can follow, assuming perfect, fearless use of the grip envelope. A real driver needs a car whose balance is predictable at the limit. A part that adds downforce but makes the balance shift with ride height can be faster in the lap-time model and slower in a driver's hands. The simulator is where that is found out before the part is made. It is also a correlation problem in its own right: the simulated car must react like the real one, or the driver's feedback is about a car that doesn't exist.

That is theme 3, data doesn't replace instinct; it sharpens it, in hardware. The model says what should be faster; the driver says what is.

πŸ“‹ Try it: Design the setup. Use the calibrated car's sensitivities from code/_cache/lapsim_sensitivity.csv. At Spa, +1 % ClA is worth βˆ’0.0954 s and +1 % CdA costs +0.1103 s. At the Hungaroring the numbers are βˆ’0.2043 s and +0.0314 s. You are offered a lower-downforce rear-wing option worth βˆ’3 % ClA and βˆ’5 % CdA. Using the linear sensitivities, should you fit it at Spa? At the Hungaroring? Decide before you look.

Answer

Spa: $\Delta T \approx (-3)(-0.0954) + (-5)(0.1103) = +0.286 - 0.552 = -0.266$ s, so fit it. Hungaroring: $(-3)(-0.2043) + (-5)(0.0314) = +0.613 - 0.157 = +0.456$ s, so don't. The same part is a quarter of a second faster at one circuit and almost half a second slower at the other. That is why teams bring circuit-specific wing levels, and why an "upgrade" measured at one circuit type cannot be read straight across to another. The linear approximation is reasonable for changes of a few percent; for bigger changes, rerun the simulator.

πŸ”„ Check your understanding 1. The preset simulator was too slow at every circuit. Why is a same-sign error at every circuit good news for a correlation engineer? 2. Calibration was fitted on three circuits and tested on fourteen. Why not fit on all seventeen? 3. Roughly how much extra downforce must an upgrade give before our public timing data would detect it four times in five?

Answer

  1. It points to a global cause (here, the grip level), which one factor can fix. A pattern of errors with mixed signs points to missing physics that no global factor can fix.
  2. Fitting on everything shows how well the model can be made to fit, not how well it predicts. Holding circuits out tests whether the correction transfers, which is the question a team cares about before trusting the tool at the next race.
  3. About 3 % in our model (0.55 pp Γ· 0.174 % per 1 % ClA), from about 2 % at the Hungaroring to about 6 % at Spa.

30.9 What development means for race strategy

Development is a factory activity, but it reaches the pit wall in three ways, and Box Box needs all three.

1. Base pace is not a constant. The strategy simulator's base pace for each car (Chapter 20) comes from recent races. If a team is developing faster than the field, last month's pace is a biased estimate of this weekend's. Chapter 24's project_gap already adds the season's development rate, with its interval, to the latest level. This chapter tells you how large that interval should be: development rates are uncertain to a few hundredths of a percentage point per race, and step changes smaller than about 0.5 pp are invisible until several races after they happen.

2. A rival's upgrade is an uncertainty, not a number. When a rival is known to have new parts, the honest adjustment is to widen the distribution of its pace in the Monte Carlo (Chapter 27), not to shift the centre by a guessed amount. If the upgrade works, the rival may be faster in the undercut window. If it doesn't, nothing changes. A robust strategy is one that does acceptably in both worlds, which is the same logic as Anchor C's flexible one-stop.

3. Development has a calendar. The sliding scale switches at the end of ATP 3. A team's tunnel time in the second half of the year depends on where it stands in late June. In 2026 that was after Round 7:

2. 2026 Coefficient C by half (ATPs 1-3 from the 2025 final order, ATPs 4-6 from the order after R7):
   Mercedes            75.0 % ->  70.0 %
   Ferrari             85.0 % ->  75.0 %
   Williams            90.0 % -> 105.0 %
   Aston Martin       100.0 % -> 115.0 %
   Alpine             115.0 % ->  90.0 %

Alpine's strong start to 2026 cost it 25 points of Coefficient C for the second half of the year, while Aston Martin's weak start earned it 15. In runs, Alpine fell from 368 to 288 per period, 240 fewer over ATPs 4–6, and Aston Martin rose from 320 to 368, 144 more. The same calendar also decides how a team splits its allowance between this year's car and next year's. That trade-off matters most in a year like 2025, when the 2026 cars were being developed under completely new rules. Our data cannot see how any team split its allowance, so we do not guess.

πŸ“‹ Try it: Build the strategy. You are running Box Box for the 2026 Mexico City GP (Round 19) and want a base pace for Aston Martin. The team's Chapter 24 gaps fell sharply from Round 16, and its last five dry rounds before Mexico were Rounds 14–18. Should you use the season median, the last five races, or the last five plus the season's development rate? Write down which, and why, before you look.

Discussion

The season median of the raw per-round gaps for Rounds 1–18 (3.93 %, from the list printed by code/case_study_01.py) is dominated by the pre-Sepang level and would make Aston Martin far too slow. The last five races mix two levels (Rounds 14–15 near 3.9–4.0 %, Rounds 16–18 at 1.9–3.1 %). The best choice is the post-change-point level, with an interval wide enough for the fact that it rests on three races. In practice that means the last few races with a wide prior, which is what project_gap gives if you shorten the window to three. Aston Martin's Mexico gap was 3.13 %, inside such an interval and above the post-change mean: one more reminder that single rounds are noisy.


Spaced Review

From Chapter 3 (Aerodynamics). Before reading the answer: why does the "downforce equals weight" speed matter for cornering, and what effective drag area did Chapter 3 measure for 2025 cars with DRS closed? Answer: Downforce grows with $v^2$, so above that speed a car could in principle corner upside down, and the grip envelope grows with speed. Chapter 3 measured an effective $C_D A$ of 1.593 mΒ² closed (1.203 mΒ² open) on 2025 qualifying telemetry. This chapter's tunnel discussion explains why that full-size, track-measured figure is precious: it is a number the wind tunnel cannot give directly, because of the Reynolds gap.

From Chapter 11 (Lap-time simulation). What does "quasi-steady-state" leave out, and why does that matter for correlation? Answer: It treats each point of the lap as if the car were in a steady state: no yaw dynamics, no load-transfer transients, no tyre temperature and no driver. Section 30.8's residual pattern (still too slow in medium-speed corners after calibration) is what you would expect from missing transient and balance effects.

From Chapter 24 (Team performance trends). What fraction of the time does Chapter 24's detector find a 0.5 pp step in a 20-race season, and why did none of its ten change points survive a multiple-testing correction? Answer: About 50 %, because the noise in a team's per-race gap (median residual SD about 0.45 pp) is comparable to the step. Ten detections in 41 team-seasons is more than the 2 expected by chance, but each individual p-value is too weak to survive Benjamini–Hochberg. Section 30.7 showed the same limit from the other side: the minimum detectable before/after shift is about 0.55 pp.


Project Checkpoint: upgrades.py

Aisha's Box Box can now simulate a race with any base pace you give it. What it could not do, until this chapter, is reason about how those base paces change, or what a reported upgrade should do to them. project/boxbox/upgrades.py adds two capabilities.

Testing allowances.

  • BASELINE holds the per-ATP baseline at C = 100 %.
  • atr_scale(year) gives the sliding scale in force that year.
  • atr_allocation(position, period, penalty_pct=0.0) gives one team's allowance per ATP: Coefficient C, runs, wind-on and occupancy hours, new geometries and compute, rounded up as the rules require.
  • atp_calendar(year) gives the six ATP windows, and team_atr(year) gives every team's allowance in every ATP from the Jolpica standings. It handles the mid-season switch, new teams, renamed teams (through the Chapter 24 lineage table) and the Red Bull penalty.
  • season_allocation(years) rolls the allowances up into team-season totals.

Upgrade effects.

  • before_after(gaps, team_ref, year, split_round, ...) is the estimator from 30.7: shift, bootstrap CI, Welch and placebo p-values, residual SD and minimum detectable shift.
  • summer_split(year) gives a pre-specified calendar split.
  • min_detectable_shift(n_before, n_after, sd) answers "could we have seen it?" before anyone asks "did it work?".
# code/project_checkpoint.py (excerpt)
from boxbox import development as dev, upgrades
upgrades.atr_allocation(10, 2026)                          # tenth or new team, per ATP
gaps = dev.adjust_for_circuit(dev.gap_to_fastest(years=(2026, 2026), method="best"))
r = upgrades.before_after(gaps, "williams", 2026, upgrades.summer_split(2026))
1. Allowance per ATP for 2026, P1 vs P10/new team:
   P1: C 70 %, 224 runs, 56 h wind-on, 1400 new CFD geometries, 4.2 MAUh
   P10: C 115 %, 368 runs, 92 h wind-on, 2300 new CFD geometries, 6.9 MAUh
   Red Bull 2023 (10 % penalty): 202 runs per ATP
3. before_after at the 2026 summer split (R12, a calendar fact):
   Williams   shift -0.289 pp [-0.797, +0.196]  n 11/9  placebo p 0.47  detectable at 80 %: 0.78 pp
   McLaren    shift -0.113 pp [-0.363, +0.121]  n 11/9  placebo p 0.60  detectable at 80 %: 0.35 pp
4. min_detectable_shift(10, 10, sd=0.45) = 0.564 pp; (20, 20) = 0.399 pp

Notice the last line of the Williams–McLaren comparison. McLaren's 2026 gaps are steady (a residual SD of about 0.28 pp), so a 0.35 pp shift would be detectable. Williams's are noisy, so it would need 0.78 pp. The same test has very different power for different teams, and the module reports it every time.

How it plugs in later.

  • Chapter 31's budget optimiser uses atr_allocation as the testing constraint beside the cost cap.
  • Chapter 27's Monte Carlo can widen a team's pace distribution by mds_80 when an upgrade is reported but not yet measured.
  • Chapter 40's assembled simulator can call before_after in a post-race report, to say whether a team's pace moved, and whether we could have known.

Chapter Summary

Concept Formula or rule Value in this chapter (source)
Kutta–Joukowski $L' = \rho U \Gamma$ lift per metre from circulation
Thin-airfoil lift $C_l = 2\pi(\alpha - \alpha_{L0})$ NACA 4412 line: $\alpha_{L0} = -4.154Β°$; panel slope 6.227 per rad (πŸ§ͺ)
Ground effect (inviscid) mirror-image vortices Γ—2.10 downforce at h/c = 0.2; Γ—3.6 at 0.1 (πŸ§ͺ, single element)
Mesh economics error ∝ $N^{-1.05}$, cost ∝ $N^{2.33}$ halving the error costs about 4.7Γ— compute (πŸ§ͺ panel code)
Reynolds number $Re = \rho V L/\mu$ 60 % model at 50 m/s matches the full-size car at 108 km/h
Tunnel friction error $C_f \propto Re^{-1/5}$ (turbulent plate) model reads +18 % at 250 km/h (πŸ§ͺ)
ATR baseline per ATP C = 100 % 320 runs, 80 h wind-on, 400 h occupancy, 2,000 geometries, 6 MAUh (cost_cap.csv)
Sliding scale 2022–2026 70 % (P1) to 115 % (P10/new); 1,344 vs 2,208 runs a year
Red Bull penalty C Γ— (1 βˆ’ 0.10), 12 months from 26 Oct 2022 63 %, 202 runs per ATP
Scale effect, in-season DiD slope, 2022–26 vs 2007–20 βˆ’0.0095 pp/race per unit position [βˆ’0.032, +0.013]; β‰ˆ βˆ’0.19 pp a season
Detectable scale effect 2.80 Γ— SE about 0.64 pp per season
Before/after detectability $\text{MDS}_{80} = 2.80\,\sigma\sqrt{1/n_1 + 1/n_2}$ median 0.55 pp (β‰ˆ 0.47 s on an 85 s lap)
Selection bias best of 13 splits on noise 26.6 % false positives vs 5.4 %
Lap-sim correlation 2 factors fitted on 3 circuits test error 11.7 % β†’ 5.5 % (πŸ§ͺ)
Downforce sensitivity +1 % ClA β‰ˆ βˆ’0.17 % of lap time; ~3 % ClA needed to be detectable (πŸ§ͺ)

Decision checklist for the analyst asked "did the upgrade work?"

  1. Was the split date fixed before looking at the lap times? If not, use a change-point test that accounts for the search.
  2. Is the metric free of position-dependent bias? (Use like-for-like Q1 for teams near the cut lines.)
  3. Have you removed the circuit mix (circuit-type adjustment) and the reference team's own movement (de-meaning, or a median-team reference)?
  4. What is the minimum detectable shift for this team and sample size? Say it out loud before you quote a p-value.
  5. Does the placebo test say the split is special, or just one more point in a trend?
  6. Never call a change point an upgrade unless a source says what changed and when.

What's Next

Tunnel time is rationed by results; money is rationed by the cost cap. Chapter 31 turns to the Financial Regulations themselves: the cap figures year by year, the 2026 change of scope, the breach cases, and whether the cap compressed the field. We will also build Box Box's budget.py, a toy optimiser that allocates a capped budget across development areas, with this chapter's testing allowances as a second constraint.