Chapter 8 Exercises — Beyond Batting Average

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

All numbers below come from the chapter's scripts run on the book's data snapshot (Cricsheet, through November 2026). Definitions are the toolkit's: balls faced exclude wides, runs are off the bat, dismissals exclude retired hurt and retired not out. Short answers to Part B are given inline; selected answers to other parts are in Appendix I.


Part A — Conceptual ⭐

A1. In one sentence each, explain which resource — balls or wickets — is scarcer in (a) a Test match and (b) a T20 match, and which traditional metric each scarcity favours.

A2. Why do balls faced exclude wides but include no-balls? Give the cricketing reason, not just the rule.

A3. Explain the difference between boundary-ball % and boundary-run %. Give an example of a batter for whom the two tell different stories.

A4. A commentator says, "Elite T20 batters score 55–65% of their runs in boundaries." Using the chapter, explain in three sentences why this statement is misleading, and what a more accurate statement would be.

A5. What is non-boundary strike rate (NBSR), and what batting skill does it capture that boundary-ball % does not?

A6. Why is runs per innings never larger than the batting average for a batter who has been dismissed fewer times than he or she has batted? When are they equal?

A7. The chapter says a metric must be stable from season to season to measure a skill, but stability is not sufficient. Explain, using boundary-run % as your example.

A8. What is "par" in SR+? Why does the chapter compute par by season and phase rather than just using the league's all-time strike rate?

A9. Why must every phase table carry the number of balls faced beside each metric? Use one example from the chapter.

A10. Cricsheet does not record shot direction. What, precisely, is real and what is simulated in the chapter's wagon wheels?


Part B — Calculation & Interpretation ⭐⭐

B1. MS Dhoni's IPL career: 242 innings, 142 dismissals, 5,439 runs. Compute his batting average and runs per innings, and the number of innings in which he was not dismissed. In one sentence, what does the gap tell you about his role?

Answer

Average = 5,439 / 142 = 38.30. RPI = 5,439 / 242 = 22.48. Innings without dismissal = 242 − 142 = 100. The 15.8-run gap reflects a finisher's role: he often came in late and was unbeaten when the overs ran out, so his average describes runs per wicket rather than what he typically contributed per visit.

B2. Heinrich Klaasen's IPL career: 1,262 balls, 2,104 runs, 146 fours, 120 sixes. Compute (a) strike rate, (b) boundary-ball %, (c) boundary-run %, (d) balls per boundary, (e) NBSR.

Answer

(a) SR = 100 × 2,104 / 1,262 = 166.72. (b) Boundary balls = 266; 100 × 266 / 1,262 = 21.08%. (c) Boundary runs = 4 × 146 + 6 × 120 = 1,304; 100 × 1,304 / 2,104 = 61.98%. (d) 1,262 / 266 = 4.74 balls per boundary. (e) Non-boundary runs = 800; non-boundary balls = 996; NBSR = 100 × 800 / 996 = 80.32.

B3. Verify the strike-rate identity for Klaasen using your B2 answers: SR = 100 × b × boundary value + (1 − b) × NBSR, where b = 0.2108 and boundary value = 1,304 / 266.

Answer

Boundary value = 4.902. First term = 100 × 0.2108 × 4.902 ≈ 103.33. Second term = 0.7892 × 80.32 ≈ 63.39. Sum ≈ 166.72 — Klaasen's strike rate exactly. About 62% of his strike rate comes from boundaries and 38% from everything else.

B4. Across their IPL careers, Kohli faced 835 death-overs balls at SR 188.38 with a par SR of 156.37; Suryakumar faced 468 at SR 178.21 with a par SR of 160.92. Compute each batter's death-overs SR+ and explain why the gap between them is smaller on SR+ than on raw SR.

Answer

Kohli: 100 × 188.38 / 156.37 = 120.5. Suryakumar: 100 × 178.21 / 160.92 = 110.7. The raw gap is 10.2 strike-rate points; the SR+ gap is 9.8 SR+ points, relative to slightly different pars. Suryakumar's death balls came in higher-scoring seasons (par 160.92 vs 156.37), so the adjustment credits him a little — but Kohli remains ahead.

B5. The regression of IPL strike rate on boundary-ball % and dot % gave SR ≈ 118.30 + 3.79 × (boundary-ball %) − 1.38 × (dot %). Predict the strike rate of a batter with boundary-ball % 20 and dot % 30, then of one with boundary-ball % 20 and dot % 40. What does the difference mean in cricket terms?

Answer

First: 118.30 + 75.8 − 41.4 = 152.7. Second: 118.30 + 75.8 − 55.2 = 138.9. Ten extra percentage points of dot balls, with boundary-hitting unchanged, cost about 13.8 strike-rate points — the difference between a very good and a median IPL batter.

B6. The year-to-year correlations (season-centred) were: boundary-run % 0.572, NBSR 0.539, boundary-ball % 0.464, dot % 0.414, RPI 0.378, SR 0.340, average 0.209. A batter's season average was 20 runs above the league's regular-batter mean. Roughly how far above the mean would you expect it to be next season if you used the correlation as a simple regression coefficient? Do the same for a strike rate 20 points above the mean.

Answer

Average: 0.209 × 20 ≈ 4.2 runs above the mean — most of the excess is expected to vanish. Strike rate: 0.340 × 20 ≈ 6.8 points above. (This simple use of r assumes similar spreads in both seasons; it captures the idea of regression to the mean, which Chapter 25 formalises.)

B7. Babar Azam's men's T20I card: 3,542 balls, 4,545 runs, dot % 31.73, boundary-ball % 15.61. Jos Buttler's: 2,885 balls, 4,345 runs, dot % 34.25, boundary-ball % 20.55. Which batter has the better "dot-ball engine" and which the better "boundary engine"? Which engine explains the gap in strike rate (128.32 vs 150.61)?

Answer

Babar's dot-ball engine is better (31.73% vs 34.25% dots); Buttler's boundary engine is much better (20.55% vs 15.61% boundary balls). Given §8.4's result that boundary-ball % explains most of the spread in strike rates, the 4.9-point boundary gap — worth roughly 3.8 SR points per percentage point in the IPL regression — accounts for the gap and more; Babar's lower dot % claws a little back.

B8. In the format table, the median established Test batter's boundary-run % is 51.94 and the median ODI batter's is 46.41. Explain why Test batters score a larger share of their runs in boundaries than ODI batters, even though they score much more slowly.

Answer

Boundary-run % depends on the denominator — all runs — as well as boundaries. In Tests, attacking fields guard the single and leave gaps on the boundary, and batters defend or leave many balls, so non-boundary runs are scarce. In ODI middle overs, the field is spread and singles are freely available, so running supplies a larger share of runs. The metric is a style marker, not a speed marker.


Part C — Code It ⭐⭐–⭐⭐⭐

C1. Build this metric — balls per dismissal (⭐⭐). Add a balls_per_dismissal column (balls ÷ outs) to crease.batting.batting_profile's output in your own script (don't edit the module). For IPL batters with ≥500 balls, print the top and bottom ten. Expected output: a 20-row table with batter, balls, outs, balls_per_dismissal, strike_rate; one paragraph on whether survival and tempo trade off (compute the correlation).

Starter: python from crease import batting as bt prof = bt.batting_profile(load_deliveries("ipl"), min_balls=500) prof["balls_per_dismissal"] = (prof["balls"] / prof["outs"].where(prof["outs"] > 0)).round(1) print(prof[["balls_per_dismissal", "strike_rate"]].corr()) What to look for: .where(prof["outs"] > 0) turns zero dismissals into NaN so you never divide by zero. Before you interpret the correlation, remember the finishers from §8.2 — a batter who arrives at over 17 has few balls per dismissal partly because his innings are short, not because he is easy to get out. Consider computing the correlation separately for batters whose balls are mostly in the powerplay versus mostly at the death (use phase_profile's phase_share).

C2. Evaluate this player — percentile cards (⭐⭐). Use percentile_card to produce cards for Shubman Gill, Suryakumar Yadav and Andre Russell among IPL batters with ≥500 balls. Combine them into one table (metrics as rows, players as columns). Expected output: a 6 × 3 table of percentiles and a three-sentence comparison.

C3. Analyze this match — innings strings (⭐⭐). Write a function innings_string(balls, match_id, batter) that returns the dot-and-digit string used in the chapter's hook (wides excluded). Apply it to the five highest individual IPL innings and print each string with its runs, balls, dots and dot %. Expected output: five strings and a five-row table.

Hint

filter to the match and batter, drop wides, sort by delivery_seq, then "".join("." if r == 0 else str(r) for r in sub["runs_batter"]). Runs of 4 that were not boundaries (run fours or overthrows) will appear as "4" too — decide whether to mark them differently (for example with a lower-case letter) and explain your choice. A good extension: add a second line beneath each string marking boundaries with B so the reader can see where the bursts came.

C4. Build this metric — SR+ against an opener-only par (⭐⭐⭐). Using formats.entry_positions from Chapter 5's module (or your own version), build a powerplay par from batters at positions 1–2 only, and recompute powerplay SR+ for the IPL openers in §8.6's 2024–2026 table. Expected output: the eight-row table with both SR+ versions and a sentence on how much the stricter par changes the ranking.

Hint

the par function needs one extra filter. Merge entry_positions onto the deliveries by (match_id, innings, batter), keep positions 1–2, and pass the resulting phase_par(...) Series to sr_plus(..., par=opener_par). Expect every SR+ to fall — openers' par is higher than the all-batter par in the powerplay only if openers score faster than the occasional early-collapse batter; check whether that is true before you assume it.

C5. Settle this debate — does dot % predict dismissal? (⭐⭐⭐). For every IPL batter-innings with at least 15 balls (2015–2026), compute the dot % over the first 10 balls and whether the batter was dismissed before the end of the innings. Fit a logistic regression (statsmodels) of dismissal on early dot %, controlling for phase of entry. Expected output: coefficient table, a plot of predicted dismissal probability against early dot %, and a verdict on the folk claim that "dots build pressure that leads to wickets". Be explicit about what the data cannot show (causation, bowler quality).

Hint

build one row per (match, innings, batter) with groupby, using cumcount() within each innings-batter group to number the balls faced, so you can take the first 10. Phase of entry is the phase of the batter's first ball. Use smf.logit("dismissed ~ early_dot_pct + C(entry_phase)", data=inn).fit(). Watch out for a selection effect: batters who were dismissed early never reached 15 balls and are excluded, and batters who survive long innings have more chances to be dismissed. Discuss how that bias cuts.

C6. Optimize this strategy — the boundary/rotation trade (⭐⭐⭐). Using the two-variable regression from §8.4 (SR ≈ −6.77 + 4.52 × boundary-ball % + 0.96 × NBSR), compute how many NBSR points a batter would need to gain to match the strike-rate gain from one extra percentage point of boundary balls. Then, using the real distribution (10th–90th percentile of each), argue which is the more realistic coaching target for a median batter. Expected output: the calculation plus a 150-word recommendation.

Hint

one boundary-ball percentage point is worth 4.52 SR points; one NBSR point is worth 0.96. So one boundary point ≈ 4.7 NBSR points. Now compare those with the spread of each skill among regulars: boundary-ball % runs from 14.12 (10th percentile) to 22.05 (90th) — a range of about 8 points; NBSR runs from 54.26 to 72.12 — a range of about 18 points. Ask: which is more coachable for a batter at the median — clearing the rope one ball in a hundred more often, or turning five dots in a hundred into singles? There is no single right answer; the recommendation should name the kind of batter for whom each is the better target.

C7. Build this metric — season SR+ for one batter (⭐⭐). Use sr_plus(balls, by=["batter", "year"]) to chart Virat Kohli's IPL SR+ by season (seasons with ≥150 balls). Expected output: a line chart in the style of Case Study 1's figure, and a paragraph on whether the 2024–2026 tempo increase in his raw strike rate survives the par adjustment.

Hint

sr_plus accepts any grouping, so bt.sr_plus(ipl, by=["batter", "year"]) followed by .loc["V Kohli"] gives the season series directly. Kohli's IPL 2024–2026 strike rate (154.70 in the book's impact-player-era table) is far above his career 134.80 — but the par rose too. The question is whether his SR+ rose by as much as his raw SR. Plot both on separate panels (never two y-axes on one chart).


Part D — Judgment & Format Transfer ⭐⭐⭐

D1. Would dot % be a useful metric for Test batters? Argue both sides, using the median Test dot % (74.13) and what a dot ball means in a Test. Propose a Test-specific alternative (hint: think about which balls are left alone versus defended, and what Cricsheet can and cannot tell you).

A strong answer includes: that a Test dot ball is the default outcome rather than a cost; that Cricsheet records a dot but not whether the ball was left, defended or beat the bat, so "dot %" mixes good judgment with being tied down; that balls per dismissal and the average already capture survival; and a proposal such as "scoring-shot rate against the old ball" or "dot-ball sequences longer than 12 balls per 100 balls faced" — with an honest note that "leave rate" would need ball-tracking or hand-charted data.

D2. SR+ divides by a par built from the same league. Would SR+ computed in the IPL and SR+ computed in the PSL be directly comparable? What would you need to adjust? (Preview of Chapter 26.)

A strong answer includes: SR+ measures a batter relative to his own league's average, so a PSL SR+ of 110 and an IPL SR+ of 110 mean "10% above the local field"; whether they are equal achievements depends on the strength of the two fields (bowling quality, pitches, overseas-player mix). A translation factor estimated from players who batted in both leagues is the standard fix.

D3. Eye test vs data. A coach says: "My number four's strike rate is low because I tell him to bat through the innings." Design a short analysis — using only Cricsheet data — that could test whether a batter's tempo changes with match situation (wickets down, required rate), and say what result would support the coach's account.

A strong answer includes: splitting the batter's balls by wickets down at the moment of each ball (computed cumulatively from is_wicket) and, in chases, by required run rate; comparing his strike rate and dot % in "two or fewer wickets down" against "four or more down" with the league's same-situation par; and recognising that if he is slow even when the platform is secure, the coach's explanation weakens. Also say what the data can't see: the instruction itself, the bowling he faced and the pitch.

D4. In ODIs, would you expect boundary-ball % to explain as much of the spread in strike rate as it does in the IPL (R² = 0.764)? State a prediction with a reason, then describe how you would test it with 05_format_comparison.py and 02_scoring_anatomy.py.

A strong answer includes: a prediction that boundary-ball % will still dominate but that NBSR/dot % will matter relatively more in ODIs, because the long middle overs reward rotation and ODI boundary rates are lower (median boundary-ball % 8.57 vs 17.74); and a test that swaps load_deliveries("odis_male") and a 1,000-ball threshold into the scoring-anatomy script and compares the R² values from the single-variable models.

D5. Ellyse Perry's WPL average is 64.80 with an RPI of 38.88; Sophie Devine's is 25.80 with an RPI of 23.89 but an SR+ of 122.7 (Perry 103.9). For a WPL franchise with a fragile middle order, which do you prefer, and would your answer change for a franchise with a deep middle order?

A strong answer includes: that Perry's high average partly reflects being unbeaten (15 dismissals in 25 innings) and her value lies in survival with par-plus tempo; that Devine adds tempo (SR+ 122.7) at the cost of more frequent dismissal; that a fragile middle order raises the value of an innings that lasts, while a deep middle order makes wickets cheap and tempo more valuable; and that both samples are small (731 and 426 balls) so the preference should be held loosely.


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

M1. (Chapters 4 and 8, ⭐⭐) Chapter 4's runs_above_par and this chapter's sr_plus start from the same par. Run both for IPL 2024–2026 (min 600 balls). Show algebraically that runs above par per 100 balls = (SR+ − 100) × par SR / 100, verify it numerically for three batters, and explain when the two measures could rank batters differently.

Hint

start from runs above par = runs − par runs. Divide by balls and multiply by 100, then substitute par runs = runs × 100 / SR+. The two rankings can differ when batters have very different par SRs — a death specialist and a powerplay opener with the same SR+ will have different runs above par per 100 balls because their pars differ.

M2. (Chapters 6 and 8, ⭐⭐⭐) §8.5's reliability study used a 120-ball threshold. Re-run it with thresholds of 60, 120, 240 and 360 balls (per season). Plot the year-to-year correlation of strike rate and average against the threshold. Connect the result to Chapter 6's discussion of sample size and measurement noise.

Hint

as the threshold rises, each season's metric is measured more precisely, so the correlation should rise — but the number of qualifying pairs falls and the sample tilts toward established, regular players (a different population). Report the number of pairs at each threshold beside the correlation.

M3. (Chapters 5 and 8, ⭐⭐) Using Chapter 5's format_baseline, compute the men's ODI death-overs par strike rate by year and build ODI death-overs SR+ for five finishers of your choice (min 300 death balls). Compare with their IPL death SR+ where available.

M4. (Chapters 7 and 8, ⭐⭐) Redesign Figure 8.5 (the SR+ heat map) following Chapter 7's principles. Specifically: grey out (or hatch) cells with fewer than 150 balls, sort rows by overall SR+, and add a one-line annotation for the most surprising well-sampled cell. Save as a PNG and write the 📊 Figure (described) text for it.

M5. (Chapters 1, 4 and 8, ⭐⭐) Chapter 1 told the true Kohli–Suryakumar story with raw phase strike rates. Rewrite that story in 150 words using only SR+, RPI and dot %, citing numbers from §8.2–8.6.


Part E — Research & Extension ⭐⭐⭐⭐

E1. The Hundred. The Hundred uses 100-ball innings with phases of balls 1–25, 26–75 and 76–100 (the toolkit labels them). Build the full metric table and SR+ for the men's and women's competitions (load_deliveries("hnd"), splitting by the gender column). Are the boundary-ball %/dot % relationships the same as in 20-over cricket? Write a 1,000-word report with at least three figures.

E2. A women's batting reliability study. Repeat §8.5's reliability analysis on women's T20 cricket, pooling women's T20Is, the WBBL, the WPL and The Hundred by calendar year (merge duplicate names carefully). Does the ranking of metrics by stability match the IPL's? What threshold do you need to get comparable sample sizes?

E3. Build a better scoring-shot metric. NBSR treats a single and a three the same per ball only by their runs. Design a "rotation index" that rewards turning the strike (odd runs) separately from accumulating (twos), using runs_batter values per ball. Test whether it adds explanatory power over NBSR for IPL strike rates, and whether it is stable season to season.


Notes for Part E

  • E1: The Hundred's phase labels are already in the phase column, but its "overs" are five-ball sets in places, so use legal_ball_index rather than over for any ball-count logic. Compare the dot %/boundary-ball % correlation with the IPL's (−0.00) before you compare levels — the shape of the relationship is the interesting result. Report men's and women's competitions separately; do not pool them.
  • E2: Pooling leagues inflates sample sizes but mixes different pars; centre each metric on its league-and-year mean, not just its year mean. Check names across files (the Sciver-Brunt case is not the only one) by searching for near-duplicates before grouping. A threshold of around 120 balls per calendar year is a reasonable starting point, but report the pair counts.
  • E3: Count, per batter, the share of balls with 1 or 3 runs (strike turned over) and with 2 runs (strike kept, runs gained). A useful test of any new metric is the one this chapter used throughout: does it add explained variance to strike rate after boundary-ball % is in the model, and is it at least as stable season to season as NBSR (r = 0.539)? If not, it is a description, not a measure.