Chapter 38 Exercises — Building a Cricket Analytics Career

Difficulty: ⭐ conceptual · ⭐⭐ calculation and interpretation · ⭐⭐⭐ code and judgement · ⭐⭐⭐⭐ open-ended research

Every number you need is in the chapter or comes from running the chapter's scripts (code/01_scouting_report.py, code/02_interview_case.py, code/03_field_landscape.py, code/project_checkpoint.py, and the two case-study scripts). Where an exercise asks for a new number, compute it. Don't estimate it from memory.


Part A — Conceptual ⭐

A1. The chapter describes four kinds of match-cycle work that appear in both the Durham and Glamorgan job descriptions. List them, and for each one name a Crease module that helps with it.

A2. Explain the difference between a performance analyst, a data journalist, a trader/quantitative analyst and a sports data scientist, as this chapter defines them. Give one example of a real job title that might mix two of these families.

A3. "Matches recorded per year" rose from 530 in 2015 to 1,821 in 2025 across the chapter's three groups. Give two reasons this is a reasonable proxy for demand for cricket analysis and two reasons it is not a count of jobs.

A4. Why does the scouting report resample innings rather than balls when it builds its 90% interval for SR+? What would go wrong if it resampled balls?

A5. The chapter says a percentile "means nothing until you say among whom". Write the full peer-group definition that should accompany Suryavanshi's "99th percentile strike rate".

A6. In the interview case, the carry-over model puts 0.312 weight on last season and 0.126 on the season before. What happens to the remaining weight, and what is the name of the idea behind it?

A7. List three things the chapter says a self-reported salary website cannot tell you about a specific cricket analyst role.

A8. Why is a portfolio of thirty notebooks weaker than three finished scripts with figures and write-ups, even if the notebooks contain more analysis?

A9. Name the three conduct failures from §38.10 that can end an analyst's career faster than a bad model. Which one does this book's 🧪 labelling rule protect against?

A10. The BCCI's March 2026 RFP invited entities, not individuals, to provide performance analysis services for India's national teams, and set eligibility conditions on turnover and years of experience. What does a tender like this tell you about (a) how analysis work can be organised, and (b) a route into the field other than being hired directly by a team?

A11. The chapter's first scouting report flags that it says almost nothing about Suryavanshi at the death (10 balls), and its interview case says the projection ignores age because Cricsheet records no dates of birth. Why is volunteering limitations like these a strength in a portfolio or interview, not a weakness? Give one more limitation of the scouting report that you would volunteer.


Part B — Calculation & Interpretation ⭐⭐

B1. Richa Ghosh faced 174 balls of off-spin and scored 287 runs (raw SR 164.9). Her expected SR against off-spin is 151.5 and the women's prior strength is k = 268 balls. (a) Recompute the shrunk SR. (b) What fraction of the raw-minus-expected gap does shrinkage remove? (c) How many balls would she need to face for shrinkage to remove only a quarter of the gap?

Answer

(a) 100 × (287 + 268 × 1.515) ÷ (174 + 268) = 100 × (287 + 406.0) ÷ 442 = 156.8. (b) k ÷ (balls + k) = 268 ÷ 442 = 60.6% of the gap (164.9 − 151.5 = 13.4 points, shrunk by about 8.1). (c) Solve 268 ÷ (n + 268) = 0.25, so n = 804 balls.

B2. Use the carry-over model SR+(N) = 58.46 + 0.312·SR+(N−1) + 0.126·SR+(N−2) to project 2027 SR+ for (a) Jos Buttler (2025: 107.6, 2026: 98.9) and (b) Mitchell Marsh (2025: 109.7, 2026: 104.9). Which of the two projections sits closer to his 2026 value, and why?

Answer

(a) 58.46 + 0.312 × 98.9 + 0.126 × 107.6 = 58.46 + 30.86 + 13.56 = 102.9. (b) 58.46 + 0.312 × 104.9 + 0.126 × 109.7 = 58.46 + 32.73 + 13.82 = 105.0. Marsh's projection (105.0) is very close to his 2026 value (104.9). Buttler's (102.9) sits about four points above his 2026 value (98.9). Both are pulled toward the league-regular mean of about 105. Marsh is already almost there, while Buttler's 2026 is below it and his 2025 was above it, so both forces push his projection up.

B3. Rahane's change from 2025 to 2026 was −12.9 SR+ points, with a 90% bootstrap interval of −27.7 to −0.4 and P(change < 0) = 0.956. Write two sentences for a coach: one that's accurate and one that overstates the evidence. Explain what's wrong with the second.

Answer

Accurate: "His 2026 scoring rate was probably genuinely below his 2025 rate, by somewhere between almost nothing and about 28 SR+ points." Overstated: "He's definitely declined by 13 points." The interval's upper end nearly touches zero, so "definitely" is wrong, and the point estimate gives no information about the future, which is what the coach is really asking about.

B4. Among 58 IPL batters whose SR+ fell by at least 15 points in one season, the mean change the following season was +9.8 and 75.9% rose. A colleague says: "So three-quarters of slumps are flukes." Is that the right reading? What else could explain a rebound?

Answer

Not quite. A rebound is consistent with the slump having been partly noise, but it doesn't say three-quarters were entirely flukes. Other explanations: role changes reversing (a batter moved back to his best phase), recovery from injury, and selection effects. Only batters who kept their place (≥ 150 balls in the third season) are in the sample, so players whose slump was real and who were dropped never appear. That survivorship makes rebounds look more common than they are for every slumping player.

B5. The two verified county adverts published £28,000–£30,000 (Durham, 2025) and £28,000 (Glamorgan, 2026). A friend says "cricket analysts in England earn £28–30k". List three ways that statement overreaches the evidence.

Answer

(1) Two adverts, both team-side county performance-analysis roles. They say nothing about media, betting, technology or national-board roles. (2) They're advertised starting salaries for specific posts, not what incumbents earn, and they say nothing about bonuses or progression. (3) Dates matter: a 2025 advert and a 2026 advert in a changing field aren't "the" salary. "Two county performance-analyst adverts in 2025–26 published about £28–30k" is the claim the evidence supports.

B6. Suryavanshi's phase table shows 416 powerplay balls (SR+ 143.0), 182 middle-overs balls (144.7) and 10 death balls (171.1). Which of the three SR+ values would you put in an auction note, and which would you leave out? Justify with sample size.

Answer

Report powerplay and middle overs (416 and 182 balls). Both are well above par and broadly consistent with each other. Leave out the death figure or flag it explicitly: 10 balls is far too few to support any claim, and a single six moves it by 60 SR points.

B7. Women's matches were 6.6% of the snapshot's recorded matches in 2015 and 33.3% in 2025. Women's T20Is in the snapshot went from 36 matches (2016) to 415 (2025). Name one reason the growth in recorded women's T20Is could exceed the growth in women's T20 cricket actually played at the top level.

Answer

Recording and status changed as well as playing volume. The ICC's 2018 decision to give T20I status to all members turned many associate-nation matches into official T20Is, and Cricsheet's coverage of women's cricket has expanded over time. Some of the growth is matches that were played before but not recorded as T20Is.

B8. In Case Study 1, the pooled death-overs decomposition was: SD of league-centred economy 1.22, noise SD 0.84, signal SD 0.89, k = 158 balls. (a) Check that the variances add up. (b) For a bowler with 152 death balls (Nortje), what share of his own record survives shrinkage? (c) For a bowler with 66 balls (Dala)? (d) Explain in one sentence why the two bowlers' shrunk ranks differ from their raw ranks in different ways.

Answer

(a) 0.84² + 0.89² = 0.706 + 0.792 = 1.498 ≈ 1.22² = 1.488 (equal up to rounding). (b) 152 ÷ (152 + 158) = 49%: his economy is pulled about halfway to the league's 9.88 (5.96 → 7.96). (c) 66 ÷ (66 + 158) = 29%: most of his record is replaced by the league average (7.45 → 9.16). (d) Both are pulled toward 9.88, but Dala, on less than half Nortje's balls, is pulled much further, enough to drop him from second to fifth, while Nortje's lead was big enough to survive a halving.

B9. Rahane's 2025 phase split was powerplay 127 balls at SR+ 123.7 and middle overs 137 balls at 76.9. In 2026 it was powerplay 156 at 81.4 and middle 92 at 97.5. (a) Suppose in 2026 he'd kept his 2025 phase mix (48.1% powerplay) but batted at his 2026 phase SR+ values. Roughly what would his overall SR+ have been? (Weight by balls, ignoring that par runs per ball differ slightly by phase.) (b) What does the answer tell you about how much of the overall fall is "role" versus "performance within a role"?

Answer

(a) 0.481 × 81.4 + 0.519 × 97.5 ≈ 39.2 + 50.6 = 89.8, against his actual 87.1. (b) Changing the mix back recovers only about 3 points of the 12.9-point fall. Most of the fall is performance within the powerplay (123.7 → 81.4), not the shift in role itself. The role change matters mainly because it put more of his balls into the phase where his performance collapsed. The coach's question becomes: is the powerplay collapse real, and if it might be, should he face fewer powerplay balls?

B10. The Glamorgan advert's contract runs "until 31st October 2029". The Durham advert is a "2 year fixed term". Write two questions you would ask in an interview about the contract, and explain why each matters for your career more than the headline salary does.

Answer

(1) "What happens at the end of the term? Have previous post-holders been renewed or made permanent?" This tells you whether the role is a step on a ladder or a cliff edge. (2) "What does the season look like week to week: travel, match days, off-season duties?" Both packs say evenings and weekends are required, and the real hourly rate and the experience you'll gain depend on the answer. Neither question is about salary, and both matter more to where you'll be in three years.


Part C — Code It ⭐⭐–⭐⭐⭐

C1. Evaluate this player ⭐⭐ — Run scouting_report from code/01_scouting_report.py on Phoebe Litchfield ("P Litchfield") in the women's pool (WPL + WBBL + women's T20Is between full members, 2023–26, peers ≥ 600 balls). Output: the one-page PNG and a four-sentence write-up in the style of §38.4 (number with interval, how she plays, what the page can't support, a decision).

C2. Build this metric ⭐⭐⭐ — Write bowling_report(balls, name, gender, pool_label, min_balls, out): a bowler's one-pager with (1) economy and wickets by phase against phase par (use crease.bowling.phase_profile or par_table), (2) percentiles among peers for economy, dot %, boundary % and balls per wicket (lower-is-better metrics reversed), (3) economy against left- and right-handed batters, shrunk toward the bowler's overall economy with k = 200 balls, (4) a season-by-season panel. Run it on Jasprit Bumrah (IPL 2024–26) and on Sophie Ecclestone (women's pool 2023–26). Expected shape: one PNG per bowler, plus printed tables like the batting report's.

C3. Predict this match → Predict this season ⭐⭐⭐ — Repeat Step 4 of the interview case for bowlers' economy in the IPL. Build a season-adjusted economy ("economy minus league economy in the same year and phase mix") per bowler-season, keep bowlers with ≥ 150 balls in three consecutive seasons, and fit economy(N) ~ economy(N−1) + economy(N−2). Report the coefficients, n, R² and the share of the weight that goes to the league average. Compare with the batters' 0.312 / 0.126.

C4. Settle this debate ⭐⭐⭐ — "Big falls are usually role changes." Using the carry-over data frame trip from 02_interview_case.py, add each batter-season's powerplay share of balls. Among batters whose SR+ fell ≥ 15 points, is the absolute change in powerplay share larger than among batters whose SR+ moved by less than 5 points? Report both medians and a bootstrap interval for the difference. Expected output: a two-row table and one sentence.

C5. Analyze this match ⭐⭐ — Modify case_study_02.py to build the same two-panel media graphic for the 2026 men's T20 World Cup in t20s_male (find the event name with load_matches("t20s_male")["event_name"].value_counts()). Use full-member par for SR+. Expected output: one PNG and the five-line printed summary (matches, final, winner, top scorer with SR+, top wicket-taker).

C6. Optimize this strategy ⭐⭐⭐ — Your job search as an optimisation. Using code/03_field_landscape.py's match table, compute for each men's T20 league the number of distinct teams that played in 2025 (from load_matches(code)[["team1", "team2"]]). Rank leagues by teams × matches per team. Then write three sentences on why this ranking is not the same as a ranking of where to apply (think: staffing models, languages, visas, overlap with your existing network).

C7. Build this metric ⭐⭐ — Extend project_checkpoint.py so that inventory() also reports, for each module, the number of functions with type hints on every argument, and the share of public functions longer than 40 lines. Print the three modules you'd refactor first before sharing your repository.

C8. Evaluate this player ⭐⭐⭐ — Make the scouting report format-aware. Add a format argument so that, for ODI pools (odis_male, odis_female), the phase panel uses the ODI phases (1–10, 11–40, 41–50) that the book's phase column already encodes, and the peer minimum defaults to 1,000 balls. Run it on Laura Wolvaardt (women's ODIs between full members, 2022–26). Expected output: one PNG, plus a printed phase table showing balls and SR+ for each ODI phase. In two sentences, say which panel of the T20 report changes most in meaning when you move to ODIs, and why.

Hints for Part C

  • Pin people. Every script in this chapter swaps names for registry ids before calling batting_summary or bowling_summary (by_id in 01_scouting_report.py, the assign(bowler=..., player_out=...) line in case_study_01.py). Copy that pattern. Grouping by batter_id alone miscounts outs and innings.
  • Par must match the pool. If your pool mixes competitions, compute par by competition × year × phase, as the scouting report does. If it mixes formats, stop and split it. SR+ across a T20 and an ODI is meaningless.
  • Seeds. Use np.random.default_rng(seed) for every bootstrap and report the seed. A reviewer re-running your portfolio should get exactly your interval.
  • Print sample sizes next to every rate. It's the single habit reviewers check first.
  • Save outputs. Redirect each script's printed output to a text file next to it (as code/01_output.txt does here) so your write-up can quote it exactly.

Part D — Judgment & Format Transfer ⭐⭐⭐

D1. The scouting report uses SR+ by phase. Would the same one-page layout work for a Test batter? Redesign the four panels for Test cricket using tools from Chapter 10 (conversion, balls per dismissal, Kaplan–Meier survival, home/away and conditions splits). Which panel survives unchanged, and which can't exist in Tests?

D2. The interview case uses IPL seasons of 200–260 balls. In ODIs, a batter's year might be 400–800 balls, and in Tests 1,000–2,000. Would you expect the carry-over weight on "last season" to be larger or smaller in Tests? Give a reason based on sample size and a reason based on what changes between Test seasons (opposition, conditions, home/away mix).

D3. Wendell says the scouting report is "the cover sheet for the video". Name two claims on Ghosh's report that video could overturn, and one claim on it that video could not easily overturn. Explain the difference.

D4. A trading desk and a franchise both ask you "how good is this batter?". Explain how your answer should differ in (a) what you optimise (a decision versus a probability), (b) how you express uncertainty, and (c) what you'd consider a failure of your analysis.

D5. The carry-over model was fitted on IPL batters with at least 150 balls in three consecutive seasons. A selector in women's T20Is asks you to apply it to a batter whose strike rate fell between two calendar years. List three reasons the IPL coefficients (0.312, 0.126, constant 58.46) shouldn't be reused directly, and describe how you'd build the women's version, including what you'd do if too few players qualified.

D6. You're offered a role that would give you access to a team's GPS and wellness data. List three things you would and would not do with that data in your public portfolio, and name the kind of rule (law or code) that governs each.


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

M1. (with Chapter 6) ⭐⭐ — Chapter 6 estimated about 98 balls until half signal for strike rate. Use that to compute the reliability of a 248-ball season (reliability = n ÷ (n + 98)). Then explain why the carry-over model's weight on last season (0.312) is much smaller than that reliability. What does the model capture that the half-signal calculation doesn't?

M2. (with Chapter 11) ⭐⭐⭐ — The scouting report's bowler-type panel uses a simpler expectation than Chapter 11 (own level × league type index, ignoring phase, era and settling-in). Rebuild Ghosh's off-spin cell with Chapter 11's expected_matchups and shrink_matchups on the women's pool. How different is the shrunk SR? Which expectation would you put in a portfolio, and why?

M3. (with Chapter 9) ⭐⭐⭐ — Add a fifth panel to the scouting report: the batter's total win probability added in chases (Chapter 9's impact.wpa_table with an era-appropriate table). For Suryavanshi, does WPA tell the same story as SR+? If not, which would you lead with in an auction note?

M4. (with Chapter 14) ⭐⭐ — Case Study 1 ranks SA20 death bowlers on shrunk economy. Chapter 14 found that at the death economy correlates 0.94 with boundary % but −0.51 with dot %. Recompute the SA20 ranking on shrunk boundary % instead. Do the top five change? Which metric would you show a coach first?

M5. (with Chapter 37) ⭐⭐ — Rewrite the Case Study 2 graphic for a broadcast audience in the style of Chapter 37: one headline, one annotation, fewer numbers. What did you remove, and why is the removal itself a skill a media panel tests?

M6. (with Chapter 5 and Chapter 26) ⭐⭐⭐ — Suryavanshi's pool mixes the IPL (SR+ 139.1 in 2025, 151.8 in 2026) and men's T20Is between full members (130.4 in 2026). Is the lower T20I figure evidence that international cricket is harder for him, or could it be explained by the pars themselves? Compute the IPL and full-member T20I phase pars for 2026 side by side, and use Chapter 26's idea of translation factors to argue which SR+ figure a franchise should weight more heavily for an IPL auction. Expected output: a two-row par table and a three-sentence argument.


Part E — Research & Extension ⭐⭐⭐⭐

E1. Build an advert dataset. For three months, save every cricket analysis job advert you can find (sports job boards, club and league careers pages, broadcaster and data-company sites), recording: date, employer type, country, role family (§38.1), essential and desirable skills, contract type and salary if published. Report: the share of adverts that publish a salary; the most common essential skills by role family; and whether Python/R appear as essential or desirable. Write it up as a portfolio piece, with the sample size in the first sentence.

E2. Women's game scouting atlas. Produce one-page scouting reports for the ten women batters with the most balls in the women's pool 2023–26, using a full-member par for T20Is and the competition's own par for the WPL and WBBL. Add a one-page summary that groups them into roles (opener, anchor, finisher) using only the data (opening share, death share, SR+ by phase). Publish it with a methods note and a 🧪-free guarantee.

E3. A different league's interview case. Rebuild 02_interview_case.py for The Hundred (balls-based phases: 1–25, 26–75, 76–100) or the Pakistan Super League. Is the carry-over weight on last season similar to the IPL's 0.312? If the league is too small to fit the model, say so, show the sample size, and borrow strength from a pooled set of leagues as Case Study 1 does.

E4. A mock interview, recorded. With a friend playing the panel, run the hook's scenario on a different player: pick the IPL bowler whose season-adjusted economy rose most between 2025 and 2026 (≥ 150 balls in both). Give yourself four minutes for a first answer, then eleven minutes with code, as Nusrat did. Record both answers, transcribe them, and annotate where each one did or didn't check the denominator, compare with par, size the noise, and end with a decision. Add the annotated transcript to your portfolio as evidence of how you reason under time pressure.