Exercises — Chapter 29

Difficulty: ⭐ conceptual · ⭐⭐ calculation and interpretation · ⭐⭐⭐ code and judgement · ⭐⭐⭐⭐ research

All numbers come from the chapter's scripts, run on men's Tests in the Cricsheet snapshot (December 2001 – October 2026). Short answers to Part B are given here; selected answers to other parts are in Appendix I.


Part A — Conceptual ⭐

A1. Name the three clocks of a Test match described in Section 29.1. For each, give one cricket event that resets or advances it.

A2. Explain in two sentences why a 90-over "nominal day" is almost always a lower bound on the real day of play, and why that one-sided error is easier to work with than an error that can go either way.

A3. The raw curve shows runs per wicket falling from 37.41 on nominal day 1 to 28.27 on nominal day 5. List three reasons, other than the pitch wearing, why this curve would slope downwards or be distorted.

A4. In the logistic model of Section 29.3, adding innings number, wickets down and batter quality turns the pitch-age odds ratio from 1.072 to 0.849. A classmate says "so pitches get easier to bat on as they age". Explain what the coefficient is really measuring once those controls are in.

A5. What exactly does the paired design (innings 1 v 3, 2 v 4) hold fixed? Name one thing it does not hold fixed and say which way that would bias the estimate of the pure pitch effect.

A6. Why is spin's share of wickets at a given pitch age a poor measure of how much the pitch helps spin? What is the better measure?

A7. Define the unbowled-overs proxy for (a) a drawn Test and (b) a Test that ended in a result. Why is it a lower bound in case (b)?

A8. Distinguish a "time-starved draw" from a "full-length draw". Why does the distinction matter to a forecaster pricing the draw before a match?

A9. The session model's rate ratio for session 2 relative to session 1 is 0.995 (95% interval 0.962–1.029). Give two reasons why this doesn't prove that the morning session never favours bowlers.

A10. The chase model predicts fewer runs per over as the required rate rises. Explain why, and say what that implies when you use the simulator to evaluate an aggressive chasing strategy.


Part B — Calculation & Interpretation ⭐⭐

B1. A Test ended in a result on day 4 with 241 overs bowled. (a) What is its nominal last day on a 90-over clock? (b) Is the clock right? (c) What is its unbowled-overs figure?

Answer

(a) ⌈241 ÷ 90⌉ = 3. (b) No, it's one day early: the match lasted four days. (c) max(0, (4 − 1) × 90 − 241) = 29 overs lost (at least) on days one to three.

B2. In the paired design, the first 30 overs of innings 2 produced a wicket every 64.98 balls and the first 30 overs of innings 4 one every 55.15 balls (642 Tests). (a) Compute the paired deterioration ratio. (b) Express it as "wickets fall X% faster". (c) The bootstrap interval is 0.789–0.909. Could the true ratio plausibly be 1?

Answer

(a) 55.15 ÷ 64.98 = 0.849. (b) Wickets per ball rise by 1 ÷ 0.849 − 1 ≈ 18%; equivalently balls per wicket fall about 15%. The chapter rounds this as "about 15% faster" in balls-per-wicket terms; be explicit about which you mean. (c) No. The interval's upper end is 0.909, well below 1.

B3. In SENA conditions, spin's balls per wicket fall from 104.6 (pitch age 0–100) to 60.3 (300+), and pace's from 59.2 to 51.7. (a) Compute the percentage fall for each. (b) At which pitch age bucket would you expect a captain to be indifferent, wicket-wise, between a spinner and a seamer, if the trend continued? (c) Why might the captain still prefer the seamer?

Answer

(a) Spin: (104.6 − 60.3) ÷ 104.6 ≈ 42%. Pace: (59.2 − 51.7) ÷ 59.2 ≈ 13%. (b) The gap at 300+ is still 60.3 v 51.7, so the lines haven't met by 300+. Extrapolating the last step (spin −7, pace −1 per 100 overs) they'd meet beyond 400 overs, which is rare. (c) Runs per over, the new-ball position, the match situation (needing a wicket now v holding an end), and the specific bowlers' quality all matter beyond the average wicket cost.

B4. England hosted 154 Tests with 14.3% losing at least 90 overs; Bangladesh hosted 68 with 13.2%. (a) How many Tests is that for each? (b) Using a rough binomial standard error √(p(1−p)/n), is the difference between them meaningful?

Answer

(a) England 0.143 × 154 ≈ 22 Tests; Bangladesh 0.132 × 68 ≈ 9 Tests (the checkpoint confirms 9 of 68). (b) SEs: England √(0.143 × 0.857 ÷ 154) ≈ 0.028; Bangladesh √(0.132 × 0.868 ÷ 68) ≈ 0.041. The difference of 1.1 points is far smaller than either SE. Not meaningful.

B5. The session model forecasts 2.73 wickets per session on average for 2022–26, while the actual mean was 3.29. (a) By what percentage does it under-forecast? (b) If you multiplied every forecast by the ratio 3.29 ÷ 2.73, what would you be assuming?

Answer

(a) (3.29 − 2.73) ÷ 3.29 ≈ 17% below the actual mean (or the actual is about 20% above the forecast). (b) That the era shift is a uniform multiplier on wicket rates, the same in every state (innings, pitch age, wickets down). It's a crude recalibration; check whether the calibration curve becomes flat after it.

B6. From the outcome table: targets of 251–300 produced 24.7% wins, 28.4% draws and 46.9% losses (81 chases). A betting market prices that band at win 30%, draw 20%, loss 50% (no margin). Compute the multi-class Brier score of the market's forecast if all 81 chases had the band's average outcome mix. Compare with using the observed shares.

Answer

Brier = Σ shares × Σ(forecast − outcome)². For a "win" outcome: (0.30 − 1)² + 0.20² + 0.50² = 0.49 + 0.04 + 0.25 = 0.78. "Draw": 0.30² + 0.80² + 0.50² = 0.09 + 0.64 + 0.25 = 0.98. "Loss": 0.30² + 0.20² + 0.50² = 0.09 + 0.04 + 0.25 = 0.38. Weighted: 0.247 × 0.78 + 0.284 × 0.98 + 0.469 × 0.38 ≈ 0.193 + 0.278 + 0.178 = 0.649. With the observed shares as the forecast: 1 − (0.247² + 0.284² + 0.469²) = 1 − (0.061 + 0.081 + 0.220) ≈ 0.638. The market loses about 0.011 by under-pricing the draw.

B7. In the outcome map (SENA, pitch age 280), a target of 300 with 100 overs available gives P(win) 0.14, P(draw) 0.30, P(loss) 0.56; with 120 overs, 0.43, 0.00, 0.57. A captain choosing between these two declarations values a win at 1, a draw at 0.4 and a loss at 0 (from the declaring side's view, the chasers' loss is the captain's win). Which declaration does the captain prefer?

Answer

Declaring side's value = P(chasers lose) × 1 + P(draw) × 0.4 + P(chasers win) × 0. 100 overs: 0.56 + 0.30 × 0.4 = 0.68. 120 overs: 0.57 + 0 = 0.57. The 100-over declaration is preferred here, because the extra 20 overs raise the chasers' win chance (0.14 → 0.43) far more than the declaring side's win chance (0.56 → 0.57). A captain who values the draw at zero would see them almost equal. This is the trade-off Chapter 33 formalises.

B8. Galle's runs per wicket by innings are 40.86, 31.10, 29.77 and 23.96, and Lord's are 34.99, 29.13, 31.87 and 26.06. (a) For each ground, compute the ratio of innings 4 to innings 1. (b) Compute the ratio of innings 2 to innings 1. (c) What do the two ratios together suggest about when each ground's pitch changes most?

Answer

(a) Galle 23.96 ÷ 40.86 ≈ 0.59; Lord's 26.06 ÷ 34.99 ≈ 0.74. (b) Galle 31.10 ÷ 40.86 ≈ 0.76; Lord's 29.13 ÷ 34.99 ≈ 0.83. (c) At Galle, more than half of the first-to-fourth decline has already happened by the second innings: the pitch turns early. At Lord's the second-innings drop is smaller and the third innings is actually easier than the second (31.87 v 29.13), so there's no steady wear; the fourth-innings figure owes as much to match situation as to the surface. Remember these are raw figures; Case Study 1 shrinks them.


Part C — Code It ⭐⭐–⭐⭐⭐

C1. Build this metric ⭐⭐. Extend code/01_pitch_clock.py to report runs per wicket and run rate by nominal day separately for SENA and Subcontinent Tests, only for the top six batters (use the inferred batting positions from crease.test_batting.innings_table, or simply wickets down ≤ 5 at the ball). Output: a 5 × 2 table of runs per wicket. Does removing the tail change the day 1 → day 5 decline much? Expected shape: five rows (nominal days 1–5) and two columns (SENA, Subcontinent). Every value should be higher than the all-batters figure for the same cell, because tailenders are cheap wickets. If the day-5 figure rises more than the day-1 figure, the tail was inflating the raw decline.

C2. Analyze this match ⭐⭐. For any Test of your choice (find its match_id in load_matches("tests_male")), use add_clocks and deterioration_table(..., clock="pitch_age", width=30) to draw a "pitch worm": runs per wicket and spin share of balls in 30-over blocks across the whole match. Label the innings changes. Write three sentences comparing it with the snapshot average for the same conditions. Expected shape: one row per 30-over block (a five-day Test has up to 15), columns for runs per wicket, run rate and spin share. Expect empty or tiny cells near innings changes; merge blocks with fewer than three wickets before comparing, or say why you didn't.

C3. Evaluate this player ⭐⭐⭐. Pick two spinners with long Test careers in the typed bowlers (for example Nathan Lyon and Ravichandran Ashwin, or Rangana Herath and Shakib Al Hasan). For each, compute balls per bowler wicket by 100-over pitch-age bucket. Who improves most as the pitch ages? Report sample sizes in each bucket and shrink each bucket towards the all-spinner value for that bucket and conditions (use crease.uncertainty.shrink_normal). Expected shape: a table with one row per bowler × bucket (0, 100, 200, 300+) and columns for legal balls, wickets, raw balls per wicket and shrunk balls per wicket. Use a prior worth of about 20 wickets as a starting point and say how sensitive the ranking is to it. Remember Chapter 16's away/home lesson: a bowler with many home Tests in spin-friendly conditions will look better at every pitch age.

C4. Settle this debate ⭐⭐⭐. In Case Study 1 the sampling variance of a ground's log runs-per-wicket ratio was set to 2 × (1/w_early + 1/w_late). Test that factor of 2: for each of the 31 grounds, bootstrap matches (resample Tests with replacement, 1,000 times) and compute the variance of the log ratio directly. Plot bootstrap variance against 1/w_early + 1/w_late. What multiplier fits? Rerun the shrinkage with it and report which grounds move by more than 0.03. Expected shape: a scatter of 31 points with a fitted line through the origin; its slope is the multiplier. A slope well above 2 means the case study under-shrank the grounds; well below 2 means it over-shrank.

C5. Predict this match ⭐⭐⭐. Use fit_session_model trained on 2002–2021 and add a recency weight (pass freq_weights to the GLM, for example weight 2 for 2016–2021 sessions and 1 otherwise). Score on 2022–2026 as in code/05_sessions.py. Does the calibration of P(3+ wickets) improve? Report the decile table. Expected shape: a ten-row table like the chapter's (pred, actual, n) plus the mean forecast wickets per session on 2022–26 (the chapter's model gives 2.73 against an actual 3.29). Try at least two weighting schemes and report the one with the best log score, not the one whose calibration chart looks best to the eye.

C6. Optimize this strategy ⭐⭐⭐. Using simulate_chase and the chase model from code/06_chase_sim.py, find, for a SENA Test at pitch age 300, the smallest number of overs at which a target of 320 gives the chasing side a P(draw) below 10%. Then repeat with England's lost-overs history as the weather draw. How many more overs does the weather cost the declaring side? Expected shape: two numbers (overs needed without and with weather) found by scanning overs available from 80 to 200 in steps of 5, using at least 5,000 simulations per point and a fixed seed. Report the P(draw) curve for both, since the crossing point is sensitive to simulation noise near 10%.

C7. Build this metric ⭐⭐⭐. Add a "set batter" feature to the chase model: a flag for whether either batter at the crease has faced 50+ balls in the innings at the start of the over. (You'll need to compute it from the ball-by-ball data before over_states aggregates to overs.) Refit on 2002–2018, rerun the backtest on 2019–2026 with the weather draw, and report the Brier score next to the chapter's 0.3178. Hint: the simulator then needs to simulate the flag too. A simple rule: a set batter stays set until a wicket falls, after which the flag resets to 0 for 50 balls (about 8 overs). Write down the rule and its weaknesses before you look at the result.


Part D — Judgment & Format Transfer ⭐⭐⭐

D1. Would a "pitch age" clock mean anything in an ODI or a T20? Consider: one pitch, two innings, 100 or 40 overs. What would you measure instead, and which chapter of the book has already measured it? Guidance: think about what changes between the first and second innings of a white-ball match (dew, a softer ball, a slower surface under lights) and what you'd use as a control. A paired design exists here too: the same venue's first and second innings, but with different batting teams, so you'd lean on team ratings.

D2. A broadcaster wants to show "chance of a result" on screen during every Test session. The chapter's chase simulator over-predicts chasing-side wins in its mid-range. Would you put it on air? If yes, with what caveats; if no, what would you show instead? Guidance: weigh the direct model's better Brier score against its inability to update mid-innings. One defensible answer blends them: show the direct model's numbers at the start of the innings, then the simulator's movement from that baseline. Whatever you choose, say how you'd explain a 4% forecast that comes true, as at Headingley 2019 (Case Study 2).

D3. Wendell says: "Your paired design compares a team's openers on day one with the same openers on day three. But on day three they're batting to set up a declaration. You're measuring tactics, not the pitch." How much of the 11% (innings 1 v 3) could be tactics? Suggest a way to separate them using only Cricsheet data (hint: think about declared innings and run rates). Guidance: restrict to third innings that were not declared and began with the batting side behind or only slightly ahead (no licence to slog). If the paired ratio barely changes, tactics weren't driving it; if it moves towards 1, they were.

D4. The UAE drew 25.8% of its Tests without ever losing a full day; South Africa drew 8.2%. A colleague concludes "UAE pitches are flat". What else could explain the difference, and what data in this chapter would you check first? Guidance: the UAE's run rate by pitch age (run deterioration_table(balls, by=["conditions"]) and compare it with other buckets) and the draw taxonomy for UAE draws (time-starved or full-length?) come first. Then who played there: many of these were Pakistan's "home" Tests, so the same teams recur.

D5. "Morning sessions favour bowlers" is a belief about English conditions with a Dukes ball under cloud. Design a study, using Cricsheet plus a weather merge as described in Section 29.5, that would test it properly. What sample size would you need to detect a 10% effect on wicket rate? Guidance: a session has about 2.9 wickets. To detect a rate ratio of 1.10 with a Poisson comparison at conventional power you need on the order of a few thousand wickets in each arm. Then ask how many overcast English mornings the snapshot actually contains, and whether pooling across countries would answer the same question.


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

M1. With Chapter 10 ⭐⭐. Chapter 10 found the per-ball dismissal hazard for set batters jumps in overs 81–90 of an innings (balls per dismissal 88.3 in overs 61–80 to 66.0 in 81–90). This chapter's pitch age keeps counting through innings. Using add_clocks, check whether the jump also appears when you group by pitch age instead of over of the innings. What does your answer say about the ball clock versus the pitch clock?

M2. With Chapter 16 ⭐⭐⭐. Chapter 16 found that the last over of a pace spell is expensive (3.98 runs, 0.063 wickets) because captains end spells after bad overs. Could captain choices also distort the spin-share curves in Section 29.4? Describe a test using spells (extract_spells) that separates "captains bowl spinners because the pitch is turning" from "spinners take cheap wickets because they bowl at tailenders".

M3. With Chapter 6 ⭐⭐. Case Study 1 estimated the between-venue variance of the log ratio at 0.0087 against a mean sampling variance of 0.0140. Using Chapter 6's language, what share of the observed spread between grounds is signal? How many Tests would a ground need before its own data got 70% of the weight?

M4. With Chapter 20 and Chapter 24 ⭐⭐⭐. Chapter 20 builds in-match win probability for limited-overs cricket, and Chapter 24 pre-match models. Sketch a Test-match win/draw/loss model that combines (a) a pre-match team rating, (b) this chapter's chase simulator for the fourth innings, and (c) the session model for earlier innings. Where does each piece plug in, and where would calibration be hardest?

M5. With Chapter 22 ⭐⭐. Chapter 22 studies the toss. Using this chapter's paired deterioration ratios by conditions, argue for or against "win the toss, bat first" in (a) SENA and (b) the subcontinent. What other evidence from Chapter 22 would you need before advising a captain?

M6. With Chapter 23 ⭐⭐⭐. Chapter 23 shows how limited-overs cricket resets a target when rain interrupts. Test cricket has no such reset; lost time simply makes the draw more likely. Using the outcome map, estimate how much a 40-over rain loss on day five changes the declaring side's expected value (B7's scoring) for a 300 target set with 140 overs originally available. (The printed grid has columns at 120 and 150 overs; either interpolate or rerun simulate_chase at 140 and 100 overs.)


Part E — Research & Extension ⭐⭐⭐⭐

E1. The weather merge. Build a venue table (latitude, longitude, time zone) for the 31 grounds with 12+ Tests. Fetch daily precipitation for every Test's dates from a free historical source (Section 29.5 describes options; check each provider's terms). Test how well rainfall predicts the unbowled-overs proxy, then add expected rainfall to the chase simulator's lost-overs draw. Does the Brier score improve on 2019–2026 chases? Deliverables: the venue table as a CSV with a sources note (where each coordinate came from); a scatter of total match rainfall against unbowled overs with a fitted line; and the before/after Brier scores. Report honestly if the merge doesn't help. Reanalysis rainfall on a coarse grid may be too blunt for a single ground, and that is itself a finding.

E2. Multi-day cricket beyond the men's Tests. The snapshot has no women's Tests. Find out which public ball-by-ball sources cover women's multi-day Tests or men's first-class cricket (Cricsheet's own downloads list is the place to start), and describe what you'd need to repeat this chapter's paired-design analysis for them. If enough data exist, run it and compare the deterioration ratios with the men's Test figures. Deliverables: a one-page data audit (which matches, which years, how complete the ball-by-ball records are) before any analysis, then the paired table with bootstrap intervals. With small samples, intervals matter more than point estimates.

E3. A whole-match simulator. Extend test_sim to simulate a Test from the start of the third innings: the third-innings side bats and declares by a rule (for example, declare when the lead reaches L or after D overs), then the fourth innings uses simulate_chase. Calibrate L and D against real declarations (the declared flag) and compare your simulated P(win), P(draw), P(loss) with outcomes for 2019–2026. This is the bridge to Chapter 33. Deliverables: the declaration rule and how you fitted it, a calibration table for the three outcomes, and a comparison against a direct multinomial model on target, lead and overs remaining at the start of the third innings, the same kind of rival that beat the chase simulator in Section 29.7.