Case Study 2 — Three Famous Wet Races Before 2023, Read from Lap Times Alone

Setup

The 2016 Brazilian GP, the 2021 Hungarian GP and the 2021 Belgian GP are three of the most discussed wet races of the modern era. They also predate OpenF1, so for them the book's free data are Jolpica-F1 lap times, running positions, pit-lane times and results. There are no compounds, no flags and no weather.

This case study asks a methodological question. How much of each race can you reconstruct from lap times alone, and where must you fall back on sourced facts? Every statement about tyres, flags or incidents below comes from data/reference/notable_races.md (formula1.com race reports and results, plus labelled press sources). Everything else is computed by code/case_study_02.py and code/06_historic_brazil_2016.py.

The data

=== 2016 Brazil (round 20): 71 laps timed, 21 drivers; 62 pit-stop rows
  field-median lap: min 87.392 s, max 152.223 s
  pit-lane 'stops' longer than 120 s (red-flag suspensions recorded as stops): {20.0: 18, 28.0: 18} (median 1747 s)
  detector flags 11 of 68 laps as neutralised

=== 2021 Hungary (round 11): 70 laps timed, 16 drivers; 52 pit-stop rows
  field-median lap: min 82.050 s, max 127.282 s
  pit-lane 'stops' longer than 120 s (red-flag suspensions recorded as stops): {2.0: 15} (median 1456 s)
  detector flags 1 of 67 laps as neutralised

=== 2021 Belgium (round 12): 1 laps timed, 20 drivers; 0 pit-stop rows
  field-median lap: min 225.449 s, max 225.449 s
  detector flags 0 of 1 laps as neutralised

Each race already has a fingerprint in these few lines. Brazil 2016 has two blocks of 18 pit-lane "stops" lasting tens of minutes, on laps 20 and 28. Hungary 2021 has one such block, on lap 2. Belgium 2021 has one timed lap and no pit stops at all.

Those long "stops" are not stops. They are red-flag suspensions, recorded by Jolpica as pit-lane time because the cars sat in the pit lane. The fact sheet confirms both of Brazil's red flags (the first on lap 20 after Räikkönen's crash, the second after 8 more safety-car laps) and Hungary's red flag after the lap-1 pile-up. In pre-2023 Jolpica data, a red flag looks like the whole field making a 20-to-30-minute pit stop on the same lap. That is a usable detector in its own right.

Analysis

What a wet race looks like in lap times

Field-median lap profiles of the three races

📊 Figure (described): The field-median lap of each race (pit in- and out-laps removed), as a percentage above its own fast laps (the 5th-percentile median lap). Brazil 2016 shows a long, high plateau: laps 2–7 behind the safety car, a short fast spell on laps 8–12, a second slow plateau to lap 31, fast running from lap 32 to 47, and a final slow spell on laps 48–55. Hungary 2021 is slow only for its opening laps and then flat: a wet start and a dry race. Belgium 2021 is a single point, one lap behind the safety car.

The shape tells you the kind of race even without a single flag. A neutralisation produces a sharp step up and down, with every car slowed by a similar amount. Rain produces a ramp: lap times rise as the water builds and fall as it clears, and the field spreads out, because some drivers and cars cope better than others. Brazil 2016 has both, which is exactly why the toolkit's lap-time detector struggles there. It flags 11 laps (1, 5, 20 and 48–55), but the fact sheet says the first 7 laps ran behind the safety car. The detector's rain guard compares each lap with a rolling local median, so a long slow spell raises its own reference and hides itself.

2016 Brazil: Verstappen's climb

Verstappen's pit stops (Jolpica: lap = in-lap; duration = pit-lane time; compounds NOT recorded):
 stop  lap  duration_s
    1 13.0      24.186
    2 20.0    2009.643
    3 28.0    1481.433
    4 43.0      24.435
    5 54.0      24.041
Lowest position after lap 54: P14 (lap 55); places gained from then to the flag: 11
Laps 58-70, median lap (s): VER 86.249, HAM 86.468, ROS 87.014, PER 87.859, VET 88.073
VER faster than HAM on 6 of 13 laps; median VER - HAM +0.208 s; VER - field median -1.266 s

Remove the two red-flag rows and Verstappen made three real stops: laps 13, 43 and 54. Jolpica cannot say what he fitted. The fact sheet can: intermediates on lap 43 and full wets on lap 54 (formula1.com). From 14th in Jolpica's running order after lap 55, he finished third. Over laps 58–70 he lapped 1.266 s per lap faster than the field median. The comparison with the winner needs care. His median lap (86.249 s) was faster than Hamilton's (86.468 s), but the median of the lap-by-lap differences was +0.208 s in Hamilton's favour, and Verstappen was faster on only 6 of the 13 laps. Two summaries of the same laps point in opposite directions, so the honest statement is: level with the winner, and much faster than everyone else.

Notice too what the data imply about the lap-54 stop. If the full-wet change came on lap 54 and the field-median laps dropped back to about 90 s by lap 56, the full wets were fitted just as the track was about to dry. That is a timing problem of exactly the Chapter 15 kind. It cost him track position (P7 → P14), yet his pace afterwards was the best in the field. From lap times alone we cannot separate how much of that pace was driver, car and tyre. We can only say the data are consistent with a very fast car-driver package in the conditions of those laps.

2021 Hungary: a crossover the whole field took, except one car

Hungary 2021: running positions on laps 1-12

📊 Figure (described): Running positions from Jolpica for Hamilton, Ocon, Vettel, Alonso, Sainz and Verstappen over the first 12 laps. Lap 3, the lap that contains the red-flag suspension, shows Hamilton in 13th, which is a timing artefact (his lap 3 is the longest, at 1,606.9 s). On lap 4 he is first, and on lap 5 he is 14th. The others hold their places from lap 4 onward, with Ocon leading.

The fact sheet describes the moment. Pre-race rain meant the whole field started on intermediates, and the track dried during the stoppage. At the restart, Mercedes kept Hamilton out on intermediates while the other 14 cars pitted for mediums, so Hamilton started alone on the grid. He pitted a lap later and rejoined last.

The Jolpica rows fit it:

  HAM: P1 (lap 1), P13 (lap 3), P1 (lap 4), P14 (lap 5), P13 (lap 10); laps 3-5: 1606.9, 109.7, 103.2
  OCO: P2 (lap 1), P1 (lap 3), P2 (lap 4), P1 (lap 5), P1 (lap 10); laps 3-5: 1590.8, 123.7, 84.6
  Hamilton's pit rows: [{'stop': 1, 'lap': 2.0, 'duration_s': 1449.259}, {'stop': 2, 'lap': 4.0, ...}]
  cars with a pit row on lap 3 (the restart lap): 13; on lap 4: 1
  HAM vs OCO, median lap 6-70: 81.725 vs 82.770; HAM ahead of ALO from lap 40
  final gap: OCO 7483.199 s, HAM +2.736 s

Thirteen cars have a pit row on lap 3 and Hamilton alone on lap 4. That is the whole field changing class from intermediates to slicks on the same lap, with one exception. In Chapter 15's terms, this was a crossover in which the field was unanimous that the track had passed the slick/intermediate tie, and one car tested the opposite view for one lap. On lap 4, Hamilton's lap on intermediates took 109.7 s. On lap 5, his out-lap on slicks took 103.2 s; Ocon, on slicks and on a flying lap, did 84.6 s. Comparing one car's in-lap and out-lap with flying laps exaggerates the gap, but even so, the intermediate was clearly the wrong tyre by lap 4.

What did the decision cost? Over laps 6–70, Hamilton's median lap was 1.045 s faster than the race winner Ocon's (81.725 vs 82.770 s). Jolpica's running order puts him ahead of Alonso at times from lap 40, but those are pit-cycle swaps: the fact sheet dates the on-track pass to lap 65, after Alonso had held him off for many laps. He finished 2.736 s behind Ocon. Vettel crossed the line second but was later disqualified over a fuel-sample issue, so Hamilton was classified second (fact sheet). Read naively, a 1 s per lap pace advantage over 65 laps should have won by a minute. It didn't, because of track position at a circuit where passing is hard, and because his stops and strategy differed from Ocon's: Jolpica lists Hamilton's later stops on laps 19 and 47. The lap-4 decision put him last; the next 65 laps nearly undid it.

2021 Belgium: the race that was one lap

Belgium 2021: the one counted lap

📊 Figure (described): Lap-1 time behind the winner for each of the 20 classified drivers, in classified order. Verstappen's 207.071 s lap is the reference; Russell was 1.995 s behind and Pérez, last, 38.2 s behind. Every car ran this lap behind the safety car.

 position abbreviation      team_name  lap_time_s
      1.0          VER       Red Bull     207.071
      2.0          RUS       Williams     209.066
      3.0          HAM       Mercedes     209.672
  lap-1 spread first to last: 38.205 s; VER -> RUS 1.995 s

Jolpica holds exactly one race lap for the 2021 Belgian GP: Verstappen's 207.071 s, which matches the official classification of 1 lap, 3:27.071 (formula1.com). The fact sheet supplies the rest. Constant rain and poor visibility delayed the start several times. The laps that were run behind the safety car were followed by a red flag. Racing resumed at 18:17 local time, still behind the safety car, and was red-flagged again. The result was taken by countback at the end of lap 1, with half points awarded: Verstappen 12.5, Russell 9 (his first podium), Hamilton 7.5. The consequence was a rule change: from 2022, no points unless the leader completes 2 laps without a safety car or VSC, with scaled points below 75% distance.

There is no tyre strategy to analyse here, and that is the point. When conditions pass the full-wet tyre's limit, which in practice means visibility in the spray as much as grip, the decision leaves the pit wall. Chapter 15's count of only 84 full-wet laps in four seasons of Grands Prix is the modern version of this story: the full wet's operating range overlaps heavily with "the race is neutralised".

What it means (and doesn't)

What it means. Lap times alone recover a surprising amount: where the race was slow, when the field pitted, red flags (as giant pit stops), the order of the field, and pace comparisons on clean laps. Combined with a sourced fact sheet, that is enough to show the Chapter 15 mechanisms at work in all three races: a mistimed change of class (Verstappen's lap-54 full wets in Brazil, Hamilton's lap-4 intermediates in Hungary), the field moving together, and the full wet's narrow window.

What it doesn't. We cannot measure a single crossover in these races, because we never know who was on which tyre except where the fact sheet tells us. We cannot separate safety-car laps from rain laps with any confidence. The detector misses 5 of Brazil's 7 opening safety-car laps, and Jolpica's lap-3 positions in Hungary are an artefact. And nothing here supports a claim about why a team made a decision. We can only describe what the timing data are consistent with.

Discussion questions

  1. The detector caught Brazil 2016's lap 20 red flag and the slow spell of laps 48–55, but missed most of the opening safety car. Propose a rule that uses Jolpica's giant pit-stop rows to separate red flags from rain spells.
  2. Hamilton's laps 6–70 were 1.045 s per lap faster than Ocon's in median terms. List every reason why that does not mean the lap-4 decision cost him a minute.
  3. Verstappen's Brazil 2016 pace on laps 58–70 is level with Hamilton's by one summary and slightly behind by another. Which summary would you put in a headline, and what caveat must come with it?
  4. If Spa 2021 had happened in 2026, what would the current points rules have awarded?

Your turn

Pick another pre-2023 race that the book's weather table does not cover. A natural choice is the 2022 Japanese GP, which has a fact sheet in notable_races.md (rain, a red flag on lap 2, 28 of 53 laps). Run the same three diagnostics: the field-median profile, giant pit-lane rows, and the detector's flags. Write a 300-word reconstruction of the race that separates what the lap times show from what you had to take from the fact sheet. Then test one claim from the fact sheet against the data.