61 min read

In the 2019 Ashes, Stuart Broad went round the wicket to David Warner and kept getting him out. The book's data snapshot records it innings by innings:

Chapter 11 — Batting Against Specific Bowlers: Matchup Analytics, Exploiting Weaknesses, and the Data Behind Cricket Rivalries

Seven times in ten innings

In the 2019 Ashes, Stuart Broad went round the wicket to David Warner and kept getting him out. The book's data snapshot records it innings by innings:

      date        venue  inns  runs  balls how_out    bowler
2019-08-01    Edgbaston     1     2     14     lbw SCJ Broad
2019-08-01    Edgbaston     3     8      8  caught SCJ Broad
2019-08-14       Lord's     2     3     17  bowled SCJ Broad
2019-08-14       Lord's     4     5     11  caught JC Archer
2019-08-22   Headingley     1    61     94  caught JC Archer
2019-08-22   Headingley     3     0      2     lbw SCJ Broad
2019-09-04 Old Trafford     1     0      2  caught SCJ Broad
2019-09-04 Old Trafford     3     0      6     lbw SCJ Broad
2019-09-12     The Oval     2     5      8  caught JC Archer
2019-09-12     The Oval     4    11     22  caught SCJ Broad
Series: 95 runs in 10 innings; dismissed by Broad 7 times
Warner v Broad in the series: 104 balls, 35 runs, 7 dismissals

Ninety-five runs in ten innings from one of the best openers of his generation. Seven dismissals to one bowler in 104 balls — one every fifteen balls. Three lbws, one bowled, three caught. If you watched that summer you remember the shape of it: the angle from round the wicket, the ball that held its line, the left-hander's bat searching for it. It became the most famous batter-bowler matchup of the decade, and in the snapshot it is still the pair with the most Test dismissals between them since December 2001:

     batter      bowler  balls  runs  dis
  DA Warner   SCJ Broad    862   456   17
  BA Stokes    MA Starc    409   225   14
    JE Root  PJ Cummins    559   294   13
  BA Stokes    R Ashwin    647   253   13
  CA Pujara     NM Lyon   1296   571   13

Now look at the same pair by year:

      balls  runs  dis
year                  
2013    194   160    4
2014     24    25    1
2015    134    66    0
2017    151    62    0
2018     24    11    0
2019    104    35    7
2021     40    24    0
2022     37     6    2
2023    154    67    3

Before 2019, Warner had faced Broad for 527 balls in Tests and been dismissed by him five times. In the 2015 and 2017 calendar years together he faced 285 balls from Broad and was not dismissed once. Then came 104 balls in which he was out seven times. Then, from 2021 to 2023, 231 balls and five more dismissals. Across the whole 862-ball relationship Broad dismissed Warner once every 50.7 balls — a very good return for a bowler against a great batter, but not the once-every-fifteen of that one summer.

So which is the truth? Was there a matchup — something about Broad's angle and Warner's technique that made one of them the master of the other? Or was there a 104-ball streak inside a long rivalry, the kind of streak that random sequences throw up far more often than our intuition expects? Or — the honest answer, as we will see — some of both, in proportions that the data can estimate but never pin down exactly?

This chapter is about that question, asked thousands of times a season. In a T20 match the captain asks it every over: who should bowl to this batter? The analyst's job is to answer it with a number. The trap is that the obvious number — the batter's record against that bowler — is the smallest, noisiest sample in cricket. Warner and Broad met for 862 balls over a decade of Test cricket. In the men's T20 data we will use, the median batter-bowler pair has met for five balls.

The way out is to stop asking about one bowler and start asking about a type of bowler — off-spin, leg-spin, left-arm pace — and then to borrow strength cleverly from everything else we know: how left-handers in general cope with off-spin, how this batter copes with everything else, and how much real variation in matchups actually exists. That is a hierarchical shrinkage model, built from the ideas of Chapter 6. By the end of the chapter we will use it to settle the book's fourth anchor example — a real batter with a real, shrunk, still-standing weakness — and then watch a real World Cup semi-final in which the opposition bowled exactly the right type at him in the second over.

🏏 Fan Track: Read the hook, §11.1, §11.3, §11.6 (the anchor matchup) and §11.9 (the World Cup semi-finals). The code can be skipped; every result is restated in prose.

📊 Analyst Track: Everything — especially the three-level model in §11.4 and the out-of-sample test in §11.5, which tell you how much any matchup number can be trusted.

🧑‍💼 Franchise Track: §11.6, §11.7 and §11.9 are the pre-match sheet a coach would actually use; §11.10 lists the ways it can mislead.


11.1 The smallest sample in cricket

The cricket question: when a commentator says "he's got his number", how many balls is that statement built on?

Let's count. We will use a men's T20 pool: the IPL, men's T20 internationals and ten other men's T20 leagues in the snapshot (BBL, PSL, CPL, SA20, ILT20, MLC, BPL, LPL, the T20 Blast and the Syed Mushtaq Ali Trophy), from 2015 to 2026. The Hundred is left out because its five-ball sets and 100-ball innings change the rhythm of an innings. That pool contains 1,871,397 balls faced in 8,461 matches.

📐 Definition — Head-to-head (H2H): a batter's record against one specific bowler: balls faced (wides excluded, no-balls included), runs off the bat, and dismissals credited to that bowler (bowled, caught, caught and bowled, lbw, stumped, hit wicket). Run-outs are excluded — the bowler did not cause them. Pairs are identified by Cricsheet registry ids, not names, because names collide.

Grouping the pool by (batter_id, bowler_id) gives every head-to-head in men's T20 cricket since 2015:

faced = prepare(attach_styles(load_many(MEN_T20), load_styles(gender="male")))
h2h = faced.groupby(["batter_id", "bowler_id"]).agg(
    batter=("batter", "first"), bowler=("bowler", "first"), balls=("runs_batter", "size"),
    runs=("runs_batter", "sum"), dis=("dis", "sum")).reset_index()
for m in (6, 12, 30, 60, 120):
    s = h2h["balls"] >= m
    print(f"pairs with >= {m:3d} balls: {s.sum():6,} ({100 * s.mean():5.2f}% of pairs, "
          f"{100 * h2h.loc[s, 'balls'].sum() / h2h['balls'].sum():5.1f}% of balls)")
Men's T20 pool 2015-2026: 261,942 distinct batter-bowler pairs
  pairs with >=   6 balls: 114,185 (43.59% of pairs,  77.1% of balls)
  pairs with >=  12 balls: 41,938 (16.01% of pairs,  46.5% of balls)
  pairs with >=  30 balls:  6,126 ( 2.34% of pairs,  14.0% of balls)
  pairs with >=  60 balls:    677 ( 0.26% of pairs,   2.7% of balls)
  pairs with >= 120 balls:     19 ( 0.01% of pairs,   0.1% of balls)
  median balls per pair: 5; 90th percentile: 15

(Full script: code/02_head_to_head.py.) Read the last two lines slowly. Of more than a quarter of a million batter-bowler pairs, only 677 have met for sixty balls — ten overs, the length of one decent T20 innings. Only nineteen have met for 120 balls. The median pair has met for five. Even in the IPL, where the same players meet season after season, the most frequent pairing since 2015 is KL Rahul against Jasprit Bumrah at 113 balls:

IPL 2015-2026: the most frequent batter-bowler pairings
      batter      bowler  balls  runs  dis    sr
    KL Rahul   JJ Bumrah    113   139    2 123.0
     V Kohli   RA Jadeja    110   128    1 116.4
     V Kohli   SP Narine    109   123    2 112.8
   SV Samson Rashid Khan    108   121    1 112.0
     V Kohli   KH Pandya    107   117    1 109.3
   RG Sharma   SP Narine    106   117    5 110.4
    KL Rahul     B Kumar    104   112    2 107.7
   DA Warner   SP Narine    103   177    1 171.8
    KL Rahul   DL Chahar    103   160    1 155.3
F du Plessis    TA Boult    102   114    4 111.8

These are the IPL's great rivalries, in the sense of most-repeated. Rohit Sharma has been dismissed by Sunil Narine five times in 106 balls; David Warner has scored at 171.8 off Narine over 103 balls. Do those tell us something about Rohit and Warner against Narine — or about 106 and 103 balls?

Chapter 6 gave us the tool to check: compare the spread you see with the spread pure luck would create. A single ball faced in this pool is worth 100 × runs, so a strike rate over n balls is an average of n such values, and luck alone gives it a standard error of σ/√n, where σ — the standard deviation of 100 × runs on one ball — is about 162. Plot every head-to-head of twelve balls or more against its sample size, draw the band luck alone would fill, and you get a funnel:

Every batter–bowler head-to-head with 12+ balls: strike rate against sample size, with the band that luck alone would produce

📊 Figure (described): A scatter of 41,938 head-to-heads (men's T20, 2015–2026), strike rate on the vertical axis and balls on a log horizontal axis. The points form a funnel that narrows as samples grow. Dashed lines mark ±1.96 standard errors around the league strike rate of 126 — the band pure luck would fill 95% of the time — and dotted lines ±3. Almost all the "extraordinary" head-to-heads sit in the wide mouth of the funnel, where, at twelve balls, luck alone produces strike rates from about 34 to 218.

Funnel: 41,938 pairs with >= 12 balls; league SR 125.9, per-ball SD 162.4
  share inside the 95% pure-luck band: 88.2%

If every batter were identical against every bowler, 95% of pairs would fall inside the dashed band. In fact 88.2% do. So there is something beyond luck — about 7% of pairs are further out than luck explains, which is the signal we want — but it is buried under a vast amount of noise. A 12-ball head-to-head at strike rate 200 is not a matchup; it is three boundaries.

The cleanest test of a matchup is whether it repeats. Take every pair that met for at least 24 balls in 2015–2020 and at least 24 balls in 2021–2026. Measure each period's head-to-head strike rate relative to the batter's own strike rate in that period (so a batter who simply got better is not counted as "beating" the bowler). If head-to-heads were pure skill-against-skill, the two periods would line up on the diagonal. If they were pure luck, the correlation would be zero.

Head-to-head strike rate relative to the batter's own, 2015–2020 against 2021–2026, for 359 pairs

📊 Figure (described): Each point is a batter-bowler pair that met 24+ balls in both 2015–2020 (horizontal) and 2021–2026 (vertical), plotted as head-to-head strike rate minus the batter's own strike rate. The dashed diagonal is "perfect repeat"; the fitted orange line has slope 0.28. The cloud is round, not a line: a pair that was 60 points above the batter's norm in the first period is expected to be only about 17 above it in the second.

Head-to-head SR (minus batter's own SR), 2015-20 v 2021-26, pairs >= 24 balls in both: n = 359, r = 0.275
Head-to-head SR (minus batter's own SR), 2015-20 v 2021-26, pairs >= 48 balls in both: n = 18, r = 0.353
  (harmonic-mean balls per half in that set: 36)
  fitted slope: 0.278
Same pairs, measured against the batter's record v OTHER bowlers of the same type: n = 356, r = 0.181

A correlation of 0.275 between periods, with about 36 balls a period behind each number. That is not nothing — and the last line tells us where part of it comes from. When we measure the same pairs against the batter's record against other bowlers of the same type (other off-spinners, other left-arm quicks), the repeatability falls to 0.181. Roughly a third of what repeats in a head-to-head is not "Rohit against Narine" but "Rohit against off-spin", or "this batter's hand against this bowler's angle". What is left is a genuine but faint pair-specific signal — a correlation of 0.18 on three dozen balls a period, far too weak to read from any one pair's record. The type carries a good share of the signal and comes with samples big enough to measure it; the individual pairing carries a little real signal buried in a great deal of noise.

That one result shapes the rest of the chapter. Head-to-heads are fun, they make good television, and with a few hundred balls they begin to mean something. But the unit of analysis that a coach can trust is batter against bowling type, and even that needs care.

⚠️ Common pitfall: "He's got his number." A dismissal count is the noisiest statistic in a head-to-head. Bowler-credited dismissals in this pool come roughly once every 21–22 balls, so a pair who meet for 40 balls expects about two. Three or four is unremarkable luck; five in 40 would make a headline and still be weak evidence. Before quoting a dismissal count, quote the balls — and the expected number of dismissals for an ordinary batter facing an ordinary bowler of that type in those overs.

🔄 Check your understanding 1. Why does the funnel in Figure 11.3 narrow from left to right? 2. The repeat correlation for head-to-heads fell from 0.275 to 0.181 when we compared each pair with the batter's record against other bowlers of the same type. What does that tell you about where matchup signal lives? 3. Warner faced Broad for 285 balls in 2015 and 2017 without being dismissed, then was dismissed seven times in 104 balls in 2019. Name two explanations other than "Broad found a technical flaw", and one piece of evidence you would want to choose between them.

Answer

  1. Luck's standard error is σ/√n: with more balls, a strike rate wanders less from the batter's true rate, so the band of plausible results tightens.
  2. A sizeable part of the repeatable signal in a head-to-head — roughly a third — is the bowler's type (and the batter's hand), not the individual bowler; what is left for the pairing itself is real but faint on samples this small. Type-level samples are far larger, so model batter × type, and treat the individual pairing as a small adjustment at most.
  3. (a) Luck — a cluster of dismissals in a long relationship; (b) conditions — English pitches, the Dukes ball, a particular summer's weather; (c) a genuine change in Broad's plan (round the wicket) or Warner's form. Evidence: Warner's record against other right-arm seamers in that series (he was also dismissed three times by Archer), Broad's record against other left-handers that summer, and whether the angle of attack changed — which needs ball-tracking the public data does not have.

11.2 From bowlers to bowling types

The cricket question: what kind of bowler was it? The scorecard says "Narine". The coach thinks "off-spin into the left-hander". To think like the coach, our data needs the bowler's type and the batter's hand on every delivery — and Cricsheet records neither.

The book supplies them in a reference table, data/reference/player_styles.csv: 2,011 players (1,421 men, 590 women) — everyone who faced or bowled at least 1,200 legal balls (men) or 600 (women) in the book's competitions since 2015/2016, plus two later extensions that filled in Test and full-member T20I regulars and recent IPL and WPL players — each with a batting hand, an ESPNcricinfo-style bowling description, and a confidence grade (high, medium, low) for how the style was sourced. We use only high- and medium-confidence rows.

Six bowling types are enough to separate the matchups coaches talk about, and few enough that each batter × type cell has a usable sample:

📐 Definition — Bowling type (Chapter 11): one of six groups built from the bowling style: Right-arm pace (fast, fast-medium, medium-fast, medium), Left-arm pace, Off-spin (right-arm off-break), Left-arm orthodox (slow left-arm finger spin), Leg-spin (right-arm leg-break, with or without a googly) and Left-arm wrist-spin. "Mystery" spinners are filed under the style the reference table records (Sunil Narine and Maheesh Theekshana as off-spin, Varun Chakravarthy as leg-spin), which is a known simplification.

The join is the part to get right. The styles table is keyed by Cricsheet name and gender, but names are not unique. The registry has five people called "Rashid Khan"; the styles row is the Afghan leg-spinner. So the module never joins on name alone. For each name it finds the registry id that owns the most deliveries under that name, and attaches the style only to that person:

def _primary_ids(balls, role):
    """For every (name, gender) in `role`, the registry id with the most deliveries."""
    n = balls.groupby([role, "gender", f"{role}_id"]).size().reset_index(name="n")
    return n.sort_values("n").drop_duplicates([role, "gender"], keep="last")

def attach_styles(balls, styles):
    bw = _primary_ids(balls, "bowler").merge(
        styles, left_on=["bowler", "gender"], right_on=["cricsheet_name", "gender"])
    bw = bw.dropna(subset=["group"])[["bowler_id", "group", "bowling_style", "bowling_arm"]]
    bt = _primary_ids(balls, "batter").merge(
        styles, left_on=["batter", "gender"], right_on=["cricsheet_name", "gender"])
    ...
    return out.merge(bw, on="bowler_id", how="left").merge(bt, on="batter_id", how="left")

A bowler who is not in the table gets a type of NaN — unknown — never a guess. That costs coverage:

Coverage of the styles table (share of balls faced):
              balls  type_known  hand_known  both_known
competition                                            
t20s_male    708422        45.2        43.5        34.2
ntb          323427        74.8        76.4        57.3
ipl          180165        95.4        98.0        93.5
sma          154767        28.4        25.9         8.3
bbl          125926        85.8        84.4        72.7
bpl           94924        80.3        85.2        68.5
cpl           88034        87.2        87.2        76.1
psl           81123        83.1        87.8        73.2
lpl           31748        85.2        81.6        69.9
ilt           30254        89.1        94.8        84.5
sat           28071        86.3        84.4        72.6
mlc           24536        78.6        84.4        66.0

Both known, whole pool: 976,267 balls (52.2%)

(Full script: code/01_styles_and_baselines.py.) In the IPL, both the bowler's type and the batter's hand are known for 93.5% of balls faced; in the franchise leagues generally for 66–85%. The men's T20I archive is only 34.2% covered, because it includes hundreds of associate-nation matches between players who never reach the table's threshold, and the Syed Mushtaq Ali Trophy is barely covered (8.3%). Across the pool, 976,267 balls — 52.2% — carry both labels, and those are the balls every matchup in this chapter is built from.

Two consequences are worth stating plainly. First, the matchups describe batters against established bowlers — the ones good enough to bowl 1,200 balls in the book's competitions since 2015. A batter's record against club-standard associates is outside them, which is mostly a feature. Second, there is a hole you should know about before it bites: Cricsheet withholds Afghanistan's men's internationals, so every T20I between Australia and Afghanistan, or India and Afghanistan, is missing. Rashid Khan, Noor Ahmad and Mujeeb Ur Rahman appear only through franchise leagues. A batter's "record against leg-spin" in this data therefore does not include the T20Is he played against Rashid Khan.

⚠️ Common pitfall: joining on names. balls.merge(styles, left_on="bowler", right_on="cricsheet_name") looks harmless and silently gives every "Rashid Khan" in the data the Afghan's leg-breaks — the Cricsheet register has five people of that name. The same happens with the shared names the reference table flags in its note column (Haider Ali, Usman Khan, Mohammad Irfan, Junaid Khan…). Always pin a name to a registry id before attaching anything to it, and match women's and men's rows on gender ("SR Taylor" is Ross Taylor and Stafanie Taylor).

🔄 Check your understanding 1. Why does Crease attach a style to a registry id rather than to a name? 2. In the IPL, 93.5% of balls faced carry both a bowler type and a batting hand; in the Syed Mushtaq Ali Trophy, 8.3%. What kind of bias could that difference introduce into a batter's card?

Answer

  1. Names collide — five people share "Rashid Khan" in the register — so a name join would hand one person's style to several others. The primary id for each name is the person who owns most deliveries under it.
  2. Unknown bowlers are mostly associates, young players and part-timers. A batter's card is then built from his balls against established bowlers only; for a player whose career is mostly domestic, it describes a thin and unrepresentative slice of his batting.

11.3 The league's matchup map — and what it hides

The cricket question: before we look at any individual, what does the league as a whole tell us about hand against type? This is the first level of the model, and it is where most of the real signal lives.

League baseline by batting hand x bowling type (men's T20, 2015-2026):
                                   balls    runs    dis     sr  balls_per_dis  average  sr_index
batting_hand group                                                                              
Left         Left-arm orthodox     30061   41389   1413  137.7           21.3     29.3     104.2
             Left-arm pace         44509   58563   2473  131.6           18.0     23.7      99.6
             Left-arm wrist-spin    6107    7521    335  123.2           18.2     22.5      93.2
             Leg-spin              34249   44811   1851  130.8           18.5     24.2      99.0
             Off-spin              49875   57923   2199  116.1           22.7     26.3      87.9
             Right-arm pace       141930  195064   7295  137.4           19.5     26.7     104.0
Right        Left-arm orthodox     92055  108424   4100  117.8           22.5     26.4      89.2
             Left-arm pace        102559  137829   5357  134.4           19.1     25.7     101.8
             Left-arm wrist-spin   12646   16266    648  128.6           19.5     25.1      97.4
             Leg-spin              86454  108394   4328  125.4           20.0     25.0      94.9
             Off-spin              66154   83080   2774  125.6           23.8     29.9      95.1
             Right-arm pace       309668  430167  16716  138.9           18.5     25.7     105.2

By hand overall:
               balls     sr  balls_per_dis  average
batting_hand                                       
Left          306731  132.1           19.7     26.0
Right         669536  132.1           19.7     26.1

Strike rate and balls per dismissal by batting hand and bowling type, men's T20 2015–2026

📊 Figure (described): Two heatmaps, bowling types down the side, left- and right-handed batters across. Left: strike rate. The two darkest cells are left-handers against off-spin (116.1) and right-handers against left-arm orthodox (117.8) — finger spin turning away from the bat. Right: balls per dismissal. Finger spin takes wickets least often (22.5–23.8 balls per dismissal), while left-arm pace and left-arm wrist-spin against left-handers take them most often (about 18 balls).

Left- and right-handers score at exactly the same overall strike rate in this pool, 132.1. What differs is where. The two clearest matchups in men's T20 are mirror images:

  • Left-handers against off-spin: SR 116.1, an index of 87.9 (12% below what left-handers score against all types). The off-break turns away from the left-hander's bat, and the angle from over the wicket takes the leg-side swing out of play.
  • Right-handers against left-arm orthodox: SR 117.8, index 89.2. Same geometry, other hand.

Turn either around — left-arm orthodox to the left-hander, ball spinning in — and you get one of the most expensive combinations in the table, 137.7. That is the arithmetic behind the most common tactical rule in white-ball cricket: spin the ball away from the bat.

The dismissal column tells a quieter story that coaches sometimes miss. Finger spin is a containment weapon. Left-handers against off-spin last 22.7 balls per dismissal, longer than their 19.7 against all types. The off-spinner to the left-hander does not, on average, get him out; he slows him down. The types that take wickets against left-handers are left-arm pace and left-arm wrist-spin (18.0 and 18.2 balls per dismissal).

🧩 Productive struggle. Before reading on, try this. Quinton de Kock, the South African left-handed opener, has these strike rates in the pool:

text balls runs dis sr Right-arm pace 2647 4062 111 153.5 Off-spin 1226 1384 52 112.9

That is a gap of 40.6 strike-rate points. How much of it is de Kock, and how much would any left-handed opener show? List the things that could make an off-spin ball harder to score from than a right-arm pace ball for reasons that have nothing to do with de Kock. Then estimate — a guess is fine — what share of the 40.6 points they explain.

Answer (worked below)

At least four things: the league-wide left-hander-versus-off-spin effect we just saw (about 21 SR points between those two rows of the table for left-handers); phase (off-spin is bowled mostly in the middle overs, pace in the powerplay and at the death, and the league's scoring rate differs by phase); the stage of the batter's innings (does the type tend to meet him when he is new?); and era (scoring has risen fast — de Kock's off-spin balls and pace balls may come from different years). The decomposition that follows says the first three together explain 17.8 of the 40.6 points.

When each type bowls, and to whom

A raw batter-versus-type number mixes the batter with the situations in which he meets that type. Two situations matter most. The first is phase:

Share of each type's balls by phase (%):
phase                powerplay  middle  death
group                                        
Right-arm pace            37.2    35.0   27.8
Left-arm pace             47.2    23.9   28.9
Off-spin                  28.3    60.4   11.3
Left-arm orthodox         25.1    65.8    9.2
Leg-spin                   9.2    78.4   12.4
Left-arm wrist-spin        5.5    81.1   13.4

When each bowling type bowls: share of its balls in the powerplay, middle overs and death, men's T20 2015–2026

📊 Figure (described): Horizontal stacked bars, one per bowling type, split into powerplay, middle and death. Pace is spread across all three phases (left-arm pace bowls 47% of its balls in the powerplay); wrist-spin and leg-spin live in the middle overs (78–81%); off-spin bowls more powerplay overs (28%) than the other spin types — it is the spin type captains trust with the new ball.

Leg-spinners bowl 78% of their balls in overs 7–15. Pace bowls more than a quarter of its balls at the death, where everyone scores faster. So "this batter scores more slowly against leg-spin than against pace" is partly "this batter scores more slowly in the middle overs than at the death", which is true of nearly everyone.

The second situation is how far into his innings the batter is. Every batter is slower in his first few balls:

League SR by phase x balls-into-innings (all types):
settle       1-5   6-15    16+
phase                         
death      122.5  158.4  174.1
middle      93.6  125.6  139.5
powerplay  102.4  143.0  154.7

A middle-overs batter on his first five balls scores at 93.6; once past fifteen balls, at 139.5. Captains know this and bowl their wicket-takers at new batters. In the pool, 36.1% of left-arm pace balls are bowled to a batter on his first five balls, against 23–24% for leg-spin and wrist-spin. So the types do not even meet batters at the same stage of their innings.

One gap, decomposed

Now we can answer the productive-struggle question with data. For every ball de Kock faced, we ask what an average left-hander would have scored on that ball, given the bowler's type, the phase, the era and how many balls into his innings he was. Sum those over his balls against each type and you get the "league cells" strike rate. Then we scale by de Kock's own skill, measured on the other types, to get an expected strike rate (the details are in §11.4):

Quinton de Kock, men's T20 pool 2015-2026, by bowling type:
                     balls  runs  dis     sr  sr_league_cells  sr_expected
group                                                                     
Right-arm pace        2647  4062  111  153.5            138.8        135.8
Left-arm pace          917  1242   40  135.4            129.8        132.8
Off-spin              1226  1384   52  112.9            120.9        125.8
Left-arm orthodox      606   894   25  147.5            147.8        151.2
Leg-spin               455   577   23  126.8            139.8        146.7
Left-arm wrist-spin    104   123    4  118.3            138.6        140.2

Raw gap (RA pace minus off-spin): 40.6 SR points
  explained by league/hand/phase/era/settle (left-hander v type): 17.8
  explained by de Kock's era skill on other types:              -7.8
  left over (raw matchup residuals, before shrinkage):          30.6

Of the 40.6-point gap, 17.8 points are what any left-hander would show on the same balls: off-spin to a left-hander in those overs and at that stage of the innings is simply harder to score from than right-arm pace. The skill line is negative (−7.8) for a subtle reason: when we estimate how good de Kock is excluding right-arm pace, we exclude his best type, so his expected rate against pace comes out lower; excluding off-spin excludes his worst, so his expected rate against off-spin comes out higher. What is left — 30.6 points — is the raw matchup residual: about +18 against right-arm pace and about −13 against off-spin.

Look at the key comparison in the table. On exactly the 1,226 off-spin balls de Kock faced, an average left-hander would have scored at 120.9. De Kock scored at 112.9. He is not merely below his own standard against off-spin; he is below an ordinary left-hander's standard on the same deliveries. Hold that thought for §11.6.

🔍 Why this works: compare like with like, then compare the person. The league-cell expectation is a standardisation — the same idea as the common-mix comparison that untangled Simpson's paradox in Chapter 6 and the phase-par of SR+ in Chapter 8. Instead of comparing de Kock's off-spin balls with his pace balls (different overs, different stages, different years), we compare each ball with the league's rate on balls like it. Whatever is left is about the batter, not the schedule. The leave-one-type-out skill index then stops a strong or weak type from predicting itself — if we measured de Kock's skill on all his balls, his off-spin balls would drag his "expected" off-spin number toward his actual one, and part of the weakness would hide inside the expectation.

🔄 Check your understanding 1. Left-handers and right-handers both score at 132.1 overall in the pool. Name the type each hand scores most slowly against, and explain the geometry. 2. Off-spin bowls 28.3% of its balls in the powerplay; leg-spin bowls 9.2%. Why does that matter when you compare a powerplay opener's record against the two types? 3. Why is de Kock's expected SR against right-arm pace (135.8) lower than the league-cells SR (138.8) on the same balls?

Answer

  1. Left-handers: off-spin (116.1). Right-handers: left-arm orthodox (117.8). In both cases the finger-spinner turns the ball away from the bat.
  2. An opener meets off-spin far more often than leg-spin in the powerplay, where field restrictions make scoring easier; raw comparisons would flatter his off-spin record and penalise his leg-spin record for reasons of when, not who. The league-cell expectation removes that.
  3. His skill index for that cell is measured on his other types, which include his weak spin record. Measured that way he is slightly below an average left-hander, so the expectation is pulled down; his actual 153.5 then shows up as a big positive matchup.

11.4 Three levels: a hierarchical model you can build in pandas

The cricket question: how much of a batter's record against a type should we believe? Chapter 6 answered the one-level version — shrink a player's strike rate toward the league by k balls, with k estimated from the data. A matchup needs a target that already knows about the batter and the type. That gives three levels.

📐 Definition — Expected matchup (Crease expected_matchups): for batter b against bowling type t,

expected runs = Σ over b's balls against t of (league runs per ball in that ball's cell) × skill_b,era

where a cell is batting hand × bowling type × phase × era (2015–17, 2018–20, 2021–23, 2024–26) × settle bucket (balls 1–5, 6–15, 16+ of the innings), and skill_b,era is the batter's runs ÷ league-expected runs on his balls against the other five types in the same era, shrunk toward 1.0 with 300 balls of league-average data. Expected dismissals are built the same way. Expected SR = 100 × expected runs ÷ balls.

📐 Definition — Shrunk matchup: with n balls against the type,

shrunk SR = expected SR + n/(n + k_sr) × (observed SR − expected SR)

shrunk dismissal rate = (dismissals + k_dr × expected rate) ÷ (n + k_dr)

The first is the normal–normal shrinkage of Chapter 6; the second is beta-binomial shrinkage with a prior worth k_dr balls centred on the expectation. The matchup effect d_sr = shrunk SR − expected SR.

This is a hierarchical or partially pooled model: the league informs the cells, the cells and the batter's other balls inform his expectation, and his own balls against the type move him away from it only as far as their number justifies. A full Bayesian version would fit all three levels at once (Gelman and colleagues' Bayesian Data Analysis is the standard reference); the book's environment does not include a probabilistic-programming library, and the empirical-Bayes version here — estimate each level, then plug in — gets you most of the way with nothing but pandas.

The heart of expected_matchups is a dozen lines:

pop = f.groupby(keys).agg(_n=("runs_batter", "size"), _r=("runs_batter", "sum"), _d=("dis", "sum"))
pop["lg_rpb"], pop["lg_dr"] = pop["_r"] / pop["_n"], pop["_d"] / pop["_n"]
f = f.merge(pop[["lg_rpb", "lg_dr"]].reset_index(), on=keys)      # league rate on every ball
c = f.groupby(["batter_id", "era", "group"]).agg(balls=("runs_batter", "size"), runs=("runs_batter", "sum"),
        dis=("dis", "sum"), lg_runs=("lg_rpb", "sum"), lg_dis=("lg_dr", "sum")).reset_index()
tot = c.groupby(["batter_id", "era"])[["balls", "runs", "dis", "lg_runs", "lg_dis"]].transform("sum")
o_b, o_r, o_lr = tot.balls - c.balls, tot.runs - c.runs, tot.lg_runs - c.lg_runs   # the OTHER types
c["skill_r"] = (o_r + skill_k * o_lr / o_b) / (o_lr + skill_k * o_lr / o_b)
c["exp_runs"] = c["lg_runs"] * c["skill_r"]

The transform("sum") gives each row the batter's era totals; subtracting the row itself leaves "everything except this type" — the leave-one-out. The skill index adds skill_k balls at exactly league rate to both the numerator and the denominator, which pulls a batter with few balls on other types gently toward 1.0.

How much real matchup variation is there?

Now the key question for level three: how big is k? We use the method of moments from Chapter 6. Across qualified cells, the observed spread of (observed SR − expected SR) is part true matchup and part ball-to-ball noise. The noise part we know exactly (σ²/n per cell), so what is left over is the variance of real matchups, τ². Then k = σ²/τ²:

sigma2 = (100 * known(faced)["runs_batter"]).var()
dev = 100 * (d["runs"] - d["exp_runs"]) / d["balls"]
tau2 = np.average(dev ** 2 - sigma2 / d["balls"], weights=d["balls"])
k_sr = sigma2 / tau2
How much real matchup variation is there? (method of moments)
  batters >= 1000 balls, cells >=  30:  1817 cells, 325 batters | SR: true SD  9.84, k =   284 balls | dismissal rate: true SD 0.0058 (mean 0.0472), k =  1340 balls
  batters >= 1500 balls, cells >=  60:  1170 cells, 215 batters | SR: true SD  9.54, k =   303 balls | dismissal rate: true SD 0.0047 (mean 0.0461), k =  1956 balls
  batters >= 2000 balls, cells >= 100:   775 cells, 148 batters | SR: true SD  9.50, k =   305 balls | dismissal rate: true SD 0.0046 (mean 0.0456), k =  2022 balls
  batters >= 3000 balls, cells >= 150:   383 cells,  75 batters | SR: true SD  8.86, k =   350 balls | dismissal rate: true SD 0.0041 (mean 0.0441), k =  2535 balls

Chosen: k_sr = 303, k_dr = 1956  (per-ball SD of 100 x runs = 165.9)
  relative true SD of dismissal-rate matchups: 10.3% of the mean rate
  balls for half the matchup signal: SR 303; dismissals 1956

(Full script: code/03_shrinkage.py.) Two findings, and they are the most useful numbers in this chapter.

Scoring matchups are real and moderately sized. After removing everything the league, the situation and the batter's general skill explain, true batter-versus-type strike-rate effects have a standard deviation of about 9.5 SR points. A batter who is one standard deviation "weak" against a type scores about 0.6 runs an over less against it than we would otherwise expect. And it takes about 300 balls — fifty overs of that type — before a batter's own record against the type deserves half the weight. Four filters give k between 284 and 350 balls, so the number is robust to how strict we are.

Dismissal matchups are mostly noise. True variation in batter-versus-type dismissal rates is about 0.005 per ball on a mean of 0.046 — real, but only about 10% of the mean — and you need about 2,000 balls against a type before a batter's own dismissal record against it deserves half the weight. Almost no batter has 2,000 balls against any spin type. Translated: for nearly every matchup in T20 cricket, the honest estimate of how often this batter gets out to this type is very close to what the league and his general record predict. The "he always gets out to leg-spin" story is the one the data supports least.

That is why, in this book, a matchup is mostly a scoring matchup. When we combine the two into one number, the scoring part dominates:

📐 Definition — Matchup run value: run value = SR − 100 × c × dismissal rate, in runs per 100 balls, where c is the price of a wicket in runs. We use c = 6, the cost of a wicket at halfway in an IPL first innings from Chapter 4. The run-value effect d_value is shrunk run value minus expected run value. Positive means the batter does better than expected.

🏏 Eye test. Wendell Baptiste, the Port of Spain Pelicans' coach, read the dismissal result twice. "So you're telling me the thing every captain in the world plans around — getting a man out — is the thing you can't see in the numbers?"

"Not can't see," Nusrat said. "Can't see from his record against the type. Two thousand balls is more than most batters face against off-spin in a career."

"Then how does anybody know Warner can't play Broad?"

"From the 104 balls, mostly. And maybe from something the scorecard doesn't record. Did Broad change his angle in 2019?"

Wendell grinned. "Round the wicket, ball after ball, holding its line. You don't need a computer for that. You need a man standing at gully." Then, more seriously: "But you're right that I'd have told you in 2017 he had Broad's measure. Two hundred and eighty-five balls without getting out. So which of my eyes do I trust?"

That is the right question, and the honest answer has two parts. A coach's eyes see mechanisms — an angle, a hand position, a ball that straightens — that ball-by-ball data cannot. The data sees frequencies across thousands of balls that no single pair of eyes can hold. A mechanism the coach can name, plus a frequency that survives shrinkage, is a matchup worth planning for. A frequency with no mechanism is probably a streak; a mechanism with no frequency is a hypothesis to test.

🔄 Check your understanding 1. In words, what does k_sr = 303 balls mean? 2. A batter has faced 120 balls of leg-spin. Using k_sr = 303, what fraction of the gap between his observed and expected strike rate does the shrunk estimate keep? 3. Why can you hardly ever claim a batter-versus-type dismissal weakness from T20 data, even with a few hundred balls?

Answer

  1. The expectation (league cell × the batter's skill on other types) is worth as much as 303 balls of his own record against the type. At 303 balls, his own record and the expectation get equal weight.
  2. 120 / (120 + 303) = 0.284 — the shrunk estimate keeps about 28% of the raw gap.
  3. True variation in dismissal matchups is small (about 10% of the mean rate) compared with binomial noise, so k_dr ≈ 2,000 balls. With 300 balls, a batter's own dismissal record gets weight 300/(300 + 1,956) ≈ 13%.

11.5 Does shrinkage beat the raw number? An out-of-sample test

The cricket question: if you had used this model five years ago, would it have predicted the matchups of the last five years better than the raw records? A method of moments is a theory; a forecast is a test.

The figure below shows what shrinkage does to the most extreme raw matchups in the pool — seven of the most negative and seven of the most positive among batters with at least 1,500 known balls and at least 60 balls against the type:

The most extreme raw batter-versus-type matchups and their shrunk values

📊 Figure (described): Fourteen arrows, one per batter × type, each running from the raw matchup effect (observed minus expected SR, orange) to the shrunk effect (blue). Small samples travel furthest: Romario Shepherd against left-arm wrist-spin (64 balls) moves from −55 to −9.5; Yashasvi Jaiswal against left-arm orthodox (138 balls) from −41 to −13. Nicholas Pooran against left-arm orthodox, with 440 balls, keeps a large effect (+49 raw, +29 shrunk).

The 7 most negative and 7 most positive RAW matchups, and what shrinkage makes of them:
         batter               group  balls  runs  dis  sr_obs  sr_exp  sr_shr  d_sr
     R Shepherd Left-arm wrist-spin     64    40    6    62.5   117.0   107.5  -9.5
        E Lewis Left-arm wrist-spin     67    68    3   101.5   147.6   139.2  -8.4
    YBK Jaiswal   Left-arm orthodox    138   174    6   126.1   166.8   154.1 -12.8
     BJ Webster            Off-spin     84    69    3    82.1   122.5   113.8  -8.8
 Iftikhar Ahmed Left-arm wrist-spin     86    66    2    76.7   117.0   108.1  -8.9
       SK Raina Left-arm wrist-spin     69    66    3    95.7   135.7   128.3  -7.4
  Mohammad Naim   Left-arm orthodox    214   195   11    91.1   131.0   114.5 -16.5
     KA Pollard Left-arm wrist-spin    214   399    8   186.4   130.1   153.4  23.3
Abhishek Sharma            Leg-spin    271   590   17   217.7   167.2   191.1  23.9
       FH Allen            Leg-spin    171   385    8   225.1   175.2   193.2  18.0
      J Charles Left-arm wrist-spin    126   237    6   188.1   138.3   152.9  14.7
     Imad Wasim Left-arm wrist-spin     69   108    6   156.5   107.2   116.4   9.2
       N Pooran   Left-arm orthodox    440   839   22   190.7   141.5   170.6  29.2
   Ishan Kishan Left-arm wrist-spin     65   119    3   183.1   135.8   144.2   8.4

Left-arm wrist-spin supplies eight of the fourteen cells, four at each end — not because it produces the most extreme matchups, but because it is the rarest type (about 2% of known balls), so batters have the smallest samples against it and the most room for luck. That is the funnel of §11.1 again, now at the level of types. Across all 1,170 qualified cells, the standard deviation of the raw effects is 14.9 SR points; after shrinkage it is 7.1.

📋 Try it — Evaluate this player. Rishabh Pant has faced 109 balls of left-arm wrist-spin in the pool and scored 97 runs (SR 89.0). His expected SR on those balls is 127.3. A commentator says, "Pant can't pick the left-arm wrist-spinner — bowl Kuldeep at him." Using k_sr = 303, compute the shrunk SR and the shrunk matchup effect. Would you plan a whole spell around it?

Worked answer

Weight = 109 / (109 + 303) = 0.265. Shrunk SR = 127.3 + 0.265 × (89.0 − 127.3) = 127.3 − 10.1 = 117.2, matching the 117.2 that shrink_matchups returns for him, so the shrunk effect is about −10. That is about one standard deviation of true matchup effects — a lean, not a certainty. With 109 balls the raw number has a luck standard error of about 165.9/√109 ≈ 16 SR points by itself. It is reasonable to prefer left-arm wrist-spin to Pant when the choice is otherwise even; it is not a reason to bowl a weaker bowler. (Also check who the 109 balls came from — if most came from one bowler, it is closer to a head-to-head than a type effect.)

Now the test. We split the data at the end of 2020. For every batter × type cell with at least 30 balls in 2015–2020 and at least 30 balls in 2021–2026, we compute the matchup deviation (observed minus expected SR) in each period separately, with expectations rebuilt inside each period. Then we "forecast" the 2021–2026 deviation from the 2015–2020 one, shrunk with a range of k values — from 0 (trust the raw early record completely) to infinity (ignore matchups; predict zero deviation) — and score each forecast by weighted squared error:

Out-of-sample test: 1499 batter x type cells with >= 30 balls in 2015-20 AND 2021-26
     k  mse_sr  mse_dr_x1e4
   0.0 403.703        6.039
  25.0 302.143        4.357
  50.0 264.159        3.706
 100.0 232.989        3.145
 150.0 220.168        2.896
 200.0 213.643        2.757
 300.0 207.745        2.613
 400.0 205.552        2.542
 600.0 204.623        2.477
1000.0 205.884        2.437
2000.0 209.585        2.421
5000.0 214.472        2.425
   inf 220.256        2.438
Best k for SR: 600.0; for dismissal rate: 2000.0
SR: raw MSE 403.7, 'no matchup' MSE 220.3, k~300 MSE 207.7
Unavoidable noise in the 2021-26 target alone: 106.5 (so the reducible part is small)
Correlation of raw deviations across periods: SR r = 0.267, dismissal r = 0.101

Out-of-sample error for predicting 2021–26 matchups from 2015–20, as a function of the shrinkage constant k

📊 Figure (described): Two panels — strike-rate matchups (left) and dismissal-rate matchups (right) — plotting forecast error against k on a log-like scale, with an orange dashed line for "ignore matchups". In both panels the raw record (k = 0) is by far the worst forecast. For strike rate the error curve dips below the ignore-matchups line from k ≈ 150 upwards and bottoms out near k = 400–1,000; the dotted line marks the method-of-moments k = 303. For dismissal rate the curve only just dips below the ignore line around k = 1,000–5,000.

Three lessons, in order of importance.

  1. The raw matchup record is a terrible forecast. Trusting the 2015–2020 record as it stood (k = 0) gives an error of 404 — almost twice the error of ignoring matchups altogether (220). A coach who plans around raw batter-versus-type numbers is doing worse than one who never looks at them.
  2. Shrunk matchups beat no matchups — for scoring. With k anywhere from about 200 to 5,000 the forecast beats "ignore matchups", and k ≈ 300 (our method-of-moments value) gets most of the gain; the out-of-sample optimum, 600, is a little larger. That pattern — the best forecasting k sits above the within-sample k — is the one Chapter 6 found for season-to-season strike rate, and for the same reason: true abilities drift over five years, so old evidence deserves extra discount. For forecasting, use k_sr ≈ 300–600.
  3. For dismissals, the matchup adds almost nothing. The best dismissal forecast (k = 2,000, error 2.421) barely beats ignoring matchups (2.438). The correlation of raw dismissal deviations across the two periods is 0.101. In T20 cricket, who gets a batter out is overwhelmingly a matter of who he is, what phase it is, and luck — not of bowling type.

Notice also the honest ceiling: even a perfect forecast could not get below about 106.5, because the 2021–2026 targets are themselves noisy samples. The useful range of improvement is between 220 (ignoring matchups) and 107 (perfection), and shrinkage captures a modest slice of it — roughly 13 of the 114 reducible points. Matchups are real, but they are a seasoning, not the meal. The batter's overall quality, covered in Chapter 8, matters far more.

⚠️ Common pitfall: the "matchup app" that shows raw numbers. Many matchup tools display a batter's raw record against each bowler or type, coloured red and green, with no sample size and no shrinkage. The out-of-sample test above says exactly how costly that is: in this data, acting on raw batter-versus-type deviations would have forecast the next five years with nearly double the error of ignoring them. If a tool does not show the balls behind every number, assume the extreme numbers are mostly luck.

🔄 Check your understanding 1. In the out-of-sample test, why is k = 0 (trust the raw record) worse than k = ∞ (ignore matchups)? 2. The best forecasting k (600) is larger than the method-of-moments k (303). Give a cricket reason. 3. Why does left-arm wrist-spin appear so often among the most extreme raw matchups?

Answer

  1. With 30–200 balls per cell, the raw deviation is mostly noise; adding that noise to the forecast costs more than the real signal it carries. Ignoring matchups at least adds no noise.
  2. Batters change over five years — they learn to play a type, or age, or change role — so an old matchup is a weaker guide to the future than a current one, and deserves extra discount.
  3. It is the rarest type, so batters' samples against it are smallest, and small samples produce the widest swings — luck, not a special property of wrist-spin.

11.6 The matchup that wins a semi-final: Quinton de Kock against off-spin

The cricket question: is there a real batter, in modern T20 cricket, with a weakness against a bowling type that survives everything we have just done to it — the league's hand effect, phase, era, stage of innings, his own skill, and shrinkage? This is the book's fourth anchor example, and Chapter 31 will build a bowling plan around it, so it needs to be the most trustworthy weakness in the data, not merely the most dramatic.

Ranking every qualified cell by its shrunk run-value effect gives a list of candidates (batters with at least 1,500 known balls, cells with at least 100):

Largest shrunk weaknesses (run value = SR - 600 x dismissal rate, v expectation):
       batter             group  balls  runs  dis  sr_obs  sr_exp  sr_shr  avg_obs  avg_exp  avg_shr  d_value
 Shoaib Malik     Left-arm pace    628   684   28   108.9   137.9   118.3     24.4     34.6     28.8    -20.2
 ADS Fletcher          Leg-spin    381   355   23    93.2   127.0   108.2     15.4     26.5     21.7    -20.1
 Tanzid Hasan    Right-arm pace    622   762   30   122.5   147.0   130.5     25.4     35.1     30.1    -17.4
Mohammad Naim Left-arm orthodox    214   195   11    91.1   131.0   114.5     17.7     31.7     27.0    -17.1
     SE Marsh    Right-arm pace   1024  1195   38   116.7   139.8   122.0     31.4     33.7     30.5    -16.9
   MJ Guptill     Left-arm pace    602   634   27   105.3   129.8   113.5     23.5     32.0     27.3    -16.9
     T Banton     Left-arm pace    704   817   32   116.1   138.7   122.8     25.5     33.2     28.8    -16.4
  JR Philippe     Left-arm pace    367   406   30   110.6   134.1   121.2     13.5     29.8     23.9    -16.3
   BJ Webster          Leg-spin    344   326   13    94.8   126.2   109.5     25.1     27.0     24.1    -15.9
   RR Rossouw          Leg-spin    545   648   25   118.9   144.0   127.9     25.9     28.8     26.1    -15.6
 Tanzid Hasan     Left-arm pace    237   235   15    99.2   131.6   117.3     15.7     30.9     26.2    -15.6
    H Klaasen    Right-arm pace   1295  1993   72   153.9   171.3   157.2     27.7     33.7     29.8    -15.2

These are real and interesting — Shoaib Malik scoring at 108.9 against left-arm pace, Andre Fletcher at 93.2 against leg-spin, Rilee Rossouw at 118.9 against leg-spin over 545 balls. But nearly half of these cells have fewer than 400 balls, so a large part of each shrunk estimate is still the prior, and a single era of form can produce a list like this. For a bowling plan in 2026, we want three more things: a batter still playing at the top level, a large sample (so the shrunk effect is mostly the batter's own evidence, not the prior), and stability — the weakness should show up in every era, not just in one hot streak.

One batter meets all three. Here is Quinton de Kock's full card:

Q de Kock, men's T20 pool 2015-2026 (k_sr = 303, k_dr = 1956):
                     balls  runs  dis  sr_obs  sr_exp  sr_shr  sr_lo  sr_hi  avg_obs  avg_exp  avg_shr  bpd_exp  bpd_shr  d_sr  d_value
group                                                                                                                                  
Right-arm pace        2647  4062  111   153.5   135.8   151.6  146.6  156.7     36.6     31.7     35.8     23.3     23.6  15.8     16.2
Left-arm pace          917  1242   40   135.4   132.8   134.8  127.0  142.6     31.0     28.7     29.7     21.6     22.0   2.0      2.5
Off-spin              1226  1384   52   112.9   125.8   115.5  108.5  122.4     26.6     30.7     27.8     24.4     24.1 -10.4    -10.7
Left-arm orthodox      606   894   25   147.5   151.2   148.8  139.7  157.8     35.8     34.7     34.6     22.9     23.2  -2.5     -2.2
Leg-spin               455   577   23   126.8   146.7   134.7  124.8  144.7     25.1     29.6     27.1     20.2     20.1 -11.9    -12.0
Left-arm wrist-spin    104   123    4   118.3   140.2   134.6  121.1  148.1     30.8     28.2     27.4     20.1     20.4  -5.6     -5.3

Off-spin: shrunk deficit -10.4 SR pts; 90% interval for shrunk SR 108.5-122.4 vs expected 125.8  (deficit / posterior SD = -2.45)
Runs per over v off-spin: raw 6.77, shrunk 6.93, expected 7.55

Quinton de Kock by bowling type: raw, expected and shrunk strike rate with 90% intervals

📊 Figure (described): Six rows, one per bowling type, each showing de Kock's expected strike rate (black tick), raw strike rate (orange cross) and shrunk strike rate with a 90% interval (blue). Against right-arm pace the whole interval lies far to the right of the expectation — a strength. Against off-spin, with 1,226 balls, the whole interval (108.5–122.4) lies to the left of the expected 125.8. Leg-spin (455 balls) is the only other type whose interval sits wholly below its expectation, and only just; off-spin is the more clearly separated of the two.

📐 Anchor D — the matchup that wins a semi-final. Quinton de Kock (left-handed) against off-spin, men's T20 pool (IPL, men's T20Is and ten franchise/domestic leagues), 2015–2026: 1,226 balls, 1,384 runs, 52 bowler-credited dismissals. Raw SR 112.9; expected 125.8; shrunk 115.5 (90% interval 108.5–122.4); shrunk SR effect −10.4; shrunk average 27.8 against an expected 30.7; run-value effect −10.7 per 100 balls. On the same 1,226 balls, an average left-hander would have scored at 120.9.

Why this one, rather than a cell with a bigger number? Because of what the rest of the evidence says.

The sample is big. With 1,226 balls, de Kock's own record gets weight 1,226/(1,226 + 303) = 80% in the shrunk estimate. The prior is not doing the work; he is. Among the 667 cells with at least 300 balls (batters with 1,500+), his shrunk deficit ranks 46th — inside the worst 7%. Of the 45 cells above it, 41 rest on fewer balls; the four with more are all against right-arm pace, the type where (as the next paragraph explains) a "weakness" is often a relative one. No batter has a spin-type weakness with a bigger sample and a bigger shrunk deficit.

It survives the absolute check. Some "weaknesses" are relative: Heinrich Klaasen's record against right-arm pace looks weak only because his spin-hitting is so extreme. De Kock's off-spin record is below an ordinary left-hander's on the same balls (112.9 against 120.9). It is a weakness by any standard.

It is stable. Rebuild the expectation inside each era and the gap never closes:

De Kock v off-spin by era (expectation rebuilt inside each era):
    era  balls  runs  dis    sr  sr_exp  sr_all_types   dev
2015-17     86    97    2 112.8   129.4         141.7 -16.6
2018-20    255   290   10 113.7   125.1         138.4 -11.3
2021-23    349   391   14 112.0   123.7         137.5 -11.6
2024-26    536   606   26 113.1   127.1         140.0 -14.0

De Kock against off-spin, era by era: actual and expected strike rate

📊 Figure (described): Paired bars for four eras (2015–17, 2018–20, 2021–23, 2024–26): grey for expected strike rate against off-spin, blue for actual, with ball counts above. In every era the blue bar sits 11–17 points below the grey one, and the actual rate stays in a narrow band (112.0–113.7) while his overall strike rate stays at 137–142.

Four separate windows, each with its own expectation, each between 11.3 and 16.6 points short. The size wobbles — the largest deficit comes from the smallest window, 86 balls in 2015–17 — but his actual strike rate against off-spin barely moves (112.0 to 113.7) and the sign never changes. Luck does not usually produce four double-digit deficits in a row; a technical or tactical pattern does.

It is not one bowler. De Kock has faced 57 different off-spinners in the pool:

Off-spinners who bowled most to de Kock (57 different bowlers):
                   balls  runs  dis     sr
bowler                                    
SP Narine            102    86    8   84.3
R Ashwin             101   110    4  108.9
MM Ali                88   110    7  125.0
GJ Maxwell            84    87    2  103.6
M Theekshana          69    83    0  120.3
RL Chase              68   117    4  172.1
D Ferreira            65    68    3  104.6
Washington Sundar     52    50    1   96.2
CJ Green              47    67    0  142.6
Harbhajan Singh       32    28    1   87.5
Bowlers with >= 30 balls to him: 10; their SR: 113.8; the rest: 111.6

Sunil Narine has bowled 102 balls at him for 86 runs and eight dismissals, and since Narine is a mystery spinner filed as an off-spinner, a sceptic might suspect that one awkward opponent makes the whole effect. It does not: take Narine's 102 balls out and de Kock's off-spin strike rate is 1,298 runs off 1,124 balls, 115.5 — still well below the 120.9 an average left-hander would manage. And the 47 off-spinners who bowled fewer than 30 balls at him held him to 111.6 between them.

There is one more texture in the data worth noting. By competition, the weakness is sharpest in the IPL (102.6 off 382 balls) and absent in his T20Is (129.8 off 346 balls):

De Kock v off-spin by competition:
             balls  runs  dis     sr
competition                         
bbl              7     2    1   28.6
cpl            189   209    9  110.6
ipl            382   392   12  102.6
mlc            131   154    7  117.6
sat            171   178    7  104.1
t20s_male      346   449   16  129.8

That split could be conditions (slower IPL pitches), opposition (the IPL's off-spinners are among the best in the world) or chance. The model already adjusts for phase, era and stage of innings, but not venue. We note it, and in Chapter 31 we use the pooled estimate, which is the honest compromise.

🏏 Eye test. Wendell watched clips of the off-spin dismissals and came back with one word: "angle". The left-hander's natural release against a finger-spinner is the slog-sweep or the lofted drive over long-on with the turn; an off-spinner bowling from over the wicket, into the pitch and away, takes the long-on hit out of play and makes him hit against the spin to the off side. "Some left-handers solve that by sweeping. Some by using their feet. If a man doesn't have either shot in his kit, he'll stand there and nudge." Whether that is de Kock's mechanism the data cannot say — Cricsheet has no shot type or field placement — but it is a mechanism a coach can look for, and the frequency is there.

Are teams already using it?

If the weakness is real and visible, opponents should already be exploiting it. They are, a little:

Left-handers with >= 600 known powerplay balls (62): share of those balls from off-spin
  de Kock 19.8% (rank 14 of 62); median 15.0%
De Kock: off-spin share of known powerplay balls by era:
era
2015-17    10.2
2018-20    23.3
2021-23    17.8
2024-26    21.4

Among 62 left-handed batters with at least 600 known powerplay balls, de Kock receives the 14th-highest share of off-spin — 19.8%, against a median of 15.0%. Teams bowl off-spin at him more than at a typical left-handed opener, but not dramatically more; the top of that list belongs to left-handers like Evin Lewis (28.9%) and Tamim Iqbal (24.9%). There is room to push the matchup harder — which is exactly the question Chapter 31 takes up.

Eden Gardens, 4 March 2026

Now the moment that gives the anchor its name. In the first semi-final of the 2026 T20 World Cup, at Eden Gardens in Kolkata, New Zealand won the toss and bowled. Matt Henry took the first over. Here are the first two overs in the snapshot:

2026 T20 World Cup semi-final, South Africa v New Zealand, Eden Gardens, 4 March 2026 - overs 1-2:
 over  ball_in_over       bowler       batter  runs_batter  runs_total wicket_kind   player_out
    1             1     MJ Henry   AK Markram            1           1        None         None
    1             2     MJ Henry    Q de Kock            0           0        None         None
    1             3     MJ Henry    Q de Kock            0           0        None         None
    1             4     MJ Henry    Q de Kock            0           0        None         None
    1             5     MJ Henry    Q de Kock            6           6        None         None
    1             6     MJ Henry    Q de Kock            0           0        None         None
    2             1 CE McConchie   AK Markram            1           1        None         None
    2             2 CE McConchie    Q de Kock            0           0        None         None
    2             3 CE McConchie    Q de Kock            4           4        None         None
    2             4 CE McConchie    Q de Kock            0           0      caught    Q de Kock
    2             5 CE McConchie RD Rickelton            0           0      caught RD Rickelton
    2             6 CE McConchie     D Brevis            4           4        None         None

For the second over New Zealand turned to Cole McConchie, a right-arm off-spinner (as listed by ESPNcricinfo and Wisden) who bowled just one over in the match. South Africa's openers were the right-handed Aiden Markram and the left-handed de Kock, and the number three was another left-hander, Ryan Rickelton. McConchie's third ball to de Kock was caught; his next ball, Rickelton's first, was caught too. South Africa were two down in the second over, finished on 169/8, and New Zealand chased it down in 77 balls for the loss of one wicket. Finn Allen made 100 not out off 33 and was player of the match.

The over is a lovely illustration and a dangerous one. Lovely, because it is the anchor matchup — off-spin to the left-handed opener — deployed early in a knockout, and it worked. Dangerous, because one over proves nothing: de Kock was dismissed by an off-spinner on 52 occasions in 1,226 balls, roughly once every 24 balls, which is no more often than expected. The shrunk model says the matchup's value is in the runs it suppresses — about 0.6 runs an over below his expected rate (6.93 an over shrunk, 6.77 raw, against 7.55 expected) — not in a wicket on demand. That New Zealand got both is the luck of a semi-final. That they picked the right type is the analysis.

Note one more honest detail. McConchie is not in the book's styles table — he has 324 legal balls in the men's T20 pool, too few to qualify — and de Kock had never faced him before that night. A matchup tool built only on head-to-heads would have had nothing to say about this over. A tool built on types had 1,226 balls to say it with, once someone typed in McConchie's style.

📋 Try it — Settle this debate. A pundit says, "Off-spin to de Kock is a wicket-taking move — look at the semi-final." Another says, "It's a containment move; the semi-final was luck." Use the card above to settle it: compare de Kock's raw, expected and shrunk balls-per-dismissal against off-spin with his strike-rate numbers.

Worked answer

Balls per dismissal against off-spin: raw 1,226/52 = 23.6; expected 24.4; shrunk 24.1. He gets out to off-spin about as often as expected — slightly more often than expected, but by a margin far inside the noise (k_dr ≈ 2,000 means his 1,226 balls get only 39% weight). His strike rate, by contrast, is 112.9 raw against 125.8 expected, a gap that survives shrinkage at 115.5 with a 90% interval that excludes the expectation. The second pundit is right: off-spin to de Kock is a containment move with real value of roughly 0.6–0.7 runs an over; the semi-final wicket was a bonus. (Both pundits could agree that slowing a T20 opener by 0.6 runs an over for four overs is worth having — Chapter 9's win-probability lens would put a value on it.)

🔄 Check your understanding 1. Give three reasons the book chose de Kock against off-spin as Anchor D rather than the cell with the largest shrunk deficit. 2. De Kock was dismissed in the second over of the semi-final by an off-spinner. Does that strengthen the case for the matchup? By how much?

Answer

  1. A large sample (1,226 balls, so 80% of the shrunk estimate is his own evidence); an absolute weakness (below an average left-hander on the same balls, 112.9 against 120.9); stability (11–17 points short in each of four eras) — and breadth across 57 off-spinners, surviving the removal of Narine.
  2. Barely. One ball is one dismissal in a relationship of 1,226 balls; the model's dismissal estimate hardly moves (k_dr ≈ 2,000). The case rests on the scoring suppression, which one over neither proves nor disproves.

11.7 The bowler's end: who bowls to whom

The cricket question: a matchup has two ends. Which bowlers are best against left-handers, and should a captain trust a bowler's handedness split?

bowler_hand_splits measures each bowler's strike rate conceded to left- and right-handers (runs off the bat per 100 balls faced — the batting-side mirror of economy, without extras), shrunk toward his type's league split with 400 balls of prior:

Bowlers with >= 300 known balls to each hand: 337

Median shrunk gap (SR v left-handers minus SR v right-handers) by type:
                     count  median   min   max
group                                         
Right-arm pace         172    -1.3 -20.4  14.2
Left-arm pace           50    -2.6 -14.9  10.3
Off-spin                43   -12.2 -23.7   5.7
Left-arm orthodox       27    20.0   3.8  31.2
Leg-spin                38     4.2 -10.2  21.5
Left-arm wrist-spin      7    -9.7 -12.9   2.0

Bowlers' shrunk strike rate conceded to right-handers against left-handers, men's T20 2015–2026

📊 Figure (described): One point per bowler (337 with 300+ known balls to each hand), shrunk SR conceded to right-handers on the horizontal axis and to left-handers on the vertical, colour and marker by type. Off-spinners (green circles) sit well below the diagonal — far cheaper against left-handers. Left-arm orthodox bowlers (red squares) sit well above it. Pace bowlers cluster along the diagonal. Sunil Narine sits on the diagonal at the bottom left: cheap against both hands.

The types sort exactly as the league table of §11.3 predicted. The typical off-spinner concedes 12.2 fewer strike-rate points to left-handers than to right-handers; the typical left-arm orthodox bowler concedes 20.0 more. Pace is close to neutral. The most extreme individual splits belong almost entirely to finger-spinners:

Best against left-handers relative to right-handers (most negative gap):
            bowler          group  balls_left  sr_v_left  sr_v_left_shr  balls_right  sr_v_right  sr_v_right_shr  gap_shr
Mehedi Hasan Miraz       Off-spin      1165.0      117.1          116.8       1063.0       146.2           140.6    -23.7
       A Dananjaya       Off-spin       333.0      120.4          118.1        732.0       147.8           140.0    -21.9
          MW Short       Off-spin       541.0      113.9          114.8        705.0       141.8           136.0    -21.1
       NLTC Perera Right-arm pace       808.0      128.7          131.6       1998.0       154.7           152.0    -20.4
       DM de Silva       Off-spin       353.0      102.0          109.5        334.0       134.7           129.7    -20.2
            MM Ali       Off-spin      1836.0      116.1          116.1       2034.0       138.1           136.0    -19.9
      RRS Cornwall       Off-spin       354.0      113.8          115.1        402.0       144.0           134.8    -19.8
         K Gowtham       Off-spin       357.0      118.5          117.2        443.0       147.2           136.9    -19.7
           JJ Cobb       Off-spin       364.0      114.3          115.3        465.0       142.2           134.5    -19.2
     Mohammad Nabi       Off-spin      1585.0       99.9          103.2       2445.0       121.2           121.8    -18.7

Nusrat would want you to notice the top of that list: Mehedi Hasan Miraz, of Bangladesh, with the largest shrunk handedness gap of any bowler in the men's T20 pool — 116.8 to left-handers against 140.6 to right-handers, each on more than a thousand balls. Akila Dananjaya, Matthew Short and Moeen Ali are close behind; the one bowler in the top ten who is not an off-spinner is Thisara Perera, a right-arm seamer (−20.4). (Mohammad Nabi's numbers come only from franchise leagues; his Afghanistan internationals are not in the data.)

At the other end is Sunil Narine, who has bowled 3,376 balls to left-handers and 6,550 to right-handers and conceded 104.7 and 102.0 — essentially no gap. A mystery spinner who turns it both ways has no "wrong" hand, which is one reason he has been so valuable for so long.

Should a captain trust an individual bowler's split beyond what his type predicts? The same repeatability test as before says: a little.

Bowlers with >= 150 balls to each hand in BOTH 2015-20 and 2021-26: 148
  r(gap A, gap B) = 0.371  (raw, includes the type effect)
  r after removing the type's league gap = 0.091

A bowler's handedness gap repeats from one period to the next with r = 0.371 — but almost all of that is his type. Remove the type's league gap and the individual part repeats at only 0.091. The lesson is the bowler's-end version of §11.1: know the type, and treat the individual's split as a modest adjustment. That is why the shrinkage uses 400 balls of prior: a bowler needs several hundred balls to each hand before his personal split deserves much weight.

📋 Try it — Optimize this strategy. It is the 9th over of a T20. A left-hander (who is on strike) and a right-hander are batting. You have two overs left from your off-spinner and two from your left-arm orthodox spinner. Using only the type medians above (off-spin gap −12.2, left-arm orthodox +20.0), which bowler do you bring on, and what changes if the left-hander takes a single off the first ball?

Worked answer

Bring on the off-spinner to the left-hander: he concedes about 12 SR points less to left-handers than to right-handers, while the left-arm orthodox bowler concedes about 20 more to them. If the left-hander takes a single, the right-hander is on strike — and now the off-spinner is the worse of your two options (right-handers score 125.6 against off-spin but only 117.8 against left-arm orthodox), though you cannot change bowlers mid-over. This is why a left-right batting pair is itself a tactic: by rotating the strike, the batters force a bowler who is good against one hand to bowl to the other. The cost of a mis-matched ball is roughly 12–20 SR points per ball by type medians — about 0.7–1.2 runs an over. Chapter 12 measures strike rotation, and Chapter 31 turns this into a rotation plan.


11.8 Matchups in women's cricket

The cricket question: does the same map hold in women's T20 — and is it even the same game, matchup-wise? The women's pool is women's T20 internationals, the WPL and the WBBL, 2015–2026: 584,065 balls faced, with both style fields known for 57.7% (81.6% in the WBBL, 93.8% in the WPL, 49.8% in women's T20Is).

The first difference is the menu:

Share of known balls by bowling type (women v men):
                     women   men
group                           
Right-arm pace        47.9  46.3
Left-arm pace          3.1  15.1
Off-spin              23.3  11.9
Left-arm orthodox     13.1  12.5
Leg-spin              12.4  12.4
Left-arm wrist-spin    0.4   1.9
Share of balls faced by left-handers: women 17.8%, men 31.4%

Women's T20 has almost no left-arm pace (3.1% of known balls against 15.1% for men) and twice as much off-spin (23.3% against 11.9%). And it has far fewer left-handed batters: they face 17.8% of balls, against 31.4% in the men's pool. Those two facts are connected through the matchup map — off-spin is most effective against left-handers, and there are fewer of them to bowl it at — but the data cannot tell us which way the causation runs.

Strike-rate index by hand and bowling type, men's pool against women's pool

📊 Figure (described): Two panels (left-handed batters, right-handed batters), each with paired horizontal bars per bowling type: the men's strike-rate index (blue) and the women's (orange), where 100 = the hand's overall strike rate. In both pools left-handers are slowed most by off-spin among the common types (index 87.9 men, 94.4 women). Right-handers are slowed sharply by left-arm orthodox in the men's pool (89.2) but barely in the women's (98.8). The women's effects are generally smaller. Left-arm wrist-spin shows extreme women's values (78.7 and 81.9) on tiny samples (126 and 1,056 balls).

Women's league baseline by hand x type:
                                   balls    runs   dis     sr  balls_per_dis  average  sr_index
batting_hand group                                                                             
Left         Left-arm orthodox      7365    8291   338  112.6           21.8     24.5     106.3
             Left-arm pace          1916    2117    79  110.5           24.3     26.8     104.3
             Left-arm wrist-spin     126     105     9   83.3           14.0     11.7      78.7
             Leg-spin               6607    7260   308  109.9           21.5     23.6     103.7
             Off-spin              15680   15688   694  100.1           22.6     22.6      94.4
             Right-arm pace        28216   30011  1122  106.4           25.1     26.7     100.4
Right        Left-arm orthodox     36665   37746  1809  102.9           20.3     20.9      98.8
             Left-arm pace          8458    8732   350  103.2           24.2     24.9      99.1
             Left-arm wrist-spin    1056     901    50   85.3           21.1     18.0      81.9
             Leg-spin              35002   36300  1679  103.7           20.8     21.6      99.6
             Off-spin              62681   65961  2992  105.2           20.9     22.0     101.0
             Right-arm pace       133026  138760  6119  104.3           21.7     22.7     100.1

The geometry is the same — the left-hander against off-spin is still the clearest common matchup — but the effects are about half the men's size. One plausible reason is pace of scoring: with a lower baseline strike rate (104.2 for right-handers, 105.9 for left-handers) there is less room for any single type to drag it down; another is that the women's game has fewer six-hitting options that the off-spinner's angle takes away. We note both as hypotheses, not findings.

Individual matchups in women's cricket are noisier still, because careers have fewer balls:

batters >= 600, cells >= 30: 722 cells, 158 batters | SR true SD 9.59, k 209 | dismissal true SD 0.0056 (mean 0.0423), k 1291
batters >= 1000, cells >= 60: 422 cells, 98 batters | SR true SD 8.46, k 269 | dismissal true SD 0.0037 (mean 0.0411), k 2905
batters >= 1500, cells >= 100: 250 cells, 59 batters | SR true SD 8.18, k 287 | dismissal true SD 0.0036 (mean 0.0404), k 2931
Chosen (women): k_sr = 269, k_dr = 2905; per-ball SD 138.7

The strike-rate k (269 balls) is close to the men's 303, but the dismissal k is larger (2,905), so the conclusion from §11.4 is even stronger in women's cricket: dismissal matchups are almost all noise. The stars' cards are mostly calm — Smriti Mandhana's largest shrunk effect is +7.7 against right-arm pace, Beth Mooney's +6.4 against right-arm pace, and none of their spin effects is larger than ±5.7. The largest shrunk weakness among women with at least 1,000 known balls is Shafali Verma against leg-spin: 288 runs off 272 balls (SR 105.9) against an expected 146.6, shrunk to 126.1 — a shrunk effect of −20.5, while she is strongly above expectation against right-arm pace (+20.0) and off-spin (+14.9). Laura Wolvaardt shows a quieter leg-spin deficit (−10.0 on 605 balls). Case Study 2 takes both apart.

🔄 Check your understanding 1. Women's T20 bowls twice as much off-spin as men's T20 and faces far fewer left-handers. Why can't we conclude that "off-spin drove left-handers out of the women's game"? 2. The women's dismissal k is 2,905 balls. What does that imply about any claim that a women's batter "gets out to" a particular type? 3. Name the bowler with the largest shrunk handedness gap in the men's pool, and the one with almost none. Why might they differ so much?

Answer

  1. Both facts are observational and could share causes (coaching pathways, the natural hand mix of players, team selection, which bowlers are available). The matchup map makes the link plausible; it does not establish its direction.
  2. Almost no women's batter has 2,905 balls against any one type, so her own dismissal record against it should move the estimate very little. Treat such claims as hypotheses.
  3. Mehedi Hasan Miraz (−23.7: far better against left-handers) and Sunil Narine (+2.6: almost no gap). A conventional off-spinner turns the ball one way, which helps against one hand; a mystery spinner who turns it both ways removes the handedness effect.

11.9 The pre-match sheet: both 2026 semi-finals

The cricket question: what would the analyst have handed the captain the night before? A matchup model earns its keep in a specific match against a specific XI. The World Cup version of the question — which of their bowlers should we target, and where should we bowl ours? — is answered with a sheet: the opposition's top seven down the side, the available bowling types across the top, and a shrunk matchup effect in each cell.

To keep ourselves honest, code/07_world_cup_sheets.py rebuilds everything — league cells, skill indices, k — using only data before 4 March 2026, the day of the first semi-final. (The refit gives k_sr = 300 and k_dr = 1,732, close to the full-data values of 303 and 1,956.) One bowler had to be filled in by hand: McConchie's type is not in the styles table, so the script adds "Off-spin" for him from his public listing and says so in its output.

HAND_FILLED = {"CE McConchie": "Off-spin"}   # public listing (ESPNcricinfo, Wisden)
grid = lineup_matrix(sh, order, "d_sr").reindex(columns=used)

Pre-match matchup sheets for the two 2026 T20 World Cup semi-finals

📊 Figure (described): Two heatmaps built from data before 4 March 2026. Left: South Africa's top seven against New Zealand's three bowling types (right-arm pace, off-spin, left-arm orthodox). Right: India's top seven against England's five types. Each cell shows the shrunk SR effect (purple = batter better than expected, orange = worse) and the balls behind it. The strongest orange cells are de Kock against off-spin (−10 on 1,123 balls), Tristan Stubbs and Marco Jansen against right-arm pace (−9 and −10), Shivam Dube and Abhishek Sharma against right-arm pace (−11 and −9) and Ishan Kishan against off-spin (−9). The strongest purple is Abhishek Sharma against leg-spin (+24.5).

South Africa v New Zealand (Eden Gardens). The pre-match sheet:

group        Right-arm pace     Off-spin Left-arm orthodox
batter                                                    
AK Markram       0.5 (1349)    5.3 (369)         2.1 (438)
Q de Kock       16.0 (2466)  -9.7 (1123)        -2.8 (566)
RD Rickelton      1.7 (684)   -3.1 (240)        -2.5 (209)
D Brevis          1.2 (627)    3.9 (169)         4.0 (242)
DA Miller       -0.8 (2226)    6.9 (657)         0.7 (363)
T Stubbs         -9.1 (778)    4.6 (133)         2.5 (203)
M Jansen         -9.8 (312)    -5.6 (42)          3.9 (80)

Two clear instructions jump out. Up front, off-spin to the left-handers — de Kock −9.7 on 1,123 balls, Rickelton −3.1 on 240 — and not to Markram (+5.3) or David Miller (+6.9). At the death, pace to Stubbs and Jansen, both well below expectation against right-arm pace. New Zealand did both, whether or not their sheet looked like ours: McConchie's over 2 removed de Kock and Rickelton; Lockie Ferguson bowled Stubbs in the 19th over, and Matt Henry took two wickets in the 20th. Jansen still made 55 not out off 30 balls — which is the matchup's limit in one sentence. A −10 shrunk effect makes a batter somewhat slower against a type on average; it does not stop a good innings.

India v England (Wankhede). England won the toss and bowled; India made 253/7 and won by seven runs. The sheet:

group           Right-arm pace Left-arm pace    Off-spin Left-arm orthodox    Leg-spin
batter                                                                                
SV Samson          -5.4 (1723)     6.0 (512)  -1.7 (377)        10.9 (454)   7.7 (643)
Abhishek Sharma    -9.4 (1063)     8.6 (294)   8.7 (263)         1.9 (110)  24.5 (250)
Ishan Kishan       -0.5 (1343)     4.4 (488)  -9.4 (492)         5.0 (250)  10.2 (409)
S Dube             -11.1 (968)     7.9 (224)   3.6 (290)         7.6 (128)  11.9 (322)
SA Yadav           10.1 (2184)     8.0 (581)   0.4 (551)        -6.7 (629)   2.6 (837)
HH Pandya          -1.7 (1777)     5.0 (446)  11.4 (218)         5.5 (343)  -1.8 (515)
Tilak Varma          5.7 (880)     3.2 (233)   2.7 (255)        -0.2 (241)  -7.6 (309)

England opened with Jofra Archer and, in the second over, the off-spinner Will Jacks — the same move as Eden Gardens the day before, aimed at the left-handed Abhishek Sharma. Jacks had him caught for 9 off 7. But the sheet says something more interesting: Abhishek is +8.7 against off-spin after shrinkage — better than expected. The general left-hander-against-off-spin effect is already inside his expectation, and on top of it he has been clearly better than that. The move "worked", but the sheet would not have singled him out; it would have pointed the off-spinner at Ishan Kishan (−9.4 on 492 balls), the other left-hander in India's top three. And it would have kept England's leg-spinner Adil Rashid well away from Abhishek (+24.5) and Dube (+11.9).

Sanju Samson made 89 off 42 and was player of the match. His row has one clearly orange cell — right-arm pace, −5.4 — and two of England's specialist bowlers were right-arm quicks, so the sheet's advice was simply to give him as much pace as possible. That cannot be arranged for 42 balls, and he scored off everything.

The death-overs question — which of their bowlers should our batters target? — is the same sheet read from the batting side. India's finishers Dube and Hardik Pandya are +7.9 and +5.0 against left-arm pace, so Sam Curran was the bowler to attack at the end; the 18th over, Curran's, went for 12 and his four overs for 54. A batting coach with this sheet tells his finishers whom to take down; a bowling captain with the same sheet would bowl his left-armer out earlier.

📋 Try it — Analyze this match. Using the South Africa sheet above, you are New Zealand's captain with Santner and Ravindra (both left-arm orthodox) to bowl eight overs between them. South Africa have Brevis (right-handed) and Miller (left-handed) batting in the middle overs. Which batter do you want the spinners bowling to, and what is the honest size of the advantage?

Worked answer

The sheet's left-arm orthodox column reads Brevis +4.0, Miller +0.7 — both small. Neither batter has a meaningful individual matchup with the type. But the league map from §11.3 is much bigger: left-arm orthodox is far more effective against right-handers (SR 117.8) than left-handers (137.7). So bowl the left-arm spinners at Brevis and try to keep Miller off strike to them — about 20 SR points, or roughly 1.2 runs an over, by the league map. The individual cells add almost nothing here; the type-by-hand effect does the work. That is the general rule of this chapter: league effects first, individual matchups as a modest adjustment. (In the actual match Ravindra dismissed Miller in the 10th over — a reminder that a single ball is not evidence for or against a plan.)

🔄 Check your understanding 1. Why did the semi-final sheets use only data before 4 March 2026? 2. England's off-spinner dismissed Abhishek Sharma in the second over, yet the sheet shows Abhishek at +8.7 against off-spin. Was England's move wrong?

Answer

  1. To avoid leakage — a sheet built with the semi-finals inside it would partly "predict" what it had already seen, flattering the model.
  2. Not wrong — the league-wide left-hander-against-off-spin effect still applies to him — but not specifically supported. The individual evidence says he handles off-spin clearly better than a typical left-hander would on the same balls; the stronger individual target was Ishan Kishan (−9.4).

11.10 What the matchup model cannot see

Every number in this chapter is observational. Five limits matter in practice.

  1. Captains choose the matchups. Bowlers are not assigned at random. A captain brings on the off-spinner when he expects it to work — on a slow pitch, against a struggling batter, with the field set for it. So the off-spin balls in the data are, on average, balls bowled in favourable circumstances, and some of the "off-spin effect" may be the effect of the circumstances that prompted it. The model adjusts for phase, era and stage of innings; it does not adjust for venue, pitch, ball condition, the bowler's quality within his type, or the field. Chapter 22 builds the venue adjustments that would tighten it.
  2. Type is coarse. "Right-arm pace" contains 140 km/h swing bowlers and 120 km/h cutters; "off-spin" contains Narine and a part-timer. The public data has no speed, line or length. Chapter 15 shows what a franchise with ball-tracking could add — on a clearly labelled simulated layer, because the real data is not public.
  3. Unknown types are not random. Bowlers missing from the styles table are disproportionately associates, young players and part-timers. A batter whose career is mostly against such bowlers has a thinner card than his ball count suggests. Coverage in this pool runs from 94% (IPL) to 8% (Syed Mushtaq Ali Trophy).
  4. Afghanistan is invisible in internationals. Every T20I against Afghanistan is missing, so international records against Rashid Khan, Noor Ahmad or Mujeeb are absent — a real gap for a leg-spin matchup in particular.
  5. Batters adapt. A matchup that everybody knows invites a batter to work on it. Case Study 1 follows a batter whose leg-spin record changed shape completely after 2022. The out-of-sample test in §11.5 is the general version of the same warning: five-year-old matchups deserve extra shrinkage.

The same framework transfers to the longer formats, but its numbers do not. A Test batter faces a type for hundreds of balls a series, and the outcome that matters is the dismissal rather than the strike rate — exactly the quantity this chapter found hardest to estimate. The Warner–Broad story is the Test version of the problem: 862 balls, the most-dismissed pair in the data, and still a decade in which the "matchup" appeared, vanished and returned. Chapter 16 and Chapter 18 take up types and conditions in Tests.

⚠️ Common pitfall: reading a relative weakness as an absolute one. Heinrich Klaasen's shrunk effect against right-arm pace is −14.1 — a "weakness" — but his raw strike rate against right-arm pace is 153.9, far above the league. His expectation is high because his spin-hitting, which builds his skill index, is extraordinary. Before you call a matchup a weakness, compare the batter with an average batter of his hand on the same balls (the league-cells SR), not only with his own expectation. De Kock against off-spin passes that test (112.9 against 120.9); a Klaasen-style "weakness" against pace usually does not.

🔷 R corner (not run in this book's build). The league-cell expectation in dplyr:

r library(dplyr) cells <- faced |> group_by(batting_hand, group, phase, era, settle) |> summarise(lg_rpb = mean(runs_batter), lg_dr = mean(dis), .groups = "drop") by_type <- faced |> inner_join(cells, by = c("batting_hand", "group", "phase", "era", "settle")) |> group_by(batter_id, group) |> summarise(balls = n(), runs = sum(runs_batter), lg_runs = sum(lg_rpb), .groups = "drop") |> mutate(sr = 100 * runs / balls, sr_league_cells = 100 * lg_runs / balls)


Spaced Review

Before reading each answer, try to answer from memory.

From Chapter 6 — shrinkage and k. What does k mean in the formula (n·observed + k·prior)/(n + k), and how did Chapter 6 estimate it for IPL strike rates?

It is the number of units (balls) the prior is worth. Chapter 6 estimated it by method of moments — splitting the observed spread into noise and true talent — finding within-season values of roughly 100–190 balls, and found by back-test that next-season forecasts want more, about 300–400. This chapter used the same machinery one level down: k_sr ≈ 300 for a batter-versus-type deviation, and again the forecasting optimum was larger (≈ 600).

From Chapter 8 — what strike rate is made of. A batter's strike rate decomposes into boundary-ball rate and non-boundary strike rate. Which of the two would you expect a finger-spinner turning the ball away to attack?

Mostly the boundary-ball rate: the angle takes away the natural leg-side hit, so the batter has to manufacture boundaries against the spin. A good extension of this chapter is to split each matchup into boundary-ball % and dot % — Chapter 8 showed boundary-ball % alone explains 76% of IPL strike-rate variance.

From Chapters 4 and 6 — the mix problem. Chapter 4 found Bumrah cheaper than Ashwin in every IPL phase but dearer overall, and Chapter 6 found Rohit ahead of Dhoni in every phase but behind overall. What is the matchup version of that trap?

A batter's raw record against a type mixes his skill with the phases, eras and innings-stages in which he met it. Leg-spinners bowl 78% of their balls in the middle overs; left-arm pace bowls 36% of its balls to batters on their first five balls. The league-cell expectation is the "common mix" fix: it compares each ball with balls like it.


Project Checkpoint: matchups.py

Nusrat had been looking forward to this one. Every Bangladesh match she has watched at Mirpur ends in an argument about who should have bowled the 14th over, and now Crease could join the argument with a number.

The module project/crease/matchups.py turns the chapter into a small set of functions:

Function What it does
style_group(bowling_style) maps a style string to one of the six types
load_styles(gender=…, confidences=("high","medium")) reads the reference table, adds group
attach_styles(balls, styles) adds bowler type and striker hand via primary registry ids — never by name alone
prepare(balls, first_year=2015) balls faced with era, settle, ball_in_innings, bowler-credited dis
rate_table(faced, by) balls, runs, dis, SR, balls per dismissal, average for any grouping
head_to_head(faced, batter, bowler) the raw pair record, id-pinned
expected_matchups(faced) levels 1 and 2: league cells × leave-one-type-out skill
fit_matchup_k(table, faced) method-of-moments τ and k for SR and dismissal rate
shrink_matchups(table, k_sr, k_dr, sigma2=…) level 3: shrunk SR, dismissal rate, average, run value, intervals
matchup_report, weaknesses, lineup_matrix a batter's card, the league's top weaknesses, the pre-match sheet
bowler_hand_splits(faced) each bowler against each hand, shrunk toward his type

The checkpoint script runs the whole pipeline:

balls = attach_styles(load_many(MEN_T20), load_styles(gender="male"))
faced = prepare(balls)
table = expected_matchups(faced)
K = fit_matchup_k(table, faced)
sh = shrink_matchups(table, K["k_sr"], K["k_dr"], sigma2=K["sigma2"])
print(lineup_matrix(sh, ["TM Head", "MR Marsh", "JP Inglis", "GJ Maxwell", "TH David"])
      [["Off-spin", "Left-arm orthodox", "Leg-spin"]].round(1).to_string())
[matchups] 6,169 batter x type cells | k_sr = 303 balls, k_dr = 1956 balls

[head-to-head] Q de Kock v SP Narine (raw - read with care):
balls    102.0
runs      86.0
dis        8.0
sr        84.3

[weaknesses] top five shrunk run-value weaknesses (batters >= 1500 balls, cells >= 300 balls):
      batter          group  balls  sr_obs  sr_shr  sr_exp  d_value
Shoaib Malik  Left-arm pace    628   108.9   118.3   137.9    -20.2
ADS Fletcher       Leg-spin    381    93.2   108.2   127.0    -20.1
Tanzid Hasan Right-arm pace    622   122.5   130.5   147.0    -17.4
    SE Marsh Right-arm pace   1024   116.7   122.0   139.8    -16.9
  MJ Guptill  Left-arm pace    602   105.3   113.5   129.8    -16.9

[sheet] Australia top order v spin types (shrunk SR effect):
group       Off-spin  Left-arm orthodox  Leg-spin
batter                                           
TM Head         -9.0               -6.6     -11.8
MR Marsh        -9.8               -2.7      -6.3
JP Inglis       -1.5               13.3       8.2
GJ Maxwell       5.3                3.9      11.2
TH David        -1.8                6.3       7.2

Nusrat's first instinct was to sort Bangladesh's batters by their worst cell and send the list to a friend. Her second, after §11.5, was to add the ball counts and the interval first. That is the habit the module is built to encourage: shrink_matchups always returns the expected value alongside the shrunk one, so no Crease screen ever shows a matchup without the baseline it is measured against. The Australian sheet is a preview of Case Study 1: Travis Head's two worst cells are both spin types.

Where it plugs in later: Chapter 30 uses lineup_matrix to ask whether a left-handed batter should be held back while the opposition's off-spinner has overs left; Chapter 31 feeds the shrunk d_value grid into the over-assignment optimiser and replays Anchor D; Chapter 36 sets adjusting batters' fantasy projections against a known attack with these type effects as an exercise (C5); and the Chapter 39 dashboard gets a "matchup sheet" tab.


Chapter Summary

Key numbers (men's T20 pool unless stated, 2015–2026).

Quantity Value
Distinct batter–bowler pairs; median balls per pair 261,942; 5
Pairs with ≥ 60 balls 677 (0.26%)
Head-to-head repeat r (24+ balls each period); same, against same-type record 0.275; 0.181
Left-handers v off-spin; right-handers v left-arm orthodox (SR, index) 116.1 (87.9); 117.8 (89.2)
True SD of batter × type SR effects; k_sr 9.54 SR pts; 303 balls
True SD of batter × type dismissal-rate effects; k_dr 0.0047 (10% of mean); 1,956 balls
Out-of-sample error: raw / ignore matchups / k ≈ 300 / best (k = 600) 403.7 / 220.3 / 207.7 / 204.6
Women's pool k_sr; k_dr 269; 2,905
Median bowler handedness gap: off-spin; left-arm orthodox −12.2; +20.0 SR pts
Anchor D: de Kock v off-spin, balls; raw / expected / shrunk SR 1,226; 112.9 / 125.8 / 115.5 (90%: 108.5–122.4)

The matchup decision framework.

  1. Start with the type, not the bowler. Head-to-heads are tiny (median 5 balls) and mostly noise; a good share of their repeatable signal is the bowler's type.
  2. Apply the league map first. Finger spin turning away from the bat (off-spin to left-handers, left-arm orthodox to right-handers) is the biggest, safest matchup in T20 — and it is a containment effect, not a wicket-taking one.
  3. Measure the batter against balls like these. Compare with an average batter of his hand in the same phase, era and stage of innings, then scale by his skill on other types (leave one type out).
  4. Shrink. About 300 balls of prior for strike rate (300–600 for forecasting); about 2,000 for dismissal rate — so treat individual "gets out to" claims as hypotheses.
  5. Check that it is absolute, stable and broad. Below an average batter on the same balls? In every era? Against many bowlers of the type, not one?
  6. Use the sheet, respect the limits. Captains' choices, venues and unknown bowler types are not in the model; the value of a matchup is a fraction of a run an over, not a wicket on demand.

What's Next

Matchups treat the batter as an individual facing a bowler. But a T20 batter is never alone at the crease — he shares the strike, and the left-right combination we met in §11.7 is one of the ways a partnership shapes which matchups a bowler can get. Chapter 12 turns to partnerships: strike rotation, running, anchor-and-aggressor roles and the network of who scores best with whom. Anchor D returns in Chapter 31, where the off-spinner's four overs have to be placed against the rest of a real bowling attack.