Lasith Malinga bowled 1,117 legal deliveries in the last five overs of IPL innings. That is about 186 overs of death bowling, the hardest job in T20 cricket, and in the book's data he did it better than almost anyone. He took 108 wickets at an...
In This Chapter
- The ball nobody can see
- 15.1 What Hawk-Eye measures, and who gets to see it
- 15.2 The real shadows of length: how wickets fall
- 15.3 The simulated layer: building it, and drawing pitch maps and beehives
- 15.4 "Which length works?" — length and line tables by format and phase
- 15.5 Reading the machine: an audit of the simulated layer
- 15.6 Variations: stock ball, yorker, bouncer, slower ball
- 15.7 Clustering deliveries into "types"
- 15.8 An LBW model sketch, and what ball-tracking changed
- 15.9 What a franchise with the real feed sees
- Spaced Review
- Project Checkpoint: tracking
- Chapter Summary
- What's Next
Chapter 15 — Bowling Variations, Pitch Maps, and Ball-Tracking Analytics: What Hawk-Eye Reveals About Bowling Strategy
The ball nobody can see
Lasith Malinga bowled 1,117 legal deliveries in the last five overs of IPL innings. That is about 186 overs of death bowling, the hardest job in T20 cricket, and in the book's data he did it better than almost anyone. He took 108 wickets at an economy rate of 7.86 runs an over. Of the 25 bowlers with at least 600 legal death balls in the IPL, only Sunil Narine was cheaper.
Then look at how those 108 wickets fell. Thirty-eight of them, 35.2%, were bowled. Eight more, 7.4%, were leg before wicket. Put those together and 42.6% of Malinga's death-over wickets came from balls that would have hit the stumps. Among those 25 death bowlers, nobody else gets above 37%. Dwayne Bravo, who took more death wickets than Malinga (115), had a figure of 16.5%. Five of every six Bravo death wickets were catches.
Nusrat Jahan has these numbers on her screen in Dhaka, and she knows what they mean before the narrator says it. "Yorkers. The sling, the low release, full and straight at the toes. That's why the stumps keep going."
Very probably. But nothing in her data says so. Cricsheet records that the ball was bowled, who bowled it, who faced it, how many runs came and how the batter was out. It does not record where the ball pitched, how fast it was, which way it swung, or where it would have gone if the pad hadn't been in the way. That information exists. At televised international and major franchise matches, a set of high-speed cameras around the ground has measured it on every ball for years. It just isn't public.
So Nusrat does what this book's toolkit lets her do. She runs add_tracking(), which attaches simulated ball-tracking columns to the real deliveries, and draws Malinga's pitch map. It is beautiful: a dense cloud of dots in the yorker band at the batter's feet, grey dots and red wicket crosses packed into the first two metres. The simulation puts 31.8% of his death balls in the yorker band, against 19.2% of Bravo's. The picture agrees with everything she believed.
She sends it to Wendell Baptiste in Port of Spain. His reply arrives in under a minute.
Wendell: Lovely chart. Who told the computer where Malinga's balls landed?
Nusrat: Nobody. It's simulated. It uses the real outcomes and draws a plausible location for each one.
Wendell: So you told it that wickets come from yorkers, and then it showed you that Malinga's wickets came from yorkers.
Nusrat: …Partly.
Wendell: How much is "partly"?
That is the question this chapter answers. The answer turns out to be useful well beyond cricket.
Half of this chapter is about ball-tracking itself: what Hawk-Eye measures, how the Decision Review System uses it, and which questions about length, line and variation a team with the real feed can answer. The other half is about the data we actually have. Every number about real outcomes in this chapter is real. Every number about where the ball went comes from a simulation, and we will take that simulation apart until you can say exactly how much of each "finding" it produced on its own. You will see a length table say yorkers are the cheapest ball at the death, and then watch the claim disappear when we switch off one assumption. You will see a model predict LBWs with impressive accuracy, and then watch the accuracy collapse when we shuffle a single column. And you will see a famous fast bowler turned into a spinner by changing how his name is spelled.
None of that is a reason to distrust analytics. It is a reason to know where a number came from. That habit is the most transferable skill in this book.
🏏 Fan Track: Read 15.1 (what Hawk-Eye and DRS really do), 15.2 (what the real data says about how wickets fall), and 15.9 (what teams with the real feed can see). Look at every figure, but read the 🧪 labels. They tell you which pictures are real and which are teaching tools.
📊 Analyst Track: Run all seven scripts and the checkpoint. Sections 15.4–15.8 are the core. The audit in 15.5 is the most important technique in the chapter. Learn the recovery test and the placebo test well enough to run them on any model someone hands you.
🧑💼 Franchise Track: Read 15.2 for the real death-bowling fingerprints, 15.5 for the questions to put to any tracking-data vendor, and 15.9 for what a real feed is worth. Case Study 1 shows how to evaluate a rule change with a natural experiment.
15.1 What Hawk-Eye measures, and who gets to see it
Start with the cricket question: when a fast bowler runs in, what could you measure about the delivery?
Quite a lot, it turns out. Ball-tracking systems, of which Hawk-Eye (owned by Sony) is the best known, use several high-frame-rate cameras placed around the ground. Each camera sees the ball as a moving blob. Because the cameras look from different angles, the system can triangulate the ball's position in three dimensions many times in its short flight, fit a trajectory through those points, and report what happened along it. From that reconstruction come the numbers you see on television and many you never see:
- Release. Where the ball left the hand (height, distance wide of the stumps) and its speed at release. The "speed gun" figure on the broadcast is a release-speed measure.
- In the air. How far the ball moved sideways before it bounced. That is swing, conventional or reverse.
- Pitch point. Where the ball first hit the surface: its length (distance from the batter's stumps) and its line (distance across, relative to the stumps).
- Off the pitch. How much it deviated after bouncing (seam movement for a fast bowler, turn for a spinner), how steeply it rose (bounce), and how much pace it lost.
- At the batter. Where it arrived at the popping crease and passed the stumps (the beehive point), and, for an LBW appeal, where it hit the pad and the predicted path from there.
The technology reached Test cricket's officiating through the Decision Review System (DRS), trialled in 2008 and introduced in Tests in 2009. Its best-known job is the LBW. Under the Laws (Appendix E has the detail), a batter can be out leg before wicket only if the ball did not pitch outside leg stump, hit the pad in line with the stumps (or outside off stump when no genuine shot was offered), and would have gone on to hit the stumps. Ball-tracking answers each of those three questions with a picture. It also attaches a margin for error, called umpire's call. Under the ICC's playing conditions at the time of writing, overturning an on-field "not out" requires the projected ball to have more than half of itself inside the wicket zone: the area from the base of the stumps to the top of the bails, bounded by the outer edges of the off and leg stumps. The ICC raised the top of that zone from the bottom to the top of the bails in 2021. If less than half the ball is inside, the on-field decision stands either way. We will build a simplified version of that geometry in 15.8.
📐 Definition — length, line, pitch map, beehive. The length of a delivery is the distance from the batter's stumps to the point where it pitched. Broadcasters band it into yorker (at the batter's feet), full, good (the length that makes a batter unsure whether to play forward or back), short and bouncer. Band edges depend on the bowler's pace. The line is the ball's sideways position relative to the stumps, measured toward the batter's off or leg side. A pitch map plots where each delivery pitched. A beehive plots where each delivery passed the stumps, seen from the bowler's end.
Who gets this data? Broadcasters use it for graphics. Match officials use it for reviews. Teams and boards obtain it, or data derived from it, through commercial and governing-body arrangements whose terms are not public. Analytics companies such as CricViz, whose models are proprietary, build products on ball-tracking and hand-coded data. What you and I can download is Cricsheet, which records none of it (Chapter 2 lists exactly what Cricsheet has and lacks). There is no line, no length, no speed, no swing, no shot direction and no DRS value in the public ball-by-ball record.
That leaves this chapter with two jobs. The first is to squeeze every honest drop out of the real data, which we do in 15.2. The second is to teach the methods a team with the real feed would use (pitch maps, length tables, variation analysis, clustering, LBW geometry) on a simulated stand-in, and to be precise about what the stand-in can and cannot tell us.
⚠️ Common pitfall: treating a broadcast graphic as a dataset. A pitch map shown on television is a selection: one bowler, one spell, chosen because it makes a point the director wanted made. "Look at all those yorkers" is an edited fact. Even with real tracking, a chart without its sample (how many balls, which overs, against whom) is an anecdote with axes. The fix: always ask for the denominator and the selection rule before reading a tracking chart.
15.2 The real shadows of length: how wickets fall
We have no lengths. We do have, for every dismissal, how it happened. That turns out to carry real information about where the ball was.
Think about the physics. A batter is bowled when the ball hits the stumps. A batter is LBW when the ball would have hit the stumps but hit the pad first. Both require the ball to be heading at the stumps when it reaches the batter. That usually means full and straight, the yorker and the full ball on middle and off. A caught dismissal can come from anything: a top-edge off a bouncer, a thick edge off a good-length ball outside off, a mistimed drive off a half-volley, a skier off a slower ball at the death. Stumped needs a spinner (almost always) and a batter out of the crease. So the mix of dismissal types is a shadow of length and line. It is blurred, but it is real.
📐 Definition — stumps share. For a bowler (or a group of balls), the stumps share is the percentage of the bowler's credited wickets that were bowled or LBW:
stumps share = 100 × (bowled + lbw) / bowler wickets. Bowler wickets follow the book's standard definition (bowled, caught, caught and bowled, LBW, stumped, hit wicket; run-outs excluded). The metric uses only real Cricsheet fields.
The module function is a crosstab with a few conveniences:
def dismissal_modes(balls, by):
"""REAL data, no simulation. For bowler-credited wickets: % bowled, lbw, caught
(incl. caught and bowled), stumped, plus stumps_pct = bowled + lbw."""
by = [by] if isinstance(by, str) else list(by)
b = balls[~balls["super_over"]] if "super_over" in balls else balls
w = b[bowler_wicket(b)].copy()
w["kind"] = w["wicket_kind"].replace({"caught and bowled": "caught"})
t = pd.crosstab([w[c] for c in by], w["kind"])
...
out["stumps_pct"] = (100 * (t["bowled"] + t["lbw"]) / n).round(1)
return out
Run across the six main archives (full script: code/01_real_fingerprints.py):
Bowler-credited wickets by kind, whole snapshot (%):
wickets bowled_pct lbw_pct caught_pct stumped_pct stumps_pct
fmt
Tests (men) 28137 18.0 17.0 63.1 1.8 35.0
ODIs (men) 35206 20.3 12.0 65.1 2.6 32.2
T20Is (men) 43109 23.4 8.5 64.7 3.3 31.9
IPL 13460 18.2 6.5 72.2 2.9 24.8
ODIs (women) 8133 22.9 14.3 58.2 4.6 37.1
T20Is (women) 22754 31.6 11.8 50.7 5.9 43.3
Read it format by format.
Tests. LBW is almost as common as bowled: 17.0% against 18.0%. A Test bowler can bowl a full, straight length over after over at a batter who has to defend, and the batter's pad ends up in the way. Tests have the highest LBW share of any format.
ODIs and T20Is. As the format shortens, LBW falls (12.0% in men's ODIs, 8.5% in men's T20Is, 6.5% in the IPL) and caught rises. White-ball batters attack, so their misses become edges and skiers more often than pads in front.
The IPL is the extreme. Of IPL bowlers' wickets, 72.2% are catches and only 24.8% hit the stumps. Strong batting, small boundaries and a premium on hitting in the air push dismissals toward caught.
Women's T20Is are the outlier the other way. Of their bowler wickets, 31.6% are bowled, against 23.4% in men's T20Is. Is that about the women's game, or about who is playing? Case Study 2 takes it apart. The short answer is that a large share of women's T20Is since 2018 involve associate nations, and the gap mostly closes when only full members play each other.
Now the phases (also real):
By phase (%):
wickets bowled_pct lbw_pct caught_pct stumped_pct stumps_pct
comp phase
IPL powerplay 3384 18.7 8.0 71.7 1.4 26.7
middle 5353 17.3 7.3 70.6 4.6 24.6
death 4723 18.8 4.7 74.4 1.9 23.5
T20Is (women) powerplay 6257 32.5 14.2 50.6 2.5 46.6
middle 9699 30.2 12.1 51.4 6.2 42.3
death 6798 32.6 9.1 49.7 8.5 41.7

📊 Figure (described): Horizontal stacked bars, one per format and then one per T20 phase for the IPL and women's T20Is, splitting bowler-credited wickets into bowled (red), LBW (orange), caught (blue) and stumped (green). Real Cricsheet data. Tests show the widest orange LBW segment, the IPL the widest blue caught segment, and women's T20Is the widest red bowled segment. In the IPL, the LBW segment narrows from the powerplay to the death while the caught segment widens.
Something here should surprise you. Commentators say the yorker is the death bowler's main weapon. If so, you would expect bowled and LBW to rise at the IPL death. Bowled barely moves (18.7% in the powerplay, 18.8% at the death), LBW falls from 8.0% to 4.7%, and caught rises to 74.4%. In the IPL, death wickets are mostly batters holing out while trying to hit sixes. That fits the eye test once you think about it. At the death the batter swings at everything, and a swing that misses a yorker is bowled, but a swing that connects badly is caught. Phase changes the batter's intent, and intent changes how dismissals look.
Pace and spin at the IPL death, using the real bowling types in data/reference/player_styles.csv:
IPL death overs, by bowler type (%):
wickets bowled_pct lbw_pct caught_pct stumped_pct stumps_pct
btype
pace 3535 19.0 3.7 77.0 0.0 22.7
spin 922 18.2 8.5 64.1 9.2 26.7
Pace bowlers at the IPL death get 77.0% of their wickets caught and 3.7% LBW.
Death specialists: a real fingerprint
Here is the table behind the hook: every bowler with at least 600 legal balls in IPL death overs, 2008–2026, pinned by registry id, sorted by economy.
IPL death overs 2008-2026, bowlers with >= 600 legal death balls (n = 25):
bowler balls wickets economy dot_pct boundary_pct strike_rate stumps_pct
SP Narine 1105 84 7.25 39.46 12.76 13.15 29.8
SL Malinga 1117 108 7.86 35.00 13.70 10.34 42.6
JJ Bumrah 1423 102 8.19 34.01 15.11 13.95 31.4
R Ashwin 601 36 8.24 31.11 12.65 16.69 36.1
DW Steyn 634 50 8.30 36.59 16.88 12.68 32.0
CH Morris 646 58 8.67 30.80 16.41 11.14 34.5
Rashid Khan 630 43 8.75 36.19 17.94 14.65 32.6
Z Khan 607 37 9.05 27.35 17.79 16.41 29.7
B Kumar 1605 118 9.30 29.22 18.50 13.60 25.4
DJ Bravo 1385 115 9.36 30.69 18.19 12.04 16.5
...
MM Sharma 807 63 10.27 26.77 21.19 12.81 12.7
...
JD Unadkat 665 56 10.95 28.72 24.21 11.88 14.3
Spearman correlations across these bowlers:
economy dot_pct boundary_pct stumps_pct
economy 1.00 -0.66 0.95 -0.52
dot_pct -0.66 1.00 -0.57 0.28
boundary_pct 0.95 -0.57 1.00 -0.42
stumps_pct -0.52 0.28 -0.42 1.00

📊 Figure (described): Each marker is one of the 25 IPL bowlers with 600 or more legal death-over balls (real data, 2008–2026). The x-axis is stumps share (bowled plus LBW as a percentage of death wickets) and the y-axis is death economy, inverted so better is higher. Marker area grows with balls bowled, and colour and shape show pace, spin or unknown type. Malinga sits alone at the far right (42.6%) near the top. Narine is highest of all at 7.25 economy with a middling stumps share. The cloud slopes gently up to the right: bowlers who hit the stumps more tend to concede less, with plenty of exceptions.
Across these 25 bowlers, a higher stumps share goes with a lower economy: Spearman ρ = −0.52. Boundary percentage is the dominant correlate of economy (ρ = 0.95), which is no surprise because boundaries are most of the runs at the death. Stumps share carries real information too. It is our best public proxy for "this bowler hits the base of the stumps when it matters".
Be careful with what the proxy says. Stumps share describes how a bowler's wickets fell, not where all their balls landed. Bravo's 16.5% doesn't mean he rarely bowled yorkers. His death plan leaned on slower balls and changes of pace that batters mistimed into the deep, and his wickets record that. Sunil Narine has the best death economy here (7.25) with an ordinary stumps share (29.8%), because his weapon was not getting hit at all. And 25 bowlers is a small sample: ρ = −0.52 is a solid association, not a law. To find out what share of a bowler's balls were yorkers, you need the tracking feed.
🔄 Check your understanding 1. Why is the LBW share of wickets higher in Tests (17.0%) than in the IPL (6.5%)? 2. Malinga's death-over stumps share is 42.6% and Bravo's 16.5%. Does that prove Malinga bowled more yorkers? 3. In the IPL, bowled share is about the same in the powerplay and at the death. What batting behaviour explains the rise in caught share at the death?
Answer
- Test batters defend far more balls, so a full, straight ball more often hits the pad than the bat or the air. White-ball batters attack, and their failures become catches. LBW also requires the ball to be straight enough to hit the stumps, and Test bowlers can bowl that line patiently.
- No. It shows Malinga's wickets came more often from balls hitting the stumps. That is consistent with more yorkers, but also with the same yorkers being more accurate, with batters setting up differently against him, or with Bravo's wickets coming from slower balls caught in the deep. Only ball-tracking can measure the share of yorkers among all balls.
- At the death batters swing at almost everything to hit boundaries. A clean miss of a straight ball is still bowled, but most mistimed attacking shots go in the air and are caught, so caught share rises and LBW (which needs a defensive or missed shot with the pad in line) falls.
15.3 The simulated layer: building it, and drawing pitch maps and beehives
To teach the methods, the book's toolkit includes a simulated tracking layer. You met it in Chapter 7, where it drew the book's first wagon wheels, pitch maps and beehives. This chapter uses it seriously, so you need to know exactly how it is built.
🧪 Simulated data: From here to the end of 15.8, every column whose name starts with
sim_comes fromtoolkit/tracking_sim.py. The outcomes (runs, extras, wickets and how they fell) are real Cricsheet records. The locations, speeds, swing, spin rates and variation labels are random draws. Nosim_number in this chapter is a fact about a real player. Every figure built from the layer carries the line "simulated tracking layer — real outcomes, simulated locations".
add_tracking() does the following for each real delivery. Read the steps carefully, because 15.5 tests every one of them.
- Bowler type. Pace or spin, looked up by the bowler's Cricsheet name (matched on gender) in a frozen copy of the styles table,
player_styles_sim_v1.csv(the original 1,551 rows), so that later additions to the liveplayer_styles.csvnever shift simulated values. If the bowler isn't in that copy, the type is guessed from a hash of the name: about 62% pace, 38% spin. A flag,sim_bowler_type_known, says which. - Length. A draw from five bands (yorker, full, good, short, bouncer). The probabilities multiply three things: a base mix for the bowler type, format and phase (pace at the T20 death starts at 28% yorkers, for example); an outcome tilt that makes some lengths more likely given the real outcome (a real bowled dismissal is 2.6 times more likely to be drawn as a yorker; a real six 1.8 times more likely to be full); and a bowler signature, a number between 0 (fuller) and 1 (shorter) computed from a hash of the bowler's name.
- Pitch distance and line. A uniform draw within the length band (in metres, different for pace and spin). The line is drawn from four bands (wide outside off, off stump, stumps, leg) conditioned only on the real outcome. Wides are forced wide outside off.
- Beehive point. Across the stumps, the line plus a little noise. The height depends only on the length band.
- Speed. A per-bowler pace band from a hash of the name (128–148 km/h for pace, 80–96 km/h for spin). A "slower ball" is drawn at random (22% of pace balls at the death, 7% elsewhere) and loses 18–30 km/h.
- Swing, reverse swing, spin rate, shot zone. Further draws, some from name hashes and none conditioned on the outcome except the shot zone.
- Seed. One random-number stream for the whole table, in match and delivery order.
The Crease module wraps that in one function and adds three helper columns:
from crease.tracking import track, coverage
ipl = track(load_deliveries("ipl")) # ALWAYS the whole competition, then filter
ipl = ipl[~ipl["super_over"]]
print(f"bowler type from the real styles table on {100 * coverage(ipl):.1f}%")
IPL deliveries: 295,557; bowler type from the real styles table on 69.4% (the rest hash-guessed)
For the other archives used in this chapter: men's ODIs 64.9%, men's Tests 70.8%, women's T20Is 61.4%, and the WPL 87.6% (from the checkpoint). Note that figure. In the IPL, almost a third of all deliveries were bowled by someone whose type is a coin-weighted guess. We will meet one of them shortly.
Two death bowlers, two pitch maps
Here is the hook's pair drawn with charts.pitch_map from Chapter 7 (full script: code/05_pitch_maps_beehives.py).
death = ipl[ipl["phase"] == "death"]
for name in ("SL Malinga", "DJ Bravo"):
me = bowler_rows(death, name) # pinned by bowler_id
charts.pitch_map(me, ax=..., bowler_type="pace")

📊 Figure (described): Two pitch maps side by side, titled "simulated tracking layer — real outcomes, simulated locations", seen from the bowler's end with the batter's stumps at the top and shaded length bands from yorker to bouncer. Left: Malinga's 1,117 legal IPL death balls. Right: Bravo's 1,385. Dots are coloured by the real outcome (grey dot ball, blue runs, orange boundary, red X wicket). Malinga's cloud is denser in the yorker band near the stumps. Bravo's spreads further into the short and bouncer bands.
The real records and the simulated length mixes:
SL Malinga - IPL death overs, REAL: 1117 balls, 108 wkts, economy 7.86, dot% 35.0,
bowled 35.2%, lbw 7.4%, caught 57.4% of wickets
[SIMULATED] SL Malinga - length mix at the death:
balls share_pct economy dot_pct wkt_pct
yorker 355 31.8 4.51 49.3 9.86
full 326 29.2 10.55 22.4 10.74
good 182 16.3 5.80 40.1 13.19
short 193 17.3 9.23 25.4 4.66
bouncer 61 5.5 7.57 34.4 8.20
DJ Bravo - IPL death overs, REAL: 1385 balls, 115 wkts, economy 9.36, dot% 30.69,
bowled 13.0%, lbw 3.5%, caught 83.5% of wickets
[SIMULATED] DJ Bravo - length mix at the death:
balls share_pct economy dot_pct wkt_pct
yorker 266 19.2 5.98 35.7 4.14
full 378 27.3 11.25 20.6 7.67
good 223 16.1 5.87 43.0 10.31
short 354 25.6 11.31 23.7 8.19
bouncer 164 11.8 7.50 43.9 14.02
The simulated tables look like scouting reports. Malinga: about a third yorkers, cheap when he hit the length, expensive when he missed full. Bravo: more short balls and bouncers, with the bouncer as his best wicket-taking length. A coach could build a plan on this.
Don't. Two things drive the difference between those length mixes, and only one of them is cricket. The first is the real outcomes: Malinga's 38 bowled and 8 LBW dismissals each pulled the simulation hard toward drawing a yorker (tilts of 2.6 and 2.4), and his dot balls pulled it that way too (1.4). Bravo's catches pulled toward short and bouncer (tilts of 1.3 and 1.6). The second is the name hash. Malinga's length signature is 0.052, close to the "fullest" possible value. Bravo's is 0.756, toward the "shorter" end. The same value, 0.756, belongs to "JJ Bumrah", by pure coincidence of the hash. Section 15.5 measures how much each driver contributes. For pace bowlers at the death the hash turns out to be the bigger one.
A women's spinner and a beehive
The same code draws a spinner. Sophie Ecclestone, England's left-arm spinner, in women's T20Is:
S Ecclestone - women's T20Is, REAL: 112 matches, 2517 balls, 154 wkts, economy 6.04,
average 16.46, dot% 47.6; wickets bowled 38.3%, lbw 16.2%, caught 34.4%, stumped 11.0%
by phase (REAL):
balls wickets economy dot_pct
powerplay 594 21 6.42 54.55
middle 1176 64 5.46 48.04
death 747 69 6.66 41.37
The real record is remarkable on its own: 154 wickets at 16.46, with 69 of them in the death overs, where spinners are usually kept away. Her stumps share is 54.5% (bowled 38.3% plus LBW 16.2%), well above the women's T20I average of 43.3%.

📊 Figure (described): Two panels titled "Sophie Ecclestone, women's T20Is — 2517 legal balls" and "simulated tracking layer — real outcomes, simulated locations". Left, a spin pitch map (bands yorker to long hop) with most balls in the full and good bands. Right, a beehive with the stumps drawn to scale and each ball plotted where it passed the stumps. Dots, runs and boundaries scatter in a broad cloud from wide outside off to leg, and the 153 wickets on legal balls (red X) cluster more toward the stumps.
Look hard at the beehive and you will find the simulation's fingerprints. The heights at which Ecclestone's balls "pass the stumps" cluster around half a metre, the same heights the simulation would give a fast bowler's good-length ball. In the simulation, height depends only on the length band, not on the bowler's pace, the bounce of the pitch or the trajectory a left-arm spinner actually gives the ball. And the line has no relation to her real angle of attack from over or round the wicket, because the simulation's line ignores who bowled the ball. A real beehive of a left-arm spinner to right-handers would show the arc of the angle across the batter. This one can't.
🏏 Eye test: Wendell looks at the Ecclestone beehive for a while. "Here's what a spinner's beehive should show you, and this one never will. When she bowls to a right-hander from over the wicket, the ball starts outside leg and comes across. A good one pitches middle and straightens, or holds its line and beats the outside edge. You'd see two clusters at the stumps: the one that turned and the one that didn't. That's the whole art. A chart that puts every ball through the same tube can't see the art." He is right, and 15.9 returns to the point: real tracking measures deviation off the pitch, which our simulation doesn't model at all.
🔄 Check your understanding 1. Which three ingredients does the simulation multiply together to choose a delivery's length? 2. What happens to a bowler whose Cricsheet name is not in
player_styles.csv? 3. Why doestrack()insist on being called on a whole competition?
Answer
- A base mix for bowler type × format × phase, an outcome tilt that depends on the real outcome of the ball, and a bowler signature computed from a hash of the bowler's name.
- His type (pace or spin) is guessed from a hash of the name, about 62% pace and 38% spin, and
sim_bowler_type_knownis False. Everything downstream (length bands, speed, variations) then follows the guess, right or wrong.- The simulation consumes one random stream in delivery order, so the values a ball receives depend on which other rows were passed in. Simulating the whole competition and then filtering keeps every analysis (and every chapter) consistent.
15.4 "Which length works?" — length and line tables by format and phase
🧪 Simulated data: every length, line and table in this section comes from the
sim_lengthandsim_linecolumns. The outcomes in each cell are real; the assignment of balls to cells is simulated.
The oldest question in bowling analytics: which length produces the most dots, the most wickets, the fewest boundaries? Commentators have firm answers. A good length is the Test bowler's bread and butter. The yorker is the death bowler's best ball. The short ball is a wicket-taking surprise but expensive if overused. With a real tracking feed, you answer the question with a table: group every delivery by its length band and compute outcome rates for each. We will build that table now on the simulated layer, exactly as you would on a real feed. Then, in 15.5, we will find out what it actually tells us.
📐 Definition — length-table rates. For a group of legal deliveries (wides and no-balls excluded, because a wide has no meaningful length for this purpose): economy = 6 × runs charged to the bowler / balls; dot % = balls conceding nothing / balls; boundary % = balls hit for four or six / balls; wicket % = bowler-credited wickets per 100 balls; share % = the band's share of the group's balls. Because extras on illegal balls are excluded, length-table economy runs slightly below the standard economy from
bowling_summary.
def length_table(tracked, by=None):
"""Per simulated length band (legal deliveries only)."""
by = [] if by is None else ([by] if isinstance(by, str) else list(by))
legal = tracked[tracked["is_legal"]].copy()
legal["sim_length"] = pd.Categorical(legal["sim_length"], LENGTHS, ordered=True)
out = _rates(legal, by + ["sim_length"]) # balls, runs, dots, boundaries, wickets → rates
tot = out.groupby(level=by)["balls"].transform("sum") if by else out["balls"].sum()
out.insert(1, "share_pct", (100 * out["balls"] / tot).round(1))
return out
length_table(ipl[ipl["sim_bowler_type"] == "pace"], by="phase")
Full script: code/02_length_line_tables.py. The IPL pace output:
[SIMULATED] IPL 2008-2026, PACE bowlers, by phase and simulated length:
balls share_pct economy dot_pct boundary_pct wkt_pct
phase sim_length
powerplay yorker 2969 4.5 3.23 68.3 5.2 4.11
full 17180 25.8 10.66 36.2 31.3 4.03
good 28106 42.2 5.53 56.9 13.2 3.95
short 13377 20.1 9.40 39.8 26.6 3.27
bouncer 4940 7.4 6.63 58.3 19.0 4.05
middle ...
death yorker 10145 22.0 5.72 43.1 8.0 6.59
full 13169 28.5 12.52 21.1 31.3 7.54
good 8119 17.6 7.50 36.5 14.1 8.71
short 10563 22.9 11.41 22.7 26.9 6.47
bouncer 4151 9.0 9.46 38.3 22.9 9.93
And the other formats, pace bowlers only:
[SIMULATED] men's Tests: bowler type real on 70.8% of deliveries
PACE by simulated length:
balls share_pct economy dot_pct boundary_pct wkt_pct
yorker 21655 2.1 1.38 86.0 2.0 1.55
full 206918 20.3 4.96 64.3 12.6 2.33
good 578528 56.8 2.27 80.1 4.3 1.56
short 138517 13.6 4.34 67.6 10.5 1.55
bouncer 72195 7.1 2.56 81.0 6.1 1.61
[SIMULATED] men's ODIs (death overs only shown)
death yorker 27629 21.5 4.21 52.6 4.4 5.28
full 35833 27.9 9.30 27.8 20.1 5.60
good 28840 22.4 5.71 43.9 8.8 5.28
short 24603 19.1 8.59 30.2 17.6 4.49
bouncer 11647 9.1 6.54 47.0 13.3 6.15
[SIMULATED] women's T20Is (death overs only shown)
death yorker 13550 25.8 3.81 55.6 3.5 7.91
full 13643 26.0 8.16 31.0 16.6 8.18
good 9803 18.7 5.18 45.9 6.9 6.68
short 10823 20.6 7.78 31.6 14.6 5.08
bouncer 4622 8.8 5.96 48.1 11.7 6.25

📊 Figure (described): Two annotated heat maps titled "IPL pace bowling 2008–2026 by simulated length and phase" with the caption "simulated tracking layer — real outcomes, simulated locations". Rows are powerplay, middle and death. Columns are yorker, full, good, short and bouncer. Left panel: economy, darkest (cheapest) for the yorker and good length in every phase and brightest for the full ball at the death (12.52). Right panel: wickets per 100 balls, rising sharply in the death row, with the bouncer the highest single cell (9.93).
Taken at face value, the tables tell a neat story, and it matches the commentary box almost line for line.
- Tests: the good length dominates. It takes 56.8% of balls and is cheap (2.27 an over) with an 80.1% dot rate. Full balls are the expensive mistake (4.96).
- T20 death: the yorker is the cheapest ball by a distance (5.72 in the IPL, 3.81 in women's T20Is) and the full ball that misses its length is the most expensive (12.52). The bouncer has the highest wicket rate at the IPL death (9.93 per 100 balls), but it costs 9.46 an over.
- ODI death: the same pattern as T20 at a lower scale. Yorker 4.21, full 9.30.
The line × length grid for IPL pace at the death adds the second dimension:
[SIMULATED] IPL death overs, pace: economy by simulated length (rows) x line (columns), min 200 balls:
sim_line wide_off off stumps leg
sim_length
yorker 4.86 4.72 6.06 9.18
full 11.36 10.25 12.98 17.40
good 6.28 6.06 8.02 12.05
short 9.99 9.30 12.24 16.07
bouncer 7.88 7.38 10.40 15.04

📊 Figure (described): A five-by-four heat map titled "IPL death overs, pace: economy by length x line" with the simulated-layer caption. Rows are lengths from yorker to bouncer and columns are lines from wide outside off to leg. Cells on the off-stump line are darkest (cheapest) in every row. Every cell in the leg-side column is bright, and full balls on leg stump are brightest of all at 17.40 an over.
Off-stump yorkers cheapest, full balls on the pads most expensive. Every death-bowling coach would nod.
That is the problem. The table agrees with the coaches because the coaches' beliefs are written into the simulation. Before you read on, try to work out how.
🧩 Productive struggle. The bouncer has the highest wicket rate of any length at the IPL death in the simulated table (9.93 per 100 balls, against 7.51 for all pace balls in that phase). A captain asks whether his bowlers should bowl more bouncers at the death. Using only the description of
add_trackingin 15.3, write down (a) one mechanism inside the simulation that would produce a high bouncer wicket rate even if bouncers took wickets at exactly the average rate in real cricket, and (b) a test you could run to measure how much of the 9.93 that mechanism explains.
One good answer
(a) The outcome tilt. For a real caught dismissal, the simulation makes the bouncer 1.6 times more likely than its base rate, the largest multiplier in the caught row. Most death wickets are catches (77.7% for pace bowlers in IPL death overs, from 15.2), so real wickets are disproportionately drawn as bouncers. Read the table backwards and bouncers look like wicket-takers. (b) Recompute the table with the tilt switched off: assign each real ball to lengths with the base mix and bowler signature only. If the bouncer's wicket rate falls to the phase average, the 9.93 came entirely from the tilt. That is the recovery test in 15.5.
⚠️ Common pitfall: confirming the assumption you fed in. Any model that generates data from assumptions, whether a simulation, an imputation or a "synthetic" dataset from a vendor, will hand those assumptions back to you as findings when you analyse it. A length table from simulated tracking that agrees with coaching lore is not evidence for the lore if the lore built the simulation. The fix: before interpreting any output, write down what the generator was conditioned on, then test whether your "finding" survives without that conditioning.
15.5 Reading the machine: an audit of the simulated layer
🧪 Simulated data: this section audits the simulated layer itself. Every
sim_value below is a property of the simulation, not of any bowler.
This section is the heart of the chapter. We run five audits on the IPL layer (full script: code/03_artefact_audit.py). Each one isolates a single design decision in tracking_sim.py and measures its effect. The audits are written for this simulation, but the same five questions apply to any model output you are ever handed.
Audit 1 — the recovery test
add_tracking chose each ball's length by multiplying a base mix, an outcome tilt and a bowler signature, then drawing at random. We can recompute those probabilities exactly for every ball, with no random draw, and ask what length table the design implies. Then we can switch off one ingredient, the outcome tilt, and ask what the table would look like if length carried no information about outcome.
def implied_length_table(tracked, by=None, tilt=None):
"""Each legal ball contributes its REAL outcome to every length in proportion to the
generator's probability of that length. tilt="flat" switches the outcome conditioning off."""
legal = tracked[tracked["is_legal"]]
w = _generator_weights(legal, tilt) # n_balls x 5 probabilities, recomputed exactly
... # weighted sums of balls, runs, dots, wickets per length
dp = ipl[(ipl["phase"] == "death") & (ipl["sim_bowler_type"] == "pace")]
length_table(dp); implied_length_table(dp); implied_length_table(dp, tilt="flat")
[SIMULATED] 1. Recovery test - IPL death overs, pace bowlers:
observed (simulated draw) implied by design design, outcome tilt OFF
balls economy dot_pct wkt_pct balls economy dot_pct wkt_pct balls economy dot_pct wkt_pct
sim_length
yorker 10145 5.72 43.1 6.59 10183.0 5.73 43.3 7.03 12852.0 9.60 30.5 7.54
full 13169 12.52 21.1 7.54 13006.0 12.43 21.2 7.16 11053.0 9.61 30.5 7.52
good 8119 7.50 36.5 8.71 8211.0 7.65 35.5 8.30 8318.0 9.61 30.6 7.50
short 10563 11.41 22.7 6.47 10541.0 11.49 23.1 6.74 9273.0 9.61 30.6 7.47
bouncer 4151 9.46 38.3 9.93 4206.0 9.41 37.6 10.09 4652.0 9.62 30.6 7.45
Real overall: economy 9.61, dot% 30.6, wkt% 7.51

📊 Figure (described): Two grouped bar charts (economy, and wickets per 100 balls) for IPL pace bowlers in death overs, with three bars per length: the observed simulated table (solid blue), the table implied by the simulation's design (orange, hatched) and the design with the outcome tilt switched off (green, dotted). Caption: "simulated tracking layer — real outcomes, simulated locations". Blue and orange bars match closely at every length. The green bars are flat: economy about 9.6 and about 7.5 wickets per 100 balls at every length.
Read the three column groups left to right.
The observed table and the implied table agree to within sampling noise (yorker economy 5.72 against 5.73). So the random draw added nothing. The table is a deterministic consequence of the design plus the real outcomes.
The tilt-off table is flat. Every length has the same economy, 9.60–9.62, which is the real economy of the whole group, 9.61. The yorker's "advantage" of nearly four runs an over, the full ball's "penalty" of three, and the bouncer's wicket-taking edge all vanish. Every difference between lengths in the observed table comes from the OUTCOME_TILT matrix: a table of multipliers that the toolkit's author chose to encode cricket common sense.
🔍 Why this works. The simulation draws length given outcome, P(length | outcome). The length table reads it the other way, P(outcome | length). Bayes' rule connects the two: P(outcome | length) ∝ P(length | outcome) × P(outcome). With the tilt switched off, P(length | outcome) is the same for every outcome, so it cancels, and P(outcome | length) is just P(outcome), identical for every length. With the tilt on, the ratios in the tilt matrix become the ratios in the length table. A tilt of 1.4 for dot balls at yorker length against 0.3 for fours is precisely what produces "yorkers concede few runs". The data's only contribution is the overall outcome mix it gets multiplied against. (Chapter 6 used the same rule for Bayesian updating, and its section on selection on the outcome is this trap's close cousin.)
So what does the simulated length table tell us about real cricket? Nothing about which length works. What it does tell us is how the method behaves. On a real feed you would build the same table with the same code and read it the same way, and because real lengths are measured rather than drawn, the differences would be evidence. That is why we built it.
Audit 2 — where a bowler's simulated profile comes from
The recovery test is about lengths in aggregate. What about individual bowlers? Malinga's simulated yorker share (31.8%) was higher than Bravo's (19.2%). How much of that reflects their real outcomes, and how much the hash of their names?
tab, fits = signature_decomposition(death_pace_balls, min_balls=400, length="yorker")
# regress each bowler's simulated yorker % on (a) their REAL dot%, boundary%, bowled+lbw and
# caught per 100 balls; (b) their name-hash signature; (c) both
Pace bowlers only: {'n_bowlers': 36, 'r2_real_outcomes': 0.248, 'r2_signature': 0.784, 'r2_both': 0.835}

📊 Figure (described): Two scatter plots sharing a y-axis, the simulated yorker share of each of 36 IPL pace bowlers' death balls (400 or more legal death balls). Left: against the real bowled-plus-LBW rate per 100 death balls, a loose upward cloud. Right: against the bowler's name-hash length signature, a tight downward band. Points are coloured by signature. The title reports R² 0.25 for real outcomes, 0.78 for the name hash, 0.84 for both, with the simulated-layer caption.
For the 36 pace bowlers with at least 400 legal death balls, the name hash explains 78% of the variation in simulated yorker share. Their real outcomes explain 25%. Most of what makes one bowler's simulated pitch map look different from another's is an arbitrary number computed from the spelling of his name.
The top of the simulated yorker list makes the point. After Malinga (signature 0.05) come S Kaul (0.14), CH Morris (0.09), SR Watson (0.09), Mohammed Shami (0.02), T Natarajan (0.17), P Kumar (0.06) and M Pathirana (0.06). Every one of them has a signature near zero, the "fullest" end. Some of them may well have been fine yorker bowlers. The simulation has no way of knowing.
Audit 3 — the name test
If the signature comes from the name, what happens if we change only the name? The function name_sensitivity reruns the simulation with every "JJ Bumrah" delivery relabelled "Jasprit Bumrah". Same balls, same runs, same wickets:
[SIMULATED] 3. Name sensitivity - 'JJ Bumrah' respelled 'Jasprit Bumrah' (real outcomes identical):
spelling balls type mean_speed_kmh yorker_pct short_or_bouncer_pct wickets_real
version
original JJ Bumrah 3653 pace 143.1 10.3 33.5 190
renamed Jasprit Bumrah 3653 spin 94.7 3.6 16.0 190
(The ball and wicket counts here include super overs, which is why they differ slightly from the standard 3,631 balls and 187 wickets in the book's IPL bowling tables.)
Bumrah became a spinner. "Jasprit Bumrah" isn't a key in the styles table, which uses Cricsheet's "JJ Bumrah", so his type fell back to a hash guess, and the hash came up spin. His simulated speed dropped by 48 km/h, his yorkers more than halved, and every real wicket he took was redrawn on a spinner's pitch map. This isn't a contrived case. The same thing happens to real bowlers missing from the styles table. In the decomposition output above, IK Pathan appears among the spinners. Irfan Pathan was a left-arm swing bowler. He isn't in the simulation's frozen styles copy (the live table has since added him, correctly, as left-arm medium-fast), so his hash decided, and it came up spin.
Audit 4 — the subset test
The simulation uses one random stream for the whole table, in delivery order. Simulate IPL 2026 on its own instead of as part of the whole IPL and the same real deliveries receive different simulated values:
[SIMULATED] 4. Subset sensitivity - IPL 2026 simulated alone v as part of the whole IPL:
{'balls': 17527, 'length_changed_pct': 68.0, 'median_pitch_shift_m': 2.1}
68% of IPL 2026's deliveries change length band, and the median pitch point moves 2.1 metres. This is why crease.tracking.track() insists on the whole competition and why the book's house rule is "simulate everything, then filter". It is also a general lesson: any stochastic pipeline (bootstraps, simulations, train/test splits) must fix both the seed and the input set, or two analysts will publish two different "facts".
Audit 5 — the handedness test and the speed trap
A fair scouting question: which line is most effective against specific batters, say left-handers? The simulated line distribution by batter's hand (real handedness from the styles table):
[SIMULATED] 5. Simulated line by batter's hand (% of legal balls), IPL 2008-2026:
sim_line wide_off off stumps leg
hand
Left 22.9 36.3 25.7 15.1
Right 22.8 36.2 26.0 15.0
The rows are identical to within a few tenths, because the simulation's line ignores the batter, the bowler's arm and the angle. Real bowlers bowl very different lines to left- and right-handers (round the wicket, across the left-hander, the ball angled away). Any "line against left-handers" analysis on this layer would return outcome-mix noise.
Finally, speed. Simulated speed is a per-bowler hash. Yet across the 54 IPL pace bowlers with at least 1,000 balls:
[SIMULATED] Pace bowlers with >= 1000 IPL balls (n = 54): Spearman rho, simulated mean speed v REAL economy = -0.24
...stock balls only (slower balls removed): rho = -0.25
two-sided p-value for the stock-speed correlation: 0.067 (the speeds are a hash of each bowler's name)
Faster bowlers concede fewer runs, ρ = −0.25, p = 0.067. Some analysts would call that "borderline significant" and some would put it in a slide deck. The speeds are hashes of names. The correlation is chance. With 54 bowlers, a correlation of this size turns up by luck often enough that you should expect to see one when you go looking. (This is Chapter 6's "one ball is mostly noise" lesson at the level of players: test enough random variables against economy and some will look meaningful.)
🔄 Check your understanding 1. In the recovery test, why does the "tilt off" table show the same economy (about 9.6) at every length? 2. What two things explain a bowler's simulated yorker share, and which dominates for IPL death pace bowlers? 3. Why does simulating one season by itself give different values from simulating the whole competition? 4. Give one analysis a franchise would want that the simulated layer cannot support at all, and say why.
Answer
- Without the tilt, a ball's length probabilities don't depend on its outcome. Every length band then receives a random sample of the same real balls, so each band's economy equals the group's real economy, 9.61.
- The bowler's real outcome mix (through the tilt) and the name-hash signature. For 36 IPL death pace bowlers the signature explains R² 0.78 and real outcomes 0.25.
- One random stream is consumed in delivery order across the whole table, so the random numbers a given ball receives depend on how many rows come before it. A different input set shifts every draw. 68% of IPL 2026 balls changed length band.
- Line effectiveness against left- versus right-handed batters: the simulated line ignores the batter's hand, the bowler's arm and the angle, so any difference is noise from outcome mix. (Others: speed–economy relationships, since speed is a name hash; slower-ball effectiveness, see 15.6; spin deviation, which isn't modelled.)
Five questions to ask of any model output
The audits generalise into a checklist you can carry anywhere, whether to a vendor's xW model, a betting syndicate's player ratings or a "proprietary" metric in a broadcast graphic:
- What was the generator conditioned on? If the output was conditioned on the outcome you are now using it to predict, its predictive power is borrowed.
- What survives when you switch the conditioning off? (Recovery test.)
- What would change if the inputs changed in a meaningless way? A spelling, a row order, a subset. (Name and subset tests.)
- Which variables were generated independently of everything? Any "effect" of those is noise by construction. (Handedness, speed.)
- What is the null distribution? How large an effect would chance alone produce with this many players or balls? (The speed trap.)
15.6 Variations: stock ball, yorker, bouncer, slower ball
🧪 Simulated data: the variation labels (
sim_variation) are simulated; the runs and wickets attached to them are real.
Here is a classic franchise question: for a T20 bowler with four variations (bouncer, slower ball, yorker, length ball), which variation is most effective in which phase? With a real feed you would label each delivery (speed drop for the slower ball, pitch point for the yorker and bouncer) and build exactly the table below. The simulated layer labels pace deliveries stock, yorker, bouncer or slower_ball (full script: code/04_variations.py).
variation_table(ipl, by="phase") # pace bowlers only, legal balls
[SIMULATED] IPL 2008-2026 - pace variations by phase:
balls share_pct economy dot_pct boundary_pct wkt_pct
phase sim_variation
powerplay stock 54602 82.0 7.92 46.9 21.5 3.84
yorker 2746 4.1 3.28 68.1 5.5 4.19
bouncer 4592 6.9 6.61 58.4 18.9 4.12
slower_ball 4632 7.0 7.56 49.6 20.5 3.52
...
death stock 24741 53.6 10.92 25.4 25.6 7.49
yorker 7923 17.2 5.71 43.1 8.0 6.50
bouncer 3268 7.1 9.41 38.2 22.8 9.88
slower_ball 10215 22.1 9.53 30.8 21.0 7.57
all pace balls in the phase (REAL outcomes):
economy wkt_pct
powerplay 7.61 3.85
middle 7.84 4.03
death 9.61 7.51

📊 Figure (described): Two grouped bar charts for IPL pace bowling 2008–2026, economy and wickets per 100 balls, with four bars per phase (stock, yorker, bouncer, slower ball) and a dashed black line marking the real average of all pace balls in each phase. Caption: "simulated tracking layer — real outcomes, simulated locations". The yorker bars are lowest for economy in every phase. The slower-ball bars sit almost exactly on the dashed phase-average line in both panels.
Look at the slower ball at the death: 9.53 an over and 7.57 wickets per 100 balls, against the phase's real 9.61 and 7.51. It matches the phase average almost exactly, in every phase, in both panels. Women's T20Is behave the same way (death slower ball 6.24 an over against a phase average of 6.20). The spinner's "variation" label does it too: 9.01 against 9.04 for stock balls at the IPL death.
The reason is in the generator. add_tracking decides whether a pace ball is a slower ball with a coin flip (22% at the death, 7% elsewhere) that never looks at the outcome. It chooses the spinner's variation the same way. So slower balls are a random sample of all balls, and a random sample has the average's outcomes. The yorker and bouncer, by contrast, are labels taken from the outcome-tilted length, so they inherit the tilt's "effects".
So on this layer the answer to "which variation works?" is decided entirely by design: the outcome-conditioned variations "work" in the direction the tilt says, and the unconditioned ones do nothing. Neither half is evidence about cricket.
⚠️ Common pitfall: the null by construction. When a variable is generated independently of the outcome, analysing its "effect" will always find nothing, and finding nothing tells you nothing about the real world. The mirror image is the first pitfall in 15.4: a variable generated from the outcome will always find something. Before testing a variable's effect in any synthetic or imputed dataset, check whether it was generated with or without reference to the outcome.
What would a real analysis of slower balls need? Release speed for every ball, so you can define a slower ball properly. A good definition is relative: at least, say, 15% below the bowler's own median release speed in that spell, because a 125 km/h ball is a slower ball for one bowler and a stock ball for another. Then the batter's response: whether he was through the shot early, how the ball was hit. Then context: the field set, because a slower bouncer to a packed leg-side boundary is a different plan from a slower ball outside off to a third-man-up field. Cricsheet has none of that. The honest public-data substitute is the real stumps-share and dot% fingerprint from 15.2, which describes results, not methods.
📋 Try it — Settle this debate. A pundit says, "The slower ball has become the most important variation in T20 death bowling." Using only real Cricsheet data (no
sim_columns), design an analysis that could provide indirect evidence for or against the claim across IPL seasons 2008–2026. State what you would compute, what result would support the claim, and what would undermine it.
Worked answer
There is no real slower-ball label, so look for its footprint. Slower balls at the death are meant to be mistimed into the air, so the share of death-over wickets that are caught, and especially caught by fielders in the deep (not available; Cricsheet names the fielder but not the position), should rise if the slower ball became more central. Compute, by season, the IPL death-over caught share of bowler wickets for pace bowlers, and the bowled + LBW share. Then compare with the middle overs as a control, since the slower ball is a death-overs plan. Supporting: the death caught share rises over time faster than the middle-overs caught share, and the death stumps share falls. Undermining: no divergence between death and middle overs, or the change tracks the general rise in attacking batting (the Impact Player era from 2023) in all phases equally. Even a supporting result is indirect. Batters attacking more would also raise caught share, which is why the phase control matters, and why the final word needs real tracking.
15.7 Clustering deliveries into "types"
🧪 Simulated data: the features clustered here (
sim_pitch_m,sim_line_cm,sim_speed_kmh) are simulated. Bumrah's simulated speeds come from a hash of his name, not from any speed gun.
Analysts with real tracking feeds often want to know what a bowler's distinct deliveries are, without being told in advance. Labelling every ball "yorker" or "slower ball" by hand is slow and imposes our categories. Clustering lets the data propose its own groups: deliveries that are similar in pitch point, line and speed land together. Then you ask how each group performed.
Two methods are worth knowing.
- k-means picks k cluster centres and assigns every ball to the nearest one, moving the centres until nothing changes. It is fast and simple. It assumes round, equally sized clusters, and you must choose k. A common guide is the silhouette score, which compares each ball's distance to its own cluster with its distance to the next nearest (closer to 1 is cleaner).
- A Gaussian mixture model (GMM) assumes the deliveries come from k overlapping bell-shaped clouds, each with its own centre, spread and orientation, and estimates them all at once. Clusters can be elongated or tilted, which suits deliveries better. k can be chosen by the Bayesian information criterion (BIC), a measure of fit that penalises extra clusters (lower is better).
Features must be standardised first (each rescaled to mean 0, standard deviation 1). Otherwise speed in km/h, which varies by tens, would swamp pitch distance in metres, which varies by a few.
def cluster_deliveries(tracked, method="gmm", k=None,
features=("sim_pitch_m", "sim_line_cm", "sim_speed_kmh"), k_range=range(2, 9)):
legal = tracked[tracked["is_legal"]].copy()
X = StandardScaler().fit_transform(legal[list(features)].to_numpy(float))
if method == "gmm":
for kk in k_range:
scores[kk] = GaussianMixture(kk, covariance_type="full", random_state=0, n_init=3).fit(X).bic(X)
best = min(scores, key=scores.get)
labels = GaussianMixture(best, ...).fit_predict(X)
...
return labels, per_cluster_summary, scores
Run on Jasprit Bumrah's IPL career on the simulated layer (full script: code/06_clustering.py):
[SIMULATED] JJ Bumrah, IPL 2008-2026: 3631 legal balls
Gaussian mixture - BIC by k (lower is better): {2: 27355.0, 3: 27278.7, 4: 27333.8, 5: 27146.8, 6: 27176.6, 7: 27128.4, 8: 27277.1}
chosen k = 7
sim_pitch_m sim_line_cm sim_speed_kmh balls share_pct economy dot_pct boundary_pct wkt_pct
cluster
6 1.7 17.1 146.1 458 12.6 6.13 44.5 12.0 6.11
5 2.6 12.1 121.8 208 5.7 6.66 38.0 13.0 6.73
1 4.5 8.3 146.6 1042 28.7 6.31 45.5 12.0 5.76
2 6.0 -34.0 146.2 307 8.5 11.10 23.1 26.7 2.93
0 6.4 50.0 145.6 391 10.8 6.15 52.2 15.3 5.63
3 7.6 10.3 122.4 254 7.0 7.91 37.0 16.5 4.33
4 8.5 10.6 145.9 971 26.7 7.01 41.7 14.4 4.43
k-means - silhouette by k (higher is better): {2: 0.436, 3: 0.31, 4: 0.317, ...}
chosen k = 2
sim_pitch_m sim_line_cm sim_speed_kmh balls share_pct economy dot_pct boundary_pct wkt_pct
1 5.3 11.1 122.1 461 12.7 7.34 37.5 15.0 5.42
0 5.7 11.3 146.1 3170 87.3 6.94 42.8 14.6 5.11

📊 Figure (described): Left: each of Bumrah's 3,631 legal IPL balls on the simulated layer, plotted by simulated pitch point (x, metres from the stumps) and simulated speed (y), coloured by its Gaussian-mixture cluster, with dotted lines at the simulation's length-band edges (2, 4, 7 and 9.5 m). Two horizontal bands are obvious: a large one around 140–155 km/h and a small one around 110–130 km/h. Clusters split each band roughly along the length-band edges. Right: BIC against k, lowest at k = 7. Caption: "simulated tracking layer — real outcomes, simulated locations".
The two methods disagree on k, and the disagreement is instructive. k-means, judged by silhouette, finds the single cleanest split: a "slower ball" cluster (12.7% of balls, about 122 km/h) and everything else. The GMM, judged by BIC, finds seven: a full stock ball, a full slower ball, a good-length stock ball, a short stock ball, a short slower ball, and two clusters defined by line, one well outside off and one down the leg side. Neither is wrong. They answer different questions, "what is the most obvious division?" and "how many distinct populations best describe these balls?", and in a real analysis you would choose k by asking which split a bowling coach can act on.
Now the generator check. Cross-tabulate the GMM clusters against the simulation's own labels:
Generator check - GMM cluster (rows) v the simulation's own length label (columns), % of cluster:
yorker full good short bouncer
cluster
6 58.0 42.0 0.0 0.0 0.0
5 31.0 54.0 15.0 0.0 0.0
1 1.0 35.0 65.0 0.0 0.0
2 5.0 24.0 31.0 31.0 9.0
0 6.0 16.0 35.0 32.0 12.0
3 0.0 0.0 43.0 44.0 13.0
4 0.0 0.0 21.0 58.0 21.0
GMM cluster v simulated variation label, % of cluster:
sim_variation bouncer slower_ball stock yorker
6 0.0 0.0 42.0 58.0
5 0.0 100.0 0.0 0.0
1 0.0 0.0 99.0 1.0
3 0.0 100.0 0.0 0.0
...
The two slower-ball clusters are 100% slower balls: the GMM found the simulation's 18–30 km/h speed drop perfectly. The length clusters line up with the simulation's band edges. And the costliest cluster, 2 (11.10 an over, 26.7% boundaries), is defined by line: 34 cm down the leg side. That is the simulation's line rule at work. Real sixes and fours are drawn on leg stump far more often than dots (in the line table, a six is 30% likely to be on leg, a dot 8%), so a "leg-side cluster" collects boundaries by construction.
The lesson is the one from 15.5 in a new form: clustering finds the structure of whatever generated the data. Here the generator is a set of bands, a coin-flip slower ball and an outcome-tilted line, so the clusters are the bands, the coin flip and the tilt. On a real feed the generator is the bowler: his release, his wrist, his plans, his fatigue. A real cluster analysis of a death bowler might find, say, a wide yorker and a straight yorker, an off-cutter that grips and one that doesn't, or a short ball that drifts down leg late in a spell. That last one is the kind of finding a coach acts on. The method is the same. Only the data can make it mean something.
🔷 R corner (not run in this book's build). The same clustering in base R plus the
mclustpackage:r X <- scale(balls[, c("sim_pitch_m", "sim_line_cm", "sim_speed_kmh")]) km <- kmeans(X, centers = 2, nstart = 10) # k-means library(mclust) gm <- Mclust(X, G = 2:8) # Gaussian mixtures, k chosen by BIC summary(gm); table(gm$classification)Note thatmclustreports BIC with the opposite sign convention to scikit-learn (higher is better there).📋 Try it — Build this metric. A bowling coach wants a single number for "how consistent is this bowler's length?" Define a metric that would work on a real tracking feed, compute it on the simulated layer for Bumrah and Malinga in IPL death overs (
sim_pitch_m), and say whether the simulated values mean anything.
Worked answer
A natural choice is the interquartile range of pitch distance (
IQR = Q3 − Q1 of pitch_m), computed per phase so that a bowler who deliberately changes length between phases isn't penalised. It is robust to the odd wild delivery, unlike the standard deviation. A refinement measures dispersion around the intended length. With labelled plans you would compute the IQR within each planned delivery type, since a death bowler mixing yorkers and bouncers should look "inconsistent" on raw IQR. On the simulated layer the code is one line,me.groupby("phase")["sim_pitch_m"].quantile([.25, .75]), but the values mean nothing about the bowlers. Pitch points are uniform draws inside bands chosen by outcome tilt and name hash, so the IQR measures the simulation's band widths and the bowler's outcome mix. On a real feed, length IQR is a genuine skill measure worth tracking across a season (Chapter 6's reliability tools tell you how many balls you need before it settles).🔄 Check your understanding 1. Why must features be standardised before clustering deliveries? 2. k-means chose two clusters and the Gaussian mixture chose seven for the same balls. Which is right? 3. The costliest simulated Bumrah cluster sits 34 cm down the leg side. Why is that a property of the simulation rather than of Bumrah?
Answer
- Clustering uses distances. Without rescaling, the feature with the largest numeric spread (speed, in tens of km/h) dominates features measured in smaller units (pitch distance in metres).
- Neither is "right". They optimise different criteria (silhouette rewards one clean split, BIC rewards the best-fitting number of overlapping populations). Choose k by which split a coach can act on, and check that the clusters are stable across seeds and seasons.
- The simulated line is drawn from the real outcome alone. Sixes and fours are drawn on leg stump far more often than dot balls, so any leg-side cluster collects boundaries by construction, whoever the bowler is.
15.8 An LBW model sketch, and what ball-tracking changed
The geometry
Ball-tracking's most consequential job is the LBW review. Strip it to geometry: the ball passes the plane of the stumps at a point (y across, z up). The stumps occupy a rectangle 22.86 cm wide and 71.1 cm tall. A ball about 7.2 cm across "hits" if its centre is inside the rectangle, which means at least half the ball is in the zone. It "clips" if its centre is outside but within one radius of the edge. Otherwise it misses. The Crease function:
STUMP_HALF_WIDTH_CM, STUMP_HEIGHT_CM, BALL_RADIUS_CM = 11.43, 71.1, 3.6
def wicket_zone(tracked):
y, z = tracked["sim_stump_y_cm"].abs(), tracked["sim_stump_z_cm"]
inside = (y <= STUMP_HALF_WIDTH_CM) & (z <= STUMP_HEIGHT_CM)
touch = (y <= STUMP_HALF_WIDTH_CM + BALL_RADIUS_CM) & (z <= STUMP_HEIGHT_CM + BALL_RADIUS_CM)
return np.where(inside, "hitting", np.where(touch, "clipping", "missing"))
"Clipping" is the territory where umpire's call lives. Real DRS also asks where the ball pitched and where it struck the pad, and it predicts the path after the pad, with an error margin that grows with the distance from impact to stumps. Our sketch has none of that. The simulated ball has no pad to hit, and its line at the stumps is its pitching line plus a little noise: no seam, no swing after pitching, no turn.
🧪 Simulated data: the next two outputs place real Test dismissals on simulated paths.
[SIMULATED] Men's Tests: simulated wicket-zone class (% of balls):
real LBW dismissals all legal balls
hitting 70.2 23.9
clipping 10.8 8.8
missing 19.0 67.3
[SIMULATED] Logistic model, real LBW from simulated location (held-out matches): AUC = 0.823 (4,788 LBWs)
[SIMULATED] Placebo - same model after re-simulating with SHUFFLED dismissal labels: AUC = 0.503
The first table looks like validation. 70.2% of real LBWs are "hitting" on the simulated beehive, against 23.9% of all balls. A logistic regression that predicts real LBWs from simulated location (distance from middle stump, height, pitch point, an in-frame flag), trained on three-quarters of the matches and tested on the rest, reaches an AUC of 0.823. (AUC, the area under the ROC curve, is the probability that the model ranks a random LBW ball above a random non-LBW ball. 0.5 is a coin flip, 1.0 is perfect.)
Then the placebo test. We shuffle the wicket_kind column across all Test deliveries before simulating, so the layer is conditioned on fake dismissals. Then we refit the same model to predict the real dismissals. The AUC drops to 0.503, a coin flip. The model's skill came entirely from the simulation having been told which balls were LBWs: real LBWs were drawn on the "stumps" line 80% of the time and in the yorker or full band far more often. The model learned the simulation's answer key back.

📊 Figure (described): Left: a sample of real men's Test LBW dismissals plotted at their simulated stump-plane positions, with the stumps drawn as a rectangle. Most fall inside it (red X, "hitting" 70%), some just outside (orange, "clipping" 11%) and the rest wider or higher (grey, "missing" 19%). Right: two bars of AUC for predicting real LBWs on held-out matches, 0.823 when simulated with real labels and 0.503 when simulated with shuffled labels, against a dashed coin-flip line at 0.5. Caption: "simulated tracking layer — real outcomes, simulated locations".
The placebo test is the most portable tool in this chapter. Whenever a model's inputs were built with any knowledge of its target (a feature engineered after the fact, a "risk score" computed by someone who saw the outcomes, a simulation conditioned on results), break that link deliberately and see whether the skill survives. If it doesn't, the skill was borrowed.
⚠️ Common pitfall: target leakage. A feature that was computed using the outcome, directly or indirectly, gives a model spectacular accuracy that vanishes in real use. In cricket analytics it creeps in through post-hoc labels ("pressure ball" defined by whether a wicket followed), season aggregates that include the match being predicted, and simulated layers like this one. The fix: for every feature, ask "could this value have been known before the outcome?", and run a placebo test when in doubt.
What DRS changed: a real natural experiment
Now return to real data with a question ball-tracking itself raises. When DRS arrived, did LBWs become more common? The popular story is that ball-tracking showed umpires how many balls hitting the front pad were going on to hit the stumps, so umpires grew more willing to give LBWs, especially to spinners. Cricsheet records every LBW. We can test the story.
India gives us a natural experiment. The BCCI declined to use DRS in India's bilateral series for years. The first home Test series in India with DRS was against England, starting at Rajkot on 9 November 2016. Before that date, Tests in India had no reviews. After it, they did. Tests elsewhere over the same years were mostly played with DRS throughout (not every series in the early 2010s used it, so treat the comparison group as "mostly DRS"). Compare the change in India with the change elsewhere and you have a difference-in-differences.
📐 Definition — difference-in-differences (DiD). For a quantity measured in a treated group and a comparison group before and after a change:
DiD = (treated after − treated before) − (comparison after − comparison before). The comparison group's change absorbs everything that shifted for both groups (styles of play, pitches, scoring), so the DiD estimates the change attributable to the treatment, if the two groups would otherwise have moved in parallel.
The by-year picture first (full script: code/07_lbw_and_drs.py), splitting Tests that involved India from all others:

📊 Figure (described): Two lines, LBW as a percentage of bowler-credited wickets in men's Tests by calendar year 2001–2026, real Cricsheet data. Blue (solid, circles) for Tests involving India, orange (dashed, squares) for all other Tests. A grey band marks 2009 (excluded as the DRS transition year) and a dashed vertical line marks November 2016. Both lines bounce between about 12% and 23% with no visible step at either marker. The India line is noisier because it rests on fewer Tests.
There is no visible step anywhere. The by-era numbers agree:
REAL: LBW share of bowler wickets, men's Tests, by era:
wickets lbw_pct bowled_pct caught_pct
group era
All other Tests 1: 2002-08 (before DRS) 3946 16.9 17.3 64.0
2: 2010 to 8 Nov 2016 6727 17.2 17.2 63.8
3: 9 Nov 2016 onward 9572 16.0 18.4 63.8
Tests involving India 1: 2002-08 (before DRS) 1427 19.8 18.4 59.5
2: 2010 to 8 Nov 2016 2108 18.3 18.3 61.2
3: 9 Nov 2016 onward 3143 17.1 19.3 61.4
REAL: LBW dismissals per 1,000 legal balls:
All other Tests 1: 2002-08 (before DRS) 246074 667 2.71
2: 2010 to 8 Nov 2016 434629 1159 2.67
3: 9 Nov 2016 onward 540073 1534 2.84
Tests involving India 1: 2002-08 (before DRS) 97286 282 2.90
2: 2010 to 8 Nov 2016 136829 386 2.82
3: 9 Nov 2016 onward 176531 537 3.04
Tests not involving India: LBW share 16.9% before DRS, 17.2% in 2010–16, 16.0% after. Tests involving India: 19.8%, 18.3%, 17.1%. LBWs per 1,000 balls barely move in either group. Case Study 1 sharpens the comparison to Tests played in India and attaches a bootstrap interval. The difference-in-differences there is −1.2 percentage points, with a 95% interval from −5.1 to +2.6. That is no detectable effect, and if anything the point estimate goes the wrong way for the popular story.
Two cautions keep this honest. First, Cricsheet's Test coverage before about 2006 is partial (the snapshot has 20 Tests in 2003 and 17 in 2004), so era 1 rests on fewer matches than the real calendar held. Second, the styles table covers only 18.9% of bowler wickets in 2002–08 against 97.7% after November 2016, so a pace/spin split of the early era is unreliable, and we report it only in the script output. What the data supports is narrow but clear: the share of Test wickets that are LBW did not rise detectably with ball-tracking. Perhaps DRS overturned wrong "outs" as often as wrong "not outs", or perhaps bowlers and batters adapted. Ball-by-ball data can't separate those stories. Review-level data, which isn't public, could.
🔄 Check your understanding 1. Why did the LBW model's AUC fall from 0.823 to 0.503 in the placebo test, and what does that say about the 0.823? 2. In the DRS natural experiment, what is the comparison group for, and what assumption does the design rest on? 3. Name two things real DRS ball-tracking models that the
wicket_zonesketch ignores.
Answer
- With shuffled labels, the simulated locations were conditioned on fake dismissals, so they carried no information about which balls were really LBWs. The 0.823 was entirely the simulation's knowledge of the outcome leaking back. It says nothing about how predictable LBWs are from real ball paths.
- It absorbs changes that hit all Test cricket at once (scoring, pitches, styles) so that the India-specific change can be attributed to India adopting DRS. The design assumes parallel trends: without DRS, LBW share in India would have moved like LBW share elsewhere.
- Any two of: where the ball pitched (outside leg = not out), where it struck the pad (in line or not, and whether a shot was offered), deviation after pitching (seam, swing, turn), the predicted path after pad impact and its growing uncertainty, bounce/height changes with pitch and pace.
15.9 What a franchise with the real feed sees
Everything in 15.3–15.8 ran on simulated locations. Here, concretely, is what changes when the locations are real. It is the list a franchise analyst would take into a meeting about whether a tracking-data subscription is worth paying for.
1. Execution, not just outcome. Real tracking separates the plan from the result. A death bowler's yorker that the batter digs out for a single and his half-volley that the batter mistimes to long-on are both "1 run" in Cricsheet. On a real feed, the first is a well-executed ball and the second a miss that got lucky. Over a season, execution rate (the share of intended yorkers that landed within, say, a metre of the crease) is more stable than economy and tells you which bowlers will keep conceding little. That is the bowling equivalent of Chapter 6's signal-versus-noise lesson. Process measures settle faster than outcome measures.
2. Expected wickets with real inputs. Chapter 14 builds an expected-wickets (xW) model from outcomes and from the simulated layer. With real pitch point, line, speed and deviation, an xW model can rate every delivery's danger, independent of whether the batter edged it or missed it, and so separate unlucky bowlers from lucky ones.
3. Batter-specific plans. Real beehives and pitch maps, split by batter, show where a batter scores and gets out. Matchup analysis in Chapter 11 works with bowler type. With tracking you can work with delivery type: this left-hander's strike rate against back-of-a-length balls angled across him from round the wicket. Plans built that way flow into the bowling rotation of Chapter 31 and the field placements of Chapter 32.
4. Conditions and the ball. Swing by over and ball age, seam movement by venue and session, turn by day of a Test: these are the variables Chapter 16 has to approach indirectly through outcomes and over numbers, and Chapter 18 through bowler types. Real tracking measures them directly.
5. Workload and fitness. Release speed across a spell, a match and a season is an early indicator a medical team watches. A fast bowler's pace dropping three km/h over his last ten overs may be telling you something the scorecard can't. That data is sensitive. It is about a person's body, and teams treat it accordingly.
6. Validation. A franchise that buys a model built on tracking data needs the 15.5 checklist more than anyone. What was it conditioned on? Does it survive a placebo? Does it change if you feed it a different season? Vendors' models are proprietary, and a good vendor will help you test them anyway.
🏏 Eye test: Wendell, asked what he would do with a real feed for the Pelicans, doesn't hesitate. "First thing: I'd check my bowlers' misses. Not the wickets. Every bowler remembers his wickets. I want to know where the ball went when he was trying to bowl a yorker and didn't. Was it a low full toss, which is fine, or a half-volley, which goes for six? That's the difference between a death bowler and a man who bowls at the death." Then he adds the caveat every coach adds. "And I'd still watch the video. The camera knows where the ball went. It doesn't know the batter had already decided to walk across his stumps, or that my bowler's front foot was landing wide because his ankle was sore." Tracking measures the ball. The eye test still watches the people.
🪞 Learning check-in
You are halfway through the bowling part of the book, and this chapter asked you to doubt a beautiful chart. Pause and take stock.
- What can you now do? You can compute a real fingerprint of how a bowler's wickets fall (stumps share), build length and variation tables, cluster deliveries, sketch LBW geometry, and, most importantly, audit a model's output with a recovery test, a placebo test and the five questions in 15.5.
- Where did you get stuck? If the recovery test felt like a magic trick, go back to the 🔍 box in 15.5 and work through Bayes' rule with two lengths and two outcomes on paper. If clustering felt arbitrary, rerun
06_clustering.pywithk=3andk=5and compare the cluster tables.- What surprised you? For many readers it is that the yorker's "dominance" disappeared with one switch, or that a real natural experiment (DRS) found nothing. Write down one belief about bowling you held before this chapter and say whether the real data in 15.2 or Case Study 1 changed it.
- Strategy check. Did you run the scripts, or only read the outputs? The audits only become yours when you change one line (a tilt value, a name, a seed) and watch the result move. Try one now before moving on.
Spaced Review
Before you read each answer, try to answer from memory.
From Chapter 6: small samples and noise. In 15.5, a correlation of ρ = −0.25 between simulated speed and real economy appeared across 54 bowlers. What would you expect the spread of such correlations to be if speed were pure noise? Roughly, the standard error of a correlation near zero is about 1/√(n − 1) ≈ 0.14 for n = 54, so values out to ±0.27 turn up about one time in twenty. A −0.25 is unremarkable noise, exactly as Chapter 6's "most of what you see in small samples is noise" would predict.
From Chapter 7: honest charts. What must every chart drawn from the simulated layer say, and why does this chapter suggest that label alone isn't enough? It must say "simulated tracking layer — real outcomes, simulated locations". This chapter shows that even a correctly labelled simulated chart invites readers to believe its patterns. The label tells you the locations are fake. It doesn't tell you that the length/outcome patterns were designed in. The chart's caption should say what the simulation was conditioned on, as the recovery-test figure does.
From Chapter 4 and Chapter 6: selection on the outcome. Rohit Sharma averages far more in ODIs India won than in those they lost (Anchor C). How is that trap related to the LBW model's 0.823 AUC? Both condition on the outcome and then "discover" a relationship with it. Splitting Rohit's innings by result builds the result into the comparison. The simulated layer builds the dismissal into the ball's location. In both cases the fix is to ask what the data would look like if the conditioning were removed.
Project Checkpoint: tracking
Nusrat's Crease package gets its tracking module this chapter: project/crease/tracking.py. It is built in two halves on purpose. One half is the analysis she would run unchanged on a real feed. The other is the audit that tells her how far to trust a simulated one. It imports charts.outcome_class and SIM_CAPTION from Chapter 7's module, so every tracking table and chart speaks the same language.
| Function | What it does |
|---|---|
track(balls, styles=None, seed=2026) |
simulate the whole competition, add outcome, rc, bw |
bowler_rows(tracked, name) |
one person's deliveries, pinned by bowler_id |
coverage(tracked) |
share of balls whose bowler type is real, not hash-guessed |
length_table, line_length_grid, variation_table |
the "which length/line/variation works" tables |
cluster_deliveries(tracked, method, k, features, k_range) |
GMM (BIC) or k-means (silhouette) delivery types |
wicket_zone(tracked) |
hitting / clipping / missing geometry |
implied_length_table(tracked, by, tilt) |
recovery test; tilt="flat" switches conditioning off |
signature_decomposition, name_sensitivity, subset_sensitivity |
the artefact audits |
dismissal_modes(balls, by) |
real dismissal mix and stumps share |
The checkpoint script (code/project_checkpoint.py) runs the whole module on the Women's Premier League, which is small enough for Nusrat's old laptop:
raw = load_deliveries("wpl")
print(tr.dismissal_modes(raw, "phase")) # REAL
wpl = tr.track(raw) # SIMULATED from here
death_pace = wpl[(wpl["phase"] == "death") & (wpl["sim_bowler_type"] == "pace")]
print(tr.length_table(death_pace))
print(tr.implied_length_table(death_pace, tilt="flat"))
1. REAL - WPL bowler-credited wickets by phase:
wickets bowled_pct lbw_pct caught_pct stumped_pct stumps_pct
phase
powerplay 258 25.6 11.2 60.1 3.1 36.8
middle 399 21.3 9.0 63.7 6.0 30.3
death 342 19.9 6.7 62.9 10.5 26.6
2. [SIMULATED] layer built on 20,642 WPL deliveries; bowler type real on 87.6%
3. [SIMULATED] WPL death overs, pace - observed simulated length table:
balls share_pct economy dot_pct wkt_pct
yorker 468 23.2 5.58 43.8 7.91
full 554 27.5 12.74 20.0 5.96
...
...and with the outcome tilt switched off:
balls economy dot_pct wkt_pct
yorker 562.0 9.71 30.2 7.31
full 483.0 9.68 30.4 7.45
good 364.0 9.65 30.7 7.59
short 406.0 9.62 30.9 7.73
bouncer 203.0 9.59 31.1 7.87
5. [SIMULATED] wicket-zone class of the 88 real WPL LBWs:
hitting 63
missing 19
clipping 6
The real WPL table is worth a second look. The stumps share falls from 36.8% in the powerplay to 26.6% at the death, the same direction as the IPL, while stumpings rise to 10.5% at the death as spinners bowl to batters charging down the pitch. The simulated half reproduces the recovery test's lesson in miniature: switch off the tilt and the yorker's apparent 5.58 economy becomes 9.71, level with every other length. (The small slope left in the tilt-off column comes from the bowler signatures. Bowlers whose names hash "fuller" happen to have slightly different real records in this small league.) The checkpoint also clusters the WPL's leading wicket-taker, Amelia Kerr (AC Kerr, 54 wickets), into two simulated delivery types and classifies the WPL's 88 real LBWs on the simulated beehive.
Where it plugs in later: Chapter 18 can reuse dismissal_modes for pace/spin and handedness splits; a bowling-plan optimiser (Chapter 31) could take length_table-style rates as inputs if a real feed were available; field placement (Chapter 32) works with simulated shot zones and needs the same audit discipline; and the Chapter 39 dashboard should show a tracking chart only with its simulation label and the coverage figure beside it.
Chapter Summary
What is real, what is simulated, and what each can tell you:
| Question | Real Cricsheet data can say | Simulated layer can say | Real tracking feed can say |
|---|---|---|---|
| How did a bowler's wickets fall? | ✔ dismissal mix, stumps share (Malinga 42.6% at IPL death; women's T20I bowled 31.6%) | nothing new (it copies the outcomes) | same, plus the ball that caused each |
| Which length is cheapest / takes wickets? | ✘ | ✘ only the toolkit's tilt (tilt off ⇒ every length ≈ 9.61 at IPL death) | ✔ length tables with real lengths |
| Does the slower ball work? | indirect footprints only | ✘ null by construction (9.53 vs phase 9.61) | ✔ with release speed and context |
| Line against left- vs right-handers? | ✘ | ✘ line ignores hand (22.9/36.3/25.7/15.1 vs 22.8/36.2/26.0/15.0) | ✔ |
| A bowler's delivery types? | ✘ | method practice only (clusters = the generator's bands) | ✔ clustering on release, length, line, speed, deviation |
| Is an LBW model skilful? | ✘ | ✘ AUC 0.823 collapses to 0.503 under placebo | ✔ with impact and predicted path |
| Did DRS change LBW frequency? | ✔ no detectable change (DiD −1.2 pp, 95% −5.1 to +2.6) | — | ✔ plus review-level detail |
Key metrics introduced: stumps share = 100 × (bowled + LBW) / bowler wickets · length-table rates (legal balls only) · difference-in-differences · AUC.
Decision framework: before you trust any tracking-based number
- Is it measured or simulated/imputed? If simulated, what was it conditioned on?
- Does the pattern survive with the conditioning switched off (recovery test) and with the target shuffled (placebo)?
- Is it stable to meaningless changes (name, row order, subset, seed)?
- What is the sample, and how big an effect would chance produce at that size?
- What would the eye test, the video and the coach add, and does the number contradict them for a reason you can state?
What's Next
Chapter 16 moves to the format where bowling is judged over hours, not balls: Test cricket. It extracts spells, tests whether pressure from dot balls really precedes wickets, and studies ball age and conditions, all with real data. Reverse swing stays where this chapter left tracking, discussed physically and through the patterns it leaves in real outcomes.