Chapter 24 Notes — Match Outcome Prediction

Chapter link: Chapter 24

Overview and learning objectives

Chapter 24 builds pre-match forecasts and then tests the folklore that "a good pre-match model is 60–65% accurate". It opens with the 2025 Women's ODI World Cup semi-final, where the walk-forward Elo made Australia (2009) an 85% favourite over India (1686), and India won. It then scores forecasts properly (accuracy, Brier, log loss), builds walk-forward Elo tuned on training years and scored on 2023–26 across ten competitions, extends Elo to Tests with a draw model, compares an ICC-style points average with Elo, rates the announced team sheet in runs per match, runs a seven-model bake-off, checks calibration and finally computes an "oracle ceiling" from the spread of team-season records. The headline is that the ceiling is a property of the competition: women's ODIs 72.9% (oracle ≥ 72.3%), men's T20Is 64.1%, the IPL 47.6% with a log loss (0.708) worse than a coin. The Project Checkpoint delivers crease.match_model, which Chapter 28 imports.

By the end of the chapter students should be able to:

  1. Compute and interpret accuracy, Brier score and log loss for a set of forecasts, and explain why Brier and log loss are proper scoring rules and accuracy is not.
  2. Compute an Elo probability and rating update by hand, including a home bonus (e.g. Exercise B1).
  3. Explain the train/test discipline (tune on years before 2023, freeze, score 2023–26) and identify a forecast that leaks post-first-ball information.
  4. Convert a two-way Elo probability into a three-way Test forecast with a draw model (WTC final 2025: 0.573 / 0.139 / 0.288).
  5. Read a calibration slope and a reliability table and say what recalibration would and would not fix.
  6. Estimate a true-strength spread and luck share from season records and use it to state the ceiling for pre-match accuracy in a competition.
  7. Judge a published "X% accurate" claim by asking how it was split, what was tuned on what, and how many matches it covers.

Where students struggle

  • "62% of winners" sounds like a result. Students default to accuracy. The 24.1 check question (model A says 0.55, model B says 0.80, both call 60%) is the fastest fix; return to it whenever accuracy is quoted alone.
  • "Elo failed in the IPL, so Elo is bad." The chapter's answer is that the IPL failure describes the league's parity, not the method. Students need to see the same Elo hitting 71.9% in women's T20Is.
  • Log loss worse than a coin with a hit rate near 50%. The IPL home rule carried its training rate (0.562) forward as a probability and won 48.5%; a coin's 50% is closer to the truth. Many students think a near-50% hit rate cannot be "worse than a coin".
  • Tuning on the test years. The temptation to try settings and report the best 2023–26 score is strong, especially in the bake-off. Use the 24.7 pitfall and Tom's "marking your own homework" line in 24.8.
  • Expecting XGBoost to win. The tuned XGBoost chose depth-1 trees and the forest 200 matches per leaf. Students struggle to read "the least flexible model was chosen" as a finding about the data.
  • The negative IPL Elo coefficient. The IPL-only logit on 520 matches gives −0.0012 per Elo point. Some students treat it as a discovery ("back the underdog"); it is noise, and the argument for pooling.
  • The oracle being "beaten". In women's T20Is Elo's 71.9% exceeds the oracle's 70.6%. Students need the unbalanced-schedule explanation, or they will distrust the whole ceiling idea.
  • Using "who batted" as a team sheet. The leak is subtle; the Impact Player 12th name in 2023+ IPL sheets is a smaller version of it.

Pacing

50-minute session. - 0–8: The semi-final hook: Australia 2009 v India 1686, P = 0.848; India won. Was the model wrong? - 8–18: Section 24.1 scoring rules with the 0.70/0.90/0.99 example; the naive-rules table (IPL home rule 48.5%, toss 50.7%). - 18–30: Elo (24.2) and the ten-competition verdict table (24.3). - 30–42: The ceiling (24.9): IPL luck share 91.6%, oracle 54.3%; women's ODIs 72.3%. - 42–50: Calibration slopes (0.74–0.82) and the scorecard in the Chapter Summary; assign the checkpoint.

75-minute session. As above, plus the live coding demo after 24.3 (15 minutes) and a 10-minute treatment of the bake-off (24.7) using the Productive struggle guesses. Leave the Test draw model and the ICC comparison for reading or a second session. Lab time: allow 45–60 minutes. Most scripts run in seconds, but 05_player_strength.py takes about 45 seconds cold, 09_worked_finals.py about 55 seconds and the checkpoint 30–65 seconds; on Windows set PYTHONIOENCODING=utf-8.

Lecture outline

  1. The semi-final and the final: 85% favourites lose about three times in twenty; India were 65% in the final and won.
  2. Scoring: accuracy, Brier (coin 0.2500), log loss (coin 0.6931); proper scoring rules.
  3. Naive rules, 2023–26: toss worthless; home real in ODIs (63.4%), below a coin in the IPL (48.5%); recent record strongest in women's ODIs (67.9%).
  4. Elo as online logistic regression; K is a learning rate; walk-forward forecasts. IPL tuned to K = 10, home 50, regression 0.25: 47.6% of 286, Brier 0.2576, log loss 0.7085.
  5. Ten-competition verdict: men's internationals in the band, women's internationals above it, five franchise leagues 54.5–58.9%, the IPL below a coin. IPL 2023 (first Impact Player season): 39.7%.
  6. Tests: 169 of 899 men's Tests drawn; K = 60, home 150; draw model; Elo + draw model wins on every score (accuracy 0.6164, RPS 0.2235); favourite won 67.7% of 133 decided Tests. Afghanistan's absence.
  7. ICC-style points average v Elo: indistinguishable (every bootstrap interval includes zero; same favourite ~90%; ODI Spearman 0.973).
  8. Team-sheet strength: newcomer prior, untranslated league strength (Karanbir Singh at the top), Bumrah 0.233 runs saved per ball.
  9. Bake-off: six of seven models within 0.003; team sheet adds −0.0015 (90% interval −0.0042 to +0.0011).
  10. Calibration: slopes 0.74–0.82 out of time; IPL slope −0.33, resolution 0.001.
  11. The ceiling; the six finals (favourite won three of six).

Live coding demo

Script: code/02_elo_by_competition.py (about 7 seconds).

  1. Run it unchanged. The key line: IPL K=10 home=50 regress=0.25: favourite won 47.6% of 286, Brier 0.2576, log loss 0.7085. Then the ten-row table: men's T20Is K 20, 64.1%; women's ODIs K 60, 72.9%, log loss 0.516; IPL log-loss gain v coin −0.015.
  2. Show the year-by-year split: IPL 2023 39.7%, 2024 53.5%, 2025 45.7%, 2026 51.4%.
  3. Live change 1: before rerunning, ask students to predict what happens if you force the IPL to use the women's setting (K = 60, no regression) instead of tuning. Edit the call so the IPL skips tune_elo and uses fixed settings. Do not promise numbers; the 24.2 figure already shows the IPL test curve above the coin at every K, so the class should expect "worse, still near 50%".
  4. Live change 2: cut GRID["k"] to [100] for every competition and rerun. Ask which competitions suffer most and why (the even leagues, where results are mostly noise).
  5. Close with code/08_ceiling.py (about 8 seconds): IPL sd_observed 0.137, sd_true 0.040, luck share 0.916, oracle accuracy 0.543, log loss 0.687; women's ODIs oracle 0.723. Point at the last column: the IPL's share of the oracle's gain is −2.414.

If time is short, run only 08_ceiling.py; it carries the chapter's main idea in one table.

In-class activity — "Where does the band apply?"

Groups of three get the 24.3 verdict table and the 24.9 ceiling table. Each group is assigned two competitions (always pair one high-parity league with one international format, e.g. IPL with women's T20Is, PSL with men's ODIs). Task: (a) write the broadcaster caption of Exercise D2 for each, under 20 words, with one number; (b) using the luck share and sd_true, explain in two sentences why the two accuracies differ; (c) name one thing that could make the real ceiling higher than the oracle's in each competition (unbalanced schedules, within-season changes). Groups report captions; the class votes on the clearest.

Answers and teaching notes for key exercises

  • B2. SE = √(0.476 × 0.524 / 286) = 0.0295; interval 41.8% to 53.4%, which includes 50%. Log loss is worse than a coin by 0.7085 − 0.6931 = 0.0154. Stress that "consistent with a coin" is the finding, not "anti-predictive".
  • B3. Implied wins ≈ 49.0, observed ≈ 38; binomial SD ≈ 3.47, shortfall about 3.2 SDs. But the band was found after looking at ten bands, so the evidence is weaker than it looks. The chapter's reading is "watch it", not "fix it".
  • B5. 0.0205 / 0.0054 ≈ 3.8 Elo points per run of team-sheet strength; a 15-run edge at level Elo gives log-odds ≈ 0.31, P ≈ 0.577.
  • B6. σ²_true = 0.137² × (1 − 0.916) ≈ 0.00158, so σ_true ≈ 0.040. Teams at 0.54 and 0.46 give log5 P ≈ 0.580, an unusually wide pair; the average over all pairings is the oracle's 54.3%.
  • B8. A good answer says the team sheet did not make forecasts measurably better on four unseen seasons, the gain is smaller than the noise, so keep the simpler Elo number and keep testing. Mark down any answer that says the team sheet "made it worse".
  • D4. Compare wins above the Elo expectation after winning v losing the toss. A five-point edge at 1.96 SE needs about (1.96 × 0.5 / 0.05)² ≈ 384 tosses won, plus a similar number lost. No captain gets near that in one competition; the test can rule out a large effect, never confirm a small one.

Assessment ideas

  • Backtest audit. Give students a one-paragraph claim ("our IPL model is 62% accurate over five seasons") and ask for the three questions from the 24.7 Learning check-in plus a verdict using 24.9.
  • Calculation item. Exercise B1 or B4 (Elo update; three-way WTC forecast with log loss and RPS) as a timed write.
  • Code task. Exercise C1 (price the two 2026 men's T20 World Cup semi-finals) with a bootstrap interval on the log loss of eight knockout forecasts; the interval's width is the lesson.
  • Short essay. "Does the 60–65% rule survive?" in 400 words, using the Chapter Summary scorecard.

Format, gender and region diversity notes

  • The chapter's best forecasting results are in women's cricket (72.9% in ODIs, 71.9% in T20Is) and its hook is the 2025 Women's ODI World Cup. Teach women's internationals as the main case, not an aside: they show what a forecastable competition looks like.
  • Tests get a full treatment (draw model, K = 60, home 150) and the checkpoint's Mirpur Test (Bangladesh 0.686, West Indies won) gives a Bangladeshi example.
  • Ten competitions include the BBL, PSL, CPL, T20 Blast and WBBL; the bake-off adds the BPL, ILT20, SA20, MLC, LPL and Syed Mushtaq Ali.
  • Afghanistan's men's internationals are withheld from Cricsheet. Afghanistan has no rating, and every opponent's rating has learned nothing from its matches against them. Ask students to state this whenever they show international ratings.
  • The untranslated associate batters (Karanbir Singh and Bilal Zalmai of Austria, Kadowaki-Fleming of Japan) are a respectful way to discuss associate cricket and to motivate Chapter 26.

Connections