Chapter 38 Instructor Notes — F1 Betting Analytics
Chapter: F1 Betting Analytics: Odds, Markets, Edges, and Where the Bookmakers Get It Wrong · Exercises · Quiz · Case Study 1 · Case Study 2 · Key Takeaways · Discussion guide
Chapter 38 is about forecasts that meet a price, and it says from its first page what it cannot do: the book's data snapshot contains no historical odds, so every price is a labelled hypothetical built from the book's own models with a stated margin. Within that limit it teaches odds, margins, expected value and Kelly staking; tests four folk "edges" (recency, weather, safety cars, circuit specialists) on real data; backtests the Chapter 26 model against hypothetical markets; and ends with a responsible-gambling section it calls its most important. Students build betting.py, which turns any probability vector into prices, edges and stakes.
Learning objectives
By the end of the session, students should be able to:
- Convert fractional, American and decimal prices to implied probabilities, and compute a market's overround.
- Remove a margin by the multiplicative, additive, power and Shin methods, and explain why the methods disagree most on long shots.
- Compute expected value at the price actually offered, and the Kelly stake $f^* = (p\,o - 1)/(o - 1)$; explain why fractional Kelly is the default for a model-based bettor.
- Read a reliability table, and evaluate a claimed edge as a hypothesis with n, an interval and a base rate.
- Explain why a backtest against the bettor's own model must produce no bets, and why a biased model produces phantom edges.
- Estimate how many bets it takes to distinguish a real edge from zero.
- State the case for why most bettors lose, and describe the signs of problem gambling and the kinds of help available.
Threshold concept
The key idea is that an edge is a relationship between two numbers, not a property of one. A model's probability is half a bet; the price is the other half; the margin sits between them. Students who have it stop asking "is my model good?" and ask "is it better than this market by more than this margin, and how would I know?" The backtest makes it concrete: the same GBM shows a large edge against a crude market and none against a market as good as its own logit.
Suggested 75-minute session plan
| Time | Segment | What happens |
|---|---|---|
| 0–5 min | Framing | Read the classroom ground rules aloud (see "Facilitating responsible gambling" below). All prices in this session are hypothetical; nobody is asked to bet or to share whether they bet. |
| 5–12 min | Hook | 2024 São Paulo: Verstappen at 36.5% (pre-qualifying GBM), 6.9% (full GBM), 0.14% (grid baseline). He won from 17th. Ask: "Which price was right?" Steer to Ray: grade a price over hundreds of races. |
| 12–30 min | Concept | At the board: 5/2 → 3.50 → 28.6%; 1.91/1.91 → overround 4.71%. Then EV and Kelly: p = 0.30 at 4.0 gives f = 0.0667; half Kelly keeps 76% of the growth; growth reaches zero at 2.07 f. |
| 30–45 min | Live demo | Run code/01_odds_math.py: on the 2026 US GP book, the four methods put long shots at 10.47%, 5.21%, 7.27% and 5.70% against an observed 7.22%. Then code/02_kelly.py and the two-worlds table. |
| 45–63 min | Activity | Four groups, one edge hypothesis each (§38.5–§38.8). Each reports the effect, n, interval, and whether it survives an 18% margin. |
| 63–75 min | Wrap-up | §38.11 in plain words: margins, variance, the 7,663-bet table, the warning signs, where help comes from. Exit ticket: "What would have to be true for a model to beat a market, and how long would it take you to find out?" |
Key numbers students should leave with
- US GP 2026 hypothetical book: booksum 118.7% (18% power margin). No GBM bet clears +5%; Antonelli at 1.90 against a GBM 52.32% is EV −0.6%.
- Calibration (GBM, walk-forward 2014–26, 273 GPs): forecasts below 10% produced 41 winners against 30.4 expected (n 4,908).
- Kelly two worlds (273 bets, 1,000 paths, seed 42): with a real +5% edge, full Kelly still loses over the period in 31.8% of paths and halves at some point in 73.9%. With an imagined edge (true −5%), quarter Kelly loses in 91.1% of paths, full Kelly in 97.8%.
- Recency: the last race carries about 1.44 times the weight of each older race.
- Weather: favourites won 5 of 11 wet races and 52 of 80 dry (2023–26). Safety cars: favourites won 30 of 44 full-SC races against 27 of 47 without.
- Specialists: team-circuit fit carries over at r = 0.115; driver-vs-teammate at r = 0.040.
- Backtest: against the grid baseline, +44.4% flat ROI at a 15% margin (CI +8.6 to +87.6%); against the logit, every interval spans zero; against itself, zero bets. The Monte Carlo's 2026 "value" bets: claimed EV +114%, realised ROI −73%.
- Bets needed: a +5% edge at 4.0 takes about 7,663 bets to detect.
Common misconceptions and remedies
| Misconception | Remedy |
|---|---|
| "Implied probability is the bookmaker's forecast." | It includes the margin. Remove it and name the method; on long shots methods differ twofold. |
| "My probability is above the fair price, so it's a good bet." | EV is at the price you can get, margin included: Antonelli, −0.6%. |
| "He won, so the 36.5% was right." | Grade prices by calibration and log loss over hundreds of forecasts (§38.3). |
| "Full Kelly maximises growth, so use it." | Only if your probability is exact. World B: Kelly multiplies the true edge, even a negative one. |
| "Rain and safety cars are where the value is." | Show the samples: 11 wet races; favourites won more often in full-SC races. |
| "If several models are available, bet whichever finds value." | That bets the most optimistic estimate. Combine models before seeing prices (Case Study 1). |
Facilitating responsible gambling
Treat §38.11 as content, not a disclaimer.
- Ground rules at the start. The course teaches how prices work, not how to bet. No assignment involves real money or reporting a real bet; every exercise uses hypothetical prices or paper bankrolls.
- Do not ask who bets. Some students may bet, some may have family affected by gambling, and some may be under the legal age. Never poll the room or invite personal stories; if one is volunteered, acknowledge it briefly and return to the material.
- Prepare local support information. The book gives no helpline numbers, because services differ by country. Look up your jurisdiction's official gambling support service, any national self-exclusion scheme and your institution's counselling service; put them on the final slide and the course page.
- No promotional material. No operator branding, sign-up offers or "tips" accounts on slides; use only the chapter's hypothetical books.
- Frame wins as variance. When Case Study 2's paper season ends at 1.589, repeat the chapter: one season cannot tell skill from luck. One 38.0 winner turned its other season from a loss into a gain.
- Offer an alternative route. Students who prefer to avoid the betting framing can do the calibration exercises (A13, C2, C9, M1) and write D2 as a forecasting log. Grade the analysis.
- Check the law and policy. Gambling is restricted in some places and age-limited everywhere. Exercise E1 needs licensed historical prices: check institutional policy and keep it optional.
- Know when to refer. If a student shows the chapter's warning signs, speak privately and point to support services; do not counsel beyond your role.
Exercises to assign
- Core (everyone): Part A — A1, A3, A5, A8, A10; Part B — B1 (price conversion), B3 (edge at the real price), B4 (Kelly), B7 (bets needed).
- Code lab: Part C — C1 (a second hypothetical book, 2026 Mexico City) and C6 (2024 São Paulo from three models). Add C2 (calibration by era) and C10 (the margin at which the edge dies) for the Analytics track.
- Judgment: Part D — D2 (rules for a paper-trading season) and D4 (four models, one race).
- Stretch: C8 (Kelly with estimation error), M3 (fixing the phantom edge), E2 (a combined pricing model).
- Interleaving: M1 (Ch 14 hazard to prop price), M4 (Ch 21 teammate gap to H2H), M5 (Ch 36 weather information).
Lab tips
- Prerequisites on disk:
_common.pyreads Chapter 26'sfeatures_2006_2026.parquetandwalkforward_predictions.parquet(rebuilding them throughpredict, more slowly, if missing).06_backtest.pyandcase_study_01.pyread Chapter 27 outputs. On a fresh machine, run those chapters first. - Runtime: every script runs offline in under 30 s;
04_weather_sc.pyis the slowest at about 20 s. - Saved outputs: compare students' numbers against
code/*_output.txtbefore debugging. - Gotcha — column names: Jolpica laps use
lap_time_s, nottime_s. - Gotcha — price cap: the backtest's 51.0 cap is an analyst's choice. Without it, ROI against the grid market is +378% from bets at a mean price of 145.
Connections
- Backward: Chapter 14 (SC hazards for the prop market), Chapter 26 (walk-forward probabilities), Chapter 27 (the Monte Carlo's pole-sitter bias), Chapter 36 (wet-race rates).
- Forward: Chapter 40 produces Box Box's full-field probabilities and measures how far the engine underrates pole-sitters; its Exercise M4 asks what goes wrong if those raw probabilities are fed into this chapter's Kelly formula.