Chapter 10 Notes — Batting in Test Cricket
Chapter link: Chapter 10
Overview and learning objectives
Chapter 10 is the book's first full treatment of red-ball batting, and it starts by deliberately breaking students' T20 instincts. The hook reconstructs two fourth-innings rearguards: AB de Villiers' 43 off 297 balls (276 dots, SR 14.5) at Delhi in 2015 and Babar Azam's 196 off 425 at Karachi in 2022. Both innings did the job the match demanded. From there the chapter builds the metrics that follow from wickets being the binding constraint: balls per dismissal, conversion with shrinkage, innings-number splits, home/away and the new visitor difficulty index, pace/spin splits by conditions, dismissal hazards on two clocks (the batter's and the ball's), Kaplan–Meier survival, a Cox model, and finally the "great debate" card for Kohli, Smith, Williamson, Root and Labuschagne. All data is Cricsheet men's Tests, December 2001 – October 2026 (899 matches). The snapshot has no women's Tests. The Crease module is test_batting.py.
By the end of the chapter students should be able to:
- Write and use the identity average = balls per dismissal × SR ÷ 100, and explain why in Tests the first factor carries the signal (ρ 0.77 with average across 95 established top-order batters, against 0.07 for SR).
- Compute conversion % as 100s ÷ (50s + 100s) and shrink it with a Beta prior (pool 33.7%, prior worth 56 fifty-plus scores).
- Read a hazard table on the batter's clock (balls faced) and the ball's clock (over of innings), and separate new from set batters.
- Explain censoring and compute or interpret a Kaplan–Meier P(lasting 100 balls).
- Compute and interpret the visitor difficulty index (e.g. South Africa 80.6 = 100 × 30,539 ÷ 37,907).
- Explain why raw "average against spin" is inflated by timing, using the new/set split.
- Build a multi-dimension comparison and show how the ranking depends on stated weights.
Where students struggle
- T20 reflexes. Students who arrived through the IPL chapters read strike rate as "higher is better". The §10.1 pitfall box makes the point with a worked contrast (SR 70 for 50 balls versus SR 45 for 100 balls). Make them say "the scarce resource is wickets" before moving on.
- Two conversion definitions. 100s ÷ 50s can exceed 100% (Kohli's would be 97%); the book's version is a probability. Quiz question 2 tests this directly.
- Shrinkage that barely moves. Root's 37.3% → 36.1% confuses students who expect shrinkage to be dramatic. The answer (Exercise B2) is that 110 chances is twice the prior's weight and his raw rate is near the pool rate.
- Censoring. Many students initially want to delete not-outs or count them as failures. Use Smith: naive 0.313 versus Kaplan–Meier 0.358, with 18 not-outs below 100 balls.
- "No nervous nineties" sounds like a claim about feelings. It is a claim about per-ball dismissal risk (1.17% on 90–99 against 1.29% on 80–89) among batters who reached the nineties. Exercise A10 handles the former player's objection.
- Home/away gap versus the visitor index. The raw gap mixes conditions, opposition and the schedule. The index holds the batter constant; students often miss that it still cannot separate pitch, ball, weather and opposition attack.
- "Everyone is better against spin." The pace/spin gap shrinks from 8.31 runs for set batters to 2.83 for new batters (Exercise B9). Spin bowls more of its balls to set batters.
- Weights. Students want the debate card to "give the answer". The chapter's point is that output, survival, travel and pressure weightings produce different orders.
Pacing
50-minute session. - 0–8: Hook. Show the Delhi/Karachi output and ask the class to grade the four innings as a T20 analyst would, then as a Test captain would. - 8–18: §10.1 identity and the era baseline (2010–19 bpd 72.8; 2020–26 64.7; 2024 low of 54.0). - 18–28: Conversion and shrinkage; the "40% club" claim (true raw, only marginally after shrinkage). - 28–38: Home/away and the visitor index; pace/spin in SENA and the subcontinent. - 38–50: Survival curves and the debate card's weightings.
75-minute session. Add the hazard section (§10.6, 10 minutes, including the second-new-ball spike) and a 15-minute live demo on 08_great_debate.py. Lab time: 45–60 minutes. Every script runs in under 15 seconds, but 07_survival.py needs lifelines; check installs in advance.
Lecture outline
- Hook: survival as the point of a fourth-innings innings (South Africa 143 in 143.1 overs; Pakistan 443/7 in 171.4 overs).
- The currency: balls per dismissal; the identity; era baseline; Chanderpaul's 130.3 bpd heads the list (partial careers in the snapshot).
- Conversion: definition, pool 33.7%, Beta(18.9, 37.3); 18 batters at 40%+ raw, 7 after shrinkage; split-half r 0.28 (conversion) against 0.44 (average). Milestone ladder: 0.562 × 0.608 ≈ the pool rate, so no special hurdle at 100.
- Innings number: top-7 averages 41.97 / 38.43 / 33.11 / 30.20; median fourth-innings ratio 0.84; Smith's fourth-innings 31.65 from 34 innings and why the label "fourth-innings specialist" needs shrinkage.
- Wins/losses, Test edition: 98.6% of 73 batters average more in wins; Williamson 81.12 v 27.12.
- Home/away: median gap 5.69 runs, only 7.5% over 20 (the popular "most average 20+ more at home" is false). Visitor index: South Africa 80.6, Australia 86.1, India 89.8, England 93.1 … Zimbabwe 152.4.
- Pace and spin: SENA pace 33.67 / spin 49.37; subcontinent pace 39.41 / spin 38.93; new-v-set correction. Kohli v pace in SENA 36.83 (80 dismissals).
- Hazards: 1.72% in the first 10 balls → ~1.2% after 80; set batters 88.3 → 66.0 balls per dismissal when the second new ball arrives.
- Survival: Kaplan–Meier (Williamson 37.1%, Smith 35.8%, Root 33.6%, Labuschagne 30.4%, Kohli 30.0%); Cox hazard ratios (away 1.09, fourth innings 1.28; concordance 0.532).
- The debate card and the §10.9 framework.
Live coding demo
Script: code/08_great_debate.py.
- Run it unchanged. Expected output: the debate card (Smith average 55.29, era-relative 1.520, bpd 102.7; Williamson 54.06 / 1.493 / 104.0; Root 50.45 / 1.429 / 87.6; Kohli 46.85 / 1.305 / 84.3; Labuschagne 42.64 / 1.219 / 81.8), the ranks within the pool of 70, and the weighting table: Smith first on output, travel and equal weights; Williamson first on survival and pressure; Labuschagne fifth on all five schemes.
- Show the
schemesdictionary near the bottom of the script. - Live change 1: ask the class to propose a new weighting, such as "Wendell's green seamer":
"Green seamer": {"avg_pace_SENA": 2, "balls_per_dismissal": 1}(keys must match the script'sdimsdictionary). Ask students to predict the order before running. From the pool ranks, Smith (3rd of 70 v pace in SENA) should lead and Kohli (33rd) should trail, but let the output speak. - Live change 2: add Pujara or Babar Azam to
BIG5(use Cricsheet spellings; check them with a quickisinfirst). Their pace/spin numbers are in the chapter (Pujara 36.52 / 63.60; Babar 38.44 / 56.80). - Close by pointing out that the code never "decides". The weights are a claim about what matters, and the analyst has to state them.
Alternative if time is short: code/07_survival.py, which prints the Kaplan–Meier table and the Cox hazard ratios. Ask students to read Smith's naive 0.313 against KM 0.358 aloud.
In-class activity — "Grade the tour"
Groups of three get the visitor difficulty index table and the Mushfiqur/Mominul checkpoint output. Task: (a) verify South Africa's 80.6 and New Zealand's 104.3 from the run totals in Exercise B4; (b) look at Mushfiqur's away record by host country (Sri Lanka 64.13 from 15 outs, England 10.00 from 4) and explain why "away" is not one place; (c) write a two-sentence selection note on which Bangladeshi batter they would trust more on a tour of South Africa, naming one number they distrust because of sample size. Each group reports its distrusted number. (Expect Pakistan 108.00 from 2 outs to come up.)
Answers and teaching notes for key exercises
- B2. Raw 37.3%; shrunk (41 + 18.9) ÷ (110 + 56.2) = 36.0% (the chapter's table shows 36.1% with unrounded prior values). It moves little because 110 chances is about twice the prior's strength and the raw rate is close to 33.7%.
- B3. 0.562 × 0.608 = 34.2%, almost exactly the pool rate. Use this to argue that conversion mostly reflects the same survival skill that drives average. Pair it with M1: Spearman–Brown gives conversion 0.44 and average 0.61.
- B5. 100 ÷ 1.133 = 88.3; 100 ÷ 1.516 = 66.0; risk up 33.8%. Emphasise the set-batter restriction (A5). Without it, the over-of-innings curve mixes in new batters arriving after a wicket.
- B7. Kaplan–Meier keeps the 18 short not-outs at risk until they stopped and then removes them without a dismissal. A No. 7 is left stranded more often, so the naive/KM gap is usually bigger.
- B9. New gap 2.83; set gap 8.31. A raw 45-v-60 split tells you very little until you see the batter's own state split, and then it still needs shrinkage.
- B10. SR-only change +15.2; survival-only −4.8; interaction about −2.4; actual +8.0. Good bridge to D4 and the Bazball discussion. England also went from W22 L22 D10 to W30 L20 D2.
Assessment ideas
- Short answer: quiz question 20 (a "survive the next 60 balls" broadcast graphic for a batter on 45 off 70) is an excellent timed write. Look for conditioning on balls already faced, censoring, and the second-new-ball state.
- Code task: Exercise C6 (nervous nineties by subgroup). It is quick, and the results are genuinely uncertain in advance.
- Written argument: Exercise D5 (a fair paragraph on Labuschagne, era-relative rank 21st of 70) assesses whether students can hold "fifth of these five" and "a fine Test batter" together.
- Selector note: Exercise D7 (hypothetical batters X and Y for a South Africa tour) tests the §10.9 framework end to end.
Format, gender and region diversity notes
- No women's Tests are in the snapshot. Say so plainly in class; don't let students assume the chapter's numbers describe Test cricket in general. Exercise E2 asks students to design a women's multi-day analysis honestly, without assuming a data source exists.
- Bangladesh gets the checkpoint (Mushfiqur and Mominul, both about 23 in SENA conditions). Pakistan gets the Karachi hook and Younis Khan heads the spin-in-subcontinent column (93.38). Sri Lanka (Sangakkara 1.65 on the equal-weight composite) and West Indies (Chanderpaul 1.40) top the whole pool. Use them so the debate is not only about the "Fab Four".
- Imran Qureshi's Eye test (June under cloud with a Dukes ball versus a dry August Oval) is a good prompt for English and Asian students to compare conditions they know.
- Remind students that pre-2006 coverage is thin, so the careers of Tendulkar, Kallis and others are partial here.
Connections
- The binding-constraint idea and the 41-ball median: Chapter 5.
- Shrinkage and split-half reliability: Chapter 6.
- Selection on the outcome (wins v losses): Chapter 4.
- Shrinking small pace/spin cells: Chapter 11.
- Test partnerships built on
innings_table: Chapter 12. - The bowling side of the second new ball and conditions: Chapter 16, Chapter 18.
- Survival as projection input and simulator raw material: Chapter 25, Chapter 29;
p_survivein the declaration model: Chapter 33.