Chapter 9 Exercises — Batting Impact and Context
Difficulty: ⭐ conceptual · ⭐⭐ calculation and interpretation · ⭐⭐⭐ code and judgement · ⭐⭐⭐⭐ open research
All numbers come from the chapter's scripts run on the book's data snapshot (Cricsheet, through November 2026). Short answers for Part B are in <details> blocks; selected answers for other parts are in Appendix I.
Part A — Conceptual ⭐
A1. In one sentence each, explain what runs needed, balls left and wickets in hand contribute to a chase's win probability. Which of the three does the required run rate ignore?
A2. State the threshold concept of this chapter in your own words, without using the letters "WP". Then give a cricket example in which a batter scores runs but lowers their side's chance of winning.
A3. WP v0 does not blur across wickets in hand. Construct a short argument for why blurring across wickets would bias the table, using the "what one wicket is worth" output (needing 50 off 36: 0.654 with six in hand, 0.511 with five).
A4. Explain the difference between a raw empirical win rate for a state and WP v0's estimate for the same state. Use the "100 needed off 60 balls with 8 wickets in hand" example (raw 0.207 from 29 states; neighbourhood 0.400 from 2,098 states; WP v0 0.413).
A5. Why does the chapter fit the Newlands table on every chase except match 936157? What would go wrong — and by roughly how much — if it did not?
A6. A friend says: "WPA is the perfect batting stat, because it measures exactly what matters — winning." Give two reasons why it is not a measure of batting skill.
A7. Explain why WPA, summed over all the batters and extras of the chasing side, must equal the result minus the chasing side's starting WP. What does this property let you check?
A8. The intent ratio is "forgiving early and damning late". Explain what that means, using the shape of the WP heat maps in Figure 9.3.
A9. WP v0 has a first-innings "par-score proxy". Describe the two steps it uses to turn South Africa's 79 for 1 after ten overs into a win probability of 0.602.
A10. Name three things a coach watching the match knows that WP v0 does not, and say for each whether ignoring it would make the chasing side's true WP higher or lower than the table says in a typical case.
Part B — Calculation and Interpretation ⭐⭐
B1. At Newlands, Sri Lanka's WP after over 15 was 0.649 and after over 16 was 0.246. Over 16 contained two wickets and two singles. (a) What was the WPA of the over for Sri Lanka? (b) Using the ball-by-ball output (Dickwella's dismissal 0.609 → 0.450; de Silva's stumping 0.426 → 0.282), what share of the over's damage came from the two wickets?
Answer
(a) 0.246 − 0.649 = −0.403. (b) The wickets cost 0.159 + 0.144 = 0.303, which is 0.303 / 0.403 ≈ 75% of the over's damage. The other quarter came from the dot balls and the two singles, which at a required rate of 13 an over also cost probability.
B2. WP v0 (7 wickets in hand) gives: need 40 off 24 → 0.69; need 40 off 12 → 0.04; need 30 off 12 → 0.27. A chasing side needs 40 off 24 with 7 in hand and scores 10 off the next over without losing a wicket. (a) Estimate the over's WPA. (b) If instead they scored 0 off the over, estimate the WPA. Which over "mattered more"?
Answer
(a) After 10 off the over they need 30 off 18. That state is not in the printed grid; it lies between 30 off 12 (0.27) and 30 off 24 (0.89), and running wp.predict(30, 18, 7) on the full men's table gives 0.754. The 40-off-24 start is 0.688 to three decimals, so WPA = 0.754 − 0.688 = +0.066: scoring exactly the asking rate (10 an over) gained a little: for a side that is already the favourite, keeping pace while the balls run out leaves the fielding side fewer chances to turn the match. (b) 40 off 18 gives 0.383, so a maiden's WPA = 0.383 − 0.688 = −0.305. The maiden mattered almost five times as much as the ten-run over — in the other direction.
B3. Sri Lanka's batters at Newlands: Prasanna 37 off 16, xR 24.46; Dickwella 68 off 51, xR 61.41; de Silva 19 off 27, xR 30.22. (a) Compute each RAE. (b) Compute RAE per 10 balls for each. (c) Which ranking — RAE or RAE per 10 balls — puts Dickwella closer to Prasanna?
Answer
(a) Prasanna +12.54, Dickwella +6.59, de Silva −11.22. (b) Prasanna +7.84 per 10 balls, Dickwella +1.29, de Silva −4.16. (c) Total RAE: Dickwella is about half of Prasanna. Per 10 balls he is about a sixth. Total RAE rewards the length of Dickwella's innings; the rate measure shows how much more efficient Prasanna was on the balls he faced.
B4. Dickwella's intent ratio was 87.94 with a strike rate of 133.33. What average asking rate (runs per ball, then runs per over) does that imply over the balls he faced?
Answer
Intent = 100 × runs ÷ asked ⇒ asked = 100 × 68 ÷ 87.94 ≈ 77.3 runs over 51 balls ≈ 1.52 runs a ball ≈ 9.1 an over. His own rate was 1.33 a ball (8.0 an over), so the asking rate rose while he batted.
B5. In IPL chases 2008–2026, 411 innings of 40+ runs were played at intent below 85 (mean WPA +0.044; chase won 18.9%), and 535 innings of 40+ runs at intent 115 or more (mean WPA +0.251; chase won 92.1%). (a) By what factor is the mean WPA larger in the second group? (b) Why is it misleading to conclude from these numbers alone that "batting faster wins chases"?
Answer
(a) 0.251 / 0.044 ≈ 5.7×. (b) Intent is measured against the asking rate, which depends on the target and on what partners did. A high intent ratio is easier to achieve in an easy chase (low asking rate) — and easy chases are won more often anyway. Some of the association is the chase's difficulty, not the batter's tempo. To isolate tempo you would compare innings that began in similar states.
B6. The out-of-time calibration table for WP v0 on 2023–2026 men's T20 chases has, in the (0.2, 0.3] bin, predicted 0.251 and observed 0.309 on 31,496 states. For IPL chases only, in the 0.2–0.4 band, predicted 0.290 and observed 0.531. (a) Compute the gap in each case in percentage points. (b) Which gap would worry you more if you were pricing in-play bets on IPL matches, and why?
Answer
(a) All men's T20: +5.8 points. IPL only: +24.1 points. (b) The IPL gap, by far: a model that says 29% when the true rate is about 53% would offer the chasing side at prices implying it is a big underdog when it is close to a coin flip — a systematic, exploitable error.
B7. Kohli has the most IPL chase runs (4,262) but ranks third for chase WPA (+4.28); de Villiers has 1,974 chase runs and ranks first (+5.12). Compute each batter's chase WPA per 1,000 runs. What does the difference suggest about when their runs came?
Answer
Kohli 4.28 / 4.262 ≈ 1.00 WPA per 1,000 runs; de Villiers 5.115 / 1.974 ≈ 2.59. De Villiers's runs were on average worth about two and a half times as much win probability as Kohli's — consistent with a finishing role in which runs come at high leverage, whereas a top-order batter's runs often come early, when each run moves WP only a little.
B8. In the Commonwealth Games match at Edgbaston (2022), Australia were 49/5 needing 106 off 76 balls. The women's table gave 0.033 and the men's table 0.152. (a) Express each as "about one in N". (b) Ashleigh Gardner's batting WPA on the women's table was +0.925. Roughly what would her WPA have been on the men's table if the chase's starting WP on that table were 0.59 and the other Australian batters' WPA total were about −0.15? Why does the choice of table change the size of her contribution so much?
Answer
(a) 0.033 ≈ one in 30; 0.152 ≈ one in 7. (b) On any table, Australia's batting WPA (with extras) sums to 1 − starting WP. On the men's table that is 1 − 0.59 = 0.41; if the others total about −0.15, Gardner's share is roughly 0.41 + 0.15 ≈ 0.56 — far below 0.925. The men's table thinks Australia were never in as much trouble, so there was less probability for Gardner to win back. A comeback's size is measured from the depth of the hole, and the hole's depth is a property of the model.
B9. WP v0's out-of-time Brier scores by stage of the chase were: overs 1–5, 0.1716 (required-rate-only model 0.1752); last 5 overs, 0.0717 (0.0958). (a) Compute WP v0's percentage improvement over the required-rate-only model in each stage. (b) Explain in cricket terms why the improvement is so much larger late in the chase.
Answer
(a) Overs 1–5: (0.1752 − 0.1716) / 0.1752 ≈ 2.1%. Last 5 overs: (0.0958 − 0.0717) / 0.0958 ≈ 25.2%. (b) Early in a chase, almost every side has nine or ten wickets in hand, so wickets add little information beyond the required rate. Late in a chase, wickets in hand vary from ten to one and decide whether a side can attack the asking rate at all — "52 off 24 with six in hand" and "52 off 24 with two in hand" are different matches with the same required rate.
B10. In IPL chases, Rohit Sharma averages 41.71 in won chases (70 innings) and 21.78 in lost ones (61), with mean WPA per innings of +0.063 and −0.028. Virat Kohli averages 65.86 in won chases and 26.02 in lost ones, with mean WPA +0.078 and −0.018. (a) Compute each batter's won/lost average ratio. (b) Compute the difference in mean WPA between won and lost chases for each. (c) Which measure makes the two batters look more alike, and why should neither be read as proof that either batter "causes" wins?
Answer
(a) Rohit 41.71 / 21.78 ≈ 1.92; Kohli 65.86 / 26.02 ≈ 2.53. (b) Rohit 0.063 − (−0.028) = 0.091; Kohli 0.078 − (−0.018) = 0.096. (c) The WPA difference makes them look almost identical; the average ratio makes Kohli look far more "win-dependent". Neither is causal: both splits condition on the result, and a side's WPA in a chase sums to the result minus its starting WP, so every batter's WPA is pulled up in wins and down in losses. A causal claim needs a comparison with what a replacement would have done — Chapter 13's question.
Part C — Code It ⭐⭐–⭐⭐⭐
C1. Build this metric — leverage index. ⭐⭐⭐ Baseball analysts weight situations by leverage: how much WP typically swings on the next ball. Add a function leverage(model, R, B, W) to a copy of crease.impact that computes the expected absolute change in WP on the next ball, using a simple outcome distribution (dot 35%, single 35%, two 8%, four 12%, six 5%, wicket 5% — state that these are illustrative assumptions). Input: the Newlands chase states. Output: a table with one row per ball (over.ball, R, B, W, leverage) and a line chart of leverage across the chase. Expected shape: leverage near 0.01–0.02 early, rising sharply after over 15.
C2. Analyze this match — the Mumbai–Delhi chase. ⭐⭐ Using impact.match_wp, produce the full-match WP curve (both innings) for Mumbai Indians v Delhi Capitals, IPL 2023 (match id 1359490), with a table fitted on IPL chases 2023–2026 excluding that match and a ParTable fitted on IPL first innings 2023–2026. Output: a figure like Figure 9.5 and a WPA table for both sides' batters. Check: Mumbai's batting WPA (with extras) must sum to 1 − their start-of-chase WP.
C3. Evaluate this player — Miller in chases. ⭐⭐ Using the era-matched IPL WPA from code/06_career_chase_wpa.py, list David Miller's ten highest-WPA chase innings (date, opponent, runs, balls, intent, WPA) and his ten lowest. Output: two tables and one paragraph: is his career chase WPA of +4.97 built on a few huge innings or on consistent small gains? (Hint: compare the sum of his top five with his total.)
C4. Predict this match — a table for one league. ⭐⭐⭐ Fit a WP v0 table on Big Bash League chases only (impact.load_t20(["bbl"])) and compare it with the pooled men's table at the seven states in the chapter's "same state, two tables" list. Then run the out-of-time test of code/03_calibration.py for the BBL alone (fit before 2023, test 2023–2026). Output: a comparison table and the two Brier scores. Question: does the league-specific table beat the pooled one out of time, given how thin it is?
C5. Optimize this strategy — tuning the smoother. ⭐⭐⭐ WPTable has three tuning knobs: sigma_runs, sigma_balls and prior_strength. Using the pre-2023 / 2023–2026 split, evaluate the Brier score on the test chases for every combination of sigma ∈ {1, 2, 4} (same for runs and balls) and prior_strength ∈ {5, 20, 80}. Output: a 3 × 3 table of Brier scores. Expected: differences in the fourth decimal place — and an explanation of why the smoother's settings matter far less than the era shift.
C6. Settle this debate — does the credit convention matter? ⭐⭐ Change _credit so that a non-striker run-out is charged to the striker instead, and so that byes and leg-byes are credited to the striker. Recompute the Newlands batting WPA. Output: a before/after table. Which batters change, and by how much? Write two sentences on which convention you prefer and why.
C7. Build this metric — first-innings WPA leaders. ⭐⭐⭐ Extend code/06_career_chase_wpa.py to the first innings using first_innings_wp and a ParTable (era-matched like the chase tables). Output: the top 15 IPL batters by total WPA (batting first + chasing) with 1,000+ balls. Who rises and who falls compared with the chase-only list?
C8. Analyze this match — a WPA "match note" generator. ⭐⭐ Write a function match_note(states) that takes the output of impact.match_wp and returns a three-sentence plain-English summary: the chasing side's WP at the start of the chase and its lowest and highest points (with the score at each); the single biggest swing (bowler, batter, event, points); and the top batting and bowling WPA. Input: match 936157 and match 1359490. Output: two notes. Check: every number in the note must be pulled from the table, not typed. This function is the seed of Chapter 37's auto-generated match notes.
C9. Evaluate this player — the intent profile of an opener. ⭐⭐⭐ For one IPL opener with 1,000+ chase balls (Kohli, Dhawan, Rohit Sharma, Warner or KL Rahul), compute the intent ratio for each chase innings and plot it against the chase's starting required rate (target ÷ 20). Output: a scatter with a loess or binned-mean line, and a two-sentence verdict: does the batter adapt their tempo to the size of the target? Caution: intent in a small target is easier to keep high; say how you deal with that.
Part D — Judgment and Format Transfer ⭐⭐⭐
D1. Would this work in ODIs? Sketch the changes needed to build an ODI WP v0: the state space, the number of chases available (count them with load_t20's logic adapted to 50-over matches), the treatment of DLS-revised targets, and the smoothing bandwidths. Which of the three shape rules still hold? Which new problem appears in the middle overs of an ODI that barely exists in a T20?
D2. Would this work in Tests? A colleague proposes "WPA for Test batters" using a two-outcome table keyed on (runs needed, overs left in the match, wickets in hand) for fourth-innings chases. Give three reasons it would mislead, and say what a Test win-probability model must include that WP v0 lacks.
D3. Eye test versus data. Re-read the Eye-test dialogue in §9.6. Wendell argues that de Silva's 19 off 27 was "his role". Write a paragraph for each side: (a) the case that WPA unfairly punished a batter following instructions; (b) the case that the instruction itself was the mistake. What data could you collect — that Cricsheet does not contain — to decide between them?
D4. Player of the match. Should player-of-the-match awards in T20 be given by WPA? Argue both sides, using Newlands (Dickwella the award winner; Imran Tahir and Prasanna the WPA leaders) and one other match from the chapter.
D5. The Hundred. The Hundred uses 100-ball innings, with sets of five or ten balls from one end. Which parts of WP v0 transfer directly (state, smoothing, shaping, WPA attribution), and which need rethinking? In particular, is "balls left" still the right time variable when a bowler can deliver ten consecutive balls? Write a half-page design note, then say how many Hundred chases the snapshot contains and whether that is enough to fit a standalone table.
D6. Betting markets and the eye test. In-play betting markets update their prices ball by ball, and often move before a wicket falls — for example, when a set batter is hit on the helmet or a key bowler limps off. WP v0 cannot do this. Using the Eye-test dialogue in §9.6 as a model, write a short exchange between Wendell and Nusrat in which Wendell names three things a market (or a coach) might price that the table cannot see, and Nusrat explains which of them could ever be added to a model using public data.
Part M — Mixed and Interleaved ⭐⭐–⭐⭐⭐
M1. (Chapters 6 and 9) ⭐⭐ WP v0 adds 20 pseudo-chases from the backstop to every cell. Using the beta-binomial shrinkage formula from Chapter 6, compute the shrunk estimate for a cell with 29 chases and 6 wins when the backstop says 0.43. Compare with the raw rate and with WP v0's 0.413 (which also borrows from neighbours). Which of the two smoothing layers moved the estimate more?
M2. (Chapters 4 and 9) ⭐⭐ Chapter 4 put a price on a wicket in runs (about 6.0 runs at halfway in an IPL first innings). Using wp.predict, compute the price of a wicket in win probability for a chase needing 85 off 60 with 8, 6 and 4 wickets in hand. Write a paragraph comparing the two currencies.
M3. (Chapters 7 and 9) ⭐⭐⭐ Using crease.charts from Chapter 7, build a two-panel "broadcast" graphic for any IPL 2026 chase: the worm on top and the WP curve beneath, sharing the overs axis, with the three biggest WPA swings annotated. Keep the book's colour conventions (team batting second in orange).
M4. (Chapters 8 and 9) ⭐⭐⭐ For IPL batters with 400+ chase balls, correlate career chase WPA per 100 balls with Chapter 8's SR+ in chases and with boundary-ball %. Which of Chapter 8's skill metrics best predicts chase WPA? Then split by era (2008–2022, 2023–2026) — does the answer change?
M5. (Chapters 5 and 9) ⭐⭐ Chapter 5 showed men's T20I run rates and balls per wicket for full members. Use those to argue, before running anything, whether the women's WP table should sit above or below the men's at the state "need 40 off 30 with 7 in hand". Then check against the chapter's output (men 0.840, women 0.564).
M6. (Chapters 3 and 9) ⭐⭐ Using the leaderboard tools of Chapter 3, produce a season-by-season table of the IPL's top three batters by chase WPA for every season from 2008 to 2026 (era-matched tables as in §9.8). How often is the season's top chase-WPA batter also the season's top run-scorer? What does that tell you about orange-cap winners?
Part E — Research and Extension ⭐⭐⭐⭐
E1. An ODI WPA for Anchor C. Build an ODI version of WP v0 (Exercise D1 is the design) from men's ODIs between full members, and use it to compute Rohit Sharma's ODI chase WPA in matches India won and lost. Compare with his chase batting average in wins and losses. Does WPA soften the "58.46 in wins, 36.01 in losses" story, sharpen it, or change the question? Report sample sizes and calibration.
E2. Women's franchise leagues. Fit separate WP v0 tables for the WBBL and the WPL and test whether they differ meaningfully from each other and from women's T20Is at matched states (use bootstrap resampling of matches, not states, to get intervals). Then produce a career chase WPA leaderboard for WBBL batters with 300+ chase balls. Who leads, and does the leaderboard agree with Chapter 8's SR+?
E3. A leverage-adjusted WPA. WPA rewards opportunity. Using your leverage function from C1, define a "context-neutral" batting value — for example, WPA divided by the average leverage of the balls faced, or ΔWP per ball standardised by leverage — and recompute the IPL career chase table. Does the finishers' dominance survive? Write up the method and results as a two-page note with one figure.