Instructor Guide Overview

This guide is for anyone teaching from Formula One Racing and Analytics: a university course, a bootcamp module, a club workshop or a reading group. It explains how the book is built, offers three complete course designs, and collects the assessments, rubrics and teaching notes you need to run them.

The book has 40 chapters in seven parts. Every chapter carries an index.md, exercises, a quiz, two case studies, key takeaways, further reading, a code/ folder and the charts its scripts produce. That is enough material for two or three different courses. You do not have to use all of it, and you should not try.

What is in this guide

Page What it is for
This overview Philosophy, course designs, prerequisites, setup, assessment, the project thread
Syllabus: 15-week analytics course A data-science course built on the 📊 Analytics track
Syllabus: 15-week engineering course A motorsport-engineering course built on the 🔧 Engineering track
Syllabus: 10-week fan seminar A low-code seminar built on the 🏎️ Fan track
Common Struggles Pitfalls students hit again and again, with a teaching remedy for each
Chapter notes Teaching notes for each of the 40 chapters
Discussion guides Seminar questions for each of the 40 chapters
Midterm exam 30 questions with answers and rubrics
Final exam 33 questions with answers and rubrics
Project rubrics Rubrics for the Box Box milestones, the capstone and the fan-seminar project

1. Course philosophy

Free data, so every student can do the real thing

Most sports-analytics courses hit the same wall in week two: the interesting data are proprietary, so students analyse toy datasets or reproduce someone else's charts. This book was written to remove that wall. Every lap time, gap, degradation rate, pit loss and probability in it comes from timing data that anyone can download free of charge, and every chart can be rebuilt by running the script beside it.

Two free sources carry the book:

  • OpenF1 (openf1.org) covers 2023 to round 21 of 2026 (the Las Vegas Grand Prix, 22 November 2026): laps and sectors, stints and compounds, pit-lane times, race control, weather, positions, intervals, results and car telemetry at about 3.7 Hz.
  • Jolpica-F1, the community successor to the Ergast API, covers 1950 to 2026 round 21: results and grids from 1950, qualifying times from 1994, race lap times from 1996 and pit-lane durations from 2011.

The book's frozen data snapshot holds 268,783 OpenF1 laps in 470 sessions, 150,184 of which pass the book's clean-lap rule. That is a genuine dataset, large enough to make students wrestle with missing values, timing glitches and definitions, and small enough to run on a laptop.

FastF1, the best-known Python library, now needs an F1 TV subscription for its timing source. The book teaches it as an optional route (Chapter 2, Appendix J), but no assignment in this guide requires it. Please keep it that way in your own assignments: a course that needs a paid subscription excludes the students this book was written for.

Real numbers, including the inconvenient ones

The book never quotes a statistic from memory. Where the popular story and the data disagree, the book tells the data's story, and those disagreements are some of the best teaching material in it:

  • The safety-car gamble at Singapore. Across 10,000 simulated races with the measured hazard, a planned two-stop is 10.1 s slower on average and better in only 18.9% of runs. The robust answer is a flexible one-stop that takes a second stop only under a safety car or VSC, gaining 0.84 s on average. The popular "65% safety-car probability" turns out to be unsupported.
  • Degradation hides in raw lap times. Without a fuel correction, the median MEDIUM and HARD stint slopes are about zero (0.003 and −0.002 s/lap). Corrected at the book's default assumption, they are 0.051 and 0.048 s/lap.
  • Pit loss under a safety car is a median 12.722 s, not the "8 s" often quoted.
  • No car in the book's sample stopped from 320 km/h in under 100 m or 2 s. Of 230 big stops, the median took 146 m and 3.19 s.
  • The degradation model that calls the pit stop (Anchor B, the 2025 Mexico City GP) is off by 2 laps with race-opening inputs and 7 laps with practice inputs. The cost curve is flat, and the inputs matter more than the optimiser.

Teach these as results, not as embarrassments. Students learn more from a model that is honestly wrong by seven laps than from one that is suspiciously perfect.

Physics first

Every performance trait is explained through physics before it is measured. Downforce raises the normal force, which raises the friction limit, which raises the cornering speed. A fan who cannot do calculus should finish each chapter knowing why; an engineering student should finish able to build the model. Where a model needs car parameters that teams do not publish (drag area, lift area, tyre coefficients, energy maps), the book uses stated assumptions marked 🧪 Illustrative model and, where it can, calibrates them against real telemetry. Teach students to read that marker as "this number is only as good as its assumptions".

Strategy is decision science

Race strategy is optimisation under uncertainty with an adversary. The book always shows the expected value, the distribution and the robust choice, not just the clean-race answer. Assessment in this guide follows suit: students are graded on the quality of a decision given what was known, never on whether the race happened to reward it.

The three threshold concepts

The book names three ideas that, once they click, change how students see everything that follows. Plan your course so that each gets a full session and returns later.

Threshold concept Introduced Returns in
Grip is a budget: braking, cornering and accelerating share one friction circle Chapter 1 Ch 5 (combined slip), Ch 7 (braking), Ch 11 (lap simulation), Ch 23 (telemetry)
Lap time = base pace + fuel + tyre-age effects Chapter 4 Ch 20 (fuel correction), Ch 22 (degradation modelling), Ch 36 (track temperature)
Strategy minimises total race time, not lap time Chapter 12 Ch 13 (undercut), Ch 14 (safety cars), Ch 27 (Monte Carlo), Ch 40 (capstone)

The four anchor examples

Four worked examples recur across the book. They make good spines for a course because students meet each one several times, at increasing depth.

Anchor Introduced Reused in What students learn
A: the speed trace that shows where the tenths are (2025 Japanese GP qualifying, Verstappen 1:26.983 vs Norris 1:26.995) Ch 19 Ch 1, 9, 23, 25 Distance alignment, sampling resolution, why "where he won it" is a trap
B: the degradation model that calls the pit stop (2025 Mexico City GP) Ch 22 Ch 12, 13, 27, 40 Fuel correction, flat cost curves, input sensitivity
C: the safety-car gamble (Singapore) Ch 14 Ch 27, 36, 40 Hazard rates, Monte Carlo, robust vs clean-race optima
D: the teammate chain (Hamilton vs Verstappen through shared teammates) Ch 21 Ch 26, 32 Network estimation, bootstrap intervals, honest verdicts

2. How to use the book in courses

The five learning paths

The book defines five fixed routes. The three syllabi in this guide use the first three; the other two make good electives or independent-study tracks.

Track Chapters Suits
🏎️ Fan 1, 3, 4, 6–10, 12–18, 19, 21, 28–29, 32–35, plus 22 and 27 read without the code General-education seminars, first-year seminars, adult education
🔧 Engineering 1–11, then 12, 20, 22, 23, 28–30 Mechanical/automotive engineering, Formula Student teams
📊 Analytics 1–2, 12–14, 19–27, 34–37, 40 Data science, statistics, sports analytics
🎮 Sim Racer 1, 3, 4, 5, 7–11, 16, 17, 19, 23 Esports programmes, independent study
🎰 Betting 1–2, 12–14, 16, 19–22, 26–27, 36–38 Probability and forecasting electives

Chapters 31 (the cost cap) and 39 (other motorsport) sit on no fixed track. Chapter 31 works well in a sports-economics or operations-research unit; Chapter 39 is a natural closing week for any course whose students follow other series.

Three ready-made courses

Course Length Code Project Exams
Analytics 15 weeks Heavy: weekly labs Box Box, five milestones + capstone Midterm Parts A + C; final Parts A + B
Engineering 15 weeks Heavy: physics models and telemetry Box Box physics stack, five milestones + capstone Midterm Parts A + B; final Parts A + C
Fan seminar 10 weeks Low: run scripts, change one parameter "Explain a Grand Prix" race report Take-home quizzes drawn from the exams' fan-friendly questions

Other ways to use the book

  • A module inside an existing statistics course. Chapters 20–22 (fuel correction, driver comparison, degradation modelling) make a three-week unit on confounding, mixed models and honest uncertainty. Chapter 26 is a self-contained unit on prediction, walk-forward validation and leakage.
  • A simulation unit. Chapters 14 and 27 teach hazard rates, Monte Carlo, convergence and common random numbers on a problem students care about.
  • A data-engineering unit. Chapter 2 and Appendix J walk through a real pipeline from API to tidy tables, including the cleaning funnel, cross-source joins and the bugs found along the way.
  • A Formula Student team's reading list. Chapters 1, 3, 5, 7, 8 and 11, with the lap simulator as a team project.
  • A reading group. One chapter a week, discussion guide in hand, no code at all.

A note on the 2026 season

The snapshot ends at round 21 of 2026. Qatar (round 22) and Abu Dhabi (round 23) are not in the data, so any 2026 season total means "after 21 of 23 rounds". The drivers' title was already settled (Andrea Kimi Antonelli, Mercedes, clinched it at the Mexico City GP, round 19), and so was the constructors' title (after round 21, Mercedes led by 149 points with 86 still available).

That gap is a teaching opportunity: the races that have happened since the snapshot are a ready-made out-of-sample test. Students who build a forecast in Chapter 26 or 27 can score it against races the model never saw.


3. Prerequisites

Track Mathematics Programming Motorsport knowledge
🏎️ Fan Arithmetic, percentages, reading a chart None required; running a script is a bonus None; Chapter 1 starts from zero
🔧 Engineering First-year calculus and mechanics (forces, energy, F = ma), some ODEs helps for Ch 5 and 11 Basic Python; Ch 1–2 teach the rest None
📊 Analytics Introductory statistics (regression, confidence intervals); probability for Ch 14, 26, 27 Python with pandas, or willingness to learn it fast with Appendix A None

Chapters 1 and 2 teach Python from zero. From Part II onwards the book assumes Chapter 2. If many of your students are new to pandas, schedule Appendix A alongside the first two weeks and hold an extra lab.

Students do not need to be F1 fans. In practice the course works best with a mix: fans ask "but why did they pit?", and the engineers and data scientists have to answer.


4. Setup and technical support

What students need

  • Python 3.11 or later.
  • The packages in requirements.txt: pandas, NumPy, SciPy, statsmodels, scikit-learn, Matplotlib, seaborn, Plotly, PyArrow and pytest. FastF1 is listed as optional.
  • The book's folder, including data/processed/ (the tidy tables every script reads) and data/reference/ (sourced tables: regulations, tyres, the cost cap, records, business figures).

From the book's root folder:

pip install -r requirements.txt     # the scientific stack (FastF1 is listed as optional)
python -m pytest toolkit/tests -q   # the toolkit's tests, run against the processed data

Then a first script, run from its chapter folder:

cd part-01-physics/chapter-01-what-makes-an-f1-car-fast
python code/01_first_speed_trace.py

Before the first lab

  1. Run the whole course's scripts yourself. scripts/run_all_code.py runs every chapter script from its own folder. Do it on the machine type your students will use; it tells you which labs need a head start.
  2. Freeze the data. Give every student the same snapshot and do not refresh it during the term. Appendix J explains how to update the data with scripts/fetch_openf1.py and the build scripts, but a refreshed snapshot changes the numbers, and graded answers keyed to the book's outputs will no longer match.
  3. Decide where the code runs. A shared JupyterHub or cloud notebook with the processed data pre-loaded removes most setup problems. If students use their own laptops, hold a setup clinic in week 1.

The problems you will see

Symptom Cause Fix
ModuleNotFoundError: toolkit or boxbox Script run from the wrong folder, or moved out of code/ Run from the chapter folder as python code/<script>.py. Scripts find the book root three levels up from their own location.
A script runs for minutes Some labs build caches the first time (telemetry-heavy scripts in Ch 1, 3, 5, 7, 8, 10, 11, 23 take a few minutes cold) Run once before class; later runs read the cache. The chapter notes flag slow scripts.
FileNotFoundError for a CSV in code/ Script run out of order; later scripts read files earlier ones write Follow the run order in the chapter (for example, in Ch 22, script 02 writes the stint table that 03–08 read)
Garbled characters in printed output on Windows Console encoding The scripts reconfigure stdout to UTF-8; use a UTF-8 terminal or run inside an IDE
A box where an emoji should be in a chart Matplotlib's default font has no emoji Expected; keep emoji out of chart text
Memory pressure Loading many telemetry files at once Work one session at a time; close figures in loops
A student's number differs slightly from the book's Different snapshot, a changed filter, or a different random seed Check the snapshot date, then the filter, then the seed. All the book's simulations set seeds.
"Can I use FastF1?" It needs an F1 TV account since 2026 Allowed as an extra, never required

No network calls in labs

Every chapter script runs offline against data/processed/. Keep student assignments offline too. It makes results reproducible, it keeps the public APIs from being hammered by a class of 60, and it means a lab works on a train.

Academic integrity and reproducibility

Reproducibility is your best integrity tool. Ask students to submit the script and its printed output together, and spot-check by rerunning. A fabricated output block, or a number typed from memory, does not survive a rerun. The same habit protects against students pasting plausible-sounding F1 "facts" from elsewhere: the rule in this course is the rule in the book, a number comes from the data, from a sourced reference table, or from arithmetic on stated inputs, and nowhere else.


5. Assessment philosophy

What we reward

  1. The definition before the number. "Degradation", "pit loss" and "overtake" each have several reasonable definitions in this book, and they give different answers. An answer that states which one it used beats a more precise answer that does not.
  2. n and an interval with every estimate. The book uses Wilson intervals for proportions and the bootstrap for medians. Students should too.
  3. Reproducibility. Every reported number should be regenerated by a script the grader can run.
  4. Validation against a baseline. "My model picks the winner 58% of the time" means nothing until it is set beside "pole wins 55.7%". Every predictive claim needs its naive baseline and an out-of-sample test.
  5. Decisions graded as decisions. In strategy questions, grade the reasoning given what was known at the time, not the outcome.
  6. Honest negative results. A student who reports that their model is off by seven laps, and explains why, has done better work than one who tunes until the number looks good.
  7. Physical plausibility. A lateral-g estimate above about 6 g, a fitted negative drag area or an 11 g braking deceleration should set off alarms. Reward students who notice.

The assessment mix

All three syllabi combine four kinds of evidence:

Kind What it checks Where
Labs Can students run, read and modify real analysis code? Weekly, from each chapter's code/ folder
Exams Conceptual understanding, calculation and data interpretation without a computer Midterm, final
Project milestones Can students build, test and validate a module of their own? Box Box rubrics
Communication Can students explain a race to someone who did not run the code? Capstone report, fan-seminar race reports, discussion

The exams are written in parts so that each syllabus can use the parts that match its chapters. Every question is labelled Conceptual, Calculation or Data interpretation, carries chapter tags, and has a model answer and a points rubric in a folded block. Every number in the exams comes from the book's own computed results, so students who have done the reading and the labs have seen them.

Using the chapter quizzes and exercises

Each chapter's quiz.md is a self-test with answers; use it as a reading check or a warm-up, not as a graded assessment (students can see the answers). Each exercises.md runs from quick checks to open-ended projects; the 📋 Try it tasks inside the chapters, especially Call the pit stop, make excellent in-class activities because the reveal is folded. Appendix L answers selected exercises; choose graded exercises from the ones it does not cover.


6. The Box Box project: a semester-long thread

Across the book, readers build Box Box, an F1 race-strategy simulator, as a Python package in project/boxbox/ with a command-line interface (python -m boxbox …). Each chapter owns exactly one module and demonstrates it in its code/project_checkpoint.py. Chapter 40 assembles the modules into a command-line tool with an HTML report and smoke tests.

Why it works as a course project

  • It accumulates. Each week's module is small, but by week 15 students have built a working system and understand every part of it.
  • It is validated against reality. Every module is calibrated on the snapshot and can be checked against what actually happened in a race.
  • It forces the course's habits. A simulator that quietly uses raw lap times for degradation, the raw overtakes count for passing, or the wrong pit loss under a safety car gives visibly wrong answers.

The module map

Ch Module Ch Module Ch Module Ch Module
1 physics 11 lapsim 21 ratings 31 budget
2 data 12 strategy 22 degradation 32 eras
3 aero 13 undercut 23 telemetry_tools 33 economics
4 tyres 14 neutralisation 24 development 34 pitstops
5 pacejka 15 wet 25 viz 35 overtaking
6 power 16 qualifying 26 predict 36 conditions
7 brakes 17 start 27 montecarlo 37 reliability
8 setup 18 pitwall 28 regs 38 betting
9 driver 19 laptime 29 regs2026 39 series
10 circuit 20 pace 30 upgrades 40 cli, report, tests

Three ways to run it

  1. Build mode (analytics and engineering syllabi). Students write their own version of each module assigned in the syllabus, test it against the book's checkpoint output, and extend it. The book's modules serve as the answer key and as a fallback: a student whose degradation module is broken can import the book's to keep the rest of the project moving, at a stated cost in the rubric.
  2. Extend mode (shorter courses). Students start from the book's modules and each adds one substantial extension: a new hazard model, a weather scenario generator, a different pass model.
  3. Run mode (fan seminar). Students run the checkpoint scripts and change one input at a time ("what if the pit loss were 5 s longer?"), then explain the result in plain language.

Milestones

Both 15-week syllabi use five milestones and a capstone. The modules differ by course; the rubric does not. Full rubrics are in Project rubrics.

Milestone Analytics course Engineering course
M1 Data foundation data (Ch 2) data (Ch 2) + physics (Ch 1)
M2 First model strategy (Ch 12) aero + tyres (Ch 3–4)
M3 Strategy under uncertainty undercut + neutralisation (Ch 13–14) power + brakes (Ch 6–7)
M4 Performance models pace + degradation (Ch 20, 22) lapsim (Ch 11)
M5 Simulation montecarlo (Ch 27) strategy + degradation (Ch 12, 22)
Capstone Ch 40 assembly: CLI, report, tests, a pre-registered forecast Ch 40 assembly with the lap simulator driving base pace

7. Teaching real people and real money

Two chapters need a word of care.

  • Real drivers and teams. The book names drivers and teams only for their public results and on-track actions in the data. Hold class discussion to the same line: no speculation about health, contracts, private life or rule-breaking, and no claims about what a strategist "was thinking". The data say "the timing is consistent with…"; students should too. Team radio in the data is a list of audio links with no transcripts, so nobody should be quoting radio messages.
  • Betting (Chapter 38). The chapter is about probability, calibration and why edges are rare. If you teach it, frame it that way, keep any exercises on paper, and point students to support services where gambling is legal. Never require a student to place a bet.

8. Getting help and giving back

The book is free and open under CC-BY-SA-4.0. If you find an error, a script that no longer runs, or a number that does not reproduce, please report it with the script name, the snapshot date and the output you got. If you build an assignment, a slide deck or a better rubric, consider sharing it back under the same licence so the next instructor starts further ahead.