In the Delhi Test of December 2015, South Africa began their second innings needing 481 to beat India. Nobody expected them to get there. In the first innings India's spinners, Ravindra Jadeja and Ravichandran Ashwin, had shared seven of the ten...
In This Chapter
- 10.1 The Currency of Test Batting
- 10.2 Conversion: Fifties Into Hundreds
- 10.3 First Innings, Fourth Innings
- 10.4 Home, Away and Conditions
- 10.5 Pace and Spin
- 10.6 When Do Test Batters Get Out?
- 10.7 Survival Analysis: Will He Last 100 Balls?
- 10.8 Settle This Debate: Kohli, Smith, Williamson, Root, Labuschagne
- 10.9 A Framework for Judging a Test Batter
- Spaced Review
- Project Checkpoint: test_batting.py
- Chapter Summary
- What's Next
Chapter 10 — Batting in Test Cricket: Patience, Conversion, Conditions, and the Metrics That Measure Test-Match Batting Quality
In the Delhi Test of December 2015, South Africa began their second innings needing 481 to beat India. Nobody expected them to get there. In the first innings India's spinners, Ravindra Jadeja and Ravichandran Ashwin, had shared seven of the ten wickets as South Africa were bowled out for 121. The realistic hope was to bat long enough to save the match.
So they tried. Hashim Amla faced 244 balls for 25 runs. AB de Villiers faced 297 balls for 43. Of those 297 balls, 276 were dot balls. This is the same AB de Villiers whose name sits next to the phrase "360-degree batting" and whose T20 highlight reels you have probably watched. In the Cricsheet data his innings in Delhi has a strike rate of 14.5.
It didn't work. South Africa were all out for 143 in 143.1 overs: almost exactly a run an over, and India won by 337 runs. Ashwin bowled 49.1 overs for 61 runs and five wickets. Jadeja bowled 46 overs for 26.
Six years later, in Karachi in March 2022, Pakistan faced the same job. Australia had set them 506 to win. Babar Azam batted for 425 balls and made 196; Abdullah Shafique faced 305 balls for 96. Pakistan finished on 443/7 after 171.4 overs, and the match was drawn.
Here is the output from this chapter's first script, which reconstructs both fourth innings from the ball-by-ball data:
=== Two fourth-innings rearguards ===
India v South Africa, Feroz Shah Kotla, Delhi, 2015-12-03 result: win winner: India by_runs: 337.0
4th innings: South Africa 143/10 in 143.1 overs; target 481
AB de Villiers 43 off 297 balls SR 14.5 dots 276 out=1
HM Amla 25 off 244 balls SR 10.2 dots 230 out=1
Australia v Pakistan, National Stadium, Karachi, 2022-03-12 result: draw winner: None by_runs: nan
4th innings: Pakistan 443/7 in 171.4 overs; target 506
Babar Azam 196 off 425 balls SR 46.1 dots 313 out=1
Abdullah Shafique 96 off 305 balls SR 31.5 dots 244 out=1
Look at those four innings with the eyes of a T20 analyst and they are a disaster: four batters, 1,271 balls, strike rates between 10 and 46. Look at them as a Test analyst and all four were attempts at the one thing the match required. Babar's 425 balls were not a slow way of scoring 196. They were the point. Pakistan didn't need runs in Karachi. They needed the match to run out of time before they ran out of wickets, and every ball Babar survived was a ball the Australians couldn't use.
De Villiers and Amla were doing the same job and fell short. That doesn't make their innings bad. In Test cricket, though, survival is valued in balls, the bill arrives at the end of the match, and the scoreboard pays out only if you last long enough.
That is the subject of this chapter. Chapter 5 showed that Test cricket is a different sport from T20 because its binding constraint is wickets, not balls: almost three Test innings in four end all out. This chapter takes that fact and builds the batting metrics that follow from it:
- balls per dismissal: how long a batter lasts, the first currency of Test batting;
- conversion: whether a batter who reaches 50 goes on to 100, and whether that is really a skill;
- innings number: how batting changes from the first innings of a match to the fourth;
- home, away and conditions: how much travel costs, measured honestly;
- pace and spin: who struggles against what, and why the raw split flatters spin;
- time in the innings: when batters get out, by balls faced and by the age of the ball;
- survival analysis: Kaplan–Meier curves that answer "what is the chance this batter lasts 100 balls?";
- and, at the end, the great debate: Kohli, Smith, Williamson, Root and Labuschagne compared on nine dimensions instead of one.
🏏 Fan Track: Read the hook, §10.1–10.4 and §10.8. Every table carries its own argument; skip the code blocks if you like. The answer to "who is the best Test batter of the era?" in §10.8 is more interesting than a single name.
📊 Analyst Track: Everything, especially §10.2 (shrinking conversion), §10.6 (hazard curves that separate the batter's clock from the ball's clock) and §10.7 (Kaplan–Meier and Cox models with
lifelines). Thetest_batting.pymodule you build here feeds the Test simulator in Chapter 29 and the declaration model in Chapter 33.🎰 Betting Track: §10.3 (fourth-innings records), §10.6 (the second-new-ball spike) and §10.7 (survival probabilities, the raw material of "top batter" and "will X reach 50?" markets). Read the shrinkage warnings in §10.2 before trusting any batter-specific number.
10.1 The Currency of Test Batting
The cricket question. If you could know only one number about a Test batter, which would you pick?
Most people pick the batting average, runs per dismissal, and for Test cricket that's a far better choice than it is in T20. But the average is a product of two things. One is how long you last, and the other is how quickly you score while you're there:
$$\text{average} = \frac{\text{runs}}{\text{outs}} = \frac{\text{balls}}{\text{outs}} \times \frac{\text{runs}}{\text{balls}} = \text{balls per dismissal} \times \frac{\text{strike rate}}{100}$$
In T20 cricket the second factor dominates, because the innings ends after 120 balls whatever happens. In Test cricket the innings only ends when ten wickets fall (or a captain declares, or the match runs out of time). The first factor, balls per dismissal, is therefore the natural currency, and the one this chapter leads with.
📐 Definition — balls per dismissal (Test). Balls faced ÷ outs, using the book's standard definitions: balls faced exclude wides and include no-balls; outs exclude retired hurt and retired not out. It measures how long a batter survives on average, in deliveries rather than minutes. Throughout this chapter, average = runs ÷ outs and strike rate (SR) = 100 × runs ÷ balls faced.
The code. Everything in this chapter is built on one table: one row per batter innings, with the match context attached. Cricsheet doesn't record batting positions, so we infer them from the order in which batters first appear (the same inference Chapter 5 used). The new module's first function builds the table:
def innings_table(balls: pd.DataFrame, matches: pd.DataFrame) -> pd.DataFrame:
"""One row per batter innings in Test deliveries, with match context."""
inn = batter_innings(balls).rename(columns={"player": "batter"}) # from crease.formats
teams = (balls.groupby(["match_id", "innings"])[["batting_team", "bowling_team"]].first()
.rename(columns={"batting_team": "team", "bowling_team": "opposition"}).reset_index())
ctx = add_host(matches)[["match_id", "start_date", "venue", "host_country", "conditions",
"home_team", "winner", "result"]]
inn = inn.merge(teams, on=["match_id", "innings"], how="left").merge(ctx, on="match_id", how="left")
inn["year"] = inn["start_date"].dt.year
inn["venue_status"] = np.where(inn["home_team"].isna(), "neutral",
np.where(inn["team"] == inn["home_team"], "home", "away"))
...
inn["fifty"] = inn["runs"].between(50, 99)
inn["hundred"] = inn["runs"] >= 100
return inn
From 899 men's Tests (December 2001 to October 2026) it produces 33,036 batter innings. The module's career_card then rolls them up. Its totals reproduce the toolkit's canonical batting_summary exactly (the checkpoint script asserts it), so every number here is the same number every other chapter would compute.
The output. Among the 95 batters with at least 80 innings at inferred positions 1–7:
=== Test batters, inferred positions 1-7, 80+ innings: n = 95 ===
Spearman(average, balls/dismissal) = 0.77
Spearman(average, strike rate) = 0.07
Spearman(balls/dismissal, SR) = -0.53
Top 12 by balls per dismissal:
innings runs average balls_per_dismissal strike_rate
batter
S Chanderpaul 131 5994 57.63 130.3 44.23
KC Sangakkara 151 8489 61.07 112.4 54.32
Misbah-ul-Haq 123 5102 49.53 110.2 44.95
R Dravid 143 5925 47.02 109.0 43.14
JH Kallis 150 7347 54.02 108.6 49.73
VVS Laxman 128 5409 52.01 105.1 49.48
TT Samaraweera 89 3890 51.18 105.0 48.76
SPD Smith 223 10903 55.91 104.1 53.69
KS Williamson 195 9515 54.06 104.0 51.98
Younis Khan 149 7135 53.65 103.5 51.84
MEK Hussey 130 5779 49.82 100.9 49.37
AG Prince 89 3261 44.67 100.9 44.26
The rank correlation between average and balls per dismissal is 0.77. Between average and strike rate it is 0.07, which is effectively zero. Among established Test top-order batters, how long you last tells you most of what you'll average. How fast you score tells you almost nothing about it. And the two are traded against each other: batters who last longer score more slowly (ρ = −0.53).

📊 Figure (described): Each dot is a Test batter with 80+ innings at positions 1–7, plotted by balls faced per dismissal (horizontal) and average (vertical), coloured by strike rate. The cloud rises steeply from bottom left to top right: survival and average move together. Shivnarine Chanderpaul sits far to the right (130 balls per dismissal), Kumar Sangakkara at the top (61.07). The fast scorers in yellow and green, such as David Warner and Travis Head, sit to the left of the cloud: they average in the 40s by scoring quickly while lasting far fewer balls.
Notice the names on the list. Chanderpaul, Dravid, Kallis, Laxman and Misbah are all careers that started before this book's data does. Cricsheet's Test archive begins in December 2001 and is thin for the first few years: 1, 2, 20, 17, 24 and 39 Tests for 2001–2006, against 40-plus a year after that. Sangakkara's 151 innings and Dravid's 143 here are only the post-2001 part of their careers. Throughout this chapter "career" means career within the snapshot. When a number disagrees with a famous official figure, that's usually why.
What "normal" looks like, and how it is moving
A batter's record only means something against the era in which it was made. The module's era_baseline computes the average and balls per dismissal for batters at positions 1–7 in each calendar year, in Tests between the twelve ICC full members:
=== Era baseline: positions 1-7, Tests between full members ===
base_avg base_bpd
year
2009 42.3 80.5
2010 41.1 77.8
...
2018 31.5 63.8
...
2023 36.9 66.1
2024 31.6 54.0
2025 35.0 60.8
2026 33.9 60.1
2010-19 mean: avg 37.1, bpd 72.8; 2020-26 mean: avg 34.5, bpd 64.7
The 2010s top order averaged 37.1 and lasted 72.8 balls per dismissal. The 2020s top order averages 34.5 and lasts 64.7. In 2024 balls per dismissal fell to 54.0, the lowest of any year in the data, while the top-order strike rate reached 58.5, the highest (the same script prints SR by year: 52.8 in 2010, 49.4 in 2018, 58.5 in 2024).

📊 Figure (described): Three lines by calendar year, 2003–2026, for positions 1–7 in Tests between full members. Average (left axis) wanders between 31 and 42 with a gentle downward drift. Balls per dismissal (right axis) falls from around 75–80 in the late 2000s to 54 in 2024. Strike rate (right axis) is flat at about 49–53 until 2021, then climbs to 56–58.5 from 2023. Test top orders are surviving less and scoring faster than at any time in the data.
The lesson for the rest of the chapter: compare like with like. A Test average of 45 in 2024 is a much better season than a Test average of 45 in 2009. §10.8 uses this baseline to put every batter's average on an era-relative scale.
⚠️ Common pitfall: reading strike rate the T20 way. In T20, a higher strike rate is nearly always better. In Tests it isn't, because the scarce resource is wickets, not balls. A batter who scores at 70 but lasts 50 balls (average 35) contributes fewer runs per wicket than one who scores at 45 and lasts 100 balls (average 45). Strike rate matters in Tests in two places: when time is short (a fourth-day push for a declaration, a chase against the clock) and as a way to change the match's tempo. Neither makes it the headline number. Case Study 2 shows what happened when a whole team decided otherwise.
Women's Test cricket. The book's data snapshot has no women's Test archive. Women's Tests are played rarely, so a women's version of this chapter's analysis isn't possible from Cricsheet. The tools here would apply unchanged if the data existed. Women's batting gets full treatment in the white-ball chapters (Chapter 8) and in Chapter 26.
🔄 Check your understanding
- Write the identity that links average, balls per dismissal and strike rate. Use it to work out Chanderpaul's average from his balls per dismissal (130.3) and SR (44.23).
- Among 95 established Test batters, average correlates 0.77 with balls per dismissal and 0.07 with strike rate. What does that tell you about how Test averages are built?
- Why can't you compare a 2009 Test average directly with a 2024 one?
Answer
- Average = balls per dismissal × SR / 100 = 130.3 × 0.4423 ≈ 57.6, which matches his 57.63.
- Among good Test batters, differences in average come mostly from differences in how long they survive, not from how fast they score. Scoring tempo varies a lot between them but barely moves the average, partly because fast scorers tend to last fewer balls (ρ = −0.53).
- The baseline moves. Top-order batters averaged 42.3 and lasted 80.5 balls per dismissal in 2009, but averaged 31.6 and lasted 54.0 in 2024. The same raw number means different things in different eras, so compare each against its own year's baseline.
10.2 Conversion: Fifties Into Hundreds
The cricket question. Commentators love to say that great Test batters "go on". They don't get out for 60 after doing the hard work. They convert fifties into hundreds. A claim you will often hear is that "Kohli, Smith and Williamson all convert at 40%+". Is that true? And is conversion a skill at all, or a lucky streak in a statistic with a small denominator?
📐 Definition — conversion rate. Conversion % = hundreds ÷ (fifties + hundreds) × 100, where a fifty is a score of 50–99 and a hundred is 100 or more. Not-out fifties count as fifties. Some sources use hundreds ÷ fifties instead; that version is always larger (Kohli's would be 30 ÷ 31 = 97%) and is not the one used in this book.
The raw numbers. The module's career_card computes it directly. For the five batters in this chapter's debate:
| Batter | Inns | 50s | 100s | Conversion | Average |
|---|---|---|---|---|---|
| Virat Kohli | 210 | 31 | 30 | 49.2% | 46.85 |
| Kane Williamson | 195 | 38 | 33 | 46.5% | 54.06 |
| Steve Smith | 227 | 45 | 37 | 45.1% | 55.29 |
| Joe Root | 309 | 69 | 41 | 37.3% | 50.45 |
| Marnus Labuschagne | 123 | 25 | 11 | 30.6% | 42.64 |
So the claim is true for the three it names, in the raw data. Kohli, Williamson and Smith do convert more than 45% of their fifty-plus scores. It fails for Root and Labuschagne, who are often named in the same breath. Root's 41 hundreds come from 110 fifty-plus scores (37.3%). The interesting questions come next: how unusual is 45%, and how much of it is luck?
Shrinking conversion. Conversion is a rate with a small denominator. Kohli has 61 fifty-plus scores, which sounds like a lot until you remember Chapter 6's lesson about binomial noise: a true 35% converter will convert 45% of 61 chances fairly often by luck alone. The honest estimate is a beta-binomial shrinkage. Fit a Beta prior to the conversion rates of all batters with enough chances, then pull each batter's raw rate toward the pool rate by an amount that depends on how many chances they have had. Chapter 6 built fit_beta_prior and shrink_beta in crease.uncertainty. This chapter's conversion_table reuses them:
def conversion_table(inns, min_fifty_plus=20, level=0.9):
card = career_card(inns)
card["fifty_plus"] = card["fifties"] + card["hundreds"]
pool = card[card["fifty_plus"] >= min_fifty_plus].copy()
a, b = fit_beta_prior(pool["hundreds"], pool["fifty_plus"]) # method of moments, noise-corrected
pool["conv_pct"] = 100 * pool["hundreds"] / pool["fifty_plus"]
pool["conv_shrunk"] = 100 * shrink_beta(pool["hundreds"], pool["fifty_plus"], a, b)
...
=== Conversion, batters with 20+ scores of 50+ (n = 94) ===
Pool conversion rate: 33.7%
Beta prior: a = 18.9, b = 37.3 -> worth 56 fifty-plus scores
Batters at 40%+ raw: 18; at 40%+ after shrinkage: 7
The five in the debate:
innings fifty_plus hundreds conv_pct conv_shrunk shrunk_lo shrunk_hi average
batter
V Kohli 210 61 30 49.2 41.7 34.4 49.3 46.8
SPD Smith 227 82 37 45.1 40.5 33.7 47.4 55.3
KS Williamson 195 71 33 46.5 40.8 33.8 48.1 54.1
JE Root 309 110 41 37.3 36.1 30.0 42.3 50.4
M Labuschagne 123 36 11 30.6 32.5 24.7 40.7 42.6
Read the third line of the output carefully: the prior is worth 56 fifty-plus scores. A batter needs 56 fifty-plus scores before their own record carries as much weight as the league's. Kohli, with 61, is barely past that point, and Smith, with 82, isn't far beyond it. After shrinkage the three named batters still sit above 40% (41.7, 40.8, 40.5), and they are three of only seven batters in the pool of 94 who do. But their 90% intervals all reach down to about 34%, which is the pool average.

📊 Figure (described): For every batter with 45+ fifty-plus scores, an orange circle marks raw conversion and a blue square the shrunk estimate, joined by a grey line. A dashed line marks the pool rate (33.7%) and a dotted line the "40%" threshold. Every raw rate is pulled toward the pool. High converters such as Younis Khan (53.3% raw), Michael Clarke and Jacques Kallis slide back to about 42%. Low converters such as Misbah-ul-Haq (20.4% raw) rise to about 27.5%. After shrinkage only seven batters sit right of the 40% line, and Kohli, Williamson and Smith are among them.
Is conversion a skill? Shrinkage assumes there is some true variation between batters (otherwise the prior would swallow everything). The direct test is split-half reliability. Randomly split each batter's fifty-plus innings into two halves, compute conversion in each half, and correlate the halves across batters. Do it 200 times. Then do the same for average:
=== Split-half reliability across the 94 batters (200 random splits) ===
Conversion: half-vs-half r = 0.28 (Spearman-Brown full-career = 0.44)
Average: half-vs-half r = 0.44 (Spearman-Brown full-career = 0.61)
Conversion is a real but weak signal. Half a career's conversion predicts the other half's with r = 0.28, against 0.44 for average. Scaled up to a full career (the Spearman–Brown formula, see Appendix D), conversion's reliability is 0.44. In other words, more than half of the spread in career conversion rates between established batters is noise. It also isn't independent of everything else. Across the 94 batters, raw conversion correlates 0.62 with average. Batters who last longer get more chances to reach 100 from 50, which is exactly what the survival sections below predict.
🧩 Productive struggle. Before reading on, predict this: once a top-order batter reaches 90, is the chance of getting out on the next ball higher than when they were on 80, the same, or lower? Cricket has a name for the folk answer, "the nervous nineties". Write down your guess and a reason, then look at Figure 10.4.
The nervous nineties. If conversion were a special mental skill, you might expect batters to get out more often on the doorstep of 100. The module's hazard_by_score computes the dismissal hazard: the probability that the striker is dismissed on a ball, grouped by the striker's score before that ball. For batters at positions 1–7:
score 80-89: balls 37,352, dismissal % 1.285, SR 59.1, dot % 67.7
score 90-99: balls 27,877, dismissal % 1.173, SR 65.6, dot % 65.2
score 100-109: balls 24,537, dismissal % 1.243, SR 55.9, dot % 68.7

📊 Figure (described): The probability of dismissal per ball faced (vertical) against the batter's score before the ball, in 5-run bins from 0 to 150, for positions 1–7. The curve starts at 1.64% for scores of 0–4, falls quickly through the first 30 runs, then flattens at around 1.2–1.4% per ball. The shaded "nervous nineties" band shows no rise. The 95–99 bin (1.07%) is among the lowest on the chart.
There are no nervous nineties in the data. Per ball, a batter on 90–99 is less likely to be dismissed (1.17%) than one on 80–89 (1.29%). They also score faster in the nineties (SR 65.6 against 59.1), pushing towards the milestone, not freezing. What does show up is that risk keeps falling as the score rises, because a batter on 90 has, by definition, been in for a while. §10.6 separates "how long you've been in" from "what your score is".
The milestone ladder puts this together. Among top-order innings that reach each score (and don't end not out before the next one):
from to reached_from censored made_it pct
0 10 22385 207 15352 69.2
10 25 15352 284 10070 66.8
25 50 10070 328 5390 55.3
50 75 5390 257 2886 56.2
75 100 2886 100 1695 60.8
100 150 1695 247 501 34.6
150 200 501 58 168 37.9
From 50, 56.2% reach 75, and of those 60.8% reach 100. Multiply them and you get about 34%, the pool conversion rate. Nothing magical happens between 50 and 100. It's two ordinary rungs of a ladder whose rungs get easier the higher you climb (the 75→100 rung is easier than 25→50). Conversion is mostly survival, measured over a particular 50-run stretch.
📋 Try it — Evaluate this player. Joe Root's career conversion is 37.3%, below the "40% club". But split at the start of 2021, the module's
career_card(…, by="era")gives:
text innings runs average strike_rate balls_per_dismissal fifties hundreds conv_pct era to 2020 177 7823 47.99 54.49 88.1 49 17 25.8 2021 onward 132 6455 53.79 61.91 86.9 20 24 54.5 Fisher exact test, hundreds vs fifties by era: p = 0.0027Is "Root became a great converter in 2021" a fair conclusion? Write three sentences, and use the words "forking paths" in one of them.
Worked answer
The change is large: 17 hundreds from 66 fifty-plus scores before 2021, 24 from 44 since, and a Fisher test gives p = 0.0027, so it's unlikely to be a pure coin-flip run. But the 2021 split wasn't chosen blind. It was chosen because we already knew Root's scoring took off around then, and searching for the split that makes a difference ("forking paths") makes small p-values much easier to find than the test assumes. The fair conclusion is that Root's conversion clearly was higher from 2021, alongside a faster strike rate (61.9 against 54.5) and an unchanged survival rate (86.9 against 88.1 balls per dismissal). Whether that's a durable change in skill is a question for the projection methods of Chapter 25, which shrink a hot spell toward the career baseline instead of assuming it continues.
🔄 Check your understanding
- Kohli converts 49.2% of 61 chances raw, 41.7% shrunk. Why does shrinkage move him by 7.5 points while moving Root (110 chances) by only 1.2?
- Conversion's full-career reliability is 0.44 and average's is 0.61. In plain English, what does that mean?
- Does the data support the "nervous nineties"? Give two numbers.
Answer
- Shrinkage weight depends on sample size relative to the prior's strength (56 chances). Kohli's 61 chances are about half his estimate; Root's 110 are about two-thirds. Kohli's raw rate is also further from the pool rate, so there is more distance to shrink.
- About 44% of the variation in career conversion rates among established batters reflects stable differences between them; the rest is noise. Average is more stable (61%), so it's the more trustworthy guide to ability.
- No. Dismissal risk per ball is 1.17% on 90–99 against 1.29% on 80–89, and batters actually score faster in the nineties (SR 65.6 against 59.1).
10.3 First Innings, Fourth Innings
The cricket question. Batting last in a Test is supposed to be the hardest job in cricket: a worn pitch, footmarks for the spinners, tired legs and a scoreboard that tells you exactly what you need. How much harder is it? And does it separate great batters from good ones?
Cricsheet numbers a Test's innings 1 to 4 in the order they're played. (When the follow-on is enforced, the same team bats in innings 2 and 3. The numbering still tracks how old the pitch is, which is what we want.)
=== Positions 1-7, by match innings number ===
innings runs outs not_out_pct average balls_per_dismissal strike_rate
innings
1 6254 252231 6010 3.9 41.97 78.9 53.19
2 6227 231285 6018 3.4 38.43 74.0 51.90
3 5973 182337 5507 7.8 33.11 64.2 51.56
4 3931 100280 3321 15.5 30.20 60.7 49.76
The top-order average falls by about 12 runs from the first innings (41.97) to the fourth (30.20), and balls per dismissal falls from 78.9 to 60.7. The strike rate barely moves (53 to 50). Batting gets harder as the match ages because batters get out sooner, not because they score more slowly.
The not-out column matters too: 15.5% of fourth-innings top-order innings end unbeaten, four times the first-innings rate. A fourth innings ends when the match does, whether by a target reached, a draw secured or time running out, so many batters are still in. That makes the fourth-innings average more not-out-inflated than any other (Chapter 4's lesson). The same script splits it by conditions (2015 onward):
innings 1 2 3 4
conditions
Other 43.0 40.4 30.1 25.0
SENA 39.9 34.9 32.7 30.0
Subcontinent 42.5 38.4 31.0 27.6
UAE 53.5 35.2 34.9 26.4
West Indies 33.0 32.6 28.0 23.1
The first-to-fourth drop is about 15 runs in the subcontinent and about 10 in SENA countries (South Africa, England, New Zealand, Australia). That fits the usual story, with pitches in Asia wearing and turning more. But even in SENA conditions the fourth innings is the hardest place to bat.
The five, innings by innings
=== The five, by innings number ===
innings runs outs average balls_per_dismissal
batter innings
JE Root 1 89 4326 84 51.50 88.9
2 80 4331 75 57.75 98.0
3 82 3562 78 45.67 76.1
4 58 2059 46 44.76 87.4
KS Williamson 1 54 2665 54 49.35 99.0
2 56 3264 52 62.77 115.2
3 54 2469 48 51.44 104.0
4 31 1117 22 50.77 89.9
M Labuschagne 1 37 2181 37 58.95 116.9
2 30 1042 30 34.73 68.6
3 35 1240 33 37.58 69.9
4 21 398 14 28.43 45.0
SPD Smith 1 74 5379 67 80.28 151.8
2 52 2577 50 51.54 97.4
3 67 2224 56 39.71 67.9
4 34 823 26 31.65 61.3
V Kohli 1 69 3106 68 45.68 81.2
2 52 3151 51 61.78 110.7
3 57 1871 52 35.98 68.0
4 32 1102 26 42.38 73.2

📊 Figure (described): Grouped bars show each of the five batters' averages in the first, second, third and fourth innings of a match, with a black line for all top-order batters (41.97 → 38.43 → 33.11 → 30.20). Steve Smith's first-innings bar towers at 80.28, then his bars fall below the league line by the fourth innings (31.65). Williamson's bars stay at about 49–63 across all four innings, and Root's at 45–58. White numbers at the base of the fourth-innings bars show how small those samples are: 21–58 innings.
Two very different shapes appear:
- Steve Smith is a first-innings colossus. An average of 80.28 and 151.8 balls per dismissal when batting first in the match is the most extreme number in this chapter. His fourth-innings average (31.65 from 34 innings) is roughly the league's.
- Kane Williamson barely notices the innings number. He averages 50.77 in the fourth innings and 62.77 in the second. Root is similar (44.76 in the fourth). Kohli's 42.38 is well above the league's 30.20.
How unusual is Williamson? Across all 67 batters with 20+ fourth innings and 12+ fourth-innings dismissals, the median ratio of fourth-innings to career average is 0.84, and only 24% average more in the fourth innings than overall. Williamson's ratio is 0.94. Smith's is 0.57, third-lowest of the 67, behind only Ollie Pope (0.48) and Tom Latham (0.55) and just ahead of Kallis (0.58). The highest ratio belongs to Kusal Mendis (1.43: 52.21 in the fourth innings against 36.56 overall).
⚠️ Common pitfall: crowning a "fourth-innings specialist" from 30 innings. Fourth innings are rare: even Root, with 309 Test innings, has only 58. Thirty fourth innings at a typical Test standard deviation give an average that can easily move ten runs either way by luck alone. They also mix three different jobs: chasing to win, batting to save, and slogging when the match is already lost. Younis Khan's 58.87 is a fine fourth-innings record built over 33 innings, 10 of them not out. Before you call it a skill, shrink it toward his career average (Chapter 6) and ask what the target and the time left were in each innings. Case Study 1 does that for one famous chase.
Wins, losses and the batting-average illusion, Test edition
Chapter 4 showed that in ODIs almost every batter averages more in matches their team wins (Anchor C: Rohit Sharma's 58.46 against 36.01). Tests are no different:
=== By match result for the batter's team ===
KS Williamson drawn 39 2073 33 62.82
lost 78 2088 77 27.12
won 78 5354 66 81.12
...
Batters with 30+ innings in both wins and losses: n = 73, share averaging more in wins = 0.986, median ratio = 1.82
Williamson averages 81.12 in Tests New Zealand won and 27.12 in Tests they lost. Of 73 batters with 30+ innings in both, 72 (98.6%) average more in wins, by a median factor of 1.82. That's selection on the outcome again. Teams win because their batters make runs, so "averages more in wins" says nothing about temperament. The causal question is how much one batter's runs move the probability of winning, and that's the value-as-win-probability idea of Chapter 9, which Test cricket's three-result structure (win, draw, loss) makes harder still.
🔄 Check your understanding
- From the first to the fourth innings, the top-order average falls 11.8 runs while the strike rate falls only 3.4. What does that tell you about why fourth-innings batting is harder?
- Why is a fourth-innings average more vulnerable to not-out inflation than a first-innings average?
- Smith's first-innings average is 80.28, his fourth-innings average 31.65. Give one cricket reason and one statistical reason to be careful with the second number.
Answer
- Batters get out sooner (balls per dismissal 78.9 → 60.7). They don't simply score more slowly, so the difficulty shows up in survival.
- Fourth innings often end with the match itself (target reached, draw secured), so 15.5% of top-order fourth innings end not out, against 3.9% in the first. Unbeaten innings add runs without adding dismissals.
- Cricket: fourth innings mix very different jobs (a short chase of a small target, a day-long rearguard, a lost cause), and the average treats them all alike, so you need each innings's target and time left before reading it as temperament. Statistics: 34 innings and 26 dismissals is a small sample whose average has a wide interval, and it should be shrunk toward his career figure before it's compared with anyone's.
10.4 Home, Away and Conditions
The cricket question. "Flat-track bully" is one of cricket's oldest insults: a batter who piles up runs on home pitches and falls apart abroad. A line you will hear on any long tour is that "most batsmen average 20+ runs higher at home". If that were true, home and away averages would be almost different statistics. Is it?
The toolkit's venues.py labels each match with a host country and a conditions bucket. SENA is South Africa, England, New Zealand and Australia. Subcontinent is India, Pakistan, Sri Lanka and Bangladesh. The other buckets are West Indies, UAE and Other. Each batting side is then labelled home, away or neutral (neutral when the host is neither team, as in Pakistan's "home" Tests played in the UAE).
The size of the home advantage
=== Home minus away average, batters with 30+ innings both home and away (n = 133) ===
median gap 5.69, mean 5.83
share averaging more at home 81.2%, gap > 10: 25.6%, gap > 20: 7.5% (10 batters)
Largest home advantage: {'Mominul Haque': 21.12, 'DPMD Jayawardene': 22.13, 'BB McCullum': 22.29, 'MJ Clarke': 24.42, 'KS Williamson': 24.82, 'DA Warner': 26.25}
Better away: {'DM Bravo': -20.2, 'HH Gibbs': -15.36, 'Nazmul Hossain Shanto': -14.81, 'SR Tendulkar': -13.92, 'GC Smith': -12.41, 'PD Collingwood': -8.72}
The claim is wrong by a factor of about three. The median batter averages 5.69 runs more at home. Four in five (81.2%) do average more at home, so the advantage is real and nearly universal. But only 10 of 133 batters (7.5%) show a gap of 20 or more, and a quarter show more than 10. Pooled across all top-order innings, the home average is 39.51 and the away average 34.06: home batters last 73.7 balls per dismissal, visitors 67.2.

📊 Figure (described): A histogram of home average minus away average for the 133 batters with 30+ innings both home and away. Most of the mass sits between −5 and +15, with a median of 5.7 (dashed line). A dotted line at +20 marks the "20 runs higher at home" claim; only 10 batters lie beyond it. Williamson (+24.8) and Kohli (+14.1) are labelled on the right, Root and Smith near the median, and Tendulkar (−13.9) on the left.
Who are the outliers? On the "home-track" side are David Warner (+26.25), Kane Williamson (+24.82), Michael Clarke (+24.42), Brendon McCullum, Mahela Jayawardene and Bangladesh's Mominul Haque. On the other side, Darren Bravo averaged 20.2 more away than at home, and Sachin Tendulkar's post-2001 record is 13.9 runs better away.
Williamson's split deserves a closer look, because it is the one weakness in an otherwise immaculate Test record:
=== The five: home / away ===
innings runs outs average balls_per_dismissal
batter venue_status
JE Root away 145 6327 136 46.52 83.9
home 158 7664 142 53.97 90.4
KS Williamson away 89 3440 84 40.95 86.4
home 93 5327 81 65.77 119.0
M Labuschagne away 46 1524 43 35.44 70.8
home 69 3150 63 50.00 92.3
SPD Smith away 104 5037 95 53.02 100.0
home 111 5458 92 59.33 107.9
V Kohli away 119 4774 115 41.51 78.5
home 87 4336 78 55.59 93.7
Smith's away average (53.02) is higher than the overall career averages of Kohli, Root and Labuschagne, and his home–away gap (6.31) is close to the median batter's. Root's (7.45) is also ordinary. Kohli (+14.08), Labuschagne (+14.56) and Williamson (+24.82) are the three with big home advantages.
⚠️ Common pitfall: blaming the batter for the schedule. A home–away gap mixes three things: conditions (pitch, ball, weather), opposition (who you play away from home) and selection of fixtures. A New Zealand batter's away Tests include many in India, Australia and South Africa (the hardest places to tour, as the next table shows), while their home Tests are against every visitor. Williamson's 24.8-run gap is partly about Williamson and partly about where New Zealand's schedule sent him. To isolate conditions you need a comparison where the batter is held constant, which is what the visitor index below does.
Where visiting batters lose most
A naive way to rank tours is to compare home and visiting top-order averages in each country. That fails, because it mixes conditions with team strength. Zimbabwe and Bangladesh "favour visitors" by that measure mainly because their own top orders have been weaker than their opponents'.
A fairer measure holds the batter constant. For every visiting top-order batter, take their dismissals in that country and multiply by their average in all their other away Tests. Sum over batters to get "expected runs", then compare with the runs they actually made:
📐 Definition — visitor difficulty index. For a host country h: index = 100 × (runs made in h by visiting top-order batters) ÷ Σ over those batters of (their dismissals in h × their average in away Tests outside h). 100 means visitors average what they average elsewhere on tour; below 100 means the country is harder than an average away trip. Batters need 10+ dismissals in other away Tests to be included.
=== Visitor difficulty index (100 = visitors average what they average in other away Tests) ===
Visiting batters with 10+ outs in other away Tests; full-member Tests; positions 1-7
batters outs actual_runs expected_runs index
host_country
South Africa 150 1022 30539 37907.0 80.6
Australia 148 1239 41076 47710.0 86.1
India 136 1034 34914 38890.0 89.8
England 171 1549 53769 57747.0 93.1
New Zealand 160 838 31297 29999.0 104.3
West Indies 142 798 30570 29020.0 105.3
Sri Lanka 155 862 33397 30686.0 108.8
Pakistan 90 340 14864 12645.0 117.5
Bangladesh 144 504 25036 17162.0 145.9
Zimbabwe 89 246 12322 8084.0 152.4

📊 Figure (described): Horizontal bars show the visitor difficulty index for ten host countries, centred on 100. South Africa (80.6), Australia (86.1), India (89.8) and England (93.1) extend left in orange: visiting batters score 7–19% fewer runs per dismissal there than on their other tours. New Zealand, West Indies and Sri Lanka sit just right of 100, Pakistan at 117.5, and Bangladesh (145.9) and Zimbabwe (152.4) far to the right.
South Africa is the hardest tour in the data for visiting batters: they score about one run in five fewer per dismissal there than they do on other tours. Australia, India and England follow. The index still can't separate the pitch from the home bowling attack: South Africa's low number reflects its pace bowlers as well as its pitches. And Bangladesh's and Zimbabwe's high numbers mostly measure their bowling attacks, not batting paradise. But it holds the batter constant, which the raw home–away gap does not.
Visiting England. The same script breaks down visiting top orders in England by nation:
=== Visiting top orders in England (positions 1-7) ===
innings average balls_per_dismissal strike_rate avg_away_elsewhere
team
Australia 378 35.31 64.5 54.78 36.68
India 371 34.33 68.3 50.30 38.93
South Africa 226 36.00 73.3 49.13 37.00
West Indies 268 28.74 56.1 51.27 30.16
Pakistan 255 28.53 56.9 50.16 33.92
New Zealand 207 33.50 63.0 53.20 32.91
Sri Lanka 187 31.78 63.5 50.03 36.34
India's top order averages 4.6 runs less in England than on its other tours, Pakistan's 5.4 less and Sri Lanka's 4.6 less. Australia, South Africa and New Zealand, whose home conditions share more with England's, lose little or nothing.
🏏 Eye test: Imran Qureshi runs analytics for Headingley Road CC, a club side in Leeds, and he grew up batting on the slow pitches of Lahore. He read the England table and pushed back. "Ninety-three is an average of April and August. A Test at Headingley in early June under cloud, with a new Dukes ball, is a different sport from the Oval in late August when the pitch is dry and the ball goes soft. Your index treats them as the same trip." He's right. Cricsheet has no weather, no ball brand, no grass cover and no time of year beyond the date. You could add the month as a crude proxy, but the cloud cover that makes a Dukes ball swing isn't in the data at all. "And the Asian sides," he added, "they don't just struggle because of the ball. They often arrive with no warm-up first-class games. The first Test of a tour is the worst." That's a testable claim (first Test of a series against the rest), and a good exercise. The broader point is theme 5 of this book: the index tells you how much a tour costs on average. The coach on the balcony knows which morning it will cost the most.
Conditions for the five
=== The five: conditions ===
innings runs outs average balls_per_dismissal
batter conditions
JE Root SENA 232 10665 210 50.79 88.2
Subcontinent 54 2502 52 48.12 83.2
KS Williamson SENA 132 6487 117 55.44 102.3
Subcontinent 36 1494 35 42.69 94.9
M Labuschagne SENA 100 4167 94 44.33 84.6
Subcontinent 19 613 16 38.31 75.8
SPD Smith SENA 177 8599 155 55.48 99.0
Subcontinent 38 1820 34 53.53 115.3
V Kohli SENA 93 3781 91 41.55 78.4
Subcontinent 102 4789 91 52.63 89.8
(Rows for UAE, West Indies and Other are in the full output; their samples are 4–17 innings.) Smith is the one batter of the five whose subcontinent record is essentially as good as his SENA record (53.53 against 55.48), and in balls per dismissal it is better (115.3 against 99.0). Root is nearly as even. Williamson drops 12.8 runs in the subcontinent. Kohli's split runs the other way, as you'd expect for an Indian batter: 52.63 in the subcontinent, 41.55 in SENA countries.
🔄 Check your understanding
- What share of batters with 30+ home and away innings average 20+ more at home? What is the median gap?
- Why can't the raw "home average minus visitor average" for each host country tell you which country is hardest to tour?
- South Africa's visitor index is 80.6. Translate that into a sentence a commentator could say on air.
Answer
- 7.5% (10 of 133); the median gap is 5.69 runs.
- It mixes conditions with team strength. A weak home side and a strong visiting side create a "visitor-friendly" country even if the pitches are hard. The index fixes this by comparing each visiting batter with themselves.
- "Visiting top-order batters in South Africa have scored about a fifth fewer runs per dismissal than the same batters managed on their other tours."
10.5 Pace and Spin
The cricket question. Selectors talk about batters as "good players of spin" or "vulnerable to the moving ball". Cricsheet records every bowler's name but not their bowling style, so this book carries a reference table, data/reference/player_styles.csv, that maps players to a bowling type (pace or spin) with a confidence level. We use the rows marked high or medium confidence.
First, an honesty check on coverage:
Styles table (high/medium confidence, men): 1399 players
Share of Test balls faced whose bowler type is known: 96.9%
Known share by year (selected): {2003: np.float64(81.0), 2008: np.float64(98.0), 2013: np.float64(99.3), 2018: np.float64(98.2), 2023: np.float64(99.6), 2026: np.float64(89.1)}
Almost 97% of Test balls faced have a known bowler type. In the sampled years it is 98–99% from 2008 to 2023, 81% in 2003 and 89.1% in 2026, the partial current season. (NumPy 2 prints each value in the dictionary as np.float64(...); the numbers are what matter.) For the five in the debate, the unknown share of their balls is small: 0.9% for Kohli up to 4.4% for Williamson.
📐 Definition — average and balls per dismissal against a bowling type. For balls faced from bowlers of one type (pace or spin): runs off the bat ÷ striker dismissals credited to a bowler of that type. Run-outs are excluded because no bowler "took" them. This makes the numbers slightly higher than a batter's overall average, which counts run-outs.
The module's pace_spin_split maps each bowler to a type and aggregates:
def pace_spin_split(balls, styles, players=None, by=()):
f = balls[balls["wides"] == 0]
if players is not None:
f = f[f["batter"].isin(players)]
f = f.assign(bowler_type=f["bowler"].map(styles["bowling_type"]).fillna("unknown"),
_out=batter_dismissed(f) & bowler_wicket(f))
g = f.groupby(["batter", *by, "bowler_type"]).agg(runs=("runs_batter", "sum"),
balls=("runs_batter", "size"),
dismissals=("_out", "sum"))
...
The league view
=== Positions 1-7 against pace and spin, by conditions ===
runs balls dismissals average balls_per_dismissal strike_rate share_of_balls
conditions bowler_type
SENA pace 277975 533616 8255 33.67 64.6 52.1 72.9
spin 97258 180183 1970 49.37 91.5 54.0 24.6
Subcontinent pace 101600 192766 2578 39.41 74.8 52.7 39.8
spin 144248 275034 3705 38.93 74.2 52.4 56.8
West Indies pace 41076 87248 1351 30.40 64.6 47.1 61.7
spin 23573 49475 569 41.43 87.0 47.6 35.0
In SENA countries, top-order batters average 33.67 against pace and 49.37 against spin. Pace bowls almost three balls in four (72.9%) and takes about four wickets for every one spin takes. In the subcontinent the balance flips: spin bowls the larger share (56.8% against 39.8% of all balls), and spin is very slightly harder to score against per dismissal (38.93) than pace (39.41). The idea that conditions decide which bowling type matters is about as clear as data gets.

📊 Figure (described): For nine batters, a blue circle marks runs per dismissal against pace and an orange square against spin, with dismissal counts at the right. Every orange square sits to the right of its blue circle: all nine score more per dismissal against spin. The gap is smallest for Harry Brook (51.67 against 57.33) and Steve Smith (53.33 against 61.07), and largest for Cheteshwar Pujara (36.52 against 63.60) and Kane Williamson (48.23 against 68.70).
=== Against pace and spin, whole snapshot ===
runs balls dismissals average strike_rate balls_per_dismissal
batter bowler_type
JE Root pace 8997 16223 190 47.35 55.46 85.4
spin 5045 8222 78 64.68 61.36 105.4
KS Williamson pace 5353 10794 111 48.23 49.59 97.2
spin 3710 6712 54 68.70 55.27 124.3
M Labuschagne pace 3091 6567 76 40.67 47.07 86.4
spin 1624 2576 31 52.39 63.04 83.1
SPD Smith pace 6719 12640 126 53.33 53.16 100.3
spin 4153 7567 68 61.07 54.88 111.3
V Kohli pace 5249 9650 122 43.02 54.39 79.1
spin 3895 6813 68 57.28 57.17 100.2
Smith is the best of the five against pace (53.33 per dismissal, 100.3 balls) by a distance. Williamson has the most extreme record against spin (68.70) but, as the next table shows, most of that came outside Asia. Labuschagne is the one batter whose balls per dismissal is lower against spin (83.1) than pace (86.4): he scores faster against spin (SR 63.04) but doesn't survive longer.
⚠️ Common pitfall: "everyone is better against spin". Every batter in Figure 10.8 averages more against spin, and it's tempting to conclude that spin is simply easier to bat against. Part of that is when spin bowls. The same script splits the league by how set the batter was:
text balls runs outs share_of_state average balls_per_dismissal state bowler_type new (<30 faced) pace 364370 176234 5963 71.2 29.55 61.1 spin 147305 71791 2217 28.8 32.38 66.4 set (30+ faced) pace 506167 270776 6976 55.2 38.82 72.6 spin 410540 219778 4663 44.8 47.13 88.0 Median over of the innings for balls of known type: pace 33, spin 48Pace gets 71.2% of the balls bowled to new batters, while spin bowls later (median over 48 against 33) and to batters who are already set. For a new batter, the pace–spin gap is only 2.8 runs (29.55 against 32.38). For set batters it is 8.3 (38.82 against 47.13). A raw "average against spin" is partly an average against the ball after the batter got in. Compare like with like, by batter state or by conditions, before declaring anyone a great player of spin. Chapter 18 does this from the bowler's side.
The splits that matter: pace in SENA, spin in Asia
=== The five against pace and spin in SENA and subcontinent conditions ===
runs balls dismissals average balls_per_dismissal
batter conditions bowler_type
JE Root SENA pace 7862 14158 167 47.08 84.8
spin 2711 4215 34 79.74 124.0
Subcontinent pace 613 1072 7 87.57 153.1
spin 1763 3095 39 45.21 79.4
KS Williamson SENA pace 4408 8641 92 47.91 93.9
spin 1770 2776 18 98.33 154.2
Subcontinent pace 409 937 8 51.12 117.1
spin 1071 2353 26 41.19 90.5
M Labuschagne SENA pace 2918 6251 71 41.10 88.0
spin 1125 1545 18 62.50 85.8
Subcontinent pace 148 279 4 37.00 69.8
spin 443 915 11 40.27 83.2
SPD Smith SENA pace 6043 11235 115 52.55 97.7
spin 2496 4013 36 69.33 111.5
Subcontinent pace 432 907 6 72.00 151.2
spin 1335 2920 27 49.44 108.1
V Kohli SENA pace 2946 5709 80 36.83 71.4
spin 835 1429 9 92.78 158.8
Subcontinent pace 1967 3289 31 63.45 106.1
spin 2736 4735 56 48.86 84.6
The two "hard" combinations are pace in SENA conditions and spin in the subcontinent. Here is the most revealing comparison in the section. In the subcontinent, Williamson's average against spin falls from 68.70 overall to 41.19, and Root's from 64.68 to 45.21. In SENA conditions the same two average 98.33 and 79.74 against spin, mostly against bowlers who come on once the batter is set. Spin in Asia is a different problem from spin in Wellington. Kohli is the reverse: his record against spin in the subcontinent (48.86) is fine, but his record against pace in SENA conditions (36.83 from 80 dismissals) is the weakest number any of the five posts on either "hard" combination. Smith is the only one above 49 on both.
🔍 Why this works. Why does splitting by conditions and bowler type sharpen the picture so much? Because the two interact. A seamer in Johannesburg and a seamer in Chennai are bowling different deliveries: one has bounce and lateral movement, the other a flat pitch and an old ball reversing. A batter's overall "average against pace" averages over those, weighted by however their schedule fell. Splitting by conditions holds the delivery type roughly constant and asks the batter the same question each time. The cost is sample size. Kohli's 80 SENA-pace dismissals are a solid sample, but Labuschagne's 11 subcontinent-spin dismissals aren't. Chapter 11 adds the missing step: shrinking these splits with a hierarchical model so a small cell borrows strength from the batter's overall record.
10.6 When Do Test Batters Get Out?
The cricket question. A favourite question about Test batting is "run scoring by session": the idea that great batters score consistently through all three sessions of a day while lesser ones have vulnerable periods. It's a lovely question, and Cricsheet can't answer it. The ball-by-ball data has no session labels, no day numbers, no clock times. A Test's dates list tells you which days it was played, but not which ball was bowled on which day.
Rather than invent a proxy that pretends to know when lunch was, we measure time in two clocks that are in the data:
- The batter's clock: balls the batter has already faced in this innings. This captures "getting in".
- The ball's clock: the over of the innings. In Tests a new ball is available after 80 overs, so the over number is a reasonable proxy for ball age. (We don't know exactly when the second new ball was taken, only when it became available.)
📐 Definition — dismissal hazard. For a set of balls faced, the hazard is the proportion on which the striker was dismissed (including run-outs of the striker, excluding retirements). 1.2% means one dismissal per 83 balls. Grouping the hazard by a clock (balls faced, over of innings, score) shows when risk is concentrated.
The module's _striker_balls helper adds both clocks to every ball faced:
f = balls[balls["wides"] == 0].sort_values(["match_id", "innings", "delivery_seq"]).copy()
key = ["match_id", "innings", "batter"]
f["faced_before"] = f.groupby(key).cumcount() # batter's clock
f["score_before"] = f.groupby(key)["runs_batter"].cumsum() - f["runs_batter"]
f["out_here"] = batter_dismissed(f) & ~f["wicket_kind"].isin({"retired hurt", "retired not out"})
cumcount() numbers each batter's balls 0, 1, 2… within the innings, so faced_before is the number of balls already faced when this one arrives.
The batter's clock: getting in
=== Positions 1-7: striker dismissal % per ball by balls already faced ===
balls outs hazard_pct balls_per_dismissal
bin
0 206319 3546 1.719 58.184
10 172938 2689 1.555 64.313
20 147229 2210 1.501 66.619
30 125756 1807 1.437 69.594
40 107758 1514 1.405 71.174
50 92828 1264 1.362 73.440
60 80363 1029 1.280 78.098
70 69825 906 1.298 77.070
80 60626 726 1.198 83.507
...
200 12007 128 1.066 93.805
In their first ten balls, top-order Test batters are dismissed once every 58 balls. By the time they've faced 80, it's once every 84. The risk falls steeply over the first 60–80 balls and then levels off at about 1.1–1.3% per ball. Getting in is real, and it takes much longer in Tests than the "first ten balls" folklore of T20.
The ball's clock: the second new ball
If you plot hazard against the over of the innings, you mix two things: early overs face a new ball and new batters. The module's hazard_by_over separates batters who had faced fewer than 30 balls ("new") from those who had faced 30 or more ("set"):
=== Positions 1-7: dismissal % per ball by over of innings, new (<30 faced) vs set (30+) ===
balls hazard_pct
batter_state new set new set
block
1 192353.0 8334.0 1.718 1.560
11 82312.0 113534.0 1.600 1.451
21 61467.0 125166.0 1.593 1.343
...
61 21304.0 84957.0 1.436 1.146
71 15497.0 71546.0 1.303 1.117
81 11863.0 56270.0 1.711 1.516
91 9310.0 42355.0 1.579 1.256
set batters, overs 61-80: balls 156,503, dismissal % 1.133, balls per dismissal 88.3
set batters, overs 81-90: balls 56,270, dismissal % 1.516, balls per dismissal 66.0
set batters, overs 91-100: balls 42,355, dismissal % 1.256, balls per dismissal 79.6

📊 Figure (described): Left: dismissal % per ball against balls already faced for positions 1–7. The line falls from 1.72% in the first ten balls to about 1.2% by 80 balls, then stays roughly flat. Right: hazard by 10-over block of the innings, separately for new batters (dashed) and set batters (solid). Both lines drift down through overs 1–80 as the ball softens, then jump in overs 81–90, the block where the second new ball becomes available (shaded). The set-batter line rises from 1.12% to 1.52%, then falls back to about 1.26%.
This is the cleanest "vulnerable period" in Test batting, and it belongs to the ball, not the clock on the wall. A set batter in overs 61–80 is dismissed once every 88 balls. In overs 81–90 it's once every 66 balls, a 34% jump in risk, and in overs 91–100 risk falls back to once every 80. Chapter 5 found the same spike at team level (46.8 balls per wicket in overs 81–90). Splitting by batter state shows that it isn't an artefact of new batters: it hits batters who are already in.
Individual clocks
Does the "getting in" period separate good batters from great ones? For the 41 batters with at least 3,000 balls faced after their 50th ball:
=== Start (first 20 balls) vs set (50+ balls) hazard, batters with 3,000+ set balls (n = 41) ===
median start hazard 1.43%, median set hazard 1.12%, median ratio 1.32
Spearman(average, start hazard) = -0.65; Spearman(average, set hazard) = -0.58
The five:
start_balls start_outs start_haz set_balls set_outs set_haz ratio average
batter
V Kohli 3630.0 52.0 1.43 9128.0 102.0 1.12 1.28 46.85
SPD Smith 3929.0 48.0 1.22 11902.0 111.0 0.93 1.31 55.29
KS Williamson 3454.0 41.0 1.19 10956.0 93.0 0.85 1.40 54.06
JE Root 5437.0 74.0 1.36 13396.0 138.0 1.03 1.32 50.45
Lowest set hazard:
start_balls start_outs start_haz set_balls set_outs set_haz ratio average
batter
KC Sangakkara 2627.0 33.0 1.26 9980.0 79.0 0.79 1.59 61.07
DPMD Jayawardene 2359.0 30.0 1.27 8043.0 64.0 0.80 1.60 50.50
AN Cook 5301.0 60.0 1.13 15783.0 130.0 0.82 1.37 45.35
(Labuschagne doesn't meet both thresholds: 3,000 set balls and 30 dismissals in his first 20 balls.) Both clocks matter. Batters who are hard to dislodge early (low start hazard) average more (ρ = −0.65), and so do batters who are hard to dislodge once set (ρ = −0.58). The difference between Smith and Williamson on one side and Kohli and Root on the other shows in both phases: Smith's start hazard is 1.22% against Kohli's 1.43%, and Williamson's set hazard 0.85% against Root's 1.03%. The best "once in" batter in the data is Sangakkara, dismissed once every 126 balls after his 50th ball. His start hazard (1.26%) was good but not exceptional, so his start-to-set ratio of 1.59 is among the steepest of the 41: few batters improved so much once they were in.
🔄 Check your understanding
- Why can't this chapter measure "runs by session"? What two clocks does it use instead?
- Why split the over-of-innings hazard into new and set batters before reading the second-new-ball effect?
- A set batter in overs 81–90 is dismissed once every 66 balls, against once every 88 in overs 61–80. What would you advise a batting coach, and what can't the data tell you?
Answer
- Cricsheet has no session, day or time labels on deliveries. The chapter uses the batter's clock (balls faced) and the ball's clock (over of the innings, a proxy for ball age).
- Early overs are bowled to new batters, and new batters are more vulnerable whatever the ball's age. Without the split, a high hazard early in an innings could be the new ball or just new batters. Holding batter state fixed isolates the ball.
- Treat the 10 overs after the second new ball becomes available as a distinct phase: re-set as if the innings were new, and value survival over scoring. The data can't tell you when the new ball was actually taken, how much it swung, or the weather. It shows the average effect of the new ball becoming available.
10.7 Survival Analysis: Will He Last 100 Balls?
The cricket question. Here is a question every Test analyst should be able to answer: "what's the probability of a batter lasting 100 balls given their historical data?" The obvious answer is to count innings of 100+ balls and divide by the number of innings. It's wrong in a way that matters.
The problem is not-outs. When Root is 60 not out off 90 balls at the end of an innings, we don't know whether he would have reached 100 balls. We only know he lasted at least 90. Counting that innings as "didn't reach 100" assumes he would have got out, which biases the estimate downwards. Dropping it entirely biases it upwards. Statisticians call such observations censored, and survival analysis exists to handle them correctly.
📐 Definition — Kaplan–Meier survival curve. For innings with durations t (balls faced) and an indicator of whether the innings ended in dismissal, the Kaplan–Meier estimate of S(t) = P(innings lasts at least t balls) is the product, over every ball count u ≤ t at which dismissals occurred, of (1 − dismissals at u ÷ innings still going at u). Not-out innings count in the "still going" denominator up to their last ball and then leave the risk set without being counted as dismissals. The median survival is the smallest t where S(t) ≤ 0.5.
Chapter 5 used Kaplan–Meier to compare formats. Here we use it on individual batters with the lifelines library:
from lifelines import KaplanMeierFitter
def km_summary(inns, group_col="batter", groups=None, at=(50, 100, 200)):
s = inns.assign(duration=inns["balls"].astype(float), event=inns["out"].astype(int))
rows = []
for g in groups:
d = s[s[group_col] == g]
kmf = KaplanMeierFitter().fit(d["duration"], event_observed=d["event"])
row = {group_col: g, "innings": len(d), "median_balls": kmf.median_survival_time_}
for n in at:
row[f"P(>={n})"] = float(kmf.survival_function_at_times(n - 0.5).iloc[0])
rows.append(row)
return pd.DataFrame(rows).set_index(group_col)
(We evaluate at n − 0.5 so that "at least 100 balls" includes an innings that ended on exactly the 100th ball.)
=== Kaplan-Meier: balls survived ===
innings dismissals median_balls P(>=50) P(>=100) P(>=200)
V Kohli 210 197 58.0 0.547 0.300 0.121
SPD Smith 227 199 68.0 0.610 0.358 0.168
KS Williamson 195 176 69.0 0.575 0.371 0.165
JE Root 309 283 57.0 0.543 0.336 0.098
M Labuschagne 123 114 56.0 0.559 0.304 0.083
CA Pujara 175 164 69.0 0.620 0.359 0.154
TM Head 120 114 44.0 0.433 0.183 0.038
All positions 1-4 13200 12540 45.0 0.469 0.256 0.080
SPD Smith: naive share of innings reaching 100 balls = 0.313; KM P(>=100) = 0.358; not-outs below 100 balls = 18
JE Root: naive share of innings reaching 100 balls = 0.311; KM P(>=100) = 0.336; not-outs below 100 balls = 12
So here's the answer: Kane Williamson lasts 100 balls in 37.1% of his Test innings, Smith in 35.8%, Root in 33.6%, Labuschagne in 30.4% and Kohli in 30.0%, against 25.6% for a typical top-four batter. Smith's naive count (31.3%) understates his true rate by 4.5 points, because 18 of his innings ended not out before 100 balls. Censoring isn't a technicality.

📊 Figure (described): Step curves show the share of innings still going (vertical) against balls faced (horizontal, 0–400) for the five batters and, in thick black, all top-four batters. Every curve drops steeply in the first 50 balls. The league curve passes 50% at 45 balls and 25.6% at 100 (vertical line). Smith's and Williamson's curves sit highest throughout, crossing 50% at 68–69 balls and still above 16% at 200. Root's and Kohli's fall away faster beyond 150 balls, and Labuschagne's is lowest in the long tail (8.3% at 200).
Pujara's survival curve (median 69 balls, P(≥100) 35.9%) matches Smith's and Williamson's almost exactly, though he averaged 10–12 runs less. His strike rate of 44.29 against their 52–54 is the whole difference, which is the identity of §10.1 in action. Travis Head is the opposite: median 44 balls, 18.3% past 100, yet an average of 42.66 because he scores at 69.44.
Are the differences real? The log-rank test compares two survival curves, asking whether their dismissal rates differ more than chance would produce:
Log-rank Smith v Root: statistic 2.76, p = 0.0966
Log-rank Smith v Kohli: statistic 3.34, p = 0.0675
Even with 200–300 innings each, Smith's survival advantage over Root and Kohli doesn't reach conventional significance. Over a career, the gap between the very best batters is about the size of the noise. The cumulative numbers (Smith 102.7 balls per dismissal, Kohli 84.3) look decisive, but they are averages of hugely variable innings, many lasting 5 balls and a few lasting 300. Theme 3 of this book applies to Test cricket too: even 200 innings is a smaller sample than it sounds.
What changes the risk? A Cox model
Kaplan–Meier describes one group at a time. To ask how conditions change survival, holding other things fixed, we use the Cox proportional-hazards model. It assumes each covariate multiplies the per-ball dismissal risk by a constant factor, the hazard ratio. A hazard ratio of 1.10 means 10% more risk of dismissal on every ball.
from lifelines import CoxPHFitter
X = pd.DataFrame({"duration": s["duration"], "event": s["event"],
"away": (s["venue_status"] == "away").astype(int),
"inns_2": (s["innings"] == 2).astype(int), "inns_3": ..., "inns_4": ...,
"pos_5_7": (s["position"] >= 5).astype(int),
"SENA": (s["conditions"] == "SENA").astype(int), "WestIndies": ...})
cph = CoxPHFitter().fit(X, duration_col="duration", event_col="event")
=== Cox model: positions 1-7, full-member Tests 2010+, non-neutral (n = 16,122 innings) ===
Reference: home, 1st innings, positions 1-4, subcontinent/UAE/other conditions
exp(coef) exp(coef) lower 95% exp(coef) upper 95% p
covariate
away 1.091 1.056 1.126 0.000
inns_2 1.063 1.019 1.109 0.004
inns_3 1.212 1.161 1.266 0.000
inns_4 1.275 1.213 1.341 0.000
pos_5_7 1.073 1.038 1.109 0.000
SENA 1.036 1.002 1.072 0.040
WestIndies 1.058 1.001 1.119 0.047
Concordance: 0.532
Holding the rest fixed, batting away from home raises the per-ball dismissal risk by about 9%. The third innings raises it by 21% and the fourth by 28%, compared with the first. SENA and West Indies conditions add a little risk compared with the reference group (subcontinent, UAE and other). Compounded over a long innings, a fourth-innings away batter (1.275 × 1.091 ≈ 1.39 times the risk) faces a much steeper survival curve than a first-innings home batter.
Notice the concordance, 0.532. This is the survival-model equivalent of an accuracy score, where 0.5 is a coin flip. Context explains very little about which innings will be long. It shifts the odds, but who survives the next ball is mostly the batter's skill plus a great deal of luck. Covariates like these are a starting point. A serious model of a batter's innings length, of the kind the Test simulator in Chapter 29 needs, adds the batter's own (shrunk) survival rate, the bowling attack and the state of the match.
🔷 R corner (not run in this book's build). The same Kaplan–Meier and Cox fits in R with the standard
survivalpackage, assuming a data frameinnsexported with columnsbatter,balls,out,venue_statusandinnings:
r library(survival) km <- survfit(Surv(balls, out) ~ batter, data = subset(inns, batter %in% c("SPD Smith", "JE Root"))) summary(km, times = c(50, 100, 200)) survdiff(Surv(balls, out) ~ batter, data = subset(inns, batter %in% c("SPD Smith", "JE Root"))) # log-rank coxph(Surv(balls, out) ~ I(venue_status == "away") + factor(innings), data = inns)🔄 Check your understanding
- Why does the naive "share of innings reaching 100 balls" understate Smith's true rate?
- Pujara and Smith have nearly identical survival curves but averages 11.6 runs apart. Which part of the §10.1 identity explains the gap?
- The Cox model's concordance is 0.532. What does that say about predicting individual innings from context alone?
Answer
- Eighteen of Smith's innings ended not out before 100 balls. The naive count treats them as failures to reach 100, but he was never dismissed; we just don't know how far he'd have gone. Kaplan–Meier keeps them in the risk set up to their last ball and then removes them without counting a dismissal.
- Strike rate. Average = balls per dismissal × SR / 100: similar survival, but Pujara scores at 44.29 against Smith's 53.83.
- Barely better than a coin flip at ranking which innings will last longer. Venue, innings number and position shift the risk in a measurable way, but most of the variation between individual innings is the batter and luck.
10.8 Settle This Debate: Kohli, Smith, Williamson, Root, Labuschagne
The cricket question. For most of the last decade, the "Fab Four" debate (Kohli, Smith, Williamson, Root, sometimes with Labuschagne added as a fifth) has been one of cricket's favourite arguments. Who is the best? Usually it's settled by average, which gives Smith; or by hundreds, which gives Root; or by whoever made runs last week.
This chapter has built eight better questions than "what's his average?". The module's debate_card puts them in one table:
def debate_card(inns, balls, styles, players, baseline=None):
baseline = baseline if baseline is not None else era_baseline(inns)
sub = inns[inns["batter"].isin(players)]
out = career_card(sub)[["innings", "average", "balls_per_dismissal", "strike_rate", "conv_pct"]].copy()
out["relative_avg"] = [relative_average(inns, p, baseline)["relative_avg"] for p in out.index]
ven = career_card(sub, by=["batter", "venue_status"])["average"].unstack()
out["avg_home"], out["avg_away"] = ven.get("home"), ven.get("away")
...
out["P(>=100)"] = km_summary(sub, "batter", list(out.index), at=(100,))["P(>=100)"]
ps = pace_spin_split(balls, styles, players)["average"].unstack()
out["avg_v_pace"], out["avg_v_spin"] = ps.get("pace"), ps.get("spin")
return out
📐 Definition — era-relative average. A batter's average divided by the top-order (positions 1–7) average in Tests between full members, computed per calendar year and weighted by the balls the batter faced in each year. 1.30 means 30% above the era's typical top-order batter. (It is the Test-only version of Chapter 5's relative average.)
To give each number a scale, we compute the card for every batter in the snapshot with 100+ Test innings, at least 80% of them at positions 1–7. That's a pool of 70. The script 08_great_debate.py adds two more columns from §10.5: average against pace in SENA conditions and against spin in the subcontinent. Conversion is shrunk with the prior fitted in §10.2.
=== The debate card ===
innings average relative_avg balls_per_dismissal strike_rate conv_pct conv_shrunk avg_home avg_away avg_SENA avg_Subcontinent avg_inns4 P(>=100) avg_v_pace avg_v_spin
batter
V Kohli 210 46.85 1.305 84.3 55.58 49.2 41.7 55.59 41.51 41.55 52.63 42.38 0.300 43.02 57.28
SPD Smith 227 55.29 1.520 102.7 53.83 45.1 40.5 59.33 53.02 55.48 53.53 31.65 0.358 53.33 61.07
KS Williamson 195 54.06 1.493 104.0 51.98 46.5 40.8 65.77 40.95 55.44 42.69 50.77 0.371 48.23 68.70
JE Root 309 50.45 1.429 87.6 57.61 37.3 36.1 53.97 46.52 50.79 48.12 44.76 0.336 47.35 64.68
M Labuschagne 123 42.64 1.219 81.8 52.15 30.6 32.5 50.00 35.44 44.33 38.31 28.43 0.304 40.67 52.39
=== Rank within the pool of 70 (1 = best) ===
batter V Kohli SPD Smith KS Williamson JE Root M Labuschagne
Era-relative average 11 2 3 5 21
Balls per dismissal 27 9 7 22 29
Strike rate 25 32 36 22 35
Conversion (shrunk) 4 7 5 14 44
Away average 20 4 22 10 42
4th-innings average 15 42 5 11 57
P(last 100 balls) 33 16 9 19 32
v pace in SENA 33 3 8 10 18
v spin in subcontinent 28 27 38 34 39

📊 Figure (described): A five-row, nine-column grid. Each cell shows a batter's rank within the pool of 70 (1 = best) on one dimension, coloured by percentile (yellow high, purple low). Smith's row is bright almost everywhere (2nd for era-relative average, 3rd against pace in SENA, 4th for away average) except the fourth-innings column (42nd). Williamson's row is bright for survival, conversion and the fourth innings, dimmer for away average (22nd) and spin in Asia (38th). Kohli's row peaks at conversion (4th), and Root's is consistently good without a standout. Labuschagne's row is the darkest, with ranks from 18th to 57th.
Now the part that makes this a debate, not a leaderboard. You have to choose the weights. Different reasonable weightings of the same nine numbers (each converted to a z-score within the pool) give different orders:
=== Rank among the five under different weightings (1 = best) ===
batter V Kohli SPD Smith KS Williamson JE Root M Labuschagne
Output (era-relative average only) 4 1 2 3 5
Survival (balls/dismissal, P100) 4 2 1 3 5
Travel (away, v pace SENA, v spin subcont.) 4 1 3 2 5
Pressure (4th innings, conversion) 2 4 1 3 5
Everything equal 4 1 2 3 5
So what does the data say?
- Smith has the strongest all-round case. He's first among the five on output, travel and the equal-weight composite. His era-relative average (1.52) is the second-highest of the 70, and he's the only one of the five whose records against pace in SENA (52.55) and spin in the subcontinent (49.44) are both near 50. His weakness is the fourth innings.
- Williamson is the survival and pressure batter. He's first on survival and on the pressure composite, with the best P(lasting 100 balls) of the five (37.1%) and the best fourth-innings average (50.77). His weakness is travel: 22nd for away average and 38th against spin in Asia.
- Root is everyone's third. He's third or second on every scheme, last on none, and has played the most (309 innings). Consistency across dimensions is a virtue the composites capture and the headline average hides.
- Kohli's case rests on conversion. He's fourth on most schemes but second on pressure, thanks to the fourth-best conversion in the pool. His weakest dimensions are survival (27th, 33rd), pace in SENA (33rd) and spin in the subcontinent (28th). A single career number averages over any peaks and troughs. Splitting by year, as Root's conversion was split in §10.2, would tell a fuller story (Exercise C4).
- Labuschagne is fifth on every scheme. His era-relative average (1.22) is still 21st of 70, a fine Test career. He simply isn't in the same statistical company as the other four over the full snapshot.
💬 Wendell, Nusrat and the narrator
Wendell: So after all that, your machine says Smith. Every pub in Sydney said Smith in 2019. What did we need the heat map for?
Nusrat: It doesn't just say Smith. It says Smith if you care about output and travel, and Williamson if you care about surviving and the fourth innings. That's a different answer.
Wendell: I care about who I want walking out at 30 for 2 on a green seamer.
Narrator: That's a weighting too. "Thirty for two on a green seamer" is roughly pace in SENA conditions, early in the innings. On that column Smith is third of 70, Williamson eighth and Root tenth. Kohli is 33rd.
Wendell: Hm. And on a fifth-day turner in Chennai?
Narrator: Spin in the subcontinent: Smith 27th, Kohli 28th, Root 34th, Williamson 38th. None of the five is elite there. The top of that column is Younis Khan (93.38), Rahul Dravid (76.70), Mahela Jayawardene (76.38) and Kumar Sangakkara (75.00): batters who grew up on those pitches, which is a story about conditions as much as talent. Even so, some of these cells rest on a few dozen dismissals, so the column needs Chapter 11's shrinkage before anyone gets crowned.
Wendell: So the answer to "who's best" is "best at what".
Nusrat: And "compared with whom, over how many innings". Smith's survival edge over Root doesn't even pass a significance test.
And beyond the five? On the equal-weight composite across all 70, the top of the pool is Kumar Sangakkara (1.65), Younis Khan (1.45), Shivnarine Chanderpaul (1.40), then Smith (1.06) and Williamson (1.01), followed by Jacques Kallis, Sachin Tendulkar and Graeme Smith. Remember that Sangakkara's, Chanderpaul's, Kallis's and Tendulkar's records here begin in December 2001 at the earliest. They are the second half of their careers, not the whole.
📋 Try it — Settle this debate. A friend insists that Root is better than Smith "because he has more runs and more hundreds". Using only numbers from this section, write a five-sentence reply that (a) agrees with what's true in the claim, (b) explains why totals favour the batter with more innings, (c) names two dimensions on which Smith is clearly ahead and one on which Root is, and (d) ends with a sentence about how confident anyone should be.
Worked answer
Root does have more runs (14,278 against 11,003) and more hundreds (41 against 37) in the snapshot. But he has also had 82 more innings (309 against 227), and totals reward longevity as much as quality. Per innings, and against the era, Smith is ahead: an era-relative average of 1.52 against 1.43 and 102.7 balls per dismissal against 87.6, plus a much better record against pace in SENA conditions (52.55 against 47.08). Root is ahead on strike rate (57.61 against 53.83) and in the fourth innings (44.76 against 31.65 from 34 innings, a small sample). Even 200–300 innings leave real uncertainty: their survival curves aren't significantly different (log-rank p ≈ 0.10), so "Smith slightly ahead on most measures" is as strong a statement as the data supports.
🔄 Check your understanding
- Why does the debate card use era-relative average rather than raw average?
- Under the "Pressure" weighting Williamson ranks first and Smith fourth; under "Output" Smith ranks first. Is one of these the right answer?
- Labuschagne's "v spin in subcontinent" average (40.27) rests on 11 dismissals, Kohli's (48.86) on 56. Why should their ranks in that column be read differently?
Answer
- The top-order baseline moves from year to year (42.3 in 2009, 31.6 in 2024), so batters whose careers sit in different years face different "normal". Dividing by a ball-weighted era baseline puts them on one scale.
- No. Each answers a different question (who scores most relative to the era, or who survives and converts best in the hardest situations). The analyst's job is to state the weights and show how the ranking depends on them.
- An average from 11 dismissals has a very wide interval: one long innings can move it by ten runs, so Labuschagne's rank in that column is mostly noise. Kohli's 56 dismissals give a far more stable estimate. Small cells should be shrunk toward the batter's overall record before ranking (Chapter 11).
10.9 A Framework for Judging a Test Batter
Pulling the chapter together, here is the order of questions to ask about any Test batter, from most to least informative:
- How long do they last, against the era? Balls per dismissal and era-relative average (§10.1, §10.8). These carry most of the signal.
- How do they last? Start hazard versus set hazard (§10.6) and the survival curve (§10.7). Are they vulnerable early, or do they get out when set?
- Where do they last? Home versus away, and the visitor index for the countries they've toured (§10.4). Read the gap against the 5.7-run median, not against folklore.
- Against what? Pace in SENA, spin in the subcontinent, by batter state (§10.5). Shrink small cells (Chapter 11).
- When in the match? Innings-number splits (§10.3), shrunk, with not-outs in mind.
- Do they go on? Conversion, shrunk (§10.2). A weak signal that mostly echoes survival, so use it as a tie-breaker, not a headline.
- How fast? Strike rate (§10.1). It matters when time matters (Case Study 2), and as context for everything above.
Chapter 16 builds the bowling mirror image of this framework: spells, pressure and conditions from the other end.
Spaced Review
Answer each question before opening it.
- From Chapter 4: §10.3 found that 72 of 73 Test batters average more in wins than losses. What is the name of the trap in reading that as "they perform under pressure", and what did Chapter 4's Anchor C show for Rohit Sharma in ODIs?
Answer
Selection on the outcome (the batting-average illusion): teams win because their batters score, so splitting by result builds the batter's runs into both sides of the comparison. Anchor C: Rohit averages 58.46 in ODIs India won and 36.01 in ODIs India lost.
- From Chapter 5: Chapter 5 showed that one extra wicket lost by over 40 of a Test first innings costs about 42.8 runs off the final total. How does that connect to this chapter's choice of balls per dismissal as the "first currency" of Test batting?
Answer
Wickets are the binding constraint in Tests: an innings ends when they run out, so each wicket carries a large run cost. A batter who survives longer spends fewer of the team's wickets per run, which is why survival (balls per dismissal) explains most of a Test average (ρ = 0.77) while strike rate explains almost none (ρ = 0.07).
- From Chapter 6: The conversion prior in §10.2 is "worth 56 fifty-plus scores". Using Chapter 6's language, what does that number measure, and why is it so large compared with the number of innings a batter plays?
Answer
It is the prior's strength, a + b in the Beta(a, b) prior: how many observations of the batter's own record it takes to carry equal weight with the league. It is large because the true spread of conversion between batters is small compared with binomial noise, so most of the observed spread is luck and a batter's own record must be shrunk heavily. Regression to the mean in action.
Project Checkpoint: test_batting.py
Nusrat has watched every Bangladesh Test she could stream from Dhaka since she was eleven. Her first question for the new module was the one every Bangladesh fan argues about: is Mominul Haque a "home-track" batter, and is Mushfiqur Rahim the better Test player away from Mirpur?
This chapter adds project/crease/test_batting.py to Crease. Its public functions:
| Function | Returns |
|---|---|
innings_table(balls, matches) |
one row per batter innings with position, team, opposition, venue status, conditions, result, 50/100 flags |
career_card(inns, by="batter", min_innings=0) |
innings, runs, average, SR, balls per dismissal, 50s, 100s, conversion %, HS (matches batting_summary) |
split_card(inns, players, col) |
the card split by innings number, venue status, conditions or result |
conversion_table(inns, min_fifty_plus=20) |
raw and beta-binomial-shrunk conversion, with 90% intervals and the prior |
milestone_ladder(inns, steps) |
P(reach the next milestone given this one), not-outs handled |
hazard_by_balls_faced, hazard_by_score, hazard_by_over |
dismissal % per ball by the batter's clock, the score, and the ball's clock (new vs set) |
load_styles(), pace_spin_split(balls, styles, players, by) |
records against pace and spin, optionally by conditions |
era_baseline(inns), relative_average(inns, player, baseline) |
the yearly top-order baseline and era-relative average |
survival_frame, km_summary, p_survive |
Kaplan–Meier survival in balls faced |
debate_card(inns, balls, styles, players) |
the multi-dimensional comparison table |
It imports batter_innings from Chapter 5's formats.py and the Beta shrinkage helpers from Chapter 6's uncertainty.py, so nothing is computed two different ways. The checkpoint script (code/project_checkpoint.py) first asserts that career_card reproduces the toolkit's canonical totals, then runs every function for Nusrat's two batters. Some of the output:
career_card matches batting_summary: OK
innings runs average strike_rate balls_per_dismissal fifties hundreds conv_pct HS
batter
Mushfiqur Rahim 183 6592 39.47 48.65 81.1 27 14 34.1 219
Mominul Haque 146 5056 37.18 53.75 69.2 27 12 30.8 181
split_card by venue_status:
innings runs outs average balls_per_dismissal
batter venue_status
Mominul Haque away 69 1700 65 26.15 55.1
home 77 3356 71 47.27 82.1
Mushfiqur Rahim away 81 2839 73 38.89 79.8
home 102 3753 94 39.93 82.1
km_summary:
innings dismissals median_balls P(>=50) P(>=100) P(>=200)
batter
Mushfiqur Rahim 183 167 55.0 0.552 0.276 0.092
Mominul Haque 146 136 47.0 0.483 0.251 0.085
The answer to Nusrat's question is yes, and then some. Mominul's 21.1-run home–away gap is among the six largest of the 133 batters in §10.4. Mushfiqur's gap is about one run, far below the median of 5.7. But the next two outputs add a twist she didn't expect. Mushfiqur's away record is propped up by Sri Lanka, and in SENA conditions both batters average about 23. "Away" isn't one place.
Mushfiqur Rahim away, by host country:
innings runs outs average
host_country
Sri Lanka 18 962 15 64.13
India 10 400 10 40.00
West Indies 12 375 11 34.09
South Africa 12 269 12 22.42
Zimbabwe 9 268 9 29.78
New Zealand 10 239 8 29.88
Pakistan 3 216 2 108.00
Australia 3 70 2 35.00
England 4 40 4 10.00
debate_card:
batter Mushfiqur Rahim Mominul Haque
avg_SENA 23.770 23.150
avg_Subcontinent 44.060 43.250
avg_v_pace 33.060 32.140
avg_v_spin 50.260 42.840
How it plugs in later. innings_table is a ready-made input for Test partnerships in Chapter 12. Shrunk survival and conversion are natural inputs to the projections of Chapter 25. The hazard curves (by balls faced, by over of innings, by innings number) are the raw material for a ball-by-ball Test simulator in Chapter 29. A declaration model in Chapter 33 needs exactly what p_survive returns: the chance a batter lasts n more balls. And debate_card is one table away from a "compare Test batters" page in the Chapter 39 dashboard.
Chapter Summary
The metrics of Test batting:
| Metric | Definition | Key finding (Cricsheet men's Tests, Dec 2001 – Oct 2026) |
|---|---|---|
| Balls per dismissal | balls faced ÷ outs | ρ = 0.77 with average among 95 established top-order batters; SR ρ = 0.07 |
| Era baseline | top-7 average and balls/dismissal per year, full-member Tests | 2010s: 37.1 / 72.8; 2020s: 34.5 / 64.7; 2024 low of 54.0 balls/dismissal |
| Conversion % | 100s ÷ (50s + 100s) | Pool 33.7%; Kohli 49.2, Williamson 46.5, Smith 45.1 raw; prior worth 56 chances; reliability 0.44 |
| Dismissal hazard | dismissals ÷ balls faced, by a clock | 1.72% in first 10 balls → ~1.2% after 80; no nervous nineties (1.17% on 90–99) |
| Innings-number split | average by match innings 1–4 | Top-7: 41.97 / 38.43 / 33.11 / 30.20; median batter's 4th-innings ratio 0.84 |
| Home–away gap | home average − away average | Median 5.69 runs; only 7.5% of batters 20+ |
| Visitor difficulty index | visitors' runs ÷ their expected runs from other tours | South Africa 80.6, Australia 86.1, India 89.8, England 93.1 |
| v pace / v spin | runs ÷ bowler-credited dismissals by type | SENA: pace 33.67, spin 49.37; subcontinent: pace 39.41, spin 38.93; spin advantage shrinks for new batters |
| Second-new-ball effect | set-batter hazard, overs 81–90 v 61–80 | 66.0 v 88.3 balls per dismissal |
| Kaplan–Meier P(≥100 balls) | survival with not-outs censored | Williamson 37.1%, Smith 35.8%, Root 33.6%, Labuschagne 30.4%, Kohli 30.0%; top-4 25.6% |
| Cox hazard ratios | per-ball risk multipliers | away 1.09; 3rd innings 1.21, 4th 1.28; concordance 0.53 |
Three corrections to things people say: - "Kohli, Smith and Williamson convert at 40%+": true raw (49.2, 45.1, 46.5) and still just above 40 after shrinkage, but conversion is a weak, noisy signal that mostly tracks survival. Root (37.3%) and Labuschagne (30.6%) don't. - "Most batters average 20+ more at home": false. The median gap is 5.7 runs, and 10 of 133 batters exceed 20. - "Batters get nervous in the nineties": not in the data. Risk per ball is lower on 90–99 than on 80–89, and scoring is faster.
Decision rules: lead with survival against the era; read every split with its sample size and shrink it; compare batters with themselves across conditions; separate the batter's clock from the ball's clock; treat not-outs as censored, never as failures; and choose and state your weights before you crown anyone.
What's Next
Every Test number in this chapter averaged over the bowlers a batter happened to face. Chapter 11 takes those bowlers apart: batter-versus-bowling-type matchups with hierarchical shrinkage, so a weakness against left-arm wrist spin or a particular seamer can be told apart from a few unlucky dismissals. It also settles the book's matchup anchor, the real batter whose record against one bowling type could decide a semi-final.