Chapter 29 Notes — Weather, Pitch Deterioration, and Session-Level Forecasting
Chapter link: Chapter 29
Overview and learning objectives
Chapter 29 is the book's main red-ball forecasting chapter, and Imran Qureshi is its voice. It opens at Old Trafford in July 2023. England led by 275, Australia were 214 for 5 and still 61 behind, and then 181 overs were never bowled. There is no weather column in the data, yet the weather is "the hole where 181 overs should be".
The chapter separates three clocks: innings, ball age and pitch age (overs already bowled in the match). It shows that any day or session reconstructed from Cricsheet is a nominal label. A 90-over clock matches the real last day in 73.3% of 730 decided Tests and is late in only 0.4%, so it is effectively a lower bound. It then untangles the raw deterioration curve with three methods and settles on a paired design: same team, same pitch, new ball. Wickets fall about 11% faster in innings 3 than in innings 1 (ratio 0.888) and about 15% faster in innings 4 than in innings 2 (0.849).
The rest of the chapter covers four things:
- Spin's rising usefulness, measured as cost per wicket. In SENA a spinner's wicket costs 104.6 balls in the first 100 overs and 60.3 after 300.
- Weather inferred from unbowled overs.
- A session forecaster scored out of sample. It finds no general morning effect and under-forecasts modern wickets.
- A fourth-innings simulator, where adding host-country weather helps but a simple direct model still wins.
The module is test_sim.py.
By the end of the chapter students should be able to:
- Define pitch age, innings start age, nominal day and nominal session, and explain why nominal labels are one-sided approximations.
- Name at least three confounders in a raw "runs per wicket by pitch age" curve (batting order, surviving matches, ball age, innings) and describe how the paired design removes them.
- Distinguish a share of wickets from a cost per wicket when judging whether the pitch helps spin.
- Compute and interpret the unbowled-overs weather proxy, including why it is a lower bound and why not every unbowled over is rain (Antigua 2009).
- Interpret a session model's rate ratios, its out-of-sample MAE and its calibration, and explain why a blurred clock can hide a modest morning effect.
- Score three-way forecasts with the multi-class Brier score and explain why a five-coefficient direct model (0.2996) can beat an elaborate simulator (0.3178).
- Read an outcome map (target × overs available) and connect it to the declaration decision.
Where students struggle
- Nominal v real days. Students treat "day 4" in the tables as day 4. Have them reproduce the R = 90 row (535 exact, 181 one day early, 3 late) before any table by day is shown.
- Confounding in the raw curve. The productive struggle (§29.2) is essential. Most students list "the pitch" and stop. Push them to "who is batting at pitch age 350?" (tails) and "which matches are still going?" (survivors).
- The odds ratio flipping. In §29.3 the pitch-age odds ratio goes from 1.072 to 0.824 once wickets down are controlled. Students find a sign change alarming. Use it to show how much the batting order drives the raw curve.
- "Wickets fall 11% faster." Balls per wicket falling by 11% is not the same as wickets per ball rising by 11% (Exercise B2). Ask students to say which one they mean.
- Weather proxy humility. The proxy can't separate rain from bad light, wet outfields or slow over rates, and it can't see final-day losses. The Antigua row (1.7 overs) is the memorable counterexample.
- The vanishing draw. Students assume less rain or better covers. The data say unbowled overs barely moved (24.91 → 21.36). Wickets got cheaper (63 → 54 balls per wicket) and matches got shorter.
- "Complex should win." The direct multinomial model beating the simulator surprises everyone. Make sure they also hear why the simulator still earns its place: it can start from any state and answer what-if questions.
Pacing
50-minute session. - 0–8: Old Trafford 2023 and the 181 lost overs. - 8–18: §29.1, the three clocks and the nominal-day check. - 18–32: §29.2–29.3, the raw curve, the productive struggle and the paired design (0.888 / 0.849; SENA 0.938 v West Indies 0.786). - 32–40: §29.4, the spin cost table (SENA 104.6 → 60.3). - 40–50: §29.7, the fourth-innings ladder and the Brier backtest.
75-minute session. As above, plus 15 minutes on weather and the vanishing draw (§29.5) and 10 minutes on session forecasting and the morning-session belief (§29.6). Lab time: about 45 minutes. The chase simulator backtest is the slowest script. Run it once before class so you can show the printed table if a laptop stalls.
Lecture outline
- Old Trafford 2023: 269 of 450 overs bowled;
start_age198 for Australia's second innings. - Three clocks; the pitch-age definition; nominal day and session; the day-clock check across R = 80–95.
- The raw curve: runs per wicket by nominal day 37.41 → 28.27; by pitch age; by conditions.
- Untangling: (1) controls one at a time; (2) the fixed cohort of 549 Tests reaching 300 overs; (3) the paired design with bootstrap intervals and conditions splits.
- Spin on the pitch clock: shares v costs; SENA, Asia and other regions; styles coverage 96.9% of Test balls.
- Weather without weather data: unbowled overs; draws v decided Tests (62 of 169 v 11 of 730 losing 90+ overs); hosts (England 14.3%, Bangladesh 13.2%, West Indies 11.6%); English months; the vanishing draw.
- Merging real weather data (sketch only, not run in the book's build).
- Session forecasting: means by day and session; the first-30-overs morning test; the Poisson session model (session 2 RR 0.995, 95% CI 0.962–1.029); 2022–26 under-forecast (2.73 v 3.29).
- Back to Old Trafford: what the lost overs were worth (P innings over 0.524 after three sessions, 0.927 after six).
- The fourth innings: the outcome ladder (10 of 269 chases of 350+ succeeded); the simulator; backtest; calibration; the outcome map.
- The six-step forecasting framework; "Where's the groundsman?"
Live coding demo
Script: code/02_untangling.py, then code/06_chase_sim.py.
- Run
02_untangling.py. First show the odds-ratio table: pitch age alone 1.072, then 1.017, 1.027, 0.824 and 0.849 as innings, ball age, wickets down and batter quality are added. Ask what changed between rows three and four. - Then show the paired design: 1v3 ratio 0.888 (bootstrap 0.834–0.946) across 795 Tests; 2v4 ratio 0.849 (0.789–0.909) across 642. Then the conditions split: SENA 0.938, subcontinent 0.868, West Indies 0.786.
- Live change 1: change
paired_innings(balls, first_overs=30)to 20 and then 50. Ask students to predict which way the ratio will move before you run it. Don't promise numbers; the point is how sensitive the estimate is to the design choice. - Run
06_chase_sim.py(or show its saved output). Backtest on 217 chases: constant 0.5920, direct multinomial 0.2996, simulator without weather 0.3267, with host-country weather 0.3178, with frailty 0.3316. Actual shares 2019–26: loss 0.498, win 0.406, draw 0.097. - Live change 2: in the checkpoint, change the Bangladesh chase from 280 in 120 overs to 280 in 90 overs. The chapter's own output shows the draw rising from 0.00 to 0.48 without weather, or from 0.17 to 0.61 with Bangladesh weather. This is the bridge to Chapter 33.
In-class activity: "Price the last day"
Groups get the fourth-innings outcome table and the outcome map (SENA, pitch age 280). Each group plays the declaring captain with a lead that sets a target of 300.
- (a) Read off P(win/draw/loss) for 100 and 120 overs available.
- (b) Value a win at 1, a draw at 0.4 and a loss at 0, then choose a declaration (Exercise B7: 0.68 v 0.57).
- (c) Redo the choice with an English weather history, remembering that the backtest's draw forecast rose from 3.2% to 11.5% once weather was added.
Each group reports its declaration and one fact that Imran would want to know that the model doesn't: cloud, the groundsman, the attack's fitness.
Answers and teaching notes for key exercises
- B1. Nominal last day 3; the clock is one day early; at least 29 overs lost on days one to three.
- B2. 55.15 / 64.98 = 0.849. Balls per wicket fall about 15%, which means wickets per ball rise about 18%. The interval tops out at 0.909, so the ratio is not plausibly 1. Make students state which measure they mean.
- B3. Spin −42%, pace −13%. The lines haven't met by 300+ (60.3 v 51.7). A captain may still prefer the seamer for runs per over, the new-ball position or the match situation.
- B4. About 22 English and 9 Bangladeshi Tests; the 1.1-point gap is far smaller than either standard error. Use it to dampen "England is the wettest Test country" headlines.
- B6. The market's Brier ≈ 0.649 against 0.638 for the observed shares. Under-pricing the draw costs it. This is a good link to Chapter 35.
- D3 (Wendell: "you're measuring tactics, not the pitch"). A good answer accepts that third-innings batting is often set-up batting and proposes checks: compare matches where the third innings was not a declaration chase, look at run rate (3.124 → 3.215, only a small rise) alongside wickets, or restrict to innings with low leads. Credit students who say the 11% is an upper bound on pure pitch wear if tactics raise risk.
Assessment ideas
- A short paper: "Does the pitch really deteriorate?" Students reproduce the paired design for one host country (as the checkpoint does for Bangladesh: 1v3 balls per wicket 67.5 → 54.9 across 60 Tests) and interpret it honestly.
- Calibration exercise: given the 2022–26 decile table for P(3+ wickets), identify where the model under-forecasts and propose one fix.
- Quiz item: explain why the vanishing draw is not mainly a weather story, citing two numbers.
- Applied write-up modelled on the Old Trafford analysis: pick a drawn Test with many unbowled overs and argue, with the session simulator, whether "rain robbed" the leading side.
Format, gender and region diversity notes
- Format: this is a Test-only chapter by design, the counterpart to Chapter 19's demonstration that the limited-overs state space breaks in Tests. Exercise D1 asks students to reason about why a pitch-age clock means little in white-ball cricket.
- Women's cricket: there are no women's Tests in the snapshot, and the chapter says so twice. Say it explicitly in class. Ask students what a women's multi-day model would need, and note that none of these models can yet be checked on the women's game.
- Region: the chapter spans SENA, the subcontinent, the UAE and the West Indies. West Indies pitches deteriorate most in the paired design (0.786). Bangladesh is the checkpoint: Mirpur, spin share rising from 56.8% to 79.2% of typed balls by pitch age, and monsoon months losing many overs. Case Study 1 compares 31 grounds, from Galle and Lord's to Harare and Queens Sports Club.
- England: Imran, Headingley and Old Trafford give English conditions a voice, including the Eye-test point that cloud changes how the Dukes ball behaves even when no time is lost. Case Study 2 (Headingley 2019 and Edgbaston 2022) shows two chases the model rated as unlikely at the start.
Connections
- Innings-number effects on Test batting: Chapter 10; second new ball, spells and conditions: Chapter 16; spin v pace by conditions: Chapter 18.
- Why the limited-overs state space breaks in Tests: Chapter 19; calibration: Chapter 20; home advantage and the toss in Tests: Chapter 22.
- Shrinkage of venue ratios: Chapter 6; in-match forecasting: Chapter 27.
- The declaration decision built on the outcome map: Chapter 33; draw pricing in Test markets: Chapter 35.