Here are four lines from the 2026 Mexico City Grand Prix. The first comes from the timing data, the other three from the race-control feed. All times are UTC.
In This Chapter
- 18.1 Who Decides: The Anatomy of a Strategy Room
- 18.2 The Information Stream: Race Control as a Data Feed
- 18.3 How Much Time Do You Have? Warning, Escalation and the Decision Window
- 18.4 Decisions Under Uncertainty: Expected Value and Regret
- 18.5 Team Radio Without Words
- 18.6 "The Tyres Are Gone": Driver Feel Against the Stopwatch
- 18.7 Team Orders: What the Data Can and Cannot See
- 18.8 Building the Pit Wall: An Event-Driven Decision Loop
- 18.9 Call the Pit Stop: Two Real Races, Lap by Lap
- Spaced Review
- Project Checkpoint: pitwall.py
- Chapter Summary
- What's Next
Chapter 18 — The Strategy Room: The Pit Wall, Team Radio, and Making Decisions Under Pressure
Here are four lines from the 2026 Mexico City Grand Prix. The first comes from the timing data, the other three from the race-control feed. All times are UTC.
21:02:46.007 ANT's lap 43 ends, in the pit lane: the leader is making his stop
21:03:51 DOUBLE YELLOW IN TRACK SECTOR 3
21:04:06 SAFETY CAR DEPLOYED
21:06:02 RED FLAG - RACE SUSPENDED
At the end of lap 42, Andrea Kimi Antonelli led the race by 8.46 seconds from Max Verstappen. It was the race in which he would clinch the world championship. According to OpenF1's stint record he was on the SOFT tyres he had started on, and they were now 42 laps old. At the end of lap 43 he came in, took MEDIUMs, and rejoined. That was a normal green-flag stop at a normal green-flag price. Our measurement of a typical green stop is 22.512 seconds of lost race time.
Sixty-five seconds after his in-lap ended, the first double yellow appeared. Fifteen seconds after that, the safety car was deployed. Hamilton, Russell, Piastri and Gasly then came in under the safety car and paid the reduced price. Our pooled measurement of a stop under a safety car is 12.722 s. Verstappen and Leclerc stayed out. Then, 196 seconds after Antonelli's in-lap, the race was red-flagged. Every car still on its old tyres got a change during the suspension, and the suspension costs no lap time.
Gap to leader (s) at the end of each lap Position at the end of each lap
lap ANT VER LEC HAM lap ANT VER LEC HAM
42 0.00 8.46 10.59 13.24 42 1 2 3 4
43 0.00 4.28 6.51 9.09 43 1 2 3 4
44 24.26 0.00 3.43 8.93 44 4 1 2 3
Verstappen went on to win. Antonelli finished third, which was enough for the championship. He finished behind two cars he had been leading. Nothing in the timing data suggests that his team, or any other, made an error. The data are consistent with a planned stop on an old set, made at the most expensive possible moment for reasons nobody on the pit wall could have seen 80 seconds earlier.
That is the strategy room's problem in four lines. Decisions are made against a clock, with incomplete information, about events that have not yet happened. Every decision is judged afterwards by people who know how the race ended.
Ines: So was it the wrong call? Aisha: That's the wrong question. Ask instead: given what anyone could know at 21:02, was the stop a good bet? Then ask separately how it turned out. Ray: Bad luck is not a strategy error. I lost money on that race and I still say so. Ines: But somebody has to decide in about a minute whether to box. How?
This chapter is about how. It is a gap-filler chapter: it sits between the strategy models of Chapters 12–17 (from Chapter 12's optimiser to Chapter 17's lap-1 model) and the analytics of Part III. It asks what happens when those models meet a live race. We look at:
- who is in a strategy room and what information they see;
- the race-control feed, treated as the live data stream it is;
- how much warning a strategist gets, and how long they have to act;
- expected value against regret, measured with real probabilities;
- what the team-radio index can and cannot tell us (we have timestamps, never words);
- whether lap times confirm "the tyres are gone";
- what the data can see of team orders.
Then Aisha builds pitwall.py, an event-driven loop that replays any race in our data as a live feed, makes rule-based calls for every car, and keeps a log we can grade against what real pit walls did.
🏎️ Fan Track: Read 18.1–18.7 and the two 📋 scenarios in 18.9; skim the code. You will finish knowing why a team boxes under a safety car within seconds, why it sometimes regrets it, and why the radio you hear on TV is a small, chosen slice of the conversation.
📊 Analytics Track: This chapter is not on the core analytics path, but 18.4 (expected value and regret, with measured inputs) and 18.8 (the decision loop and how to grade a rule against reality) are worth your time.
pitwall.pyis the live controller that Chapter 27's Monte Carlo engine and Chapter 40's simulator call.🎰 Betting Track: Section 18.3 gives the escalation rates: how often a VSC becomes a safety car, and a safety car becomes a red flag. Section 18.4 is the cleanest worked example in the book of why "it worked" is not evidence that a bet was good.
18.1 Who Decides: The Anatomy of a Strategy Room
A Formula 1 team's race decisions come from a small group of people in two places. Teams describe the arrangement in their own public videos and media material in broadly similar terms. We describe it here only in general terms, as it is publicly presented. Nothing in this section claims to know how any particular team works on any particular day.
At the track sits the pit wall, the gantry overlooking the pit lane. It usually holds the team principal or a senior manager, the sporting director (who owns the regulations: tyre allocations, penalties, procedures), and one or two strategy engineers. Each driver has a race engineer, the single voice on the radio. The race engineer may sit on the pit wall or in the garage engineering area. Each car also has performance and data engineers who watch its systems.
At the factory sits the remote operations room (teams use various names). Many more engineers there watch the same timing and telemetry in real time, run the strategy simulations, model rivals and track the weather. The remote room and the pit wall talk on internal channels throughout the race.
📐 Definition: A strategy call is a decision that changes a car's planned race: when to pit, which compound to fit, whether to cover a rival's stop, whether to hold or swap positions with a team-mate. The strategist recommends, the decision-maker (often the head of strategy or the team principal, depending on the team) approves, and the race engineer delivers the call to the driver. In this chapter "the pit wall" means that whole chain.
The information flows
A strategist's world is a set of live streams. Here is what each one is, and how much of it this book's free data can see.
| Stream | What the strategy room has live | What our data snapshot has |
|---|---|---|
| Timing | The official FIA timing feed: lap and sector times, gaps, intervals, pit-lane entries and exits | The same timing, as republished by OpenF1 after the session (laps, intervals, pit, positions) |
| Race control | Every message race control publishes: flags, SC/VSC, investigations, penalties | The same messages, with timestamps (OpenF1 race_control) |
| Car position (GPS) | Every car's position on track, several times a second, for gap prediction and pit-exit traffic | Position (x, y, z) for qualifying sessions only; in races, only the gaps at timing points |
| Own-car telemetry | Hundreds of channels: tyre temperatures and pressures, brake temperatures, energy state, fuel | Speed, RPM, gear, throttle, brake on/off, DRS, at about 3.7 Hz; no tyre or brake temperatures, no energy or fuel data |
| Team radio | Every word on every channel, plus rivals' broadcast radio | An index of the clips the official feed published: timestamp, driver, audio URL. No transcripts. |
| Weather | Radar, on-site meteorologists, forecasts | One weather station per session, updated about once a minute, with a 0/1 rain flag |
| Rival models | Each rival's predicted pace, tyre state and likely stop window | Nothing live. We reconstruct rivals afterwards from timing |
That table is the honest boundary of this chapter. One stream we have in full, exactly as the teams had it: race control. Everything else we see after the event, at lower resolution, or not at all. The pit wall also knows the most important thing of all: its own plan and how far the car has drifted from it. We never know that. When we write about a decision, we write about what the timing data are consistent with. We never write about what anyone intended.
Tom: So we can't see tyre temperatures at all? Aisha: Not one channel. When a driver says the rears are overheating, the team can check it on a screen. We can only check whether the lap times moved, and in 18.6 we'll see how rarely they move enough to prove anything.
What a call looks like from the outside
From outside, every strategy call reaches the timing data in one of three ways:
- a car enters the pit lane (
is_pit_in_lap) and its next lap is on a different set of tyres; - a car does not enter the pit lane on a lap when the cars around it do;
- a car's pace changes: it pushes, it manages, or it lets a team-mate past.
The first two are observable to the lap. The third is observable only statistically. That asymmetry shapes this whole chapter. Pit decisions can be graded one at a time. Pace decisions can only be graded in bulk.
⚠️ Common pitfall: Treating a stop as a decision made on that lap. A green-flag stop is usually a plan made before the race and adjusted for many laps. The in-lap only tells you when the plan was carried out. A stop under a safety car is different: the clock runs from the deployment message. That is why the rest of the chapter concentrates on neutralisations. They are the one place where the timing data contain both the stimulus and the response, with timestamps.
🔄 Check your understanding 1. Which of the strategy room's information streams do we have in exactly the form the teams had it live? 2. Name two channels a pit wall uses that our data cannot see at all. 3. Why is a safety-car stop easier to grade from timing data than a green-flag stop?
Answer
- Race control: every message, with its timestamp (OpenF1
race_control).- Any two of: tyre temperatures and pressures, brake temperatures, energy and fuel state, live GPS positions in the race, radio content, weather radar, the team's own plan.
- Because the stimulus (the deployment message) and the response (a tyre change at the next opportunity) are both timestamped within a minute of each other. A green-flag stop carries out a plan made long before, and we cannot see the plan.
18.2 The Information Stream: Race Control as a Data Feed
Race control publishes a running stream of short, standardised messages. The safety car deployment reaches the strategist's screen as a line of text at the same moment it reaches everyone else's. OpenF1 archives every message with a UTC timestamp, the leader's lap number, a category and, where relevant, a sector, a flag colour and a car number.
pitwall.event_stream turns that stream into typed events. Each message is matched against a short, ordered list of patterns, and the first match wins:
# project/boxbox/pitwall.py (excerpt)
_EVENT_PATTERNS = [ # (kind, regex) - first match wins; order matters
("RED", r"^RED FLAG\b(?!.*INFRINGEMENT)"),
("SC", r"^SAFETY CAR DEPLOYED"),
("SC_IN", r"^SAFETY CAR IN THIS LAP"),
("VSC", r"^(?:VIRTUAL SAFETY CAR|VSC) DEPLOYED"), # 2026 writes "VSC DEPLOYED"
("VSC_END", r"^(?:VIRTUAL SAFETY CAR|VSC) ENDING"),
("RESTART", r"^(?:SESSION RESUMED|SESSION STARTED|STANDING START|ROLLING START)"),
("PENALTY_SERVED", r"PENALTY SERVED"),
("NO_ACTION", r"NO FURTHER (?:ACTION|INVESTIGATION)|REVIEWED NO FURTHER"),
("PENALTY", r"FIA STEWARDS: .*(?:PENALTY|DRIVE THROUGH|STOP AND GO|GRID)"),
("INVESTIGATION", r"UNDER INVESTIGATION"),
("TRACK_LIMITS", r"DELETED - TRACK LIMITS|TRACK LIMITS"),
("BLUE", r"BLUE FLAG"),
("DOUBLE_YELLOW", r"^DOUBLE YELLOW"),
("YELLOW", r"^YELLOW"),
...
]
def event_stream(session) -> pd.DataFrame:
rc = f1data.race_control(session).sort_values("date")
kind = rc.message.fillna("").map(classify_message)
... # plus: a flag value of RED always means RED; cars named in the message are extracted
The pattern order matters. "FIA STEWARDS: PENALTY SERVED - 5 SECOND TIME PENALTY FOR CAR 16" contains the word PENALTY twice, so the PENALTY_SERVED and NO_ACTION patterns must be tried before the general PENALTY one, or a served penalty would be counted as a new one. (The first draft of this module had them the other way round. It counted every served penalty as a new one, and nothing crashed to warn us. Read a sample of your classified messages before you trust their counts.) The red-flag pattern reads both the 2023–25 wording and the 2026 one, "RED FLAG - RACE SUSPENDED", which arrives as a category-"Other" message. The toolkit now normalises that form too, so track_periods contains every red flag in our data.
📐 Definition: A strategic message is a race-control event a strategist acts on, or prepares to act on. These are the SC, VSC and red-flag messages and their endings, restarts, sector yellow and double yellow flags, investigations, penalties and weather notices. Blue flags, track-limit deletions and most procedural notices are information, not triggers.
Running event_stream over every Grand Prix in our data (code/01_event_stream.py):
Race-control messages per Grand Prix (mean), by season:
year 2023 2024 2025 2026
total 77.6 81.2 78.5 163.2
strategic 15.3 13.3 15.9 31.6
Neutralisation (SC, VSC, red, restarts) 3.8 3.0 3.6 5.4
Sector flags (yellow, double yellow, clear) 14.1 13.1 15.8 40.0
Stewards (noted, investigation, penalty, decisions) 13.6 12.5 15.5 20.8
Track-limit deletions 20.5 14.9 14.5 19.5
Blue flags 15.5 28.4 20.0 61.4
Other (pit lane, DRS / Overtake, weather, misc.) 10.0 9.4 9.2 16.1
All 91 races: median 81 messages per race (IQR 60-118); max 283 (Bahrain Grand Prix in Malaysia 2026)
Strategic messages (SC/VSC/red/restart, sector flags, investigations, penalties, weather) per race: median 16
A typical Grand Prix produces about 80 messages. Only about 16 of them are strategic. The rest are blue flags, track-limit deletions and procedure. That ratio is itself a lesson in designing a pit-wall display: you must filter, or the signal drowns.
The 2026 column is twice the size of the others. Two things drive it. First, blue flags roughly tripled. That is consistent with the larger spread in pace in the first season of the new rules (Chapter 29 measures it). Second, sector-flag messages nearly tripled, and race control's 2026 messages name many more marshalling sectors: the 2026 Mexico City feed refers to "TRACK SECTOR 16". The finer sector numbering means more messages for the same incident. That is a change in reporting, not necessarily in the number of incidents. It is a good example of why a count from one season cannot be compared with another without reading the messages.

📊 Figure (described): Horizontal grouped bars give the mean number of race-control messages per Grand Prix in six groups, one bar per season from 2023 to 2026. Neutralisation messages are the smallest group, at three to five per race. Blue flags and sector flags dominate, and both jump sharply in 2026. The takeaway: the stream a strategist must act on is a few dozen lines inside a much larger flow.
One race as an event stream
Now return to the opening race. Here is the whole 2026 Mexico City GP as events, each placed at the leader's position in the race when the message was published (code/02_mexico_2026.py). Fractional laps interpolate between the leader's line crossings.

📊 Figure (described): Six horizontal lanes (neutralisation messages, sector yellows, stewards' notices, penalties, track-limit deletions and blue flags) show each race-control message as a marker against the leader's lap. Shaded bands mark the lap-7 VSC, the lap-44 safety car with the red flag that followed, and the lap-59 safety car. A dashed line marks the end of Antonelli's lap-43 in-lap, just before the burst of messages around lap 44. The takeaway: the messages that change strategy arrive in clusters, and the gaps between clusters are long.
Neutralisation windows:
status start end start_lap
VSC 20:12:05 20:14:53 7.0
SC 21:04:06 21:06:02 44.0
RED 21:06:02 21:45:00 45.0
SC 22:05:02 22:11:58 59.0
Put the same race on a gap chart and you can see what those four windows did to the order at the front:

📊 Figure (described): Lines show the gap to the race leader at each line crossing for Antonelli, Verstappen, Leclerc, Hamilton, Norris and Russell from lap 30 to lap 62, with SC, VSC and red-flag laps shaded and each car's tyre changes marked with a dot. Antonelli's line runs along zero until his lap-43 stop, drops to 24 s behind as the safety car comes out, and then the whole group collapses to within a few seconds after the red flag and the standing restart. The takeaway: the order the race finished in was set in the four minutes around lap 44, not by pace.
Several of the messages during the suspension matter to a strategist even though nobody was racing:
Race control during the suspension:
21:13:32 INCIDENT INVOLVING CAR 10 (GAS) NOTED - LEAVING PIT EXIT ON RED LIGHT (15:06:01)
21:14:01 RESUMPTION ORDER: 3, 16, 12, 44, 1, 63, 41, 81, 43, 27, 87, 5, 10, 6, 30, 55, 50, 23, 11
21:25:53 REVISED RESUMPTION ORDER: 3, 16, 44, 12, 1, 63, 81, 41, 43, 10, 27, 87, 5, 6, 30, 55, 50, 11, 23
21:33:53 FIA STEWARDS: INCIDENT INVOLVING CAR 10 (GAS) REVIEWED NO FURTHER INVESTIGATION - LEAVING PIT EXIT ON RED LIGHT (15:06:01)
21:39:12 FIA STEWARDS: 5 SECOND TIME PENALTY FOR CAR 11 (PER) - SPEEDING IN THE PIT LANE (15:04:43)
21:45:00 SESSION STARTED
The resumption order was revised after 12 minutes. Car 44 (Hamilton) moved ahead of car 12 (Antonelli). Gasly's stop is stamped one second after the red flag. Race control noted him leaving the pit exit on a red light and then took no further action. Pérez's 5-second penalty refers to a pit-lane speeding offence timed during the safety-car stop. A strategist planning the restart works from exactly these lines: who starts where, who carries a time penalty, and what the order will be after it is applied. Race control's timestamps put the suspension at 39.0 minutes from the red flag to the restart signal. A press account quoted in the book's reference notes calls it a 33-minute red flag. The two may be measuring different intervals, and we quote our own.
⚠️ Common pitfall: Reading race control's lap_number as the lap of the car you care about. It is the leader's lap (toolkit README §5; see Appendix B). In Mexico the safety car is logged at lap 44, but Verstappen was still on lap 44 while lapped cars were on lap 43. For any per-car question, convert the message's timestamp to that car's lap using its own lap start and end times. RaceFeed does exactly this.
📺 On the broadcast: When the TV graphic flashes "SAFETY CAR" and the commentator says "the pit wall has seconds to decide", the graphic is driven by the same race-control message you have just seen in the data. The broadcast and the pit wall learn of the deployment at the same moment. The difference is what each does in the next 60 seconds.
18.3 How Much Time Do You Have? Warning, Escalation and the Decision Window
Three numbers define the strategist's clock at a neutralisation:
- how much warning there is before the deployment;
- how likely the neutralisation is to escalate (a VSC becoming a safety car, a safety car becoming a red flag);
- how long each car has before it passes the last pit entry it could use on this lap, the decision window.
All three can be measured from race control and the laps table.
Warning: yellow flags before the deployment
A safety car rarely arrives from nowhere. A crash first shows up as a sector yellow or double yellow, and the deployment follows once race control has judged the scene. pitwall.deployment_warning searches the 120 s before each SC, VSC or red-flag window for the first sector flag:
Warning before a neutralisation (first sector yellow/double yellow within 120 s before it):
VSC: n = 57; preceded by a sector flag 39/57 = 68.4% [55.5%, 79.0%]; median warning 39 s (IQR 18-66 s)
SC : n = 62; preceded by a sector flag 55/62 = 88.7% [78.5%, 94.4%]; median warning 29 s (IQR 16-44 s)
RED: n = 14; preceded by a sector flag 7/14 = 50.0% [26.8%, 73.2%]; median warning 32 s (IQR 18-51 s)
SC+VSC pooled: median 32 s; under 30 s in 47.9%
Almost nine safety cars in ten (88.7%) are preceded by a sector flag, and the median warning is 29 seconds. The VSC is less often flagged in advance (68.4%), probably because many VSCs are for a car stopped safely off the racing line, which may not need a yellow. That last point is a plausible reading of the messages, not something the data prove. A red flag that does not grow out of a safety car is the least predictable of the three. In Mexico the warning was 15 s: the double yellow at 21:03:51 and the deployment at 21:04:06.

📊 Figure (described): Overlaid histograms show the seconds between the first sector yellow and the deployment message, for VSCs and safety cars from 2023 to 2026. Both are concentrated under a minute. The SC distribution peaks near 20–40 s, and about half of all deployments come less than 30 s after the first flag. The takeaway: the warning is real but short, about the length of one long straight plus a corner sequence.
A 29-second warning is useful only if the decision is already made. A pit wall that learns of a double yellow and then starts working out what to do has already lost most of its time. This is why strategy groups keep a live, constantly updated answer to the question "if a safety car comes out now, do we box?" for each car. They compute it before it is needed. pitwall.decide computes the same thing at every tick, as section 18.8 shows.
Escalation: when the decision you just made is overtaken
A VSC can become a safety car, and a safety car can become a red flag. When either happens, the price of a stop changes under the strategist's feet. From the incident grouping in the neutralisation module (Chapter 14):
Incidents 2023-26: 118; first window: {'VSC': 57, 'SC': 56, 'RED': 5}
P(incident that opens as VSC later includes SC) = 4/57 = 7.0% [2.8%, 16.7%]
P(incident that opens as SC later includes RED) = 8/56 = 14.3% [7.4%, 25.7%]
P(incident that opens as VSC later includes RED) = 1/57 = 1.8% [0.3%, 9.3%]
SC -> red flag: seconds from SC deployment to red flag, median 156 s (range 54-905 s, n = 8)
SC opening on lap 1: 1/12 became red; later laps: 7/44
-> P(red | SC deployed after lap 1) = 0.159 [0.079, 0.294] (used in 18.4)
📐 Definition: The escalation probability p(B | A) is the share of incidents that open as A and later include B within the same incident. An incident groups windows that overlap or follow within 30 s (Chapter 14). For the decision in 18.4 the number we need is p(red | SC after lap 1) = 7/44 = 0.159, 95% Wilson interval 0.079–0.294 (Appendix E explains the Wilson interval).
Two features of these numbers matter for the pit wall. First, when a safety car becomes a red flag, it usually does so fast: the median gap is 156 s. That is less than two safety-car laps, so the escalation usually comes after the cars nearest the pit entry have had to decide, but before most of the field has had a second chance. Second, the probabilities are small but far from negligible, and the intervals are wide. Eight escalations in four seasons is a thin sample, and section 18.4 carries that uncertainty through.
The decision window: seconds until the pit entry
The last number is the one that sets the pace of a strategy room. When the deployment message arrives, each car is somewhere on its lap. A car that has just passed the pit entry cannot stop this lap: it must do a whole lap under the neutralisation first. A car with half a lap to go has perhaps 40 seconds.
RaceFeed.state_at(t) gives each running car's s_to_line, the seconds until it next crosses the timing line. We use the line as a stand-in for the pit entry, which sits a little before it at most circuits. The script takes the state one second after every SC and VSC deployment after lap 1, and checks what each car did:
# code/01_event_stream.py (excerpt)
feed = pw.RaceFeed(s.session_key)
for _, w in feed.windows.iterrows():
if w.status not in ("SC", "VSC") or w.start_lap == 1:
continue
st = feed.state_at(w.start + pd.Timedelta(seconds=1)) # the screen, one second after the message
for _, c in st.cars.iterrows():
rows.append(dict(status=w.status, acronym=c.acronym, s_to_line=c.s_to_line,
pit_first=feed.actual_pit(c.acronym, int(c.lap)), # stopped on this lap
pit_second=feed.actual_pit(c.acronym, int(c.lap) + 1))) # ...or on the next
Decision window at deployment (SC/VSC windows after lap 1, every running car; n = 1916 car-deployments):
SC: median 67.5 s to the line (IQR 41.8-93.7); under 10 s 3.3%; under 20 s 8.1%; n = 904
0-10 s: pitted on that lap 6.7%, on the next lap 33.3% (n = 30)
10-30 s: pitted on that lap 21.3%, on the next lap 14.8% (n = 108)
30-200 s: pitted on that lap 41.5%, on the next lap 8.6% (n = 766)
VSC: median 64.3 s to the line (IQR 31.2-88.8); under 10 s 8.0%; under 20 s 16.3%; n = 1012
0-10 s: pitted on that lap 4.9%, on the next lap 13.6% (n = 81)
10-30 s: pitted on that lap 20.1%, on the next lap 5.5% (n = 164)
30-200 s: pitted on that lap 19.0%, on the next lap 2.6% (n = 765)
The middle of the distribution is about a minute (67.5 s under a safety car, 64.3 s under a VSC). The tails tell the story. Under a safety car, cars with less than 10 s to go almost never stopped on that lap (6.7%) but often stopped on the next one (33.3%). They had missed the entry, so they went round and came in a lap later. Cars with more than 30 s to go stopped at once (41.5%) and rarely waited (8.6%). Under a VSC the "next lap" column collapses to 2.6% for cars with time to spare. A VSC has a median length of about one lap (Chapter 14), so a VSC stop is now-or-never. If you don't take it on the first pass, the price has usually gone back to green by the next one.

📊 Figure (described): Step histograms show, for every car running at an SC or VSC deployment after lap 1, the seconds until it next crossed the timing line. Both distributions are roughly flat from 10 to 110 s, as you would expect if the deployment arrives at a random point in each car's lap. A dashed line marks 10 s, the deadline this chapter assumes for a "box" call to be usable. The takeaway: most cars have between half a minute and a minute and a half, and a few have almost none.
🔍 Why this works: If an incident happens at a random moment, each car is at a uniformly random point of its lap when the message arrives. The time to the line is then roughly uniform between 0 and one lap time, with a median of half a lap. Lap times at most circuits are 75–105 s, which predicts a median near 40–50 s. The measured 64–68 s is longer for a mechanical reason. Cars slow as soon as the deployment message arrives: under a VSC they must respect the delta, and under a safety car they slow towards the queue. So the remaining part of the lap takes longer than it would at racing speed. That slowdown is extra decision time, and pit walls get the benefit of it.
🔄 Check your understanding 1. Race control logs a safety car at "lap 31". Why can't you assume every car was on lap 31? 2. A car is 6 s from the line when the VSC is deployed. What does the data say it will most likely do, and why? 3. Why does a deployment's warning time matter less than people think?
Answer
- Race control's lap number is the leader's lap. Cars further back, and lapped cars, are on earlier laps. Convert the message time to each car's own lap.
- Stay out. With 6 s left it has almost certainly passed the decision point for this lap's pit entry. Under a VSC the neutralisation will probably be over before it comes round again: only 13.6% of such cars stopped on the next lap.
- Because the median warning (29 s for a safety car) is shorter than the median decision window (67 s). The useful preparation is the answer computed before any warning: what we would do if a safety car came now.
18.4 Decisions Under Uncertainty: Expected Value and Regret
🧩 Productive struggle: A safety car has just been deployed on lap 30 of 57. Your driver is on 20-lap-old MEDIUMs and has not stopped yet. A dry race requires two compounds, so the stop is owed. If you box now you pay the safety-car price; if you stay out you will pay the green price later. But there is a catch. If the safety car turns into a red flag, every car still out gets a tyre change for free during the suspension, and your safety-car stop will have been wasted. Before reading on, write down three things: (a) the inputs you would need to decide, (b) the rule that turns those inputs into BOX or STAY, and (c) the probability of a red flag at which you would change your mind.
Expected value
Let G be the green-flag pit loss, S the pit loss under a safety car, and p the probability that the safety car becomes a red flag. A red-flag tyre change costs no lap time. For a car that owes a stop:
| SC ends normally (1 − p) | SC becomes a red flag (p) | |
|---|---|---|
| BOX now | pays S | pays S (the red-flag change would have been free) |
| STAY out | pays G later, under green | pays 0 (free change during the suspension) |
The expected time gained by boxing now instead of staying out is
$$ \mathrm{EV}(\text{box} - \text{stay}) = (1 - p)\,(G - S) \;-\; p\,S . $$
In words: most of the time you save the difference between the green and the safety-car price, and some of the time you throw away the whole safety-car price. Setting EV = 0 gives the break-even probability
$$ p^{*} = \frac{G - S}{G} = 1 - \frac{S}{G}. $$
In words: boxing is right unless a red flag is more likely than the fraction of the stop's price that the safety car removes.
With the measured inputs (green 22.512 s, safety car 12.722 s, and p = 7/44 = 0.159 from 18.3), code/03_ev_and_regret.py gives:
p(red | SC deployed after lap 1) = 7/44 = 0.159 [0.079, 0.294]
Pit loss: green 22.512, SC 12.722, VSC 15.671 s; SC saving on an owed stop G - S = 9.790 s
EV(box - stay) = (1-p)(G-S) - p S; break-even p* = (G-S)/G = 0.435
p = 0.000: EV = +9.790 s
p = 0.079: EV = +8.006 s
p = 0.159: EV = +6.209 s
p = 0.294: EV = +3.179 s
p = 0.435: EV = -0.000 s
p = 0.600: EV = -3.717 s
Worked number: at p = 0.159, EV = 0.841 × 9.790 − 0.159 × 12.722 = 8.233 − 2.023 = +6.21 s in favour of boxing. Even at the top of the 95% interval (p = 0.294) boxing is still worth +3.19 s. A red flag would have to be nearly three times likelier than our data say (p > 0.435) before staying out became the better bet on expected time.

📊 Figure (described): A falling straight line shows the expected seconds gained by boxing now against the probability that the safety car becomes a red flag. It crosses zero at p* = 0.44. A shaded band marks the measured probability's 95% interval (0.08–0.29), and a dashed line marks the point estimate, 0.16. The whole band lies in positive territory. The takeaway: for an owed stop, the expected-value answer is "box", and it is robust to the uncertainty in p.
Regret
Expected value is not the only way to judge a decision. Regret is the time an action costs you compared with the best action in the outcome that actually happened.
Regret table (s), owed stop, SC just deployed:
SC ends normally SC becomes red flag max regret
BOX now 0.00 12.722 12.722
STAY out 9.79 0.000 9.790
Expected regret: box 2.024 s, stay 8.233 s (at p = 0.159)
📐 Definition: The regret of action a in outcome o is cost(a, o) − min over all actions of cost(·, o). Minimax regret picks the action whose worst-case regret is smallest. Expected regret weights each outcome's regret by its probability. Minimising expected regret always gives the same answer as maximising expected value.
Here the criteria disagree. Expected value (and so expected regret) says box: the expected regret is 2.0 s for boxing against 8.2 s for staying. Minimax regret says stay, because boxing's worst case, the red flag, costs 12.7 s while staying's worst case costs only 9.8 s. A strategist who would rather never be the person who boxed just before a red flag will lean towards staying out. A strategist who plays the long game across a season of decisions will box.
This is not a quirk of a formula. It is the structure of the opening race. In Mexico, Hamilton, Russell, Piastri and Gasly paid a safety-car price on lap 44 and the red flag came two minutes later. With hindsight they had the maximum regret. Before the red flag, the expected-value answer for a car with old tyres was to box. Section 18.9 and Case Study 1 (the 2023 Australian GP, where the leader boxed under a safety car that became a red flag 158 s later) show both sides of the same table in real races.
⚠️ Common pitfall: Grading a decision by its outcome. Poker players call this resulting. The same box call is "genius" when no red flag follows and "a blunder" when one does, but the call was the same. The only fair grade is against the information available at the time. That is why DecisionLog stores the state each call was made in. Note also that time is not the only currency. Boxing under a safety car can cost track position to cars that stay out, and track position has a value of its own that these seconds do not capture (Chapter 13's undercut study shows how hard it is to win back on track).
The other side: waiting for a safety car that may never come
There is a second classic decision under uncertainty, and it runs in the other direction. Your tyres are going off under green and a stop is due. Should you stay out a few more laps in the hope that a neutralisation arrives and makes the stop cheaper?
Delaying the stop by w laps costs about w × Δ, where Δ is the fresh-tyre advantage per lap you are giving up. The book's measured median is Δ = 1.078 s/lap (fuel-corrected, n = 1,594 green stops). The gain arrives only if a neutralisation starts within those w laps. If incidents arrive at a constant per-lap hazard λ, the chance of at least one in w laps is 1 − e^(−λw), and the saving when one comes is a mix of the SC, VSC and red-flag savings. The expected gain of waiting is
$$ \mathrm{EV}_{\text{wait}}(w) = \left(1 - e^{-\lambda w}\right)\bar{s} \;-\; w\,\Delta . $$
In words: the chance of a cheap stop, times what it saves, minus the cost of running on old tyres meanwhile. For the first lap of waiting, the break-even advantage is Δ* ≈ λ × s̄.
Middle-phase incidents by kind: {'VSC': 35, 'SC': 26, 'RED': 4}; saving per kind {'SC': 9.79, 'VSC': 6.841, 'RED': 22.512}
Expected saving if an incident arrives: 8.985 s; middle-phase hazard lambda = 0.0186 per lap
Break-even fresh-tyre delta for delaying one lap: lambda x saving = 0.167 s/lap
fresh delta 0.198 s/lap: EV of waiting 1/3/5/10 laps = -0.03, -0.11, -0.19, -0.45
fresh delta 0.640 s/lap: EV of waiting 1/3/5/10 laps = -0.47, -1.43, -2.40, -4.87
fresh delta 1.078 s/lap: EV of waiting 1/3/5/10 laps = -0.91, -2.75, -4.59, -9.25
fresh delta 1.568 s/lap: EV of waiting 1/3/5/10 laps = -1.40, -4.22, -7.04, -14.15
P(at least one incident in the next 5 laps, middle phase) = 0.089
Worked number: in the middle of a race the per-lap incident hazard is λ = 0.0186 (65 incidents in 3,491 laps at risk, 2023–26). The saving from an incident is s̄ = (26 × 9.790 + 35 × 6.841 + 4 × 22.512)/65 = 8.985 s. Waiting one lap therefore buys 0.0186 × 8.985 = 0.167 s of expected saving. It costs a full lap of the fresh-tyre advantage. The book's measured fresh-tyre deltas have a 90th percentile of 0.198 s/lap: only about one green stop in ten has an advantage that small. At the median delta, waiting five laps costs 4.59 s in expectation, for an 8.9% chance of a cheaper stop.

📊 Figure (described): Three lines show the expected seconds gained by delaying a green-flag stop by 0 to 15 laps, for fresh-tyre deltas of 0.198, 0.640 and 1.078 s/lap (the 90th, 75th and 50th percentiles of the measured distribution). All three slope downwards from zero, steeply for the median delta. The takeaway: with real hazards and real tyre deltas, waiting for a safety car is almost never worth it in expectation. The rare exception is a stop whose fresh-tyre advantage is tiny, such as a low-degradation one-stop race.
🧪 Illustrative model: the waiting calculation assumes a constant fresh-tyre advantage per lap and a constant hazard within the middle phase. Both are measured averages, not values for any particular race. At a circuit with a higher-than-average hazard (Chapter 14 gives circuit multipliers; Singapore's pooled factor is 1.33) the break-even rises in proportion, to about 0.22 s/lap. That is still below the 75th-percentile delta.
📺 On the broadcast: When a commentator says a team "is staying out and hoping for a safety car", the arithmetic above is what that hope is worth. A team that stays out is usually doing something else as well: running to a planned stint length, waiting for a rival to stop first (Chapter 13), or protecting track position. "Hoping for a safety car" is rarely the whole story, and the expected value says it should not be.
🔄 Check your understanding 1. Using G = 22.512 s and S = 12.722 s, at what red-flag probability are boxing and staying equally good for an owed stop? 2. A car does not owe a stop, and the extra-stop value under the SC is +3 s. How does the red-flag risk change the calculation? 3. Why does "it worked" not show that a safety-car gamble was a good decision?
Answer
- p* = (G − S)/G = 9.790 / 22.512 = 0.435.
- With probability p the extra stop is wasted, because the red flag would have given the same new tyres for free. Subtract p × S from the +3 s: at p = 0.159 that is 3 − 0.159 × 12.722 = +0.98 s. The stop is still marginally positive, and much less attractive.
- Because the same decision has different outcomes depending on events after it. A decision is good if it had the best expected value, or acceptable regret, given what was known when it was made. That is "resulting" (18.4).
18.5 Team Radio Without Words
Team radio is the strategy room's most famous channel, and the one this book can use least. OpenF1's team_radio table holds, for each published clip, a timestamp, the driver and the URL of an audio file. It holds no transcripts. This book never quotes a radio message. What we can do is count.
📐 Definition: The radio index is the set of team-radio clips that the official feed made public for a session. It is not the team's radio traffic. A pit wall and its driver talk far more than is published, and the publication is a selection whose rules we do not know.
Coverage: the selection changed
Team-radio clips per Grand Prix (OpenF1 index, race sessions):
races with_clips median mean min max
year
2023 22 22 128.0 124.7 54 195
2024 24 24 126.0 109.2 41 169
2025 24 24 30.0 31.9 18 78
2026 21 17 29.0 24.5 0 40
Total race clips 2023-26: 6,644
Median clips per driver per race (drivers with >= 1 clip): {2023: 6.0, 2024: 5.0, 2025: 2.0, 2026: 2.0}
The median Grand Prix had 128 published clips in 2023 and 30 in 2025. In 2026, four of the 21 races in our snapshot have none at all. Teams did not stop talking to their drivers in 2025. What changed is what was published. That one table rules out a whole family of analyses: you cannot compare "radio activity" between seasons, and within a season the number of clips mostly measures what the publisher selected.

📊 Figure (described): One dot per Grand Prix shows the number of published radio clips, grouped by season, with a black bar at each season's median. 2023 and 2024 cluster around 120–130 clips; 2025 and 2026 cluster around 30, and four 2026 races sit at zero. The takeaway: the index is a selection, and the selection changed between 2024 and 2025.
Around a driver's own stop
We can still ask a narrower question within the selection: does the published radio for a driver cluster around that driver's pit stops? code/04_team_radio.py assigns each clip to the driver's lap by timestamp and lines up 2,536 tyre changes. These are changes not made under a red flag, between lap 7 and six laps from the end, so that every stop has five laps on each side:
Clips per lap by lap relative to the in-lap (0 = in-lap, +1 = out-lap):
-5: 0.0552 [0.0461, 0.0659]
-4: 0.0560 [0.0465, 0.0670]
-3: 0.0627 [0.0528, 0.0726]
-2: 0.0702 [0.0595, 0.0820]
-1: 0.0729 [0.0623, 0.0844]
+0: 0.0694 [0.0588, 0.0800]
+1: 0.0749 [0.0635, 0.0875]
+2: 0.0588 [0.0497, 0.0682]
+3: 0.0505 [0.0406, 0.0607]
+4: 0.0540 [0.0442, 0.0643]
+5: 0.0481 [0.0382, 0.0584]
driver's whole-race average: 0.0707 clips per lap
in-lap + out-lap vs laps -5..-3: ratio 1.24
The published rate climbs gently from about 0.055 clips per lap five laps before a stop to about 0.073 on the lap before it. It stays there through the in-lap and out-lap, then falls back. The in-lap and out-lap together run at 1.24 times the rate of three to five laps earlier. The 95% intervals of neighbouring laps overlap, and the peak is no higher than the driver's own race average (0.0707). That average is pushed up by the start and the finish, which are well covered.

📊 Figure (described): A line with a shaded bootstrap band shows mean published clips per lap from five laps before a driver's stop to five laps after it. The line rises slowly into the stop, plateaus over the in-lap and out-lap, and drops after it. A dashed reference line shows the driver's whole-race average. The takeaway: there is a modest build-up of published radio around stops, consistent with stops being talked about, but it is far too small and too dependent on selection to time a stop by.
Around a neutralisation
If anything should produce a burst of radio it is a safety car: every car must be told what to do within a minute. Here is the whole field's published rate around each SC and VSC deployment after lap 1:
SC: 10 min before 0.547/min, first 3 min after 0.440/min (ratio 0.80)
VSC: 10 min before 0.551/min, first 3 min after 0.604/min (ratio 1.10)

📊 Figure (described): Two lines show the whole field's published clips per minute from ten minutes before to ten minutes after each SC and VSC deployment (47 SC and 53 VSC windows with radio coverage). Both wander between about 0.3 and 0.9 clips per minute with no spike at the deployment. The SC line is, if anything, slightly lower in the first minutes after it. The takeaway: the busiest minute in a strategy room leaves no visible mark in the published index.
There is no surge. The published rate in the three minutes after a safety car is lower than in the ten minutes before (ratio 0.80). The obvious inference, "teams talk less under a safety car", is almost certainly wrong. The more plausible reading is that the clips chosen for publication are the ones that make good broadcast material, and that the urgent, procedural traffic of a safety car is not what gets chosen. We cannot test that reading with the data we have. That is exactly the point.
⚠️ Common pitfall: Treating the radio index as a measure of team activity, driver stress or strategic intent. It measures what was published. Across seasons it measures a changing editorial policy. The only questions it supports are narrow ones within one selection: for example, "are clips for a driver more common near his stops than far from them?". Even those answers come with the caveat that the selection may itself prefer clips near stops.
In Mexico, the index holds 27 clips for the whole race. Three of them fall between lap 40 and the restart, the four most consequential minutes of the season. Whatever was said on the pit walls in those minutes, the data hold three time stamps and no words.
🔄 Check your understanding 1. A 2024 Grand Prix has four times as many published clips as a 2025 one. What can you conclude about how much the teams talked? 2. What narrow question can the radio index answer, and what is its caveat?
Answer
- Nothing. The publication policy changed between 2024 and 2025 (median 126 → 30 clips per race), so counts across those seasons measure selection, not conversation.
- Whether a driver's published clips cluster around his own events (stops, incidents) within one season's selection. The caveat: the selection itself may favour clips near events, so even that pattern may say more about the publisher than about the team.
18.6 "The Tyres Are Gone": Driver Feel Against the Stopwatch
The most quoted kind of radio message is a driver reporting that his tyres are finished. Theme 3 of this book is that data sharpen instinct rather than replace it, and here is a place to test that. We cannot hear the driver. We can ask whether the lap times show the tyres "going" in the laps before a green-flag stop, which would mean the stopwatch could have told the pit wall what the driver did.
The test (code/05_tyres_are_gone.py) works one stint at a time:
- Take every dry-race stint that ends in a green-flag tyre change and has at least 10 clean laps (the toolkit's standard
is_cleandefinition; warm-up lap excluded). - Fit the stint's degradation line (fuel-corrected lap time on tyre age, toolkit default fuel assumption of 100 kg × 0.03 s/kg) to all its clean laps except the last three.
- Measure how far those last three laps sit above the line, on average. Call this the late excess.
A real drop-off, the "cliff" of Chapter 4, would show up as a large positive late excess.
Dry races: 76; stints ending in a green-flag tyre change with >= 10 clean laps: 1,427
Late excess (mean of last 3 clean laps above the line fitted to the rest of the stint), fuel-corrected:
median +0.127 s [+0.095, +0.159] (bootstrap 95% CI); mean +0.157 s
quartiles -0.186 / +0.510 s; 90th pct +0.858 s
share with excess > 0.3 s: 524/1427 = 36.7% [34.3%, 39.3%]
share with excess > 0.5 s: 369/1427 = 25.9% [23.7%, 28.2%]
share with excess > 1.0 s: 101/1427 = 7.1% [5.9%, 8.5%]
share with no visible excess (<= 0): 540/1427 = 37.8%
typical lap-to-lap scatter around the line (median residual SD): 0.369 s; standard error of a 3-lap mean ~ 0.213 s
The median stint ends 0.127 s per lap above its own trend, with a 95% interval of 0.095–0.159 s. That is a real, small acceleration of wear at the end of a stint. But more than a third of stints (37.8%) end with no excess at all, and only 7.1% end more than a second above the line. This matches the book's earlier finding that true cliffs are rare in race data: only 0.5% of stints end more than 2 s above a linear fit, because teams stop before the cliff.

📊 Figure (described): A histogram shows the late excess (the last three clean laps against the stint's own degradation line) for 1,427 stints that ended in a green-flag stop. The distribution is centred just above zero (median +0.13 s, dashed line) with a long right tail; a shaded region marks the 7.1% of stints whose last laps were more than a second above the line. The takeaway: before most stops the stopwatch shows, at most, a small rise.
Why the stopwatch is slow: a signal-to-noise derivation
Suppose the tyres really have lost δ seconds per lap. How many laps does it take for the lap times to show it? Clean race laps scatter around the trend with a standard deviation σ. The measured median is σ = 0.369 s. The mean of n laps has standard error σ/√n. To call a drop real at about two standard errors you need
$$ \delta \;\ge\; \frac{2\sigma}{\sqrt{n}} \quad\Longleftrightarrow\quad n \;\ge\; \left(\frac{2\sigma}{\delta}\right)^2 . $$
In words: the smaller the drop, the more laps you must wait to be sure of it, and the wait grows with the square. Worked number: for a 0.3 s drop, n ≥ (2 × 0.369 / 0.3)² = 2.46² = 6.05 laps. For a 0.5 s drop, n ≥ 2.2 laps. Three laps of data (standard error 0.213 s) can just about confirm a 0.43 s drop, and nothing smaller.
That is the physics of theme 3. A driver feels the tyre through the steering, the seat and the balance: the rear stepping out a fraction earlier, the front pushing on entry. Teams also see channels we do not have, such as tyre temperatures and pressures. Both can register a fall in grip before a lap-time average can confirm it, because a single corner's feel is a measurement with very low noise compared with a lap time that adds up 15–20 corners, traffic and wind. The stopwatch is the slowest sensor on the car. When a driver says "the tyres are gone", the honest data answer is usually "not yet visible", and that is not the same as "not true".
Do stints with a visible late rise end earlier than the race norm?
Stint length vs the race median for the same compound and stint number, by late excess:
n median mean
band
<= 0 540 0.0 0.36
0-0.5 518 0.0 0.16
0.5-1 268 0.0 -0.35
> 1 101 0.0 -0.46
Correlation of late excess with relative stint length: r = -0.084
Slightly. Stints whose last laps were more than a second above trend ended 0.46 laps earlier than their race's median stint for the same compound, on average. Stints with no excess ended 0.36 laps later. The median stint in every band matches its race norm exactly, and the correlation is weak (r = −0.084). The data are consistent with teams occasionally cutting a stint short when the times visibly fall away. They are equally consistent with ordinary variation in strategy. What they clearly show is that most stops are planned around the tyre's predicted life, not triggered by a visible collapse.
🔄 Check your understanding 1. A car's last three clean laps before a stop are 0.25 s above its stint trend. Is that evidence the tyres were going off? 2. Why is minimax regret more cautious than expected value in the box-under-SC decision? 3. Your driver's fresh-tyre advantage would be 0.15 s/lap. Is waiting for a safety car reasonable?
Answer
- Weak evidence at best. With σ = 0.369 s, the standard error of a three-lap mean is 0.213 s, so 0.25 s is about 1.2 standard errors. It is in the range of ordinary scatter.
- Minimax regret looks only at the worst case of each action. Boxing's worst case (a red flag, 12.7 s wasted) is worse than staying's worst case (9.8 s paid extra), so it picks staying, however unlikely the red flag is. Expected value weights the cases by their probabilities (p = 0.159).
- It is close to the break-even of about 0.17 s/lap (λ = 0.0186 per lap × s̄ = 9.0 s), so waiting a lap or two costs little in expectation. It is one of the rare cases where staying out is defensible on these numbers alone.
18.7 Team Orders: What the Data Can and Cannot See
The most politically charged call a strategy room makes is between its own two cars: hold position, swap, or let them race. The rules on team orders have changed over the sport's history. The book's reference tables do not carry that rule history, so we do not summarise it here. The FIA Sporting Regulations of the season in question are the primary source, and stewards' decisions appear in race control (Chapter 37). Neither OpenF1 nor Jolpica records team orders: there is no field for an instruction to hold or swap positions, so nothing in this section is team-order data. What the timing data can do is measure the on-track behaviour that team orders would affect: how often team-mates pass each other on track.
A pass between team-mates in the timing data looks the same whether it was a fight, a pace difference or an instruction. So we compare two shares. The first is the share of green-flag on-track passes made between team-mates, using the book's standard classification of the OpenF1 overtakes table (Chapter 35 defines it; pit cycles, safety-car periods, retirements and timing glitches are removed). The second is the share of adjacent running pairs that are team-mates: how often the two cars were next to each other at the end of a green lap, and so could have passed each other.
Green-flag on-track passes (book classification) and the team-mate share, by season:
year races green_passes per_race teammate_passes share lo hi adjacent_teammate_share ratio
2023 22 899 40.864 54 0.060 0.046 0.078 0.105 0.571
2024 24 841 35.042 60 0.071 0.056 0.091 0.112 0.636
2025 24 788 32.833 71 0.090 0.072 0.112 0.111 0.809
2026 21 1132 53.905 125 0.110 0.093 0.130 0.139 0.796
All seasons: 310/3660 green passes between team-mates = 8.5% [7.6%, 9.4%]; team-mates are adjacent in 11.6% of running pairs at green lap ends (n = 84,818); ratio 0.73
Team-mates are next to each other in 11.6% of running pairs, but make only 8.5% [7.6%, 9.4%] of the green-flag passes. That is a ratio of 0.73. Team-mates pass each other about a quarter less often than their adjacency alone would predict.
That number has an obvious innocent explanation. Team-mates drive the same car. Passing needs a pace advantage (Chapter 35), and the smallest pace differences on the grid are usually inside a team (Chapter 21). The data cannot separate "same car, so no pace to pass with" from "told to hold position". Both predict a ratio below 1. The ratio rose from 0.57 in 2023 to about 0.8 in 2025–26. That is consistent with closer racing between team-mates, or with more varied strategies inside teams, which put team-mates on different tyres and so give one a pace advantage. It is not evidence of a change in instructions.
Where the data can help is the decision itself. Suppose a team's cars run second and third and the third car is faster. Under the points scale used since 2010 (25-18-15-12-10-8-6-4-2-1), swapping them changes the team's total by zero, because 18 + 15 = 15 + 18. What it changes is the risk. A held position behind a faster team-mate costs the time the faster car loses stuck behind, and that time can let a rival close in. A fight costs the chance of contact. Chapter 17's lap-1 incident rates and Chapter 37's collision penalties are the inputs for pricing that risk. A swap "for the championship" changes the drivers' standings but not the constructors'. That is why the question is so often a team-principal decision rather than a strategist's.
⚠️ Common pitfall: Calling every team-mate position change in the data a team order. The 2026 Las Vegas GP produced 31 green-flag passes between team-mates out of 180. That race had the most green passes of any in our snapshot, in a season with new cars and wide pace swings between stints. A count of swaps is a count of swaps. Only a published statement or a race-control record can establish an instruction.
18.8 Building the Pit Wall: An Event-Driven Decision Loop
Everything so far has been a measurement. Now we build the controller. project/boxbox/pitwall.py has four parts, and its architecture is the same as any live decision system:
- a feed that turns the archived race into a sequence of moments, each showing only what was knowable then;
- a state object for each moment;
- a policy that maps state to calls;
- a log that records every call with its inputs, so it can be graded afterwards.
The feed and the state
# project/boxbox/pitwall.py (excerpt)
class RaceFeed:
def __init__(self, session, lead_s: float = 10.0):
lp = f1data.laps(self.sk).dropna(subset=["date_start", "date_end"]).copy()
self.leader_end = lp.groupby("lap_number").date_end.min() # the leader's line crossings
self.windows = nz.windows(self.sk) # SC / VSC / RED (2026 wording included)
self.events = event_stream(self.sk) # typed race-control messages
lp["tyre_change"] = tyre_changes(lp) # truth, for grading only
...
def state_at(self, t, trigger="time", since=None) -> RaceState:
for dn, (g, ds, de) in self._by_driver.items():
if t64 < ds[0] or t64 >= de[-1]:
continue # not started, or finished / retired before t
i = int(np.searchsorted(de, t64, side="right")) # the first lap not yet completed
cur, prev = g.iloc[i], g.iloc[i - 1] if i >= 1 else None
s_to_line = (cur.date_end - t).total_seconds()
rows.append(dict(acronym=cur.acronym, lap=int(cur.lap_number),
position=prev.position_end, gap_to_leader=prev.gap_to_leader, # last line crossing
compound=cur.compound, tyre_age=int(cur.tyre_age),
stops=int(g.iloc[:i].tyre_change.sum()), s_to_line=s_to_line,
opp_lap=cur.lap_number if s_to_line >= self.lead_s else cur.lap_number + 1, ...))
Three design choices carry most of the weight.
- Positions and gaps come from each car's last line crossing. That is what a timing screen shows. A car halfway round its lap is still shown at the position it held at its last timing line.
opp_lapis the lap whose in-lap a BOX call made now would use. If the car will reach the line in less thanlead_sseconds, it is too late for this lap, and the call applies to the next one.- A stop is a change of tyre set. It is not a pit-lane passage.
tyre_changescounts a stop when the next lap's compound differs, or when its tyre age does not keep counting up. That matters because OpenF1's raw stint table opens a new stint when a car passes through the pit lane on the same set, as at the end of the 2025 Canadian GP, and it records zero-length stints around red flags. Counted naively, each of those looks like a stop. The book's processed data now drop the zero-length stints and merge a same-set stint into the one before it when the tyre ages line up. Not every passage lines up: across some of them the recorded tyre age jumps by 2 instead of 1, and the stint table still shows a new stint on the same set. Canada 2025 is one of those. Across the 91 races,tyre_changesand Chapter 12's count of stint boundaries (stops plus red-flag changes, fromstrategy.actual_strategies, which merges only stints whose ages line up exactly) still differ for 47 of 1,856 driver-races. Thirty-six are same-set passages of this kind. Five are pit entries after the chequered flag at the 2024 and 2026 Belgian GPs, which open a stint that is never driven. Six are stops whose next lap is missing from the lap table (lap 1 at the 2024 Qatar GP, and the 2025 Miami gap from Chapter 2), whichtyre_changescannot see. A stop count is a definition, and two reasonable definitions on the same data disagree in about 2.5% of driver-races.
🧪 Illustrative model: Rules.lead_s = 10 s (how long before reaching the line a "box" call must be made to use that lap's pit entry) is an assumption, not a measured value. Pit entries sit at different distances before the line at every circuit. The data in 18.3 support the order of magnitude: cars under 10 s from the line almost never stopped on that lap. The sensitivity test below shows the results barely move between 5 s and 20 s.
The policy: rules you can read
# project/boxbox/pitwall.py (excerpt) - one car, under SC or VSC
loss = r.pit_loss[st] # 12.722 s (SC) or 15.671 s (VSC)
min_age = r.min_age_sc if st == "SC" else r.min_age_vsc
if c.just_pitted or c.tyre_age < min_age:
call = "STAY" # set too fresh to be worth changing
elif owed: # two-compound rule not yet satisfied
call, gain = "BOX", r.pit_loss["GREEN"] - loss # an owed stop at a discount
elif laps_left < r.min_laps_left:
call = "STAY"
elif st == "VSC" and not r.vsc_extra_stops:
call = "STAY"
else: # a discretionary extra stop
gain = nz.neutralised_stop_gain(deg, c.tyre_age, laps_left, loss) # Chapter 14's closed form
call = "BOX" if gain > r.margin_s else "STAY"
The rule book has three branches.
- Red flag: always CHANGE, because the change is free. The compound is chosen by a simple stated rule: SOFT for 20 laps or fewer, MEDIUM up to 35, HARD beyond that. It never refits the only compound used so far while the two-compound rule is still open.
- SC or VSC: the code above. The extra-stop formula is Chapter 14's: the tyre time a new set saves over the remaining laps, minus the neutralised price. Degradation comes from Chapter 13's pooled fuel-corrected rates (SOFT 0.064, MEDIUM 0.051, HARD 0.048 s/lap).
- Green: two triggers. The cover trigger fires when the car directly behind has just pitted from within 1.36 s. That is the gap at which Chapter 13's logistic curve gives an undercut a 50% chance. The "set has paid" trigger fires when a stop is owed and the set is at least 22.512 / 1.078 = 20.9 laps old, the break-even of Chapter 12.
One tick, graded
Here is one tick: the 2025 Dutch GP, one second after the lap-23 safety car, with the version-1 rules (code/07_pitwall_replay.py). The actual column shows whether each car changed tyres at its next two line crossings.
position acronym compound tyre_age stops s_to_line opp_lap call reason actual
1 PIA MEDIUM 22 0 24.094 23 BOX SC: owed stop at SC price BOX
2 NOR MEDIUM 22 0 28.921 23 BOX SC: owed stop at SC price BOX
3 VER SOFT 22 0 48.106 23 BOX SC: owed stop at SC price BOX
4 HAD MEDIUM 22 0 51.539 23 BOX SC: owed stop at SC price BOX
5 RUS MEDIUM 22 0 54.879 23 BOX SC: owed stop at SC price BOX
6 LEC HARD 1 1 76.288 23 STAY set too fresh (< 2 laps) STAY
...
12 GAS MEDIUM 22 0 85.251 23 BOX SC: owed stop at SC price BOX
13 OCO HARD 22 0 88.529 23 BOX SC: owed stop at SC price STAY
14 BEA HARD 22 0 93.190 23 BOX SC: owed stop at SC price STAY
15 STR HARD 14 1 91.972 23 BOX SC: extra stop worth +20.9 s STAY
16 ALO HARD 4 1 93.538 23 STAY SC: extra stop worth -3.1 s STAY
...
agreement 84.2% (16/19)
The rules and the real pit walls agree on 16 of 19 cars. The three disagreements are the interesting part. Ocon and Bearman had started on HARDs and still owed a stop, and both stayed out. Stroll had already stopped and stayed out despite a positive extra-stop value. Section 18.9 turns Bearman's decision into a 📋 scenario.
Rule versus reality, everywhere
Now run that tick at the opening of every safety car and VSC in a dry race after lap 1, excluding incidents that turned into red flags (those are graded separately in Case Study 1). That gives 71 incidents in 47 races and 1,321 car-decisions. The actual box rate, meaning a tyre change at the first or second opportunity, is 48.5% under a safety car and 20.2% under a VSC. Two naive baselines set the bar. "Never box" is right whenever the car stayed out. "Box if and only if a stop is owed" is the simplest strategy rule there is.
kind period rule agree precision recall box_calls n
SC all never box 0.515 0.000 0.000 0.000 518
SC all box iff stop owed 0.639 0.624 0.641 0.498 518
SC all rules v1 0.683 0.636 0.809 0.616 518
SC all rules v2 0.784 0.768 0.793 0.500 518
VSC all never box 0.798 0.000 0.000 0.000 803
VSC all box iff stop owed 0.603 0.279 0.611 0.442 803
VSC all rules v1 0.598 0.309 0.802 0.524 803
VSC all rules v2 0.811 0.530 0.537 0.204 803
📐 Definition: Agreement is the share of car-decisions where the call matched what the car did. Precision is the share of BOX calls the car actually made. Recall is the share of actual stops that the rule called. Agreement on its own is misleading whenever one answer dominates: under a VSC, where four cars in five stay out, "never box" scores 79.8% while calling nothing.
Version 1 recalls most real safety-car stops (80.9%), but it boxes far too eagerly under a VSC: only 30.9% of its VSC box calls were real stops. Under a VSC it does worse than doing nothing. The decision log shows why, and the heat map in Case Study 2 shows it directly. Real pit walls under a VSC rarely stop a car on a set younger than about ten laps, and they almost never take a discretionary extra stop. Under a safety car they rarely change a set younger than about six laps.
Version 2 (Rules.v2()) writes those three regularities into the rules: min_age_sc = 6, min_age_vsc = 10, and vsc_extra_stops = False. Its agreement rises to 78.4% under safety cars (precision 76.8%, recall 79.3%). Under VSCs it reaches 81.1%, just ahead of "never box" (79.8%), while still catching 53.7% of real VSC stops. An honest note on how v2 was made: we chose its thresholds by reading the pooled 2023–26 decision table, so the comparison is in-sample. The by-period split is still informative. v2's 2026 agreement under safety cars (73.3%) is lower than for 2023–25 (80.4%), which is what you would expect if the new season's pit walls behaved a little differently. A proper test needs races the thresholds have never seen. Qatar and Abu Dhabi 2026 will be the first such races when they enter the data.

📊 Figure (described): Two bar panels (SC openings on the left, VSC openings on the right) compare the agreement of four policies (never box, box iff a stop is owed, rules v1, rules v2) with real decisions, split into 2023–25 and 2026. Under safety cars, v2 is clearly best in both periods. Under VSCs, "never box" scores about 80% and only v2 matches it. The takeaway: a readable rule book can match most real safety-car decisions, and the VSC is where a rule that ignores the base rate goes wrong.
Sensitivity of rules v2 to the call deadline lead_s:
lead_s = 5 s: agreement SC 0.788, VSC 0.812 (n = 1321)
lead_s = 10 s: agreement SC 0.784, VSC 0.811 (n = 1321)
lead_s = 20 s: agreement SC 0.774, VSC 0.812 (n = 1321)
The assumed deadline hardly matters, because only 3–8% of cars are within 10 s of the line at a deployment (18.3).
What the green-flag rules miss
The green triggers are much weaker, and the reason is instructive:
First green-flag stops in dry races: n = 1,198; laps on the set at the stop: median 20 (IQR 14-28); the v1 trigger fires at age 21
stop age minus trigger: median -1 laps; within +-3 laps 23.0%; earlier than the trigger 52.8%
first stop as a share of race distance: median 32.7%
On average the "set has paid" trigger is right. The median first green-flag stop comes after 20 laps on the set, and the trigger fires at 21. But fewer than a quarter of real first stops (23.0%) fall within three laps of it. The interquartile range runs from 14 to 28 laps. A single break-even age cannot know the circuit's degradation, the plan's stop count or the rival it is racing. Those come from the race model of Chapter 12 and the degradation model of Chapter 22. The rule's job is narrower and more honest: to flag that a stop is now overdue on pure tyre-age arithmetic, and to leave the timing to the model.
🔄 Check your understanding 1. What does
opp_lapmean, and why does it depend onlead_s? 2. v1 recalled 80.2% of real VSC stops. Why is it still a poor VSC rule? 3. Why is v2's improvement described as "in-sample"?
Answer
- It is the lap whose in-lap a BOX call made now would use. If the car is less than
lead_sseconds from the line, it is too late for this lap's pit entry, so the call applies to the next lap.- Because it boxes far too often. Only 30.9% of its VSC box calls were real stops, and its agreement (59.8%) is below "never box" (79.8%).
- Its thresholds (6 laps under an SC, 10 under a VSC, no discretionary VSC stops) were read off the same 2023–26 decisions it is graded on. A fair test needs races it has not seen.
⚠️ Common pitfall: Celebrating a high agreement rate without a baseline. A rule can agree with 80% of VSC decisions while making none. Always report precision and recall alongside agreement, and always beat "do nothing" and "do the obvious thing" before claiming a rule has learned anything.
18.9 Call the Pit Stop: Two Real Races, Lap by Lap
Both scenarios are reconstructed from the live feed by code/08_call_scenarios.py. Make the call before you open the reveal.
📋 Try it: Call the pit stop. 2025 Dutch GP, lap 23. The safety car has just been deployed (race control, leader's lap 23 of 72). You are on Oliver Bearman's (Haas) pit wall. This is what your screen shows, one second after the message:
text OCO: P13 HARD age 22 stops 0 gap to leader 48.6 s gap to car behind 2.8 s BEA: P14 HARD age 22 stops 0 gap to leader 51.4 s gap to car behind 0.2 s STR: P15 HARD age 14 stops 1 gap to leader 51.6 s gap to car behind 0.8 s ALO: P16 HARD age 4 stops 1 gap to leader 52.4 s gap to car behind 2.2 s GAS: P12 MEDIUM age 22 stops 0 gap to leader 44.3 s gap to car behind 4.2 s laps left 50; the MEDIUM-starters around them all pit (see 07) v2 call for BEA: BOX - SC: owed stop at SC priceBearman started 20th, on HARDs, and has not stopped. He still owes a stop to use a second compound. Every MEDIUM starter in the top 12 is coming in. The rule book says box: the owed stop costs 12.722 s now instead of 22.512 s later, a saving of 9.790 s. Box or stay? What do you gain by staying out, and what must happen for it to pay?
Reveal
Bearman stayed out, as did Ocon on the same strategy. Position at the end of laps 22, 24, 30, 40, 52, 54, 60 and 72:
text BEA position at the end of laps 22, 24, 30, 40, 52, 54, 60, 72: [14, 13, 11, 11, 9, 11, 9, 6] BEA: H-M stops (53,) -> P6 (grid 20), Finished OCO: H-M stops (52,) -> P10 (grid 18), Finished GAS: M-H stops (23,) -> P17 (grid 14), Finished at the lap-53 SC: BEA P9 HARD age 52, laps left 20; v2 call: BOXHe rose from 14th to 11th by lap 30 as the cars that stopped rejoined behind him. He ran his HARDs to 52 laps old, then took his only stop under the second safety car, on lap 53, at the safety-car price after all. He finished sixth from 20th on the grid. Gasly, who boxed on lap 23 from 12th, finished 17th.
The arithmetic, from stated inputs. Use the linear tyre model with the book's pooled fuel-corrected rates (HARD 0.048, MEDIUM 0.051 s/lap). Boxing on lap 23 and running a new HARD to the end costs 0.048 × (0 + 1 + … + 48) = 0.048 × 1,176 = 56.4 s of tyre time. Staying out to lap 53 and then fitting MEDIUMs costs 0.048 × (23 + … + 52) + 0.051 × (0 + … + 18) = 54.0 + 8.7 = 62.7 s. That is 6.3 s worse, and it is worse by another 9.8 s if no second neutralisation arrives and the stop must be made under green. What made staying out a reasonable bet? The chance of a later neutralisation was high. With the phase hazards (39 middle laps at 0.0186 and 10 final laps at 0.0149), P(at least one more) = 1 − e^(−(0.725 + 0.149)) = 0.58. Track position at Zandvoort was also valuable: 2025 had 32 green-flag on-track passes there, the fewest of the four Dutch GPs in our data. The timing data are consistent with a team pricing track position above about 10 s of expected tyre and stop time. The second safety car made the gamble pay. Without it, the rule book's BOX would have looked wise.
📋 Try it: Call the pit stop. 2026 Italian GP, the lap-3 red flag. A safety car on lap 3 has become a red flag. The suspension will last 31 minutes, and every car may change tyres for free. There are 51 laps left at Monza, where our pooled green pit loss is 25.409 s, one of the most expensive in the data. You are on Andrea Kimi Antonelli's (Mercedes) pit wall: P12, started 19th, on HARDs that are 2 laps old. Almost everyone around you started on MEDIUM or SOFT.
text position acronym compound tyre_age stops call compound_next 1 RUS MEDIUM 2 0 CHANGE HARD 3 VER SOFT 2 0 CHANGE HARD 12 ANT HARD 2 0 CHANGE MEDIUM 14 TSU HARD 2 0 CHANGE MEDIUM laps left at the red flag: 51Which compound do you fit, and how many more stops do you plan? What does the free change do to the rest of the field's race?
Reveal
text what they fitted during the red flag, by starting compound: start red_fit H M 2 S 1 M H 9 S H 4 M 4 S 1 position acronym grid sequence stop_laps status 1 ANT 19 H-M-M (28,) Finished 2 RUS 2 M-H () Finished 3 VER 5 S-M-H (28,) Finished ANT position at the end of laps 2, 6, 10, 20, 27, 30, 40, 53: [12, 8, 5, 1, 2, 5, 2, 1]Antonelli fitted MEDIUMs, which satisfied the two-compound rule at no cost. All nine MEDIUM starters fitted HARDs and could now run to the flag without stopping: the red flag had turned their race into a zero-stop race. Russell did exactly that and finished second. Antonelli ran from 12th to the lead by lap 20. He then made one more stop under the lap-28 VSC, MEDIUM to new MEDIUM, at the VSC price with 26 laps left, and won.
The rule book's compound choice matched what 15 of the 21 cars fitted. The red flag was the decisive event of the race for strategy. It gave a free stop to every car, and it was worth most to the cars on the alternative strategy, which no longer had to pay Monza's expensive green stop to switch compounds. Whether the HARD start was planned with this kind of event in mind, the data cannot say. What they show is that the alternative strategy was the one the red flag rewarded.
Spaced Review
From Chapter 12: what is the break-even stint length for a stop at the pooled green pit loss and the median fresh-tyre advantage? Work it out before you look. It is 22.512 / 1.078 = 20.9 laps. That is exactly Rules.green_age, and 18.8 showed that real first stops do centre there (median 20 laps) but spread from 14 to 28. The break-even is a reference point, not a schedule.
From Chapter 13: at what gap does the undercut succeed half the time, and does the overcut ever do as well? From the logistic fit on 168 situations, P(success) = 50% at a gap of 1.36 s. The overcut succeeds only 22.1% of the time overall. That 1.36 s is Rules.cover_gap_s: the rule covers a stop by the car behind only when it came from inside the gap where the undercut is more likely than not to work.
From Chapter 14: how much does a stop cost under a safety car and under a VSC, compared with green? The near-field measurements are 12.722 s under a safety car (n = 137) and 15.671 s under a VSC (n = 106), against 22.512 s green. This chapter used those numbers three ways. They set the EV of boxing under a safety car (+6.21 s at the measured red-flag risk). They set the saving that makes waiting for a safety car almost never worth it (s̄ = 9.0 s). And they set the prices inside every decide call. Which of the three would change most if a circuit's safety-car loss were 20 s, as it is at some circuits in Chapter 14's table? The EV of boxing, because G − S shrinks from 9.8 s to about 2.5 s and the break-even p* falls with it, from 0.44 to about 0.11.
Project Checkpoint: pitwall.py
Aisha's Box Box now has a strategy optimiser (Chapter 12), an undercut model (13), a neutralisation model (14), wet-weather crossovers (15), qualifying (16) and a lap-1 model (17). Until now, all of them answered "what is the best plan?". pitwall.py answers a different question: "given what we know right now, what do we do?" It is the live controller that sits between the race and the models.
Aisha: The optimiser tells you the plan. The pit wall is what you run when the plan meets a safety car. Kenji: So it's like a race engineer bot? Aisha: It's the rule book a race engineer would argue with. That's the point: it writes down every call and why, so we can argue with it afterwards.
Public API
| Function / class | What it does |
|---|---|
event_stream(session) |
typed race-control events (kind, strategic flag, cars named, leader's lap) |
deployment_warning(session, lookback_s=120) |
seconds from the first sector flag to each SC/VSC/red window |
tyre_changes(laps) |
True on each lap at whose end the car changed tyre set (pit-lane passages excluded) |
RaceFeed(session, lead_s=10) |
the replayable live feed: .state_at(t), .step(lap), .ticks(), .status_at(t), .actual_pit(acronym, lap) |
RaceState |
the screen at one instant: .cars, .status, .laps_left, .events, .summary() |
Rules(), Rules.v2() |
the rule book: pit losses, degradation, lead time, green age (20.9), cover gap (1.36 s), SC/VSC thresholds |
decide(state, rules) |
one call per car: BOX / STAY / CHANGE, with reason, estimated gain and compound |
DecisionLog |
.record(state, calls), .to_frame(), .calls("BOX"), .compare(feed, window) |
run(session, rules) |
the whole loop over a race → (DecisionLog, RaceFeed) |
evaluate_neutralisations(sessions, rules) |
the rule-versus-reality table of 18.8 |
ev_box_under_sc(p_red), regret_table(), wait_for_sc_value(w, λ, s̄, Δ) |
the closed forms of 18.4 |
The checkpoint (code/project_checkpoint.py) replays the opening race with the v2 rules:
s = f1data.session(2026, "Mexico", "R")
log, feed = pw.run(s, pw.Rules.v2()) # ticks: every leader line crossing + every SC/VSC/red change
d = log.compare(feed) # each call next to what the car did at that opportunity
Data: OpenF1 (2026 Mexico City Grand Prix, Race): 77 ticks, 1479 car-calls
Ticks by trigger: {'lap': 70, 'SC': 2, 'VSC': 1, 'VSC_END': 1, 'RED': 1, 'RED_END': 1, 'SC_END': 1}
First SC tick (21:04:07, leader lap 43):
acronym position compound tyre_age opp_lap call reason actual_box
ANT 1.0 MEDIUM 0 44 STAY set too fresh (< 6 laps) False
VER 2.0 SOFT 16 45 BOX SC: extra stop worth +16.0 s True
LEC 3.0 MEDIUM 16 44 BOX SC: extra stop worth +10.1 s False
HAM 4.0 MEDIUM 15 44 BOX SC: extra stop worth +8.7 s True
NOR 5.0 MEDIUM 4 44 STAY set too fresh (< 6 laps) False
RUS 6.0 MEDIUM 10 44 BOX SC: extra stop worth +1.6 s True
PIA 7.0 MEDIUM 17 44 BOX SC: extra stop worth +11.6 s True
GAS 10.0 MEDIUM 26 44 BOX SC: extra stop worth +24.4 s True
ANT, green ticks laps 38-43:
leader_lap tyre_age call reason opp_lap actual_box
38 38 BOX set 38 laps >= 20.9 39 False
...
42 42 BOX set 42 laps >= 20.9 43 True
Neutralisation-opening calls: agreement 71.4% (n = 56)
Green-flag BOX calls (the first per car and stint): 17; reasons: {'set': 15, 'cover': 2}
laps from that first call to the car's actual next stop: median 12 (stopped at the called opportunity in 6%; never stopped again in 0%)
Read the safety-car tick against the hook. The rule book would have boxed Verstappen, Leclerc, Hamilton, Russell, Piastri and Gasly under the lap-44 safety car. The four who boxed paid 12.722 s and then watched the red flag hand the same change to everyone else. Verstappen was 7 s from the line, so the rule's call applied to his next lap, by which time the race was suspended. His actual_box is the free red-flag change. That is the regret table of 18.4 played out in one tick. The green ticks show the "set has paid" trigger firing for Antonelli on every lap from his 21st on the set. He actually ran 43, and across the race the first green BOX call came a median 12 laps before the real stop. Mexico City is a low-degradation circuit, and a single break-even age cannot know that. The fix belongs to Chapter 22's degradation model, which will replace the pooled rates in Rules.deg with circuit-specific ones.
How it plugs in later. Chapter 27's Monte Carlo engine will call decide inside every simulated race: neutralisations are drawn from Chapter 14's hazards, and the rule book reacts to them exactly as it reacted to the real ones here. Chapter 40's simulator wires pitwall.run to the strategy optimiser. At each tick, the plan is re-optimised from the current state, which turns this rule book into a proper receding-horizon controller.
Chapter Summary
Formulas and measured inputs
| Quantity | Formula / value | Source |
|---|---|---|
| EV of boxing an owed stop under SC | (1 − p)(G − S) − pS = +6.21 s at p = 0.159 | G 22.512 s, S 12.722 s; p from race control |
| Break-even red-flag probability | p = (G − S)/G = 0.435* | same |
| p(red flag | SC after lap 1) | 7/44 = 0.159 [0.079, 0.294] | OpenF1 race control 2023–26 |
| p(VSC becomes SC) | 4/57 = 7.0% [2.8, 16.7] | same |
| Warning before an SC (first sector flag) | median 29 s; 88.7% of SCs have one | same |
| Decision window at deployment | median 67.5 s (SC), 64.3 s (VSC) to the line | laps + race control |
| Value of waiting one lap for an incident | λ s̄ = 0.0186 × 8.985 = 0.167 s vs a median 1.078 s/lap fresh-tyre loss | middle-phase hazard; measured savings |
| Detecting a drop of δ in lap times | n ≥ (2σ/δ)², σ = 0.369 s → 6 laps for 0.3 s | clean-lap residuals |
| Late excess before a green stop | median +0.127 s [0.095, 0.159]; > 1 s in 7.1% | 1,427 dry stints |
| Team-mate share of green passes | 8.5% vs 11.6% adjacency (ratio 0.73) | 3,660 green passes |
| Radio index, median clips per race | 128 (2023) → 30 (2025) | OpenF1 team_radio |
| Rules v2 agreement at neutralisations | SC 78.4%, VSC 81.1% (never-box 51.5% / 79.8%) | 1,321 car-decisions |
Decision checklist for the pit wall
- Before any flag: keep a live answer to "if an SC / VSC came now, do we box?" for each car. The warning is about 30 s; the decision cannot start then.
- At the deployment, check the decision window: is the car more than about 10 s from the pit entry? If not, the call is for next lap, and under a VSC there may not be one.
- Owed stop under SC: box unless the red-flag risk is unusually high (p > 0.44) or track position is worth more than about 10 s.
- Under a VSC: box only on an old set with a stop owed. Discretionary VSC stops are rare in reality for good reason.
- Red flag: change, and use the free stop to fix the strategy (the compound rule, the stop count).
- Never stay out just "hoping for a safety car" unless the fresh-tyre advantage is under about 0.2 s/lap.
- Grade every call against the state it was made in, never against the result.
What's Next
Part II ends here: we can plan a race, price every stop, survive a safety car and run the pit wall as a loop. Part III turns from strategy to performance. Chapter 19 takes a single lap apart, sector by sector and mini-sector by mini-sector, to find exactly where the tenths are gained and lost. Its comparisons will eventually feed the pace inputs that every decide call in this chapter took for granted.