Chapter 11 Exercises — Batting Against Specific Bowlers

Difficulty legend: ⭐ conceptual · ⭐⭐ calculation and interpretation · ⭐⭐⭐ code and judgment · ⭐⭐⭐⭐ open research

Unless stated otherwise, "the men's pool" means the chapter's men's T20 pool (IPL, men's T20Is and ten other men's T20 leagues, 2015–2026) and "the women's pool" means women's T20Is, WPL and WBBL, 2015–2026. Use the chapter's k values unless an exercise says otherwise: men k_sr = 303, k_dr = 1,956; women k_sr = 269, k_dr = 2,905.


Part A — Conceptual ⭐

A1. Explain in two or three sentences why a batter-versus-bowler head-to-head is "the smallest sample in cricket". Use the chapter's figure for the median number of balls per pair.

A2. The chapter defines matchup dismissals as dismissals credited to the bowler, excluding run-outs. Give one argument for this choice and one situation in which a run-out might genuinely belong to the matchup.

A3. In the league table, left-handers score at 116.1 against off-spin but last 22.7 balls per dismissal, longer than their 19.7 against all types. Explain what "containment matchup" means and why a captain might still prefer a containment bowler in the middle overs.

A4. Name the three levels of the chapter's hierarchical model and say, in one sentence each, what information each level contributes.

A5. Why does the model estimate a batter's skill on the other bowling types (leave one type out) rather than on all his balls? What would go wrong otherwise?

A6. The method of moments gave k_sr ≈ 300 balls but k_dr ≈ 2,000 balls. Explain, without formulas, why the dismissal number is so much larger.

A7. "Heinrich Klaasen has a weakness against right-arm pace." Explain why this statement is true in one sense and misleading in another, using the idea of a league-cells strike rate.

A8. Give three reasons, from §11.10, why the off-spin balls bowled to left-handers in the data are not a random sample of off-spin balls.

A9. Why did the semi-final matchup sheets in §11.9 use only data from before 4 March 2026? What is the general name for the error this avoids?

A10. Mohammad Nabi appears in the bowler handedness table, but his record is incomplete in a specific way. What is missing, and why?

A11. The styles table is built from players with at least 1,200 balls (men) or 600 balls (women) faced or bowled since 2015/2016, plus later batches of Test, full-member T20I and recent IPL/WPL regulars. Describe the kind of bowler who is therefore missing, and explain how that could make a domestic batter's matchup card look better or worse than his true ability against each type.

A12. Explain the difference between a head-to-head, a batter-versus-type matchup and a league hand × type effect. For each, give one decision a coach could reasonably base on it, and say which of the three is the most reliable.

A13. In the Eden Gardens semi-final, de Kock had never faced Cole McConchie before. Explain why a type-based matchup model still had something to say about that over, while a head-to-head tool had nothing.


Part B — Calculation & Interpretation ⭐⭐

B1. A batter has faced 180 balls of left-arm orthodox spin and scored 189 runs. His expected strike rate on those balls is 132.0. Using k_sr = 303, compute (a) his raw SR, (b) the weight his own record receives, (c) his shrunk SR, and (d) his shrunk matchup effect.

Answer

(a) 100 × 189 / 180 = 105.0. (b) 180 / (180 + 303) = 0.373. (c) 132.0 + 0.373 × (105.0 − 132.0) = 132.0 − 10.1 = 121.9. (d) −10.1 SR points.

B2. The same batter was dismissed 11 times by left-arm orthodox bowlers in those 180 balls. His expected dismissal rate is 0.045 per ball. Using k_dr = 1,956, compute his raw and shrunk dismissal rates and the corresponding balls per dismissal. How much did his 11 dismissals move the estimate?

Answer

Raw rate 11 / 180 = 0.0611 (16.4 balls per dismissal). Shrunk = (11 + 1,956 × 0.045) / (180 + 1,956) = (11 + 88.0) / 2,136 = 0.0464 (21.6 balls per dismissal). Expected was 0.045 (22.2 balls). The 11 dismissals moved the estimate by only 0.0014 per ball — about 0.6 balls per dismissal — because 180 balls carry under 10% of the weight.

B3. Using the chapter's numbers, de Kock's shrunk SR against off-spin is 115.5 and his expected SR is 125.8. Convert both to runs per over. If a captain bowls four overs of off-spin at de Kock instead of an "average" type for him, roughly how many runs does the matchup save?

Answer

115.5 → 6.93 runs per over; 125.8 → 7.55. The saving is about 0.62 runs per over, or about 2.5 runs over four overs — if de Kock faces all 24 balls, which he will not. In practice it is perhaps 1–1.5 runs per match from the matchup itself. Small, but a T20 is often decided by fewer.

B4. In the out-of-sample test, the raw record (k = 0) had error 403.7, ignoring matchups had 220.3, k = 300 had 207.7, and the unavoidable noise floor was 106.5. What fraction of the reducible error (between ignoring matchups and perfection) did k = 300 remove?

Answer

Reducible error = 220.3 − 106.5 = 113.8. Removed = 220.3 − 207.7 = 12.6. Fraction = 12.6 / 113.8 = 11.1%. Matchups help, but modestly.

B5. The funnel plot uses a per-ball SD of 162.4 and a league SR of 125.9. Compute the 95% "pure luck" band for a head-to-head of 25 balls and one of 100 balls. A batter has scored 50 off 25 balls (SR 200) against a bowler. Is that outside the band?

Answer

SE at 25 balls = 162.4 / 5 = 32.5; band = 125.9 ± 63.7 → 62.2 to 189.6. SR 200 is just outside. At 100 balls, SE = 16.2; band = 94.1 to 157.7. One head-to-head just outside a 95% band is expected — about 1 in 20 pairs would be, by luck alone.

B6. A bowler concedes SR 112 to 500 left-handed balls and SR 135 to 900 right-handed balls. His type's league rates are 116.1 (left-handers) and 125.6 (right-handers). Using k = 400, compute his shrunk SR against each hand and his shrunk handedness gap. Compare it with the type median of −12.2.

Answer

Left: (500 × 112 + 400 × 116.1) / 900 = (56,000 + 46,440) / 900 = 113.8. Right: (900 × 135 + 400 × 125.6) / 1,300 = (121,500 + 50,240) / 1,300 = 132.1. Gap = 113.8 − 132.1 = −18.3 — about six points more extreme than the off-spin median of −12.2; a strong left-hander specialist.

B7. Shafali Verma scores 143.4 against right-arm pace where an average right-hander would score 99.4 on the same balls, and 105.9 against leg-spin where an average right-hander would score 111.1. Express each as a ratio to the league-cells rate. What does the comparison tell a bowling captain?

Answer

Right-arm pace: 143.4 / 99.4 = 1.44. Leg-spin: 105.9 / 111.1 = 0.95. Against pace she is 44% above an average right-hander; against leg-spin, 5% below. Leg-spin is the type that removes her advantage — the place where she does the least damage relative to the field.

B8. A head-to-head shows 4 bowler-credited dismissals in 38 balls. The batter's expected dismissal rate against that bowler's type, in the overs where they met, is 0.046 per ball. (a) How many dismissals would you expect? (b) Using a Poisson approximation, roughly how often would an ordinary batter be dismissed four or more times in 38 such balls? (c) What does that say about the headline "he's got his number"?

Answer

(a) 38 × 0.046 = 1.75 dismissals. (b) With mean 1.75, P(X ≥ 4) = 1 − P(0) − P(1) − P(2) − P(3) ≈ 1 − 0.174 − 0.304 − 0.266 − 0.155 ≈ 0.10, about one pair in ten. (c) Among the thousands of pairs that meet for around 40 balls, hundreds will show four or more dismissals by luck alone. The headline is a coincidence until proven otherwise.


Part C — Code It ⭐⭐–⭐⭐⭐

C1. Build this metric ⭐⭐. Add a function matchup_boundary_split(faced, batter) to your copy of crease.matchups that returns, for each bowling type, the batter's balls, boundary-ball % and dot % against that type, alongside the league-cells boundary-ball % and dot % (built the same way as lg_runs). Run it for Quinton de Kock. Expected output: a six-row table with columns balls, bb_pct, bb_pct_league, dot_pct, dot_pct_league. Question to answer: is de Kock's off-spin deficit mainly fewer boundaries, more dots, or both? Hint: add lg_bb and lg_dot columns to the league cell table in the same groupby that builds lg_rpb, then sum them over the batter's balls exactly as lg_runs is summed.

C2. Evaluate this player ⭐⭐. Using matchup_report and the league-cells column, produce cards for five left-handed openers of your choice from the men's pool (for example Evin Lewis, Tamim Iqbal, Devon Conway, Yashasvi Jaiswal, David Warner). For each, flag any cell that is (a) below the league-cells SR and (b) has a shrunk effect below −5 and (c) has at least 300 balls. Output: one table with a boolean "anchor-grade" column. How many anchor-grade cells exist among your five? Hint: the league-cells SR is 100 * lg_runs / balls in the table returned by expected_matchups. Report the three conditions as three boolean columns before combining them, so a reader can see which test each cell fails.

C3. Settle this debate ⭐⭐⭐. "Left-handers are better against leg-spin than right-handers." Using rate_table, compare left- and right-handers against leg-spin in the men's pool, overall and within each phase and settle bucket. Then compute a standardised comparison on a common mix (Chapter 6's standardise). Does the raw comparison survive? Report the raw gap and the standardised gap. Expected shape: a 2 × 9 table (hand × phase-settle combination) of strike rates, a mix table of ball shares, and two summary numbers. Explain in a paragraph which way the mix bias runs.

C4. Predict this match ⭐⭐⭐. Rebuild the pre-match sheet for the 2026 T20 World Cup final (India v New Zealand, match id 1512773) using only data before the final's date. Output the India top-seven × New Zealand types grid (shrunk d_sr with balls), and the actual results of each batter. Which of the sheet's three strongest cells (by absolute value) were "tested" in the match, and how did they turn out? (Remember: one match is one data point.) Expected output: the grid, a "what happened" table (runs, balls, dismissed by, bowler type), and a short paragraph. Do not refit k on data that includes the final.

C5. Optimize this strategy ⭐⭐⭐. Write a function best_type_for(shrunk, batter, available_types) that returns the available type with the most negative shrunk run-value effect for that batter, plus the margin over the second-best and the cell's balls. Apply it to every batter in both 2026 semi-final top sevens with available types as in the match. In how many cases does the function's choice differ from what the league hand × type table alone would choose? Add a confidence field: "high" if the chosen cell has 300+ balls and a margin over the runner-up of more than 5 run-value points, "low" otherwise. How many "high-confidence" individual overrides of the league map do you find?

C6. Analyze this match ⭐⭐. Use head_to_head and rate_table to reconstruct the 2019 Ashes Warner–Broad story in the Test data: compute Warner's record against Broad and against all other right-arm pace bowlers (by type, via the styles table) in that series. Was Warner's problem Broad, or right-arm pace in English conditions that summer? (Hint: the Test data is load_deliveries("tests_male"); prepare works on it, but phases are "none". Use attach_styles with the male styles table, and compare Warner's 2019 series record against Broad, against Archer, and against all other right-arm pace with his record against right-arm pace in his other away Tests in England.)

C7. Build this metric ⭐⭐⭐. The chapter used a fixed wicket cost of 6 runs in the run-value effect. Make it phase-specific: use 6 in the middle overs, a higher cost in the powerplay and a lower one at the death (choose and justify values from Chapter 4 or Chapter 9's expected-runs logic). Recompute the top 15 weaknesses. Does the list change? Which batters move most, and why does a phase-specific wicket cost hurt powerplay specialists differently from middle-overs batters?


Part D — Judgment & Format Transfer ⭐⭐⭐

D1. Would the chapter's three-level model work for Test cricket? Discuss what changes: the outcome you care about (runs or dismissals?), the cell definitions (no phases; overs into the innings, ball age, innings number instead), the size of k for dismissals, and the role of conditions. Use the Warner–Broad story as your example, and say what you would want to know about English conditions (ball, weather, pitch) that the ball-by-ball data cannot supply.

D2. An IPL franchise's head coach says: "I don't trust your sheet. I've watched de Kock for years, and he plays off-spin fine." Write the reply you would give, in no more than 200 words, that respects the coach's eye test and uses the chapter's evidence (sample size, stability by era, absolute check) without overselling it.

D3. The chapter treats "mystery spinners" (Narine, Varun Chakravarthy, Theekshana) as members of a conventional type. Argue for and against creating a seventh type, "mystery spin". What would you need to do to the data to create it, and what would happen to the samples? Would Narine's lack of a handedness split (§11.7) count as evidence for a separate type?

D4. In the ODI format, the phases are 1–10, 11–40 and 41–50, and batters face far more balls per innings. Predict, with reasons, whether k_sr for ODI batter-versus-type matchups would be larger or smaller than the T20 value, and whether the dismissal matchups would become more readable.

D5. A broadcaster wants a graphic during a live match showing "Batter X v this bowler: 3 dismissals in 22 balls". Using the chapter's lessons, propose a responsible alternative graphic that is still interesting to viewers. What two numbers must appear on it? Sketch the graphic in words (title, the numbers, one line of context) and explain why your version would still make a good talking point for a commentator.

D6. The chapter's Anchor D is a scoring weakness of about 0.6 runs an over. A franchise analyst argues that this is too small to matter and that bowling plans should be built only around wicket-taking matchups. Using the chapter's findings on dismissal matchups and the cost of a T20 run, argue the opposite case in 150–200 words.

What strong answers to Part D include
  • D1: The outcome flips — in Tests a dismissal is the scarce resource, and the chapter showed dismissal matchups need roughly 2,000 balls of evidence for half weight in T20. Test batters do face many more balls of a type per series, so samples grow, but conditions (ball, pitch, weather, innings number, ball age) vary far more than in T20 and must replace phase in the cells. Warner–Broad shows both sides: 862 balls is a big sample by T20 standards, yet the dismissal rate swung from zero in 285 balls to seven in 104.
  • D2: Agree that the coach's eye may see things the data cannot (footwork, shot selection, how he plays particular bowlers); then give the three pieces of evidence — 1,226 balls, a deficit of 11–17 points in each of four eras, and a strike rate below an average left-hander on the same balls (112.9 against 120.9) — and the honest size (about 0.6 runs an over, not a wicket on demand). Invite the coach to name the mechanism.
  • D3: For: mystery spinners turn the ball both ways and erase handedness effects (Narine's gap is +2.6). Against: very few bowlers, so tiny samples per batter; and the label is subjective. Creating it means a hand-built list from public sources; samples for that type would be small, so shrinkage would dominate.
  • D4: ODI batters face more balls per innings, but per-ball noise and true matchup spread could both differ; a reasonable prediction is a similar or somewhat larger k_sr (scoring in ODIs is less boundary-driven, so per-ball variance is lower — which reduces k — while true matchup spread may also be smaller). Dismissal matchups become a little more readable because ODI careers contain more balls against each type. The point is to reason, then measure.
  • D5: A good graphic shows the head-to-head with balls and an "expected" line: "3 dismissals in 22 balls — an average batter would expect 1." Better still, the batter's record against the bowler's type. The two numbers that must appear are the balls and the expected value.

Part M — Mixed / Interleaved ⭐⭐–⭐⭐⭐

M1 (with Chapter 6). ⭐⭐ Chapter 6 found that a hot start to a season retains only about 31% of its excess over the batter's prior level. The chapter here found a head-to-head repeat slope of about 0.28. Explain why these two numbers are of similar size, and what common principle they illustrate.

M2 (with Chapter 8). ⭐⭐⭐ Chapter 8 introduced SR+ (strike rate relative to season-and-phase par). Modify expected_matchups so that its expectation uses SR+-style par (year × phase) instead of the chapter's era × phase × settle × hand × type cells, and compare de Kock's off-spin effect under both. Which adjustments matter most?

M3 (with Chapter 4). ⭐⭐ Chapter 4 found Bumrah cheaper than Ashwin in every IPL phase but dearer overall. Construct (or find in the data) a matchup version of Simpson's paradox: a batter who scores faster than another against a type in every phase, but slower overall. Explain the mechanism.

M4 (with Chapter 5). ⭐⭐⭐ Chapter 5 found that ODI and T20I strike rates correlate strongly across players (ρ = 0.80). Do batter-versus-type matchups transfer between formats? For batters with at least 300 balls against a type in both men's ODIs and the men's T20 pool, correlate their shrunk T20 effects with raw ODI deviations from a simple ODI expectation (hand × type × phase). Report n and r.

M5 (with Chapter 9). ⭐⭐⭐ Use Chapter 9's expected-runs or win-probability tools to put a match-level value on the de Kock matchup: if off-spin reduces his strike rate by about 10 points over the balls he typically faces from it in a powerplay, how much win probability does the bowling side gain on average? Compare with the value of a dismissal at the same point.

M6 (with Chapter 12 preview). ⭐⭐ A left-right opening pair forces a bowler to change angle when the strike rotates. Using the league hand × type table, estimate how much an off-spinner's advantage is diluted if he bowls to a left-right pair that rotates the strike on 40% of balls, compared with bowling only to the left-hander.


Hints for M1 and M6
  • M1: Both numbers are regression-to-the-mean slopes: the fraction of an observed excess that is real signal rather than luck. A hot start rests on a handful of innings; a head-to-head on a few dozen balls. With signal-to-noise ratios of similar size, similar fractions survive. The common principle is n/(n + k): when n is small relative to k, most of an extreme observation is noise.
  • M6: If the left-hander faces 60% of the off-spinner's balls and the right-hander 40%, the off-spinner's expected strike rate against the pair is a ball-weighted mix of the league rates for each hand (116.1 and 125.6), about 119.9, instead of 116.1 against the left-hander alone. Strike rotation dilutes the matchup by roughly 3.8 SR points, which is 40% of the 9.5-point gap between what the two hands score against off-spin.

M7 (with Chapter 13 preview). ⭐⭐⭐ An IPL auction analyst wants to know whether batters with large spin weaknesses are cheaper at auction. Using data/reference/ipl_auction.csv and the chapter's shrunk spin effects (average of off-spin, left-arm orthodox and leg-spin d_value, weighted by balls), test whether price is associated with spin weakness for batters bought in 2022–2026, controlling for overall strike rate. Report n, the coefficient and its uncertainty, and whether the market seems to price matchups at all.


Part E — Research & Extension ⭐⭐⭐⭐

E1. The women's matchup map. Extend §11.8 into a full study: build women's matchup cards for every batter with 1,500+ known balls in the women's pool, classify each cell as absolute, relative or mixed weakness (as in Case Study 2's "Your turn"), and write a 1,500-word report on whether the women's game rewards different matchup tactics from the men's. Include at least one figure and an honest section on coverage (women's T20Is are only 50% covered).

E2. Matchups across leagues. Using expected_matchups separately on the IPL, BBL, PSL and The Hundred (adapt prepare for the Hundred's ball-based phases), test whether the league-level hand × type effects differ by competition. Are some leagues "off-spin leagues"? Connect your findings to venue and pitch effects (Chapter 22) and be clear about what is causation and what is association.

E3. A full Bayesian version. If you have access to a probabilistic-programming library outside this book's environment, fit the three-level model jointly (batter random effects, batter × type random effects, a negative-binomial or normal likelihood for runs and a binomial for dismissals). Compare its shrunk estimates with the chapter's empirical-Bayes values for the top 50 cells. Where do they differ most, and why?