Common Struggles

These are the mistakes students make again and again with this book's data and models. Most of them are also mistakes professionals make, which is why the chapters flag them with ⚠️ Common pitfall callouts. Each entry below says what the mistake looks like, why it happens, how to teach past it, and where the book deals with it.

A good habit for the whole course: when a student's number surprises you, check these in order: definition, filter, sample size, alignment, leakage.

# Struggle Chapters
1 Raw lap times hide tyre degradation 4, 20, 22
2 A degradation number without its fuel correction 4, 12, 22
3 The overtakes table is not a count of passes 35, 29
4 Distance-alignment artefacts in telemetry comparisons 7, 19, 23
5 Differences smaller than the sampling resolution 1, 7, 19, 23
6 Trusting the single-sample maximum of a derived quantity 1, 5
7 Frozen telemetry and other bad laps 2, 19, 23
8 Pit loss, pit-lane time and stationary time used interchangeably 2, 12, 34
9 The race leader counted as "following" 20, 35
10 Leakage in predictive models 26
11 No baseline for a predictive claim 12, 26
12 is_classified read as "finished" 26, 37
13 Grading a strategy call by its outcome 13, 14, 18
14 Calibrating and validating on the same data 3, 11, 22
15 A fitted "effective" parameter treated as a real car property 3, 11, 16
16 In-sample fit mistaken for forecasting skill 22, 11
17 Small samples, no intervals, and remembered anecdotes 14, 15, 21
18 Multiple testing without correction 24, 21
19 Too few Monte Carlo runs, and no common random numbers 27
20 One constant hazard for the whole race 14, 27, 37
21 "It rained" read from the rainfall flag 15, 36
22 Race control's lap number read as the car's lap 14, 18
23 Asking telemetry for channels it doesn't have 2, 7, 23
24 Names, data gaps and quirks of the sources 2, 15, 37

1. Raw lap times hide tyre degradation

What it looks like. A student fits lap time against tyre age within stints and finds that MEDIUM and HARD tyres barely degrade, or even get faster. They conclude the tyres "don't wear".

Why it happens. The car burns fuel every lap and gets lighter, so lap times fall even as the tyres wear. On 3,262 dry-race stints, the raw median slopes are SOFT 0.018, MEDIUM 0.003 and HARD −0.002 s/lap; corrected at the toolkit's default (100 kg × 0.03 s/kg), they are 0.064, 0.051 and 0.048 s/lap. The fuel term is most of the effect.

Teaching remedy. Start with Chapter 20's hook: in 63.7% of driver-races, the fastest clean lap comes in the final quarter of the race, on the oldest tyres. Ask the class to explain it before teaching fuel correction. Then have students plot one stint raw and corrected side by side. This is a threshold concept ("lap time = base pace + fuel + tyre-age effects"); give it a full session.

In the book: Chapter 4, Chapter 20, Chapter 22.

2. A degradation number without its fuel correction

What it looks like. "The MEDIUM degrades at 0.05 s/lap." Which correction? The default assumption, the race's own data-driven slope, or none?

Why it happens. There are three reasonable answers, and they differ: at the 2026 Barcelona GP the median MEDIUM slope was 0.137 raw, 0.182 with the default correction and 0.196 with the race's own data-driven correction.

Teaching remedy. Make "which fuel correction?" a required line in every lab and milestone that reports degradation. In grading, a correct number without its correction loses the definitions mark. Show that the default and data-driven corrections agree closely in pooled data (within 0.001–0.004 s/lap), so the real danger is reporting raw slopes, not choosing between the two corrections.

In the book: Chapters 4, 12 and 22.

3. The overtakes table is not a count of passes

What it looks like. "There were 253 overtakes at the average race."

Why it happens. OpenF1's overtakes table records position changes. It averages about 253 records per race, but only about 40 (≈16%) are green-flag passes on track; the rest come from pit-stop cycles, safety-car periods, retirements and timing glitches.

Teaching remedy. Give students one race's raw overtakes table and ask them to classify 20 rows by hand using lap status and pit data. They find the pit-cycle rows quickly. Then introduce the book's filtered green-pass count (40.9 / 35.0 / 32.8 / 53.9 per race for 2023–26). A good general lesson: always ask what a table counts.

In the book: Chapter 35, Chapter 29.

4. Distance-alignment artefacts in telemetry comparisons

What it looks like. A delta-time trace or a brake-point comparison shows one driver consistently braking later or gaining in one place, and the student builds a story around it.

Why it happens. Distance is integrated from speed, and two laps' integrated distances drift apart. With uniform rescaling, P2 appears to brake later than the pole-sitter in 73.4% of stops; aligned on the location-based track line, the share is 35.5% (21–53%), not significant. At Anchor A, the trough of the delta trace is −0.258 s with uniform rescaling but −0.175 s when anchored at the official sector lines.

Teaching remedy. Have students run the same comparison both ways and see the "finding" disappear. Rule for the course: align on the location track line where it exists (qualifying sessions), anchor at sector lines otherwise, and treat integrated-distance differences under about 0.05 s or 20 m as noise.

In the book: Chapter 7, Chapter 19, Chapter 23.

5. Differences smaller than the sampling resolution

What it looks like. "Norris got on the throttle 15 m earlier through the final chicane."

Why it happens. OpenF1 car data arrive at about 3.7 Hz, a median 0.24 s apart, which is about 22 m at 330 km/h. A Monte Carlo of the sampling in Chapter 7 shows that two identical stops differ by more than 10 m in 39% of pairs and by more than 20 m in 9.4%.

Teaching remedy. Ask for the resolution alongside every distance claim. Make students compute "how many samples is that?" A 15 m difference at 100 km/h is about half a second of sampling. Reward answers that say "not resolvable with this data".

In the book: Chapters 1, 7, 19, 23.

6. Trusting the single-sample maximum of a derived quantity

What it looks like. "The car pulled 7.9 g at Losail."

Why it happens. There is no g-sensor in the free data. Lateral g is derived from speed and the heading change of a position-based track line with timestamp jitter; maxima pick out the noisiest samples. The book treats lateral estimates above about 6 g as unreliable (2025 Losail 7.90, Jeddah 7.85).

Teaching remedy. Teach smoothed, held peaks (the book uses a peak held for 0.5 s for braking and a 1-second average for lateral g) and envelope percentiles instead of maxima. Ask "is this physically plausible?" for every extreme value, and compare against published figures that measured the same thing.

In the book: Chapter 1, Chapter 5.

7. Frozen telemetry and other bad laps

What it looks like. A pole lap that integrates to 7% short, a flat speed trace, an impossible acceleration between two samples.

Why it happens. Sometimes the feed repeats its last values while the car keeps moving. On each driver's fastest 2026 qualifying lap, 9.4% contain a frozen stretch longer than 2 s; the 2026 Suzuka pole lap is frozen for its final 24.7 s. Bad lap-boundary samples can also imply accelerations above 8 g.

Teaching remedy. Make a lap-quality check (frozen stretches, speed jumps, integrated distance vs official length) the first line of every telemetry lab. Show the 2026 Suzuka lap and ask students to spot the problem before telling them.

In the book: Chapter 2, Chapter 19, Chapter 23.

8. Pit loss, pit-lane time and stationary time used interchangeably

What it looks like. A strategy model that uses the 2-second stationary time as the cost of a stop, or the pit-lane time as the race time lost.

Why it happens. There are three clocks plus the cost. At Spa: stationary 3.15 s, transit 20.890 s, pit-lane time 24.076 s, but a pit loss of 19.274 s, because the lane replaces a stretch of track the car would have driven anyway. The pooled green-flag pit loss is 22.512 s; under a safety car it is 12.722 s, under a VSC 15.671 s.

Teaching remedy. Draw the pit lane beside the track on the board and mark the three clocks; then compute the pit loss from in-lap and out-lap excess. Insist that strategy models use pit loss, with stationary-time variability added as risk.

In the book: Chapter 2, Chapter 12, Chapter 34.

9. The race leader counted as "following"

What it looks like. A "following within 1 s" analysis whose effect is too small.

Why it happens. OpenF1 gives the race leader an interval of 0.0 on every lap (100% of 4,406 leader laps), so a filter like interval < 1 silently includes the leader. Excluding the leader, following within 1 s adds +14.0 km/h at the speed trap in 2023–25 (+8.5 km/h in 2026); including the leader gave a smaller figure.

Teaching remedy. Teach students to tabulate a variable's distribution before filtering on it. A spike at exactly 0.0 should prompt a question. Make "interval > 0" part of every following filter.

In the book: Chapter 20, Chapter 35.

10. Leakage in predictive models

What it looks like. A race-outcome model that looks excellent in cross-validation and disappoints on the next race.

Why it happens. Features that use information from after the race (a final championship rank, a team gap averaged over the whole season) or random splits that put races from the same weekend or season on both sides. In Chapter 26, two leaky features improved log loss by 0.062, about 46% of the model's honest gain over the grid baseline.

Teaching remedy. Require walk-forward validation (train on seasons before Y, test on Y). Have students deliberately add a leaky feature, watch the "improvement", and then explain it. Ask of every feature: "would I have known this on Saturday night?"

In the book: Chapter 26.

11. No baseline for a predictive claim

What it looks like. "My model picks the winner 58% of the time."

Why it happens. Without a baseline the number means nothing. Pole wins 55.7% of races in 2014–26; in Chapter 26, no model beats "pole wins" on top-1 accuracy by a margin that excludes zero, although the better ones do improve the probabilities (log loss 1.292–1.304 against 1.439 for the grid baseline). In Chapter 12, the stop-count model's 75.3% looks good only beside the "always one stop" rule's 53.4%.

Teaching remedy. Every predictive result in the course must sit beside a naive baseline and be scored with a proper scoring rule (Brier, log loss), with a paired bootstrap interval for the difference.

In the book: Chapter 12, Chapter 26.

12. is_classified read as "finished"

What it looks like. A championship simulation that gives a driver an implausible title probability, or reliability numbers that undercount retirements.

Why it happens. Jolpica's is_classified is True for cars that retired late but covered enough distance to be classified. Using it as "finished" once gave a 2025 title simulation 97.8% for one driver with five races left. In 2026, 10 of 83 retirements were still classified.

Teaching remedy. Show the status text of a few classified retirements. Use finished, derived from the status text, for reliability work, and teach students to read the documentation of every boolean before trusting it.

In the book: Chapter 26, Chapter 37.

13. Grading a strategy call by its outcome

What it looks like. "The team got it wrong: they pitted and then the safety car came out."

Why it happens. Outcomes are vivid; probabilities are not. But a 24% undercut can succeed and a good call can be ruined by a safety car nobody could foresee.

Teaching remedy. Use the 📋 Call the pit stop tasks: students commit to a decision and a reason before opening the reveal, and are graded on the reasoning. Teach expected value and regret with Chapter 18's safety-car example: boxing for an owed stop is worth about +6.2 s on average even though a red flag (probability about 0.16) would make it a waste.

In the book: Chapter 13, Chapter 14, Chapter 18.

14. Calibrating and validating on the same data

What it looks like. A lap simulator, drag estimate or degradation model reported with an impressively small error, measured on the laps used to tune it.

Why it happens. It is the easiest check to run. The calibrated lap simulator's in-sample error is 1.16 s (2025); out of sample it is 1.66 s.

Teaching remedy. Require a held-out set for every calibration: alternate rounds, a later season, or a different measurement (calibrate drag on acceleration, test on top speed). Make students report both numbers side by side.

In the book: Chapter 3, Chapter 11, Chapter 22.

15. A fitted "effective" parameter treated as a real car property

What it looks like. "The 2025 car's lift area is 12.5 m²." "A straight-line fit shows the car has 467 kW and a drag area of 0.85 m²." (Chapter 16 fits exactly those values and labels them as fitted, not real.)

Why it happens. Fitted coefficients absorb everything the model leaves out. When two parameters are nearly collinear, a free fit returns nonsense: fitting power and drag together gives 1,556 kW and a negative drag area.

Teaching remedy. Teach the 🧪 Illustrative model marker as a reading habit: any number from a model with assumed parameters is only as good as the assumptions. Show the collinearity example, then fix one parameter from a source. Encourage students to compare ratios (2026 vs 2025 aero term: 0.70) rather than absolute fitted values.

In the book: Chapter 3, Chapter 11, Chapter 16.

16. In-sample fit mistaken for forecasting skill

What it looks like. A student switches to a quadratic degradation model because it fits better.

Why it happens. A quadratic wins on BIC in 35.5% of long stints, but forecasting the last third of a stint it is worse than a straight line (mean absolute error 0.855 s vs 0.526 s), and better in only 27.7% of stints.

Teaching remedy. Run the forecasting comparison in class. The general lesson ("the model that fits best is not the model that predicts best") is worth more than the specific one.

In the book: Chapter 22, Chapter 11.

17. Small samples, no intervals, and remembered anecdotes

What it looks like. "Singapore always has a safety car." "He's a rain master." "Team X's stops are the fastest."

Why it happens. Memory keeps the dramatic cases. Singapore had a safety car in 1 of 4 races in 2023–26. Wet-weather driver effects rest on a handful of sessions per driver, and the ranking of drivers in wet races and in wet qualifying barely agree (Spearman −0.07).

Teaching remedy. Make n and an interval compulsory. Teach Wilson intervals for proportions early (they behave well with small n) and have students compute one for "1 of 4". When a student cites a reputation, ask for the races where it didn't show.

In the book: Chapter 14, Chapter 15, Chapter 21.

18. Multiple testing without correction

What it looks like. "Ten teams made significant mid-season improvements."

Why it happens. Testing 41 team-seasons at 5% gives about two false positives by chance. Chapter 24 finds 10 change points, but none survives a Benjamini–Hochberg correction; the typical upgrade is small relative to the noise (residual SD 0.458 percentage points).

Teaching remedy. Show the binomial calculation: 10 hits are far more than chance overall (so some changes are real), yet no single one can be certified. Teach students to report both statements, and to compute the power of their test before claiming a null.

In the book: Chapter 24, Chapter 21.

19. Too few Monte Carlo runs, and no common random numbers

What it looks like. Two strategies compared with 500 simulated races each, on independent draws, and a winner declared on a difference of a few tenths.

Why it happens. The per-race spread of strategy differences is large (13.12 s for two-stop vs one-stop at Singapore). Resolving ±0.25 s takes about 10,600 races on that comparison. Running both strategies on independent draws inflates the noise further; common random numbers cut the standard error from 3.311 s to 0.084 s in one of the chapter's comparisons.

Teaching remedy. Make students compute the standard error and the runs needed before running the simulation, and require paired (common random number) comparisons.

In the book: Chapter 27.

20. One constant hazard for the whole race

What it looks like. A simulator that draws safety cars or retirements with the same probability on every lap.

Why it happens. It is simple, and it can even reproduce the race-level rate: a constant 0.0115 per lap gives a 48.3% chance of a safety car in 57 laps, against 48.4% observed. But incidents are 8.8 times likelier on lap 1, and in 2022–25 retirements were 11.6 times likelier on lap 1 than later. When a safety car falls is what decides strategy.

Teaching remedy. Have students compare the timing distribution of safety cars from a constant-hazard simulation with the observed one. Teach phase-specific hazards (lap 1, laps 2–10, middle, final laps).

In the book: Chapter 14, Chapter 27, Chapter 37.

21. "It rained" read from the rainfall flag

What it looks like. A race classified as wet because the weather feed's rainfall flag was set, or dry because it wasn't.

Why it happens. The flag and the track disagree. At the 2026 São Paulo GP, only 2% of laps run mostly on wet tyres were rain-flagged; at the 2024 British GP, 98% were. The book defines a wet race by tyres: 11 of 91 Grands Prix in 2023–26 had any intermediate or full-wet lap.

Teaching remedy. Have students cross-tabulate the rain flag against tyre choice for a few races. Define "wet" by what the cars did, and say which definition you used.

In the book: Chapter 15, Chapter 36.

22. Race control's lap number read as the car's lap

What it looks like. A safety car assigned to the wrong lap for a car several places back, so the analysis says it pitted "before" the safety car.

Why it happens. Race control's lap number follows the leader. A car a lap down, or simply far behind on the road, is on a different lap when the message appears. When a safety car is called, the median car is still 67.5 s from the line, so each car meets the pit-or-stay decision at a different moment, and some on a different lap.

Teaching remedy. Teach students to work in timestamps, not lap numbers, when joining race control to laps, and to compute each car's position on the road when a message appears.

In the book: Chapter 14, Chapter 18.

23. Asking telemetry for channels it doesn't have

What it looks like. "Let's look at brake pressure / steering angle / tyre temperatures / battery charge."

Why it happens. Teams have these channels; the free data don't. OpenF1 car data has speed, rpm, gear, throttle, a brake signal that is only on or off, and DRS. There is no steering angle, brake pressure, tyre or brake temperature, ride height, fuel load, battery state or g-sensor. Distance is integrated and acceleration differentiated.

Teaching remedy. Hand out the channel list in the first telemetry lab. Turn the gap into an exercise: infer what you can (lateral g from position, energy deployment from clipping), label it as an inference, and say what it cannot show.

In the book: Chapter 2, Chapter 7, Chapter 23.

24. Names, data gaps and quirks of the sources

What it looks like. A join that silently drops a race; a team's history split in two by a rebrand; a 2026 round described with the wrong name; a race with impossible stint data.

Why it happens. Real sources have quirks. Teams rebrand (AlphaTauri → RB → Racing Bulls; Sauber → Audi). The 2026 calendar contains a round named "Bahrain Grand Prix in Malaysia" in Jolpica. The 2025 Miami GP is missing laps 2–24 in OpenF1. Circuit identifiers differ between reference tables and the toolkit for six circuits. OpenF1 and Jolpica time lap 1 differently (a median 0.389 s apart).

Teaching remedy. Make a coverage check against a second source part of every data milestone. Take names from the data, never from memory, and keep a running "known quirks" list on the course site that students add to when they find something.

In the book: Chapter 2, Chapter 15, Chapter 37, Appendix J.


Struggles that are not about data

A few difficulties come from the subject rather than the data.

  • Fans without the physics. Students who love the sport may resist the friction circle. Start from the broadcast: the 📺 On the broadcast callouts turn a commentator's phrase into a quantity.
  • Engineers without the statistics. Engineering students may treat a single fitted value as truth. Pair each physics lab with a resampling exercise.
  • Data scientists without the sport. Analysts may model the timing sheet without understanding the rules (two compounds required in dry races, tyre allocations, how a safety car works). Point them to Appendix G and Appendix K early, and mix teams across tracks.
  • Opinions about drivers. Driver-comparison weeks can turn into fan arguments. Anchor D's verdict ("leans one way, not fully settled") is a model of how to disagree with evidence. Keep discussion on public results.

See also: Instructor Guide Overview · Chapter notes · Project rubrics