Exercises — Chapter 5: The Three Formats as Three Different Sports
Difficulty: ⭐ recall and concepts · ⭐⭐ calculation and interpretation · ⭐⭐⭐ code and judgement · ⭐⭐⭐⭐ open research.
Unless stated otherwise, "baseline" means the chapter's 2016–2026 figures for matches between full members (IPL: all matches), computed from the book's Cricsheet snapshot. Short answers to Part B are given in <details> blocks. Selected answers from other parts are in Appendix I.
Part A — Conceptual ⭐
These questions check that you can explain the chapter's ideas without numbers in front of you. Answer each in two to four sentences, and wherever you can, name the format your answer applies to. Most mistakes in this chapter come from answers that are true for one format and quietly assumed for the others.
A1. In your own words, define a format's binding constraint. Name the binding constraint of Test, ODI and T20 cricket and give the single statistic from the chapter that best shows each.
A2. The chapter calls run rate, runs per wicket and balls per wicket the "exchange rates" of a format. Explain why the word exchange rate fits, using an example of a 40-run innings in two different formats.
A3. Why does the chapter restrict international baselines to matches between full members? Describe one specific way an India v Hong Kong T20I could distort a T20I baseline.
A4. Explain the difference between balls per dismissal and the Kaplan–Meier median of balls faced. Which one is affected by not-out innings, and how does the Kaplan–Meier method handle them?
A5. The T20I run rate drops from 8.89 in over 6 to 6.94 in over 7. Which playing condition explains this, and why is it a useful check that the data and the definitions are working?
A6. Give two reasons LBW is a much larger share of dismissals in Test cricket (16.2%) than in men's T20Is (6.4%). Which of your reasons could you test with Cricsheet data, and which would need ball-tracking data the book doesn't have?
A7. What is an era-matched relative index? Why is it better than comparing a 2012 IPL strike rate directly with a 2026 one?
A8. The chapter found Spearman ρ = −0.01 between Test average and T20I strike rate among 76 three-format batters. A friend concludes, "So being good at Tests has nothing to do with being good at T20." Identify the overreach in that sentence, using the term range restriction.
A9. Why does Test cricket have no "phases" in the toolkit, and what does the chapter use instead to describe how a Test innings changes?
A10. State the five steps of the chapter's decision rule for any format-aware analysis.
Part B — Calculation & Interpretation ⭐⭐
Each problem gives you real numbers from the chapter. Do the arithmetic by hand or in a Python shell, then interpret: a ratio without a sentence about what it means for the game is half an answer.
B1. Using the baselines: men's ODIs score 33.43 runs per wicket at a batting SR of 88.84, and men's T20Is 24.64 runs per wicket at SR 132.38. A batter has an ODI average of 40.1 and an ODI SR of 97.7. Compute the batter's relative average and relative SR against these (non-era-matched) baselines, treating runs per wicket as the average baseline. Is this a run-maker, a tempo player, or both?
Answer
Relative average ≈ 40.1 / 33.43 = 1.20 and relative SR ≈ 97.7 / 88.84 = 1.10. The batter is both: 20% more runs per dismissal and 10% faster than the format norm. (Strictly, a top-order baseline as in §5.8 would be slightly higher than league runs per wicket, so the relative average here is a little generous.)
B2. In men's T20I first innings, the powerplay (30% of the overs) produced 28.6% of a full innings's runs and the death (25% of the overs) 29.1%. In men's ODIs the powerplay (20% of overs) produced 17.3% and the death (20%) 27.6%. For each format and each of these two phases, compute the ratio of run share to over share. Which phase in which format is the most "productive per over"?
Answer
T20 powerplay 28.6 / 30 = 0.95; T20 death 29.1 / 25 = 1.16; ODI powerplay 17.3 / 20 = 0.87; ODI death 27.6 / 20 = 1.38. The ODI death is the most productive per over relative to its share. The ODI innings is the more back-loaded format.
B3. An extra wicket down at the halfway checkpoint costs about 5.3 runs in a men's T20I first innings (average final 167.9) and about 19.1 in a men's ODI (average final 267.7). Express each as a percentage of the average total, then compute how many times more expensive a halfway wicket is in an ODI than in a T20I, in raw runs and in percentage terms.
Answer
T20I: 5.3 / 167.9 = 3.2% (the script's −3.1% uses unrounded values). ODI: 19.1 / 267.7 = 7.1%. Raw runs: 19.1 / 5.3 ≈ 3.6 times. Percentage terms: 7.1 / 3.1 ≈ 2.3 times. Even scaled by the size of the total, an ODI wicket at halfway costs more than twice as much.
B4. From the position table: men's T20I No. 5–7 batters averaged 21.24 with 25.7% of innings not out, while No. 1–2 averaged 27.72 with 6.0% not out. Explain why the gap in average overstates the gap in batting quality, and name a metric from the same table that compares the two slots more fairly.
Answer
Lower-order batters come in with few balls left, so they're often not out and have little time to build an innings. The average penalises them for short innings and flatters them for not-outs, and these effects don't cancel cleanly. Strike rate (130.7 against 137.5) compares what they do per ball and is the fairer T20 measure. Balls per dismissal (16.3 against 20.2) shows survival, but it's also shaped by the role.
B5. Test runs per wicket by innings number: 34.85, 31.48, 28.06, 25.48. A batter's fourth-innings average is 33.0 and first-innings average is 40.0. Compute each relative to its innings baseline. In which innings is this batter relatively stronger?
Answer
Fourth: 33.0 / 25.48 = 1.30. First: 40.0 / 34.85 = 1.15. Relative to conditions, the batter is stronger in the fourth innings, despite the lower raw average.
B6. In men's Tests, pace takes a wicket every 53.08 balls and spin every 62.58, at almost identical economy (3.19 and 3.18). Convert both strike rates to wickets per 90 overs (540 balls). How many extra wickets per 90 overs does pace take on average? Why is economy useless for comparing them here?
Answer
Pace: 540 / 53.08 = 10.2 wickets. Spin: 540 / 62.58 = 8.6 wickets. Difference ≈ 1.5 wickets per 90 overs. Economy is all but identical (3.19 against 3.18), so it can't separate them. In Tests, where wickets bind, strike rate is the relevant currency. (These are pooled averages. Chapter 18 shows the answer varies a great deal by conditions.)
B7. Suryakumar Yadav's T20I card: average 36.51 against a baseline of 25.47; SR 162.44 against 136.49. His Test card: 8 runs off 20 balls, one dismissal. Compute the two relative indices for T20Is. Then explain in one sentence why computing them for his Test record is arithmetically possible but analytically meaningless.
Answer
T20I relative average = 36.51 / 25.47 = 1.43; relative SR = 162.44 / 136.49 = 1.19. The Test indices (0.22 and 0.72) come from one innings and one dismissal, a sample so small that chance dominates completely and no inference about Test ability is possible.
B8. The men's T20I-to-ODI strike-rate ratio is 132.38 / 88.84 and the women's is 108.60 / 74.34 (2016+ baselines). Compute both. A commentator says "women's T20 is just women's ODI played faster, in the same way as the men's". Do the ratios support or undercut the claim?
Answer
Men: 1.49. Women: 1.46. The ratios are very similar, which supports the "same proportional speed-up" part of the claim. But the six-hitting rate (5.66 against 1.62 per 100 balls in T20Is), the dismissal mix and the spin share all differ, so the way the speed-up happens is not the same.
Part C — Code It ⭐⭐–⭐⭐⭐
Start from the chapter's scripts in code/ and the module project/crease/formats.py. Every task names its expected output so that you can tell whether your code is doing what you intended. Run each script from the chapter directory, keep seeds fixed where randomness appears, and paste your real output into your answer. Never write numbers you didn't produce.
C1. Build this metric — format baselines by season. ⭐⭐ Modify code/01_format_baselines.py to compute format_baseline (from crease.formats) separately for each calendar year 2016–2026 for men's T20Is and the IPL. Output: a table with one row per (competition, year) and columns run_rate, runs_per_wkt, batting_SR, boundary_ball_pct. Plot run rate by year for both on one chart. Expected shape: 22 rows; the chart should show both competitions rising in the 2020s, the IPL more steeply after 2022.
Hint: add a year column with games["start_date"].dt.year, then loop over years and call filter_balls(balls, games, since=f"{y}-01-01", until=f"{y}-12-31", full_members_only=...). Watch the IPL's season labels. Cricsheet uses strings like "2007/08" and "2020/21" for some seasons, which is why calendar year from the match date is safer. Add a sentence on whether 2023 (the first Impact Player season) marks a break in the IPL series and not in the T20I series. That comparison is a crude "difference" check, not proof of cause.
C2. Analyze this match — one innings against its baseline. ⭐⭐ Choose any completed men's T20I first innings from 2025–2026 between full members. Use over_profile on that innings alone and on the 2016+ baseline, and plot the innings's runs per over against the baseline curve. Expected shape: a 20-point line and a baseline line; write two sentences on where the innings beat or trailed the baseline and in which phase the match was decided.
Hint: a single innings is a tiny sample, since every over is one observation. Plot the baseline with a shaded band from the 10th to the 90th percentile of runs in that over (compute the percentiles from the per-over table before averaging) so that the reader can see whether a 15-run over is unusual or routine.
C3. Build this metric — the price of a wicket, by venue conditions. ⭐⭐⭐ Using toolkit/venues.py (add_host) and crease.formats.wicket_exchange_rate, re-estimate the price of an extra wicket at 40 overs for Test first innings separately for SENA and subcontinent conditions (2016+, full members, completed_only=True). Expected shape: two rows with coefficient, 95% interval, average final total and n. Discuss whether a wicket is "more expensive" in one region, and whether the intervals overlap.
Hint: merge add_host(load_matches("tests_male"))[["match_id", "conditions"]] onto the first-innings deliveries before calling the function on each subset. Expect fewer than 200 innings in each group. Report the sample sizes prominently and resist over-reading a difference whose intervals overlap. Remember the chapter's caution that this coefficient mixes the wicket's own cost with what the wicket signals about the pitch, and that signal may itself differ between regions.
C4. Evaluate this player — a four-competition fingerprint. ⭐⭐ Pick a woman who has played the WPL (wpl), WBBL (wbb) or The Hundred (hnd) as well as internationals. Using era_baseline and relative_card, produce her relative average and relative SR in every competition with at least 300 balls faced. Expected shape: a 3–5 row table and a dot plot like Figure 5.7. Note: The Hundred uses 100-ball innings with 5-ball sets, so state whether you think its baseline is comparable with the 20-over leagues.
C5. Settle this debate — does the cross-format correlation hold for bowlers in T20 leagues? ⭐⭐⭐ Extend code/05_cross_format_correlation.py: for bowlers with at least 1,500 Test balls and at least 480 balls in any combination of T20 leagues in the snapshot (IPL, BBL, PSL, CPL, SA20, ILT20, MLC, BPL, LPL, T20 Blast), correlate Test bowling average with T20-league economy. Expected shape: n bowlers, Spearman ρ with a p-value, and a scatter. Compare with the chapter's −0.02 for T20Is.
Hint: use load_many([...]) from the toolkit to stack the league deliveries, then bowling_summary. Many Test bowlers have played little franchise cricket, so your n will be smaller than 82. Discuss whether the bowlers who do qualify are a special subgroup (for example, Test bowlers good enough at T20 to be signed by leagues), and what that does to the correlation.
C6. Predict this match — what's par after 25 overs? ⭐⭐⭐ Using the regression in code/06_wicket_exchange_rate.py, write a function par_final(runs_so_far, wkts_so_far, fmt) that returns the predicted first-innings total at the halfway checkpoint for men's ODIs and T20Is. Test it on (130, 2) and (130, 5) for an ODI after 25 overs and on (80, 2) and (80, 5) for a T20I after 10 overs. Expected shape: four predictions. Explain why the difference between the 2-down and 5-down predictions is about three times larger in the ODI.
Hint: refit the OLS models inside the function, or better, fit once and store the coefficients in a dictionary. Add a warning if the inputs fall outside the range of the data used to fit the model (for example, 9 down after 10 overs of a T20I), because a linear model will extrapolate confidently into nonsense.
C7. Optimize this strategy — when should spin bowl? ⭐⭐⭐ Extend code/07_pace_spin_by_format.py to compute spin's and pace's economy and strike rate by phase in men's T20Is and the IPL. Expected shape: a 3 × 2 table for each competition. Use it to recommend a phase plan for a side with two spinners and three seamers, and state one thing the pooled numbers can't tell you about a specific spinner.
Part D — Judgment & Format Transfer ⭐⭐⭐
There is no single right answer to these, but there are wrong ones: any answer that applies one format's logic to another without saying so. Aim for 200–300 words each, cite at least two numbers from the chapter, and end with a recommendation someone could act on.
D1. A franchise analyst proposes ranking IPL batters by balls per dismissal, "because the best batters don't get out". Using the chapter's price-of-a-wicket and survival results, explain why this metric works in Tests and fails in T20. Is there any T20 role for which balls per dismissal still matters? A good answer uses the chapter's numbers: an extra wicket costs a men's T20I innings about 2.5 runs at 15 overs, and half of top-order T20I innings are over in 15 balls. It also considers the exception, a batter in a collapse at 40/4 after 8 overs, where the wicket price is temporarily much higher because the side risks being bowled out. That's why Chapter 19's state-based view is needed.
D2. Eye test vs data. Wendell Baptiste says: "Your numbers say the second new ball is the most dangerous time to bat in a Test. In the Caribbean, half the time it does nothing." The chapter's table pools all conditions. Describe how you would test Wendell's claim with the data snapshot and venues.py, and list two things Cricsheet can't tell you that a coach on the ground would know.
Approach: add conditions and host_country to Test deliveries with add_home_away, then compute balls per wicket for overs 1–10, 11–80 and 81–90 separately for West Indies, SENA and subcontinent venues. Check the sample size of the West Indies 81–90 bucket before saying anything.
D3. Would dot-ball percentage be a useful batting metric in Test cricket? Consider that 73.55% of balls faced in Tests are dots, and that leaving the ball is a skill. What would you need to know about each dot ball to make the metric meaningful, and does Cricsheet have it?
D4. A selector uses a batter's ODI record to pick them for a T20I squad, citing the chapter's ρ = 0.80 between ODI and T20I strike rates. A second selector uses the same batter's Test record. Evaluate both choices, and say what extra evidence you would want in each case.
D5. The chapter's era-matched baseline uses positions 1–7 for every player. Mushfiqur Rahim batted often in the T20I middle order. Argue for and against using a position-matched baseline instead. What could go wrong if positions are inferred from order of entry? A good answer notes that a position-matched baseline is fairer to middle-order specialists but can also reward a player for being placed in an easier role, and that order of entry in T20 often reflects the match situation (a pinch-hitter promoted, a finisher held back), so "position" there is partly an outcome and not a fixed role.
Part M — Mixed / Interleaved ⭐⭐–⭐⭐⭐
These problems deliberately mix this chapter with earlier ones. Before you start each, write down which earlier idea it needs. Retrieving it from memory before you look it up is the point.
M1. (Chapter 4 + Chapter 5) ⭐⭐ Chapter 4 showed economy rate misleads when phase is ignored. Use this chapter's per-over T20I profile (6.47 runs in over 1, 11.13 in over 20) to construct a numerical example: two bowlers, same skill, one who bowls overs 1–4 and one who bowls overs 17–20. Estimate each one's expected economy from the profile, then explain how a phase-adjusted economy (actual ÷ phase baseline) would rank them.
M2. (Chapter 3 + Chapter 5) ⭐⭐ Using the pandas idioms from Chapter 3 (groupby, pivot_table), produce a table of dismissal mode × phase for the IPL 2016+ (rows: caught, bowled, lbw, run out, stumped; columns: powerplay, middle, death; values: % of dismissals in that phase). Does the run-out share rise towards the death, as the chapter's "every run is contested" argument predicts?
M3. (Chapter 2 + Chapter 5) ⭐⭐⭐ Chapter 2 listed what Cricsheet lacks. This chapter inferred batting position from order of entry. Write a short validation: for 20 men's T20I innings of your choice, compare inferred positions with the published scorecard on ESPNcricinfo. Report how often the inference disagrees with the printed order, and in which situations (night-watchmen don't exist in T20, so what does?).
M4. (Chapter 1 + Chapter 5) ⭐⭐ Chapter 1 told the true Kohli–Suryakumar story in IPL phases (Kohli's death SR 188.38, Suryakumar's middle-overs SR 144.14 against Kohli's 125.80). Using this chapter's IPL per-over profile, explain why a middle-overs SR of 144 is more unusual relative to its phase baseline than a death SR of 188. Back your argument with the runs-per-over numbers for overs 7–15 and 16–20.
M5. (Chapter 4 + Chapter 5 + preview of Chapter 6) ⭐⭐⭐ Anchor C showed Rohit Sharma's ODI average is 58.46 in wins and 36.01 in losses. Using this chapter's price-of-a-wicket result for ODIs, give a mechanism by which a team's early wickets could make both a low Rohit score and a defeat more likely, without Rohit's score causing the defeat. Then say what Chapter 6's tools will add.
M6. (Chapter 3 + Chapter 5) ⭐⭐⭐ Analyze this match — the Test new-ball effect, one match at a time. Pick a Test from 2024–2026 in the snapshot in which at least one innings passed 100 overs. Using pd.cut from this chapter and groupby from Chapter 3, compute the wickets that fell in overs 1–10, 11–80 and 81–90 of that innings and compare with the chapter's balls-per-wicket baselines (53.2, roughly 56–60, and 46.8). Write three sentences on whether the match followed the "new ball twice" pattern, and why one match can neither confirm nor refute it.
Part E — Research & Extension ⭐⭐⭐⭐
Open-ended projects of a few days each, suitable for a course assignment or a portfolio piece. Each should end with a short write-up that states your data filters, your sample sizes and the limits of what you found.
E1. The Hundred as a fourth format. The Hundred (hnd) uses 100-ball innings, five-ball sets and a 25-ball powerplay, and the toolkit's phase labels for it are ball-based (1–25, 26–75, 76–100). Build a full format profile for men's and women's Hundred matches (baseline, ball-by-ball shape, dismissal mix, price of a wicket at ball 50) and write a 1,000-word report: is The Hundred "T20 with fewer balls", or does its structure create a distinct analytical framework? Compare explicitly with the 20-over leagues.
E2. Women's domestic leagues as translation tests. Using the WPL (wpl), WBBL (wbb) and women's T20Is, compute league baselines (2023–2026) and era-matched relative indices for every player with at least 300 balls in two or more of these competitions. Estimate how a player's relative SR in one league predicts it in another (correlation and a simple regression). Discuss what this tells a WPL franchise scouting from the WBBL, and preview the league-translation methods of Chapter 26.
E3. The changing Test match. The draw rate in men's Tests in the data snapshot fell to 4.0% in 2024. Build a year-by-year profile of Test cricket from 2002 to 2026 (run rate, runs per wicket, balls per wicket, all-out %, draw %), and test whether faster scoring has changed the binding constraint: has the price of a wicket at 40 overs changed between 2002–2013 and 2014–2026? Write up your findings with at least two charts, and state carefully which changes are associations and which you can argue are causal.