Chapter 40 Exercises — The Future of Cricket Analytics
Difficulty: ⭐ conceptual · ⭐⭐ calculation and interpretation · ⭐⭐⭐ code and judgement · ⭐⭐⭐⭐ research
All numbers come from the chapter's scripts (code/01_trend_extrapolation.py, 02_spin_and_womens_growth.py, 03_what_data_cant_see.py, the two case-study scripts and project_checkpoint.py) run on the book's data snapshot (Cricsheet, through November 2026). Short answers to Part B are in <details>; selected others are in Appendix I.
Part A — Conceptual ⭐
A1. Explain the difference between a confidence interval for a trend line and a prediction interval for next season's value. Which one should a franchise use when budgeting for next season's scoring levels, and why?
A2. The 2008–2022 line forecast IPL 2026's average first-innings total at 173.1 (90% interval 162.4–183.8); the actual was 195.7. In two or three sentences, explain why the interval failed, without using the word "bad".
A3. Name three things that could make IPL scoring in 2028 fall below the 2023–2026 level. For each, say whether a trend line could anticipate it.
A4. Section 40.3 distinguishes a change in behaviour (captains choosing to field) from a change in composition (spin's share of balls moving with the fixtures list). Give one more example of each from anywhere in the book.
A5. Why do the Chapter 15 audits (shuffled labels, name-hash sensitivity, subset sensitivity) remain necessary when tracking data is real rather than simulated?
A6. The match-workload proxy put 56.6% of pace bowlers' bowling weeks above an acute:chronic ratio of 1.5. Explain in plain language why this says more about the data than about the bowlers.
A7. List four layers of information that the 42-column delivery table doesn't contain, and for each name the technology or source that would supply it.
A8. "A language model is a machine for producing confident numbers from memory unless you give it the numbers." What practice from this book addresses that risk? Describe it in one sentence.
A9. Give two reasons why player workload or biomechanical data should not be published at the individual level, even when it is accurate.
A10. Why must a straight-line forecast of women's share of matches eventually fail? What kind of model would respect the constraint?
Model answers to A2, A3, A5, A6, A9 and A10
A2. The interval described uncertainty within the game of 2008–2022: the scatter of seasons around a gentle trend. It had no way to represent a change to the game itself. When the Impact Player rule arrived in 2023, the process generating the data changed, and an interval built on the old process was answering a question about a game that no longer existed.
A3. (1) A rule change, such as dropping or altering the Impact Player rule. A trend line can't anticipate it; only following the governing body's decisions can. (2) A change in conditions: different balls, slower pitches or bigger boundaries. A trend line can't anticipate it unless the change is announced and you model it explicitly. (3) Bowling adaptation: teams finding ways to defend against the deeper batting. A line can't anticipate it either, though a drift monitor would detect it after a few weeks. All three are breaks, not trends.
A5. Real feeds have their own artefacts. Calibration can differ between grounds, camera set-ups and seasons. Deliveries can be joined to the wrong rows. Derived fields such as a "projected impact point" come from a model you didn't build. Any of these can let a model score well for reasons that have nothing to do with cricket, and the audits test whether the signal survives when the real link is broken.
A6. The data records only matches. Most weeks of a fast bowler's year have no match in them, but they do have training, nets and domestic cricket that the data can't see. So the "usual" load the ratio compares against is artificially low, and almost any week with a match looks like a big jump. The number describes the gaps in the record, not the bowlers' bodies.
A9. It is personal health-related data, and publishing it can harm a player's contract or selection whether or not the inference drawn from it is right. And individual-level publication removes the context (why a load was high, what the medical staff knew) that makes the numbers interpretable at all. Accuracy doesn't make it consented or fair.
A10. A share is bounded between 0% and 100%, and a straight line isn't, so a line through a rising share eventually forecasts more than 100%. A bounded model (for example a logistic curve with an explicitly chosen ceiling), or a set of scenarios tied to decisions such as scheduling and funding, respects the constraint. The ceiling is itself an assumption to state, not a fact to estimate.
Part B — Calculation & Interpretation ⭐⭐
B1. The 2008–2022 IPL line had slope +0.91 runs per season. The 2023–2026 line had slope +3.95. If both were extended from 2026's actual (195.7), what would each forecast for 2030? Compare your answers with scenario A's and B's printed central forecasts (193.2 and 211.5) and explain any difference.
Answer
From 195.7 with four more seasons: +0.91 × 4 = +3.6 → 199.3; +3.95 × 4 = +15.8 → 211.5. Scenario B's printed 211.5 matches because the 2023–26 line passes almost exactly through 2026's value. Scenario A uses the all-seasons line (slope +1.88), not the old 2008–22 slope, and that line sits below 2026's actual (its 2027 forecast is 187.6), so it gives 193.2. Starting a line from the last actual value is a different model from refitting the line; the two disagree whenever the last point is far from the fitted trend.
B2. Sixes per 100 legal balls, 2015 → 2026: IPL 5.27 → 8.56; men's full-member T20Is 4.38 → 7.11. Compute the ratio for each and the absolute increase. Which measure better supports "the IPL leads the revolution", and which "the whole format is moving"?
Answer
Ratios: IPL 1.62 (rounded output 1.63), T20Is 1.62. Increases: IPL +3.29, T20Is +2.73 sixes per 100 balls. The absolute increase favours "the IPL leads" (it's higher and rose more in raw terms). The ratio favours "the whole format is moving" (the same proportional growth from different bases). Both are true; say which you mean.
B3. Women's share of matches was 6.6% in 2015 and 33.3% in 2025; women's matches were 35 and 607. Men's matches in those years were 495 and 1,214. By what factor did each gender's match count grow? Use your answers to explain why the share rose so fast.
Answer
Women: 607 / 35 = 17.3×. Men: 1,214 / 495 = 2.45×. Both grew, but women's matches grew about seven times as fast in proportion, from a much smaller base. The share rose because the women's count multiplied, not because men's matches fell.
B4. In 2026 the data holds 148 women and 369 men with 500+ T20 balls faced in the trailing three years. If a shrinkage constant of about 300 balls applies to strike rate in both (Chapter 11 found k_sr ≈ 302 for men and 268 for women), what weight does a batter with exactly 500 balls get on their own record? Does the gender gap in counts change the weight for an individual?
Answer
Weight = n / (n + k). With k ≈ 300: 500 / 800 = 0.625 (about 0.65 with women's k of 268). The gap in counts doesn't change an individual's weight, which depends on their balls. It changes how many players reach the reliable range, and how well the baseline (the prior they're shrunk toward) is estimated. A thinner pool means a noisier prior and fewer comparable peers.
B5. Bowler type is known for 97.7% of IPL legal balls (2023–26) and 24.2% of men's associate T20I balls; the associate T20Is had 356,622 legal balls. How many associate balls are untyped? How does that compare with the IPL's total of 66,607 legal balls in the same window?
Answer
Untyped: 356,622 × (1 − 0.242) ≈ 270,300 legal balls. That's about four times the IPL's entire legal-ball total for 2023–26. The missing information in associate cricket alone is several IPLs' worth of deliveries.
B6. In Case Study 1, IPL 2023's band half-width was 18.1 runs after 10 matches and 10.9 at season end; the final gap was +12.6. Why did the alarm take so long to stay on, and what would it have taken for the alarm to stay on from match 10?
Answer
After 10 matches the band was ±18.1, so the running average would have had to stay more than 18 runs above the line, which early-season swings didn't sustain. By season's end the band narrowed to ±10.9 and the gap (+12.6) cleared it only narrowly. To stay on from match 10, the season would have had to run consistently more than about 18 runs above the line, or the band would have needed to be narrower, which would mean less uncertainty about the line itself and more false alarms in ordinary seasons.
B7. In women's full-member T20Is, 2026 had 454 sixes. The top ten hitters' share was 41.9%; the rate without them rose from 1.05 (2025) to 1.60 per 100 balls faced. Roughly how many sixes did the top ten hit? What does the "without the top ten" rate tell you that the overall rate doesn't?
Answer
0.419 × 454 ≈ 190 sixes by the top ten, so about 264 by everyone else. The "without the top ten" rate shows the rise was broad-based: even excluding the leading hitters, six-hitting rose by about half. The overall rate alone could have been driven by a few players.
B8. Jasprit Bumrah bowled 6,524 legal Test balls, 1,111 ODI balls, 927 T20I balls and 1,539 IPL balls in the data since 2021. What share of his recorded match load came in Tests? His busiest recorded week (320 balls) began on 23 December 2024. Why is "320 balls in a week" an overstatement of that week's load, and an understatement of something else?
Answer
Total 6,524 + 1,111 + 927 + 1,539 = 10,101 legal balls; Tests 6,524 / 10,101 = 64.6%. The 320 is an overstatement for that calendar week, because the proxy dates every ball of a Test to the day the match started, and a five-day Test can run into the next week. It understates total physical load, because it counts no nets, warm-ups or training, and nothing about the intensity of each ball. The same number is too high for the week and too low for the work.
B9. Across ordinary seasons 2015–2022, Case Study 1's alarm fired in 2 of 8 and stayed on in 1 of 8. If you ran the same alarm on ten different competitions every season, roughly how many "stays on" alarms would you expect in an ordinary year with no real change? What does that imply for how you respond to a single alarm?
Answer
About 1 in 8 per competition-season, so roughly 10 × 1/8 ≈ 1.25 persistent alarms a year from chance and ordinary drift alone (assuming similar behaviour across competitions, which is a simplification). A single alarm should trigger an investigation (what changed: rules, venues, ball, players?), not an automatic model rebuild. Several competitions alarming at once in the same direction is much stronger evidence of a format-wide shift.
Part C — Code It ⭐⭐–⭐⭐⭐
C1. Predict this match (season level) ⭐⭐. Modify 01_trend_extrapolation.py to fit a two-segment model to IPL first-innings averages: separate intercepts before and after a break year, with the break chosen by minimising the residual sum of squares over candidate years 2015–2024. Report the chosen break, the two segment means, and a 90% prediction interval for 2027 under "the second segment continues flat". Expected output: one line naming the break year, a two-row table of segment means, and one interval.
C2. Build this metric ⭐⭐⭐. Write spin_share_adjusted(balls, matches) that reweights each year's Test spin share to a fixed mix of host conditions (use toolkit/venues.py to add conditions, and the 2015–2026 average mix as the fixed weights). Plot raw and adjusted spin share by year on one chart. Expected output: a table of year, raw %, adjusted % and the two-line figure. Does the 2026 drop survive?
C3. Evaluate this player ⭐⭐. Extend 03_what_data_cant_see.py's workload section to produce the weekly match-ball series for one women's pace bowler of your choice (pinned by registry id across women's T20Is, ODIs, WPL, WBBL and The Hundred). Print the competitions covered, the busiest week, and the longest run of weeks without a match ball. Add a one-sentence caveat to your output listing what the series can't see.
C4. Analyze this match ⭐⭐⭐. Using 03_what_data_cant_see.py's completeness table as a template, compute the same three completeness measures (named fielder on catches, bowler type known, batter hand known) for every T20 competition in the data by year, 2015–2026. Which competition's coverage improved most? Expected output: a competition × year table of bowler-type coverage and a sentence naming the biggest improver.
C5. Optimize this strategy ⭐⭐⭐. Build the drift alarm from Case Study 1 as a function drift_alarm(series, history, z=1.645) and test it on men's full-member T20I first-innings totals by calendar year (fit on years before the test year). In which years since 2015 does it fire, and does it fire in 2026 (which jumped to 184.1 in the book's season tables)? Report false-alarm counts and discuss whether z = 1.645 is a sensible threshold for a monitor that runs every season.
C6. Settle this debate ⭐⭐. "Women's T20 six-hitting in 2026 was a World Cup effect." Using case_study_02.py, compute the six rate in 2026 for World Cup and non-World Cup matches for the same teams only (teams that played in both). Does the answer change the conclusion of Case Study 2?
C7. Build this metric ⭐⭐⭐. Implement the "grounding score" from the chapter's 📋 Try it: grounding_score(text, facts, tol), where facts is a list of (player, metric, value) tuples computed with crease.storytelling or crease.explore for one real 2026 match. Extract numbers from the text with a regular expression, match each to a fact by player and metric where possible, and return (score, unmatched_numbers). Test it on a paragraph you write with two deliberate errors. Expected output: a score below 1.0 and a list containing exactly your two planted numbers.
Hints and expected shapes for Part C.
- C1: candidate break years give a sum-of-squares curve. Print it, because a flat curve means the data can't place the break precisely, which is itself a finding.
- C2: keep only years with at least 85% typed Test balls; give each adjusted value the number of balls behind it.
- C3: pin the bowler with cricdata.primary_id(balls, name, role="bowler") on a competition where she bowled a lot, then filter every women's competition by that id.
- C4: The Hundred's balls are in 100-ball innings; completeness rates don't depend on the format, so include it.
- C5: the men's T20I series has fewer matches per year in some early years, so print the number of matches beside every alarm.
- C6: restrict to teams with at least 120 legal balls in each event type, or the comparison will rest on a handful of overs.
- C7: be explicit about rounding. "SR 217.6" should match a fact stored as 217.60.
Part D — Judgment & Format Transfer ⭐⭐⭐
D1. The chapter's diffusion table shows the BBL's average first-innings total flat between 2019–22 and 2023–26, while the WBBL rose 14.7 runs. List three candidate explanations, then say what data (public or not) would separate them. Would the same analysis work for the women's and men's Hundred, given its 100-ball format?
D2. A broadcaster wants a "fatigue meter" on screen for fast bowlers, built from public data. Using 40.5 and the ethics checklist in project/ROADMAP.md, write a short reply (about 150 words) recommending what they could show honestly, and what they should not.
D3. Would a trend-extrapolation model of Test scoring face the same rule-change problem as the IPL? Use the Test series in the chapter (run rates, draws, England's declarations) and name at least one change in Test cricket's conditions or incentives that could act like a "break".
D3b. Section 40.3 found that IPL captains field first in 82.4% of tossed matches in 2026, yet the decision carries no information about the result. Would you expect the same "spread without an edge" pattern in Tests, where Chapter 22 found toss winners won 54.2% of decided matches? Explain what would have to be true about Test conditions for choosing to bat or bowl to carry real information, and how you would test it with the snapshot.
D4. Wendell says hand-charting (R6) teaches more than a live bowling planner (R10). Argue the opposite case as well as you can, then say which you'd build first for an academy side like his and why.
D5. The chapter argues that public cricket analytics' realistic future is "better outcome data, richer reference layers, documented hand-charted datasets, and clear labels", not a public release of tracking data. Make the strongest case you can that tracking data should be made public for international matches (consider umpiring transparency, fan engagement and research). Then name the strongest objection and say how a partial release (for example, aggregated per bowler per match) might meet it.
Part M — Mixed / Interleaved ⭐⭐–⭐⭐⭐
M1. (With Chapter 6) ⭐⭐. About 92% of the spread in IPL team-season records is luck. Use that to explain why "teams that embrace data will outperform those that don't" would be hard to see in IPL tables even if it were true. How many seasons might you need before a real edge showed through? Sketch the calculation, without running it.
M2. (With Chapter 20) ⭐⭐⭐. WP v1 used a scoring-environment feature (env_par) to survive the 2023 shift. Design an analogous feature for Chapter 40's season-level trend model: something known before the season that would let the model anticipate a level change. Is there any such feature for a rule change announced in advance?
M3. (With Chapter 15 and Chapter 17) ⭐⭐. Both chapters used simulated layers for things the public record lacks (pitch locations; drops and runs saved). For each, describe how ROADMAP item R6 (a hand-charting kit) would replace the simulation for a small sample, and which of Chapter 15's audits you would run on the hand-charted data.
M4. (With Chapter 34) ⭐⭐⭐. Chapter 34 found that prices ranked realised value about as well as the book's model did (Spearman 0.325 v 0.306). Combine that with the Moneyball lesson in 40.3 (edges shrink once others see them). If every franchise adopted the book's auction model, what would you expect to happen to the price of base-price death bowlers, and how would you test it with the 2027 auction?
M5. (With Chapter 11) ⭐⭐⭐. Real tracking would let you split de Kock's record against off-spin by delivery type (turning in v holding its line). Using Chapter 11's shrinkage logic (k_sr ≈ 302 balls for men), estimate how much weight a 150-ball cell would get on its own record, and argue whether the finer split is worth having.
M6. (With Chapter 22 and Chapter 29) ⭐⭐. Section 40.6 lists "time of day, session, weather" as missing from the record, inferred in Chapters 22 and 29. Describe how each chapter worked around the gap (the inferred evening slot; the nominal day and the lost-overs weather proxy). For one of them, say what single extra column, if Cricsheet added it, would most improve the analysis, and why.
Part E — Research & Extension ⭐⭐⭐⭐
E1. The women's power-hitting question. Take Case Study 2 further: build six-rate, boundary-ball % and strike-rate trends for women's T20 leagues in the data (WPL, WBBL, women's Hundred), 2016–2026, with match-bootstrap intervals. Is 2026's international jump visible in the leagues? Write a 1,000-word piece with two figures, labelling every sample size.
E2. The associate audit. Choose one associate nation in the men's or women's T20I data. Compile a sourced styles extension for its 15 most-used bowlers (public profiles; give each row a source and a confidence grade), then rerun one of Chapter 18's spin-v-pace analyses for that nation's matches. Report coverage before and after, and what changed.
E3. A season forecast you publish in advance. Before the next IPL season starts, publish (in your portfolio) a forecast of the season's average first-innings total with a 90% prediction interval, stating your model and assumptions. After the season, score it against the actual and write up what you learned. This is the only kind of forecast that counts.
Guidance for Part E. Each of these is a portfolio piece in the sense of Chapter 38: a question, real data, code you can share, an honest interval and a plain-language conclusion that says what the analysis can't show. Before you start, write down what result would surprise you. If the analysis can't produce a surprise, it isn't a question yet. For E3 in particular, publish the forecast with a date stamp before the first ball. A forecast written after the season has started isn't a forecast, however good the model.