Chapter 40 Notes — The Future of Cricket Analytics
Chapter link: Chapter 40
Overview and learning objectives
Chapter 40 closes the book and does two jobs. First, it looks ahead with the book's discipline. It opens with "the forecasts everyone makes", the counterpart to Chapter 1's "numbers everyone quotes". A straight line through IPL first-innings averages for 2008–2022 (+0.91 runs a season) missed all four Impact Player seasons, each outside its own 90% interval, by 12.6, 18.3, 18.8 and 22.6 runs. The chapter then measures trends with prediction intervals:
- three IPL scenarios for 2030 (A 193.2, B 211.5, C 189.8, each interval 24–29 runs wide);
- six-hitting as a format-wide revolution (IPL 1.63×, men's full-member T20Is 1.62× since 2015);
- diffusion of the scoring rise beyond the IPL;
- spin share, where the swings mostly reflect the fixtures list, not tactics.
After that it covers ball-tracking, a match-workload proxy that misleads (56.6% of bowling weeks look like "spikes"), a layer audit (6 of 15 core questions need only public outcomes), completeness gaps (bowler type known for 24.2% of men's associate T20I balls), language models, and ethics.
Second, it closes the book. There is no Crease module. Nusrat writes project/ROADMAP.md (13 extensions in three tiers) and picks R4. Wendell gets the last word ("Ask them for the interval"), and "Close of play" replaces "What's Next". Every number in the chapter is real. The only simulated material is Chapter 15's audits, quoted under the 🧪 label.
By the end of the chapter students should be able to:
- Distinguish a confidence interval from a prediction interval and produce a next-season forecast with a prediction interval.
- Recognise a structural break (a rule change) and present scenarios instead of a single line.
- Separate a change in behaviour (IPL captains choosing to field: 55.2% in the first season, 82.4% in 2026) from a change in composition (Test spin share 44.0% → 29.0%), and propose a reweighting.
- Explain why match-only workload data misleads, and state the chapter's ethical limits on body data.
- Classify a cricket question by the data layer it needs, and quantify whose cricket the record covers.
- Design a grounding check for automatically drafted text.
- Choose a ROADMAP item and write its first step and its "done when" test.
Where students struggle
- Confidence versus prediction intervals. Students use the narrower one. Draw both around the 2008–22 line and mark 2026's 195.7.
- "Three scenarios is just indecision." They are three causal stories, and the one not on the chart (the rule changes again) may matter most.
- Ratios versus differences. Exercise B2: the IPL's sixes rose more in absolute terms (+3.29 against +2.73 per 100 balls), but the proportional rise is the same (1.62–1.63). Students need to say which they mean.
- A 3.34× rise with an interval that includes zero. The women's T20I series rose, fell from 2018 to 2022 and jumped in 2026. Endpoints exaggerate trends.
- Composition versus behaviour. The 🔍 box is the key. Spin share moves with where matches were played; "chose to field" moves with captains.
- The Bumrah gap. Students will want to explain his 46-week stretch without match balls (late September 2022 to August 2023). The chapter deliberately names no cause, and neither should the class. Treat this as a live exercise in the 40.5 pitfall.
- Ethics as a lecture. Make it concrete with Exercise D2 (the "fatigue meter") and quiz question 20 (a "readiness score" vendor).
- End-of-course fatigue. Tie activities to something students keep: the portfolio or a dated forecast.
Pacing
50-minute session. - 0–8: The hook. Show the 2008–22 line and have students forecast 2026 before you reveal the backtest table. - 8–20: §40.2, three scenarios and the "Settle this debate" (200 by 2028?). - 20–30: §40.3, the spin-share productive struggle; behaviour versus composition. - 30–40: §40.5–40.6, the workload proxy and the layer and completeness audits. - 40–50: §40.7 ethics (Tom's two sentences) and "Close of play".
75-minute session. Add the live demo (15 minutes) after §40.2 and the §40.6 grounding-score "Build this metric" (10 minutes). Lab: 45 minutes; each script runs in under 20 seconds. project_checkpoint.py prints 36 modules / 617 public functions and classes on the finished package (the same counts as Chapter 39); students who skipped a module or have started extending Crease will see different counts.
Lecture outline
- What forty chapters found: mostly negative findings, as in Bill James's early work.
- Prediction intervals and the backtest (2026: 173.1 forecast, 195.7 actual).
- Three futures for 2030: A 193.2, B 211.5, C 189.8; the missing fourth is a rule change.
- Six-hitting 2015 → 2026: IPL 5.27 → 8.56; men's T20Is 4.38 → 7.11; women's 0.68 → 2.27; Tests 0.43 → 0.52.
- Diffusion: IPL +22.6 runs; men's T20Is +10.2; BBL +0.4; BPL −2.5.
- Spin share: only men's ODIs trend clearly (+0.48 points a year); the IPL's 2026 30.4% is one season to watch.
- What has changed: field-first 82.4%; Test draws 25.35% → 11.86%.
- Ball-tracking: what it adds and what stays hard (samples, the "why").
- Workload proxy: 79.5% of weeks with no match balls; Hulin et al. (2014) and the Impellizzeri et al. (2020) critique.
- Layer audit, completeness, computer vision, language models: compute first, write second.
- Ethics: body data, fast data, the investment gap; open data.
- Your next season: drift alarm, roadmap tiers, Wendell's R6.
Live coding demo
Script: code/01_trend_extrapolation.py.
- Run it unchanged. Expected: 2008–2022 slope +0.91 per season. Backtest fits 170.4 / 171.3 / 172.2 / 173.1, all
inside_90pct False. Slopes: all seasons +1.88; 2023–2026 +3.95. 2030 interval widths: A 28.6, B 23.9, C 27.6. The sixes table and the diffusion table follow. - Live change 1: change
old = line_fit(ipl, 2008, 2022)to end in 2023 and rerun. Ask: does one Impact Player season fix the line? Compare with Case Study 1, where a refit including 2023 forecast 174.4 for 2024 and the actual was 189.6. Don't promise this script's exact number. - Live change 2: open
case_study_01.pyand change the defaultz=1.645inalarm()to a lower and then a higher value. Baseline: IPL 2023 first alarm at match 8 (6 April 2023, running 190.6 against 170.4), persistent from match 65; 2015–22 any alarm in 2 of 8 seasons, persistent in 1 (2021, below the line); no alarm in 2026. Ask students to predict how false alarms and detection speed trade off before running.
In-class activity — "Pick the next question"
Groups of three each take three questions from the §40.6 layer audit: one fully served by public data, one needing tracking, one needing body data. For each they write a roadmap-style card: builds on (an existing Crease module), data needed (public or not), whose cricket is covered (use the completeness table), first step and done when. One group must take associate or women's cricket. Each group presents one card in 90 seconds, and the class asks one ethics-checklist question per card.
Answers and teaching notes for key exercises
- B1. From 195.7: +0.91 × 4 → 199.3; +3.95 × 4 → 211.5. Scenario B matches because the 2023–26 line passes almost exactly through 2026. Scenario A uses the all-seasons line (+1.88), which sits below 2026, so it gives 193.2. Starting from the last actual is a different model from refitting.
- B4. Weight = n / (n + k): 500 / 800 = 0.625 (about 0.65 with women's k of 269). The gender gap in counts doesn't change an individual's weight. It thins the pool and weakens the prior.
- B5. About 270,300 untyped associate balls, roughly four times the IPL's 66,607 legal balls in the same window.
- B6. The band was ±18.1 after 10 matches and ±10.9 at season's end, against a final gap of +12.6. The alarm cleared the band only narrowly once it had narrowed.
- B8. Tests were 6,524 of 10,101 balls (64.6%). "320 in a week" overstates that calendar week, because a Test is dated to its first day, and understates the work, because nets, training and intensity are missing.
- B9. About 1.25 persistent false alarms a year across ten competitions. One alarm should trigger an investigation, not a rebuild.
Assessment ideas
- Pre-registered forecast (Exercise E3). Each student publishes, dated, a forecast of the next IPL season's average first-innings total with a 90% prediction interval and stated assumptions. Score it after the season, or hand it to the next cohort to score. This is the course's last lesson in honesty.
- Ethics memo: Exercise D2 ("fatigue meter"), graded against the ROADMAP ethics checklist.
- Code task: Exercise C5 (a drift alarm on men's full-member T20Is) or C2 (spin share reweighted by conditions: does the 2026 Test drop survive?).
- Course reflection: one number the student believed at the start, its real value and filter, and what changed their mind. Timed alternative: quiz question 20.
Final-week session plan
In the semester syllabus Chapter 40 shares week 15 with the Chapter 39 capstone demonstrations. The plan assumes three sessions; a twice-weekly course can merge B and C.
Session A — "The forecasts everyone makes" (75 minutes). - 0–10: Hook forecast and backtest reveal. - 10–30: §40.2 scenarios and the live demo (01 unchanged, then live change 1). - 30–45: §40.3, behaviour versus composition, with the productive struggle answered by vote first. - 45–65: Workload proxy and layer audit; the in-class activity "Pick the next question". - 65–75: Students draft their E3 forecast. It must be sealed and dated before the session ends.
Session B — Capstone demonstrations with Chapter 40's questions (75 minutes). Each Chapter 39 dashboard demo (6–8 minutes) ends with three questions from the chapter's "Before you believe any forecast" table, asked by the audience: Is it a prediction interval or just a line? What layer does it need? Is any of it simulated, inferred or proxied? Grade the answers alongside the capstone rubric. Close with Case Study 1's drift alarm as the first thing each dashboard should run next season (R2).
Session C — Ethics, roadmap and close of play (50 minutes). - 0–15: The discussion guide's structured debate (the vendor, the physio, the analyst and the player). - 15–30: Each student names their ROADMAP item (R1–R13) with a first step and a "done when" test, as Nusrat did with R4. - 30–40: Read "Close of play" aloud, from Nusrat's call to Wendell's "Ask them for the interval", and the final six-part method: compute it, show the code, state the filter, give the interval, say what the data can't see, then watch the cricket. - 40–50: Final exit ticket (see the discussion guide). Put Chapter 1's framing question back on the board and, if you kept them, return students' week-1 exit tickets so they can compare their first answer with their last.
In short modules, run Session C alone, replacing the roadmap pick with "one question I will check before I believe it".
Format, gender and region diversity notes
- Women's cricket. Women's share of matches rose from 6.6% (2015) to 33.3% (2025), but 2026 had 148 measurable women batters against 369 men. Case Study 2: women's full-member T20I sixes reached 2.27 per 100 balls in 2026 (90% 2.02–2.54), with World Cup matches at 1.57 against 2.53 elsewhere. Equal match fees and ICC equal prize money (July 2023) are not equal investment.
- Associate and domestic cricket. Bowler type is known for 24.2% of men's associate T20I balls, 46.2% of women's and 41.8% in the Syed Mushtaq Ali Trophy. Afghanistan men's internationals are withheld from Cricsheet. Nusrat's R4 starts with the BPL.
- Format. Tests became more decisive, and Test sixes barely moved (0.43 → 0.52). Exercise D3 asks whether Test trends face their own breaks.
Connections
- Where it began: Chapter 1. Luck share and shrinkage: Chapter 6. Era tables: Chapter 9, Chapter 20.
- Simulation audits: Chapter 15. Spin by conditions: Chapter 18. Toss: Chapter 22. Draws and weather: Chapter 29.
- Bowling plans: Chapter 31. Field placement on real shots: Chapter 32. Auction efficiency: Chapter 34. Integrity: Chapter 35.
- Grounded text: Chapter 37. Portfolio: Chapter 38. Capstone: Chapter 39. Rule changes: Appendix E.