Part II — Batting Analytics

Newlands, Cape Town, 25 January 2017. Sri Lanka are chasing 170 against South Africa in a T20 International and they are 116 for 2 after 15 overs, needing 54 off 30 balls with eight wickets in hand. Then Imran Tahir bowls the sixteenth over: two runs, two wickets. Niroshan Dickwella is caught for 68 off 51 and Dhananjaya de Silva stumped for 19 off 27. Seekkuge Prasanna walks in, makes 37 not out off 16 balls, and Sri Lanka win with one ball to spare.

The player of the match was Dickwella. That was a perfectly normal choice: he made the most runs on either side and batted the longest. Now put the same match through the win-probability model built in Chapter 9. Sri Lanka's chance of winning was 0.649 after 15 overs and 0.246 after Tahir's over. Credit each batter with the change in that probability on the balls they faced and the order turns over: Prasanna +0.504, Asela Gunaratne +0.377, Dickwella +0.157. The largest contribution on the field belonged to the losing side's leg-spinner: Imran Tahir, +0.525.

Dickwella built a position. Prasanna converted one that had just been taken away. Runs measure the first job well and the second job poorly. That gap between what a scorecard counts and what actually helped a team win is the subject of Part II.


What this part argues

Part I showed that the batting average misleads, and why. Part II builds what should replace it. That means a set of measurements, each answering a different question, and each honest about its sample size.

The argument runs in six steps:

  1. Break a batter's output into its parts (strike rate, dot balls, boundaries, the running between them) and measure each against the league par for the same season and phase.
  2. Measure what the runs were worth to the match, not just how many there were, using a first win-probability model.
  3. Treat Test batting as its own discipline, where the currency is survival and the right tools come from medical statistics.
  4. Find the batter's real weaknesses against types of bowling, and stop believing the tiny head-to-head records that sound like weaknesses.
  5. Recognise that batting is done in pairs, then test the folklore about partnerships.
  6. Turn all of it into money. Runs become wins and wins become rupees, so an IPL batter's value can be set against his price.

It comes here, before bowling and before match models, for two reasons. Batting is where the traditional numbers are most entrenched and the corrections are easiest to see. And the batting tools come first in the dependency chain. Chapter 9's win-probability table is the first version of the model that Chapter 20 rebuilds properly. Chapter 11's matchup engine feeds the bowling-rotation optimiser in Chapter 31. Chapter 13's valuation model is the foundation of the auction strategy in Chapter 34.

The questions it answers

  • When you pick a T20 batter, what are you actually buying: runs, balls, boundaries, or the absence of dots?
  • How much did an innings change the result, and is that the same thing as how well the batter played?
  • What makes a Test batter great, and how do you compare Kohli, Smith, Williamson, Root and Labuschagne without crowning anyone by accident?
  • Does a batter really "struggle against left-arm spin", or is that 30 balls of noise?
  • Is partnership chemistry real?
  • Is a ₹27 crore batter worth ninety ₹30 lakh batters?

How the chapters build

Chapter 8 — Beyond Batting Average. Chris Gayle made 62 off 38 balls at Eden Gardens in 2018 with 21 dots. Rajat Patidar made 93 off 33 in the 2026 IPL Qualifier at Dharamsala with exactly one. Both innings were fast, but in completely different ways. The chapter breaks strike rate into its engines: dot-ball percentage, boundary-ball percentage, boundary-run percentage and non-boundary strike rate. Boundary-ball percentage alone explains 76% of the spread in IPL strike rates, and adding dot percentage takes it to 94.6%. The chapter then measures which numbers repeat from season to season. The batting average is the least repeatable of the seven tested (r = 0.209). Finally it builds SR+, a strike rate against the par for the same season and phase, because the IPL's powerplay par rose from 113.1 in 2012 to 159.1 in 2026. A women's section measures the same engines in women's T20 cricket against women's baselines.

Chapter 9 — Batting Impact and Context. This is the Newlands chapter, and the threshold concept at the heart of Part II: value is the change in win probability. It builds WP v0, a transparent lookup table counted from 8,939 real men's T20 chases and smoothed so that no single lucky night sets a value. It credits every ball with its change in win probability and tests the table out of time. The test brings a warning. The table underrates IPL chasers since 2023 by 13.4 points, and on the pre-2023 table chasing 200 in the IPL is 0.168, against 0.491 on the IPL 2023–2026 table. Each era needs its own table, and so does women's cricket. Needing 54 off 30 with eight wickets in hand is 0.652 on the men's table and 0.256 on the women's.

Chapter 10 — Batting in Test Cricket. AB de Villiers once faced 297 balls in Delhi for 43, a strike rate of 14.5, trying to save a Test. Babar Azam batted 425 balls in Karachi for 196 and did save one. In Test cricket survival is the currency. The chapter measures it in balls per dismissal, shrinks conversion rates (Kohli's 49.2% raw becomes 41.7%), splits batting by innings number, conditions and bowling type, and fits Kaplan–Meier survival curves: Williamson has a 37.1% chance of lasting 100 balls, the highest of the five great batters of the era. It ends with those five compared on nine dimensions rather than one, where Smith leads on output and travel and Williamson on survival.

Chapter 11 — Batting Against Specific Bowlers. In the 2019 Ashes, Stuart Broad dismissed David Warner seven times in 104 balls. It's the most famous matchup of the decade, and the chapter uses it to show why most matchups are noise. Across men's T20 cricket from 2015 to 2026 there are 261,942 batter–bowler pairs, and the median pair has met for 5 balls. Raw head-to-heads predict worse than ignoring matchups altogether (out-of-sample error 404 against 220). Matchups shrunk toward the bowler's type do better (208). About a third of what repeats in a head-to-head is really the bowler's type; the pair-specific rest is real but faint on samples this small. So the chapter models batter against type, which needs about 300 balls of prior for strike rate and about 2,000 for dismissal rate. Then it finds a real weakness: Quinton de Kock against off-spin, 1,226 balls, shrunk strike rate 115.5 (90% interval 108.5–122.4) against an expected 125.8. The weakness is absolute (an average left-hander scores 120.9 on the same balls) and it shows up in every era. In the 2026 men's T20 World Cup semi-final at Eden Gardens, Cole McConchie's off-spin removed de Kock and Ryan Rickelton in the second over.

Chapter 12 — Batting Partnerships. Abhishek Sharma and Travis Head added 1,892 IPL runs together at 12.47 an over between 2024 and 2026, when the league ran at 9.69. With other partners Abhishek scored much more slowly. Is that chemistry? The chapter builds every stand from the ball-by-ball record (16,631 in the IPL alone) and a partnership network. It then measures each pair against what its two batters do apart. The answer is sobering. Pair effects barely repeat (split-half r 0.154 in the IPL), so the Abhishek–Head excess of +20.4 SR+ points shrinks to about +5.5. The chapter also prices the cost of a new batter settling in (about 2.47 runs in the IPL) and tests the left–right combination coaches swear by: small, with an interval that includes zero in every format (+0.42 SR+ points in men's T20, +1.09 in Tests).

Chapter 13 — Batting in the IPL. At the 2025 mega auction Lucknow Super Giants bought Rishabh Pant for ₹27 crore and Sunrisers Hyderabad bought Aniket Verma for his ₹30 lakh base price. The chapter builds a valuation model from the ground up. Each dismissal is charged by the over in which it falls. Runs above replacement are measured phase by phase against a replacement level drawn from the talent distribution. Runs convert to wins at 140.2 runs per win, and wins convert to rupees at the market's own rate of about ₹35.7 crore per batting win. It then tests five things people say about the auction. The market does pay a premium for six-hitting. The chapter finds no nationality premium, and the recency tilt is mild and not significant.


What you build: Crease's batting modules

Chapter Module What it gives you
8 batting.py Phase batting profiles, SR+, the strike-rate components, metric reliability, percentile scouting cards
9 impact.py WP v0 (an empirical chase table), expected runs against actual, win-probability-added attribution
10 test_batting.py Career cards, conversion with shrinkage, balls per dismissal, Kaplan–Meier batting survival
11 matchups.py Batter × bowler-type matchups with hierarchical shrinkage, league type maps, matchup sheets
12 partnerships.py A partnership table from raw deliveries, strike-rotation efficiency, pair excess, the partnership network
13 valuation_batting.py Wicket values by over, net runs, runs and wins above replacement, value against price

These modules feed most of the rest of the book. impact.py is written so that any model taking runs needed, balls left and wickets in hand plugs straight in, so Chapter 20's full model replaces WP v0 without changing a line of the attribution code. test_batting.py feeds the Test simulator in Chapter 29 and the declaration model in Chapter 33. matchups.py is imported by the bowling-rotation optimiser in Chapter 31. partnerships.py informs the batting-order work in Chapter 30, and valuation_batting.py becomes the engine of the auction strategy in Chapter 34.


What overturns conventional wisdom

  • The "elite" boundary band is ordinary. You'll often read that elite T20 batters score 55–65% of their runs in boundaries. That band holds 80 of the 140 regular IPL batters (57%). The fastest-scoring tenth have a median boundary-run percentage of 71.52. Boundary share describes a batter's style; it doesn't tell you how good he is.
  • There are no nervous nineties. In Test cricket the per-ball risk of dismissal is 1.17% on scores of 90–99 against 1.29% on 80–89, and batters score faster in the nineties, not slower.
  • Home advantage is overstated. The claim that most Test batters average 20 or more runs higher at home is false. The median home–away gap across 133 batters is 5.69 runs, and only 7.5% of them exceed 20.
  • The batting average is the least stable number on the card. Season to season, it repeats less than strike rate, dot percentage, boundary percentage or non-boundary strike rate.
  • Head-to-head records are mostly noise. Using raw matchups makes predictions worse than ignoring them. Shrink them toward the bowler's type and they help a little.
  • A ₹30 lakh batter really did out-bat a ₹27 crore one, with a caveat. In IPL 2025's middle overs Pant scored 141 off 108 balls with 8 dismissals, a runs-above-replacement figure of −28.5. Verma scored 139 off 82 with 4 dismissals, +26.5. The pair was found by a systematic search, not picked by hand, and the gap survives adjusting for venue. But it did not persist. In 2026 Verma made 16 off 21 balls in the middle overs, and Pant was the better death-overs batter in both seasons. The episode is a lesson in market inefficiency, and an equally sharp lesson in how little one season of one phase can tell you.
  • Partnership chemistry is mostly a story. The most spectacular pair in modern IPL history keeps about a quarter of its raw excess after shrinkage. Strike-farming is rare, the anchor-plus-aggressor balance doesn't show up in the data, and the left–right effect is small: no format shows one that is reliably different from zero.

Learning paths through Part II

🏏 Fan Track: Read all six chapters. They are the core of your route. Chapter 9's Eye-test dialogue about Newlands will change how you read a player-of-the-match award, and Chapter 10's §10.8 has a more interesting answer to "who is the best Test batter of the era?" than a single name. Every number from the code is restated in prose, so the code blocks can be skipped.

📊 Analyst Track: Read everything and run everything. The heaviest modelling is in Chapter 9 (building, smoothing and calibrating a win-probability table) and Chapter 11 (hierarchical shrinkage with an out-of-sample test). Chapter 8's reliability study (§8.5), Chapter 10's survival models (§10.7) and Chapter 12's split-half reliability (§12.6) are methods most often done wrong in public analysis.

🎰 Betting Track: Read Chapters 8, 9 and 11 closely. Chapter 9 §9.4, on calibration and era drift, is the most important thing in the part for you: in-play markets are win-probability models with a margin added. For Test markets, read Chapter 10 §10.3, §10.6 and §10.7. Chapters 12 and 13 can be skimmed.

🏆 Fantasy Track: Read Chapters 8, 9, 11 and 13 closely. The strike-rate components are the building blocks of fantasy points, matchups shrunk to something believable are your captaincy edge, and Chapter 13's value against price is the same logic as a fantasy budget. Chapters 10 and 12 are optional, though Test-match fantasy players should read Chapter 10.

🧑‍💼 Franchise Track: Chapter 13 is your chapter; read every section, especially §13.6–13.8. Read Chapters 8, 9 and 11 closely as the inputs to any batting valuation, and Chapter 12 §12.6 before you pay to keep a "proven pair" together. Read Chapter 10 if you select for red-ball cricket.


Before you begin

  • [ ] Your Part I modules import and each chapter's project_checkpoint.py runs cleanly, in particular uncertainty.py (Chapter 6) and charts.py (Chapter 7), which Part II uses throughout.
  • [ ] You know the book's phase definitions without looking: T20 powerplay overs 1–6, middle 7–15, death 16–20; ODI 1–10, 11–40, 41–50.
  • [ ] You can explain the stabilisation constant k from Chapter 6: the sample at which a statistic is half signal and half noise. Every chapter in Part II leans on it.
  • [ ] You've seen Rohit Sharma's wins-and-losses split (Chapter 4) and know why conditioning on the outcome is a trap. Chapter 9 returns to it.
  • [ ] Keep Appendix C open. Every new metric in this part is defined there with the same name and formula.
  • [ ] Optional but recommended: rewatch, or look up the ball-by-ball of, one chase you remember. You will build its win-probability curve before the end of Chapter 9.

Chapters in This Part