Chapter 35 Notes — Cricket Betting Analytics
Chapter link: Chapter 35
Before you teach this chapter: responsible-gambling framing
This chapter teaches students to evaluate forecasts against a market. It must never become a course in how to gamble. Settle the following before the first session and state them on your syllabus.
- No real-money activity of any kind. No real bets, no betting-site accounts, no class pools or sweepstakes, no "paper trading" against live bookmaker prices that students could act on, and no prizes tied to forecasting accuracy that resemble a wager. Every price used in class is an illustrative teaching price, as in the chapter. The book's data snapshot contains no bookmaker odds at all.
- Age. Many students in an undergraduate or school setting will be under the legal gambling age where they live. The chapter does not set out age limits country by country, so don't quote one from memory. Tell students to treat the law of their own jurisdiction as binding. Point out that, in Great Britain, the Gambling Act 2005's licensing objectives include protecting children and other vulnerable people (§35.1). The content is assessable as forecasting and statistics for every student, of any age.
- Jurisdiction. Use the chapter's own facts, as of November 2026, and remind students the chapter says this area of law is moving quickly. Betting and gambling are a state subject in India, and wagering on a cricket match is illegal in most states. India's Promotion and Regulation of Online Gaming Act, 2025 prohibits online money games and took effect with its Rules on 1 May 2026, and a Supreme Court challenge is pending. Betting is legal and licensed in Great Britain under the Gambling Act 2005. In Australia, licensed online sports betting is legal, but the Interactive Gambling Act 2001 prohibits online in-play betting. Repeat the chapter's pitfall: the law that applies is the law where you are, not where a website is registered. If betting is prohibited where a student lives, the chapter is a forecasting exercise, which is how the book intends it.
- Harm and help. Give students the chapter's verified help lines at the start, not the end. Great Britain: National Gambling Helpline (GamCare), 0808 8020 133, 24 hours. Australia: Gambling Help Online, 1800 858 858. India: the chapter could not verify a national gambling helpline and gives Tele-MANAS, the free 24-hour mental-health line, on 14416. Self-exclusion: GAMSTOP (Great Britain) and BetStop (Australia). Do not refer students to GambleAware, which announced a managed closure by 31 March 2026.
- Classroom tone. Some students, or their families, may be affected by gambling harm. Avoid celebrating winning bets, even hypothetical ones. Tom's line in the hook ("won that bet" is "a different sentence" from a good bet) sets the right register. Offer a private channel for students who want to talk about harm.
Overview and learning objectives
The chapter asks one question: when does a model's probability justify disagreeing with a market's price? It opens with Anchor A at Newlands. A win-probability table fitted only on chases before that night priced Sri Lanka at 0.628 (fair odds 1.59) after 15 overs. After Imran Tahir's two-wicket 16th over the price was 0.217 (fair 4.61). Sri Lanka won anyway.
It then covers reading a price, an honest walk-forward Elo (the IPL favourite won only 47.6% of 286 matches in 2023–26, worse than a coin on Brier; men's full-member T20I favourites won 64.1%), the folklore, backtests that lie (leakage turns +10.1% into +37.0%; snooping turns +57.0% into −16.1% out of sample; a 5% edge at evens needs about 1,533 bets), Kelly staking (a 50% drawdown in 98.45% of full-Kelly simulations even with a real 5% edge), in-play pricing, integrity and responsible gambling.
The module is betting.py.
By the end of the chapter students should be able to:
- Convert between fractional, American and decimal odds; compute implied probability and overround; de-vig a two-way and a many-runner market.
- Build or interpret a walk-forward pre-match model and judge it against a coin by Brier score and log-loss.
- Identify lookahead leakage, data snooping and under-sized samples in a backtest, and compute bets needed for a given edge.
- Compute EV and the Kelly fraction, and explain why fractional Kelly is preferred when the edge is estimated.
- Translate a win-probability path into fair and illustrative quoted prices, and explain why one result cannot grade a probability.
- Explain why spot-fixing is statistically invisible in ball-by-ball data (Lord's 2010: 16 no-balls; 29% of Tests had as many or more) and why an allegation should never be published from data.
- State the legal position in India, Great Britain and Australia as the chapter gives it, and the responsible-gambling rules in §35.9.
Where students struggle
- Outcome v decision. "Sri Lanka won, so backing them at 4.61 was smart." Tom's correction is the core idea of the chapter. Return to it whenever a student grades a forecast by one result.
- Implied v de-vigged probability. Students compare a model's p with 1/odds and forget the margin (21.9% in the seven-runner top-batter market). De-vig methods also diverge on long shots (multiplicative 0.0821 v Shin 0.0752), and any edge must survive that uncertainty.
- Accuracy ≠ profit. Women's full-member T20I favourites win 71.9%, but in Case Study 2 backing every 0.80+ favourite lost money once a margin was applied (−6.0% with a 5% multiplicative margin).
- Skewed outcomes and hindsight. Double Kelly's mean final bankroll is 208.03 while its median is 0.99, so teach "median bettor" language. The stale 2023 totals line (73.2% went over 169.5) only looks like free money in retrospect.
- Integrity overreach. Students want to "catch fixers". The chapter's rule ("Never publish an allegation from data") is non-negotiable.
Pacing
50-minute session. - 0–5: The responsible-gambling framing above (legal position, help lines, no real money). - 5–12: The Newlands hook as a price chart. Tom and Nusrat on outcome v decision. - 12–22: §35.2, prices, overround and de-vigging. - 22–32: §35.3, walk-forward Elo. IPL 47.6% v T20Is 64.1%, linked to Chapter 6's luck shares. - 32–45: §35.5, three sins of backtesting. - 45–50: §35.9, rules and ethics.
75-minute session. As above, plus 15 minutes on Kelly (§35.6) using the simulation table, and 10 minutes on integrity (§35.8). Lab time: 45–60 minutes. The Kelly script simulates 2,000 bettors for 1,000 bets each, so allow time for it on slow laptops. Emphasise that every lab uses illustrative prices.
Lecture outline
- Newlands as a price chart (1.59 → 4.61); the market, the law and the harm; why no market size is given.
- Reading a price: formats; overround by market type; de-vigging; fair top-batter prices (Gill shrunk 0.355, fair 2.814).
- Your number: walk-forward Elo; IPL v men's T20Is; IPL by year (2023 favourite accuracy 39.7%).
- Folklore: form (IPL coefficient −0.151, p = 0.146); the stale line; Test draws 24.2% → 6.2% (fair draw price 4.13 → 16.14).
- Why backtests lie: leakage, snooping, bets needed; closing-line value.
- Staking: Kelly and its simulation; fractional Kelly.
- In-play: the stale chase model (forecast 0.290, observed 0.531); big overs v wicket clusters.
- Integrity (public record only) and responsible gambling.
Live coding demo
Scripts: code/03_backtests_that_lie.py, then code/04_kelly_bankroll.py. Before running anything, say aloud that all prices are illustrative.
- Run
03_backtests_that_lie.py. Expected leakage lines: hindsight 230 bets, hit 66.1%, ROI +37.0% (95% CI +24.0 to +50.0); honest 237 bets, hit 50.6%, ROI +10.1% (CI −3.2 to +24.0); backing every side −2.3% over 572 bets. Ask which line a tipster would advertise. - Scroll to the snooping block: top-10 in-sample mean +57.0% → out-of-sample −16.1%; correlation 0.022; the null world's best system median +55.8% against the real best +67.0%.
- Live change 1: in the bets-needed block, add 0.03 to the list of edges (
for ed in [0.02, 0.05, 0.10]) and ask the class to predict the sample size at odds 2.0 first. They should expect it to rise roughly with 1/edge². Don't promise a number; let the script print it. - Run
04_kelly_bankroll.py. Expected: at true p 0.525, full Kelly median final 3.4922, P(50% drawdown) 0.9845; quarter Kelly median 1.7279, P(drawdown) 0.0125. At true p 0.500 (no edge), every rule loses at the median. - Live change 2: set
P_BELIEVED = 0.55, so stakes are sized for a 10% edge while the true probabilities stay at 0.525, 0.51 and 0.50. The bettor now over-estimates the edge. Ask students to predict what happens to the drawdown before running it. This is Tom's "assume your edge is half what your model says" rule (Exercise D6).
In-class activity: "Grade the tipster" (no money involved)
Groups of three receive a fictional tipster record, e.g. "68% winners over the last 50 tips" (Exercise A14). Each group lists the three questions to answer (prices, selection, sample size), computes the break-even win rate at an assumed price, estimates the tips needed to show a 5% edge, and writes a two-sentence verdict. Debrief on the snooping result. No student places or simulates a real-money stake at any point.
Answers and teaching notes for key exercises
- B1. Overround 4.65%; de-vigged 0.556 / 0.444; EV on Team B at 2.15 is +1.05%. That is tiny and well inside model error, so the right stake is little or nothing.
- B2. The IPL's luck share (about 92%) means small true differences between teams, so a results-based rating mostly chases noise. Internationals (59%) have persistent strength differences that Elo can find.
- B4. The hindsight model leaks the match being bet on. The honest +10.1% interval includes zero and beats only a weak illustrative book, which proves the plumbing, not an edge.
- B6. Skewed multiplicative paths: the mean is driven by a few extreme paths; the median is the typical bettor; Kelly maximises log growth.
- B9. Fair prices 1.59/2.69 and 4.61/1.28; quoted with a 5% margin 1.52/2.56 and 4.39/1.22. One win does not show 0.217 was too low. Use this as a calibration reminder linked to Chapter 20.
- D3 (flagging Tests with 20+ no-balls). Strong answers note that the Lord's 2010 Test (16) would not even be flagged, that innocent Tests would be flagged in large numbers, and that publishing a flag risks destroying reputations. Suspicions belong with an anti-corruption unit.
Assessment ideas
- Calculation set (all illustrative prices): overround, de-vig, EV, Kelly fraction and bets needed for a given edge.
- Short essay: "Accuracy is not edge." Use Case Study 2's women's T20I results (favourites at 0.80+ won 86.6% of 127; a 1.09 price needs 91.7% to break even).
- Code task: drop any earlier Crease model (Chapter 20 win probability or Chapter 24 match model) into
backtestasp_colagainst an illustrative book, and report ROI with its interval and a one-paragraph caveat. - Responsible-gambling reflection (completion-graded): explain two §35.9 rules using the simulations.
Format, gender and region diversity notes
- Women's cricket is a main case (Case Study 2): the best-calibrated pre-match model in the chapter (Brier 0.1875; favourites won 71.9% of 285) and the clearest lesson that accuracy is not edge.
- Formats: T20 dominates, but the Test three-way market and its disappearing draw are a strong format lesson (Exercise D1).
- Region and law: students outside India, Great Britain and Australia should look up their own law, without the instructor giving legal advice. The corruption cases (Cronje, Lord's 2010, IPL 2013) involve real people, so stay strictly with the public-record facts the chapter gives. Tom Ashworth is fictional, and so is his unnamed former employer.
Connections
- Luck shares and regression to the mean: Chapter 6; Anchor C and selection on the outcome: Chapter 4.
- Newlands and WP v0: Chapter 9; calibration: Chapter 20; the toss: Chapter 22.
- Pre-match models: Chapter 24; live simulation: Chapter 27; Test draws and weather: Chapter 29.
- Fantasy and the 2025 Act's effect on paid contests: Chapter 36; odds-style broadcast graphics: Chapter 37; careers and the ethics of betting work: Chapter 38.