By now you have a car model, a strategy engine and a set of measurement tools. Part IV turns them into
In This Chapter
Part IV — Data Science for F1
By now you have a car model, a strategy engine and a set of measurement tools. Part IV turns them into the three things data science is for: showing what happened, predicting what will happen, and simulating what could happen. It is the shortest part of the book and the one with the most leverage. A good chart changes an argument, a calibrated forecast is worth more than a confident one, and a simulation of 10,000 races shows you the risk that a single clean-race answer hides.
The part is honest about how hard this is. Visualisation is easy to get wrong in ways that look convincing: truncated axes, rainbow colour maps, team colours that half the audience can't tell apart. Prediction has a strong naive baseline, because the pole-sitter wins more often than most people guess, and a leaky feature can make a mediocre model look brilliant. Simulation is only as good as the hazard rates and degradation inputs you feed it, so we feed it the measured ones and test how sensitive the answer is to each.
Chapter roadmap
- F1 Data Visualization The chapter covers speed traces, delta traces, gap charts and track maps. On the Suzuka pole battle, the time delta stays within ±0.05 s for 65.1 % of the lap. Checked for contrast, 6 of 10 team colours in 2025 fall below 3:1 against a white background. The chapter shows how to fix both colour and axis choices so the chart tells the truth.
- Predictive Modeling for F1 This chapter covers race, qualifying and championship forecasts with walk-forward validation. From 2014 to 2026 the pole-sitter won 55.7 % of races, and no model beats "pole wins" on winner picks by a margin that excludes zero. Gradient boosting does improve log loss over the grid baseline (1.304 against 1.439). Leaky features fake about half of a naive model's apparent gain.
- Monte Carlo Race Simulation You build a per-lap race engine with base pace, degradation, fuel, driver noise, safety-car and VSC hazards, a lap-1 shuffle, retirements, traffic and pit loss. You run the Singapore safety-car gamble in full over 10,000 races, study convergence and sensitivity to the hazard inputs, and validate the engine against a real 2026 race.
Chapter 26 also simulates the rest of the 2026 season from the round-21 standings. The output is clearly labelled as a model forecast made at the time of the snapshot, not a result. Readers who come back after Abu Dhabi can score it.
The Box Box modules added here are viz, predict and montecarlo. With montecarlo, the simulator
can answer the question strategists actually ask: not "what is the fastest plan if nothing goes wrong?"
but "which plan holds up best across everything that might happen?"
Why this part matters
Most public F1 analysis stops at description: who was fastest, which stint was longest. Teams live in the world of distributions. They want to know the probability that a two-stop beats a one-stop, and how the answer moves if the safety-car rate is twice what history suggests. Part IV moves you from the first world to the second. It also shows the discipline that keeps a model honest: out-of-sample tests, calibration checks, baselines that are hard to beat, and stated assumptions.
Who reads this part
- 📊 Analytics Track: all of it, Chapters 25–27. Chapter 27 is the bridge to the capstone in Chapter 40.
- 🎰 Betting Track: Chapters 26 and 27. Calibrated probabilities and simulated outcome distributions are what you will compare with market prices in Chapter 38.
- 🏎️ Fan Track: Chapter 27, read without the code. The Singapore safety-car gamble is one of the book's best strategy stories, and the reasoning stands on its own.
- 🔧 Engineering Track and 🎮 Sim Racer Track: not on your core path, but Chapter 25's guidance on speed and delta traces is worth a skim before you publish a telemetry comparison.
You'll get the most from this part if you have read Chapters 12–14 (strategy, the undercut and safety cars) and Chapter 22 (degradation), because the simulator's inputs come from them.