Chapter 15 Exercises

Difficulty: ⭐ recall and concepts · ⭐⭐ calculation and interpretation · ⭐⭐⭐ code and judgment · ⭐⭐⭐⭐ open research.

Every number quoted below comes from the chapter's real outputs. Where an exercise uses the simulated tracking layer, it says so. Remember the rule: a sim_ number is never a fact about a real player. Answers to Part B are in <details> blocks. Selected answers from the other parts are in Appendix I.


Part A — Conceptual ⭐

A1. List five things a ball-tracking system such as Hawk-Eye measures about a delivery that Cricsheet does not record. For each, name one bowling question it would help answer.

A2. Explain in two or three sentences why the share of a bowler's wickets that are bowled or LBW (the stumps share) is a "shadow" of length and line, and name one reason the shadow is blurred.

A3. The three questions in an LBW review concern where the ball pitched, where it struck the pad and whether it would have hit the stumps. For each, state what result makes the batter not out.

A4. What is "umpire's call", and why does a ball-tracking system need such a margin at all? Your answer should mention prediction error.

A5. The simulated tracking layer conditions length on the real outcome but chooses the slower ball without looking at the outcome. Explain, without numbers, what each design choice does to a "which variation works?" table.

A6. Define the recovery test and the placebo test in your own words. Which one would you use to check (a) whether a table of outcome rates by length was designed in, and (b) whether a model's predictive skill is borrowed from its inputs?

A7. Why does crease.tracking.track() have to be called on a whole competition rather than on a filtered subset? What general rule about stochastic pipelines does that illustrate?

A8. k-means and Gaussian mixtures both cluster deliveries. Give one way they differ in what they assume about a cluster, and one way they differ in how k is usually chosen.

A9. The chapter says "clustering finds the structure of whatever generated the data". Explain what that means for a cluster analysis on (a) the simulated layer and (b) a real Hawk-Eye feed.

A10. Give two reasons a real beehive of a left-arm spinner would look different from the simulated one in Figure 15.9.

A11. Renaming "JJ Bumrah" to "Jasprit Bumrah" turned him into a simulated spinner. Explain exactly which step of add_tracking caused this, why Irfan Pathan ("IK Pathan") is simulated as a spinner even without renaming, and what a careful analyst should check about the styles table before drawing any simulated chart of a named bowler.


Part B — Calculation & Interpretation ⭐⭐

B1. In the IPL death overs (2008–2026, real data), Malinga took 108 wickets: 35.2% bowled and 7.4% LBW. Bravo took 115: 13.0% bowled and 3.5% LBW. (a) How many of each bowler's wickets were bowled or LBW (round to whole wickets)? (b) Bravo took more death wickets in total. Does that make him the better death bowler? Use the economy figures (7.86 and 9.36) in your answer.

Answer

(a) Malinga: 0.352 × 108 ≈ 38 bowled, 0.074 × 108 ≈ 8 LBW, so 46 hitting the stumps (42.6%). Bravo: 0.130 × 115 ≈ 15 bowled, 0.035 × 115 ≈ 4 LBW, so 19 (16.5%). (b) Not on wickets alone. Bravo bowled more balls (1,385 v 1,117). Per ball, Malinga's strike rate (10.34 balls per wicket) beats Bravo's (12.04), and he conceded 1.5 fewer runs an over. Over a four-over death spell (24 balls) that is about 6 runs, a large margin at the death. Bravo's value lies in volume and durability. Malinga was the better per-ball death bowler in these data.

B2. Across the 25 IPL death specialists, Spearman ρ between stumps share and economy is −0.52, and between boundary % and economy is 0.95. A colleague concludes, "Hitting the stumps matters about half as much as avoiding boundaries." What is wrong with reading correlations that way? What would you compute instead?

Answer

Correlation size is not "importance". Boundary % and economy are almost the same quantity, since boundaries are most death-over runs, so ρ = 0.95 is close to definitional. Stumps share is also correlated with boundary % (ρ = −0.42), so the two overlap. To ask what stumps share adds, regress economy on boundary % and stumps share together (or partial out boundary %) and look at the stumps-share coefficient and its interval. With n = 25, expect a wide interval.

B3. In the simulated recovery test (IPL death overs, pace), the yorker's economy is 5.72 observed, 5.73 implied by the design, and 9.60 with the outcome tilt switched off. The real economy of all those balls is 9.61. What fraction of the yorker's apparent advantage over the average is explained by the tilt?

Answer

Apparent advantage = 9.61 − 5.72 = 3.89 runs an over. With the tilt off it is 9.61 − 9.60 = 0.01. So the tilt explains 3.88 / 3.89, effectively 100%. The remaining 0.01 is the bowler-signature term. On this layer the yorker's advantage is entirely designed in.

B4. For 36 IPL death pace bowlers, the R² of simulated yorker share is 0.25 on real outcomes, 0.78 on the name-hash signature, and 0.84 on both. (a) Why is the "both" figure less than 0.25 + 0.78? (b) If you replaced the hash with each bowler's real yorker share from a tracking feed, which R² would you expect to rise, and what would it then measure?

Answer

(a) R² values from separate regressions don't add unless the predictors are uncorrelated and the model is purely additive. Here the predictors overlap slightly, and 0.25 + 0.78 = 1.03 would exceed 1 anyway. (b) There would be no "signature" left: simulated yorker share would be the real share. The interesting R² would then be "real yorker share explained by real outcomes", a genuine measure of how much a bowler's yorker frequency shows up in his results.

B5. The LBW model on the simulated layer scores AUC 0.823 on held-out matches, and 0.503 after the dismissal labels are shuffled before simulation. Interpret both numbers in one sentence each, and say which one a franchise should care about.

Answer

0.823: a random real LBW ball gets a higher predicted risk than a random non-LBW ball 82% of the time, given locations that were drawn knowing which balls were LBWs. 0.503: once that knowledge is removed, the same locations rank LBWs no better than a coin. The franchise should care about the placebo. It shows the 0.823 says nothing about real ball paths.

B6. Case Study 1 reports LBW share of wickets in Tests in India at 23.6% (before 9 Nov 2016) and 21.2% (after), and elsewhere 16.8% and 15.6%. Compute the difference-in-differences and interpret its sign.

Answer

India change: 21.2 − 23.6 = −2.4 pp. Elsewhere: 15.6 − 16.8 = −1.2 pp. DiD = −2.4 − (−1.2) = −1.2 pp. Negative means LBW share fell slightly more in India after DRS arrived there than elsewhere. That is the opposite of the "DRS gave spinners more LBWs" story, though the 95% interval (−5.1 to +2.6) includes zero.

B7. Women's T20Is: bowled share is 22.9% when two full members play and 35.6% when an associate is involved. Of 22,754 bowler wickets, 7,298 come from full-member matches. Verify that the overall bowled share is about 31.6%.

Answer

Associate-involved wickets = 22,754 − 7,298 = 15,456. Weighted share = (7,298 × 22.9 + 15,456 × 35.6) / 22,754 = (167,124 + 550,234) / 22,754 ≈ 31.5%, matching the reported 31.6% after rounding. Two-thirds of the wickets come from the higher-bowled-share group, which drives the headline.

B8. Sophie Ecclestone's real women's T20I record by phase: powerplay 594 balls, 21 wickets, economy 6.42; middle 1,176 balls, 64 wickets, economy 5.46; death 747 balls, 69 wickets, economy 6.66. (a) Compute her bowling strike rate (balls per wicket) in each phase. (b) A captain says she is "a middle-overs bowler who can't be trusted at the death." Respond using the numbers.

Answer

(a) Powerplay 594 / 21 ≈ 28.3; middle 1,176 / 64 ≈ 18.4; death 747 / 69 ≈ 10.8 balls per wicket. (b) The numbers say the opposite on wickets: she takes a wicket roughly every 11 balls at the death, almost twice as often as in the middle overs, at an economy (6.66) only 1.2 runs an over above her middle-overs figure, in a phase where every bowler concedes more. Whether 6.66 is good depends on the death-over baseline in women's T20Is, which you should compute before answering finally. Death wickets also come partly from batters attacking, so some of the strike rate belongs to the phase rather than to her.

B9. When IPL 2026 was simulated on its own rather than as part of the whole IPL, 68.0% of its 17,527 deliveries changed simulated length band and the median pitch point moved 2.1 m. Two analysts publish "Bumrah's 2026 yorker percentage" from the layer, one from each approach. (a) Roughly how many of Bumrah's 2026 balls (294 legal balls in the season) would you expect to change band? (b) What does this tell you about publishing any such number?

Answer

(a) About 0.68 × 294 ≈ 200 balls would change band (some changes cancel out in the totals, so the published percentages may differ by less). (b) A simulated number depends on arbitrary pipeline choices (seed, input set, row order) as well as on the design. It is not a stable property of anything real and should not be published as a fact about a player. That is the book's rule for sim_ numbers.

B10. In the WPL checkpoint, the tilt-off length table for death-overs pace shows economy falling slightly from 9.71 (yorker) to 9.59 (bouncer), rather than being perfectly flat as in the IPL. The chapter attributes the slope to bowler signatures. Explain the mechanism in two sentences, and say why the effect is more visible in the WPL than in the IPL.

Answer

With the tilt off, a bowler's length probabilities still depend on her name-hash signature, so bowlers whose names hash "fuller" contribute more to the yorker band and those who hash "shorter" more to the bouncer band. If those groups happen to differ in real economy, the bands inherit the difference. The WPL has few bowlers and few balls (20,642 deliveries in total), so a handful of bowlers' real records can tilt a band. Across the IPL's hundreds of bowlers, such coincidences average out.


Part C — Code It ⭐⭐–⭐⭐⭐

General hints for Part C: start every script from the chapter's header block (BOOK = Path(__file__).resolve().parents[3], toolkit and project on sys.path, matplotlib.use("Agg")). Build the simulated layer once per competition with track(load_deliveries(code)), then filter. Pin named players with bowler_rows or cricdata.primary_id. Label every simulated figure with crease.charts.SIM_CAPTION. Use a unique filename prefix for scratch files (ch15_).

C1. Build this metric — stumps share with an interval. ⭐⭐ Extend code/01_real_fingerprints.py so the death-specialist table carries a 90% interval for each bowler's stumps share. Use a beta-binomial shrinkage from crease.uncertainty (fit the prior on all 25 bowlers' bowled+LBW counts out of wickets). Expected output: a 25-row table with columns wickets, stumps, stumps_pct, shrunk_pct, lo90, hi90, sorted by shrunk_pct. Does Malinga's lead survive the shrinkage?

C2. Analyze this match. ⭐⭐ Pick any IPL 2026 match. Using track() on the whole IPL first, draw pitch maps for the two bowlers who bowled the most death overs in that match. Add a caption that states (a) the simulated-layer label, (b) each bowler's sim_bowler_type_known, and (c) each bowler's name-hash length signature (tracking_sim._player_unit(names, "len")). Expected output: one figure with two panels and a three-line caption per panel.

C3. Evaluate this player — real fingerprint by phase. ⭐⭐ Write phase_fingerprint(balls, name) that returns, for one bowler pinned by bowler_id, a table with rows powerplay, middle and death and columns balls, economy, dot_pct, wickets, bowled_pct, lbw_pct, caught_pct, stumps_pct (real data only). Run it for Bumrah in the IPL and for Megan Schutt (ML Schutt) in women's T20Is. Expected output: two 3 × 8 tables. Which phase shows each bowler's highest stumps share?

C4. Optimize this strategy — a better slower-ball definition. ⭐⭐⭐ On the simulated layer, redefine a slower ball relatively: a pace ball whose sim_speed_kmh is at least 15% below that bowler's median sim_speed_kmh in the same match. Compare the share and outcome rates with the layer's sim_variation == "slower_ball". Expected output: a 2 × 6 table. Explain why the outcome rates still cannot be evidence about real slower balls.

C5. Settle this debate — the tilt sensitivity. ⭐⭐⭐ Copy toolkit/tracking_sim.OUTCOME_TILT into your script (do not edit the toolkit) and build three variants: (i) the toolkit's tilt, (ii) the yorker column halved, (iii) all tilts flat. Pass each as the tilt= argument to crease.tracking.implied_length_table for IPL death pace. Expected output: a 5 × 3 table of yorker-band economy and wicket % for each variant. Write two sentences on what this shows about any "the yorker is best at the death" claim made from simulated data.

C6. Predict this match — a placebo for xW. ⭐⭐⭐ Build a simple logistic "expected wicket" model on the simulated layer for IPL 2024–2026 deliveries, using sim_length (one-hot), sim_line (one-hot) and sim_speed_kmh. Report held-out AUC. Then shuffle wicket_kind before calling add_tracking on the whole IPL, refit, and report the placebo AUC. Expected output: two AUC numbers and a one-paragraph interpretation. (Hint: reuse the match-hash split from code/07_lbw_and_drs.py, which uses zlib.crc32 so the split is reproducible.)

C7. Build this metric — length consistency. ⭐⭐⭐ Implement length_iqr(tracked, by="phase") returning the interquartile range of sim_pitch_m per bowler and phase. Add a docstring that states what the metric would mean on a real feed and why it means little on the simulated one. Test it on the WPL.

C8. Analyze this match — the real shadow of a final. ⭐⭐ Choose the IPL 2025 final (RCB 190/9 beat PBKS 184/7) or the IPL 2026 final (RCB 161/5 in 18 overs beat GT 155/8). Using only real data, list every bowler-credited wicket in the match with its over, phase and kind, and compute each side's stumps share. Then write one paragraph: what can the dismissal list tell you about each attack's plans, and what would you need tracking data to confirm? Expected output: a wicket list (over, bowler, batter, kind) and a two-row summary table. No simulated columns may appear in this exercise.


Part D — Judgment & Format Transfer ⭐⭐⭐

D1. The stumps share is 35.0% in men's Tests and 24.8% in the IPL. A Test selector proposes picking white-ball bowlers with high IPL stumps shares for Test cricket because "they hit the stumps". Using what the chapter says about batter intent by format, argue for or against.

D2. You are offered a commercial dataset of "modelled" pitch locations for every ball in the Big Bash League, generated from ball-by-ball data and "a proprietary machine-learning model". Write the five questions from 15.5 as specific requests to the vendor, adapted to this dataset.

D3. Would the length table (15.4) be equally useful in Tests, ODIs and T20s on a real feed? Discuss which outcome column (economy, dot %, wicket %) matters most in each format and why. Use the chapter's format-by-format reading of the simulated tables as a template, not as evidence.

D4. Wendell says the camera "doesn't know the batter had already decided to walk across his stumps." Name two batter-side variables that would change how you interpret a real pitch map, and say whether either could be captured by tracking, by video tagging, or by neither.

D5. The DRS natural experiment found no detectable change in LBW share. Give two cricket mechanisms that could produce a real effect of DRS on decisions without changing the LBW share of wickets. What extra data would distinguish them?

D6. A broadcaster's graphic shows a bowler's pitch map for one spell with the caption "Relentless on a good length". Using the pitfall in 15.1, list three questions you would ask before accepting the caption as a description of the bowler, and explain how the answer to each could overturn it.

D7. The chapter's real-data proxy for yorker bowling is stumps share, and its main limitation is that it describes wickets rather than all balls. Propose a second real-data proxy built from Cricsheet fields only (for example, involving dot balls, byes and leg-byes, or the runs off balls that weren't hit for boundaries). State what it would capture, how it could mislead, and how you would validate it if a franchise gave you one season of real tracking data.

D8. A head coach asks you for "our bowlers' Hawk-Eye-style pitch maps" before the next match, and the only data you have is Cricsheet plus the simulated layer. Write the two-paragraph reply you would send: what you can provide honestly (real dismissal fingerprints, phase economy and dot %, matchup records), what you cannot, how you would label anything simulated, and what it would take to get the real thing.


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

M1. (Ch 6 + Ch 15) ⭐⭐ The speed–economy correlation on the simulated layer was ρ = −0.25 (p = 0.067) for 54 bowlers. Simulate the null distribution directly: replace each bowler's mean speed with a random draw (seeded) 2,000 times and record ρ each time. What fraction of draws give |ρ| ≥ 0.25? Relate the result to Chapter 6's message about noise in small samples.

M2. (Ch 7 + Ch 15) ⭐⭐ Chapter 7 requires the caption "simulated tracking layer — real outcomes, simulated locations". Propose and implement an extended caption for charts.pitch_map that also prints the layer's bowler-type coverage and the bowler's sim_bowler_type_known flag. Redraw Figure 15.8 with it.

M3. (Ch 4 + Ch 15) ⭐⭐⭐ Chapter 4 found Simpson's-paradox pairs in IPL economy by phase. Could stumps share show a Simpson's paradox between two bowlers across phases? Search the IPL for a real pair where bowler A has the higher stumps share in every phase but the lower overall, and explain the mechanism if you find one (or why it's rare if you don't).

M4. (Ch 11 + Ch 15) ⭐⭐⭐ Chapter 11 builds batter × bowler-type matchups. Add how the batter got out to its matchup table: for a batter of your choice, compare their bowled + LBW share against pace and against spin with the league baseline. What would a real tracking feed add to that matchup?

M5. (Ch 5 + Ch 15) ⭐⭐ Chapter 5 treats Test, ODI and T20 as three different sports. Use dismissal_modes on men's Tests, ODIs and T20Is restricted to full-member matches since 2016 and compare with the whole-snapshot table in 15.2. Which format's dismissal mix changes most when associates and early years are removed?

M6. (Ch 14 + Ch 15) ⭐⭐⭐ Chapter 14 builds an expected-wickets (xW) model in two versions, outcome-only and with simulated tracking features. Apply the placebo test from 15.8 to the tracking version: re-simulate with shuffled dismissal labels, refit, and compare held-out performance with the outcome-only version. Write a paragraph a franchise analyst could put in front of a head coach explaining which version, if either, is fit for use, and what would change with a real feed.


Part E — Research & Extension ⭐⭐⭐⭐

E1. Women's death bowling fingerprints. Build the 15.2 death-specialist table for the WPL and WBBL combined (pin players by id; use a lower ball threshold, and justify it). Compare the stumps-share/economy relationship with the IPL's ρ = −0.52 and discuss whether the women's game shows a different death-bowling profile. Report sample sizes honestly.

E2. A second natural experiment. Find another rule or technology change you can date precisely and that affected some matches but not others at the same time (for example, a change in playing conditions adopted in one competition before another). Design a difference-in-differences with Cricsheet data, run it, and report the estimate with a bootstrap interval resampling matches, as in Case Study 1.

E3. Build a better simulation (and audit it). Without editing the toolkit, write your own ch15_my_tracking.py that improves one weakness of the layer: for example, a line that depends on the bowler's arm and the batter's hand from the styles table, or a beehive height that depends on pace. Then rerun the five audits from 15.5 on your version and report which artefacts you removed and which new ones you introduced.

E4. The anatomy of a dismissal mix. The chapter found that bowled share in men's full-member T20Is fell from 22.1% (to 2017) to 18.8% (2018 on), while caught share rose from 66.0% to 71.9%. Investigate why. Candidate explanations include more aggressive batting, changes in which teams play most often, more pace or more spin, and changes in bat technology or boundary sizes. Test the ones you can with Cricsheet data (for example, by controlling for strike rate, team and bowler type) and say plainly which ones you cannot test. Write it up as a 1,500-word note with at least two figures, and end with the one piece of tracking data that would most change your conclusion.