Exercises — Chapter 21: Team Composition and Balance
Difficulty: ⭐ recall and concepts · ⭐⭐ calculate and interpret · ⭐⭐⭐ build, extend, judge · ⭐⭐⭐⭐ open research.
All numbers come from the chapter's scripts, run on the book's Cricsheet snapshot (November 2026). Short answers to Part B are given in place. Selected answers to other parts are in Appendix I.
How to use these exercises. Parts A and B check that you can explain and use the chapter's
ideas: pre-match roles, runs above replacement, the optimiser, the premium and the price of
flexibility. Part C asks you to extend the chapter's scripts. Every task names the function to start
from, and the scripts in code/ already build the inputs you need. Parts D and M are where the
learning sticks. They ask you to carry the ideas to another format, or to combine them with a named
earlier chapter. If you only have an hour, do A2, B4, B6, C3 and D2.
Part A — Conceptual ⭐
A1. Cricsheet records no player roles. Explain the chapter's pre-match definitions of bowling option, top-order batter, all-rounder and part-timer in your own words. Why is each defined from the player's record before the match?
A2. Explain the difference between "bowlers used in the innings" and "bowling options picked in the XI". Which is contaminated by the match result, and how?
A3. What is replacement level? Give a cricket example of a "replacement-level" player in the IPL, and explain why runs above replacement rather than above average is the right currency for selection.
A4. Why does the chapter give fielders credit for run-outs but not for catches or stumpings? What data would you need to credit catches fairly?
A5. In the XI optimiser, why does the #8 batting slot carry a weight of 0.273 rather than 1? What would happen to the optimum if you set it to 1?
A6. Define the all-rounder premium as the chapter does. Why is it always at least zero? Why is it zero for a player whose bowling is never used in the optimal eleven?
A7. Define the price of flexibility. The deterministic optimiser never picks a sixth bowler. What does that tell you about where the value of a sixth bowler must come from?
A8. What is marginal value in selection? Why is a player's marginal value usually smaller than his own contribution, and when can it be larger?
A9. In one paragraph, explain what the Impact Player rule changed about the shape of an IPL side, using two numbers from §21.6.
A10. "Captains already act on bad starts." Explain why this sentence makes the bad-days analysis in §21.5 conditional, and name the bias.
Part B — Calculation & Interpretation ⭐⭐
B1. IPL 2024–26 wicket values by over are 18.7 (over 1), 10.1 (over 6), 9.2 (over 10), 4.9 (over 15) and 1.3 (over 18). A bowler takes one wicket in over 1 and one in over 18. A second bowler takes two wickets in over 10. Ignoring runs and par, who has added more wicket value, and by how much?
Answer
First bowler: 18.7 + 1.3 = 20.0 runs. Second bowler: 2 × 9.2 = 18.4 runs. The first bowler has added 1.6 runs more, even though both took two wickets. Before subtracting par you would also need the par wicket rate for those phases. Powerplay wickets are rarer per ball than death wickets, so par takes away less from the first bowler's over-1 wicket.
B2. IPL replacement level is −0.216 runs per ball for batting and −0.122 runs per ball for bowling (both against par). (a) Convert the bowling figure to runs per over. (b) A batter faces 300 balls at exactly par value. How many runs above replacement is that? (c) A bowler bowls 300 legal balls at exactly par. How many runs above replacement?
Answer
(a) 6 × 0.122 = 0.73 runs per over. (b) 300 × 0.216 = 64.8 runs. (c) 300 × 0.122 = 36.6 runs. A par batter and a par bowler with the same balls are not worth the same above replacement, because the replacement gap is wider for batting.
B3. Sunil Narine's IPL 2024–26 line: 39 matches, +145.7 batting RAR, +383.3 bowling RAR, +7.7 fielding RAR. (a) Total per match. (b) What share of his value comes from bowling? (c) Why is Narine the extreme case for an all-rounder premium, and why is his premium (1.51 runs per match) still only a small fraction of his value?
Answer
(a) (145.7 + 383.3 + 7.7) / 39 = 536.7 / 39 = 13.76 per match. (b) 383.3 / 536.7 = 71.4%. (c) Both his skills are good enough to make Kolkata's optimal eleven on their own, so splitting him forces a real sacrifice. But the premium is only the value of the place saved, which is roughly the value of the weakest player who would drop out. That is about 1.5 runs, not his 13.8.
B4. RCB's flexibility curve (eleven-player rule): optimum 58.00 with no requirement, 54.15 with 24 overs of capacity, 49.19 with 28. (a) Price of the sixth and seventh options separately. (b) Why does the seventh cost more than the sixth? (c) Under the Impact Player rule the sixth option costs 1.38. Why so much less?
Answer
(a) Sixth: 58.00 − 54.15 = 3.85 (the script prints 3.84 from unrounded values). Seventh: 54.15 − 49.19 = 4.96. (b) Each additional bowler displaces a progressively better batter (or forces a worse bowler in), so the costs rise. (c) Under the rule a bowler no longer has to displace a batter: twelve names, eleven batting and eleven fielding.
B5. In IPL 2012–26 part-timer overs cost +0.70 runs per over against par, and regular bowlers' overs −0.09. In men's ODIs the figures are +0.20 and −0.05. (a) For a T20 innings in which a part-timer bowls two overs, estimate the expected cost relative to a regular bowler. (b) Do the same for an ODI in which part-timers bowl five overs. (c) Which format punishes the part-timer more per over, and why might that be?
Answer
(a) 2 × (0.70 − (−0.09)) = 1.58 runs. (b) 5 × (0.20 − (−0.05)) = 1.25 runs. (c) The IPL, by more than three times per over. T20 batters attack every ball, and in the IPL batting depth means there is rarely a weak batter to bowl at. ODI part-timers bowl mostly in the middle overs, when batters are less able to punish them.
B6. Of 6,494 IPL four-over spells, 124 started more than 12 runs over par in the first two overs. Those spells averaged +0.74 over par in overs three and four. (a) What fraction started badly? (b) If a sixth regular bowler (−0.09 per over against par) takes those last two overs, how much is saved per swap? (c) Expected saving per innings with five frontline bowlers?
Answer
(a) 124 / 6,494 = 1.9%. (b) 0.74 − 2 × (−0.09) = 0.92 (the script's unrounded value is 0.91). (c) 5 × 0.019 × 0.91 ≈ 0.09 runs per innings. That is tiny compared with the 1.29-run average price of a sixth option under the eleven-player rule.
B7. In long Test innings (80+ overs, full members, 2005–26), the bowler ranked fifth by overs sent down 10.71 overs at economy 3.37 and average 65.25. The top-ranked bowler bowled 33.68 overs at economy 2.93 and average 34.35. (a) How many more runs per over does the fifth bowler concede? (b) What does the fifth bowler's average tell you about his role? (c) Why is "average 65" partly a selection effect?
Answer
(a) 3.37 − 2.93 = 0.44 runs per over. (b) He is mainly a workload absorber, not a wicket-taker: about one wicket per 116 balls. (c) Captains keep bowling whoever is taking wickets. The bowler who ends up fifth by overs is partly the one who was not taking wickets that day.
B8. Men's ODI team-season fixed-effects estimate: +0.5 win-% points per extra bowling option, 90% CI −1.9 to +2.9. A commentator says "picking a sixth bowler in ODIs wins you five percent more matches." Is that claim consistent with the data? What is the largest effect the interval allows?
Answer
No. The interval's upper end is +2.9 points per extra option, so a five-point effect lies outside it. The data is consistent with no effect and rules out effects larger than about three points in either direction.
Part C — Code It ⭐⭐–⭐⭐⭐
C1. Build this metric — a role table for a T20 league (⭐⭐). Run
sel.add_prior_roles(sel.player_matches(balls, xis)) on the Big Bash League ("bbl"). Report,
by season, the mean number of bowling options, top-order batters and all-rounders per team sheet.
Expected output: a table with one row per season and three columns of means, plus one sentence
comparing the most recent season with the IPL's 2026 figures (bowling options 5.24, all-rounders
0.81 per sheet). Hint: load_xis("bbl") reads the team lists from the same Cricsheet archive the
toolkit downloaded. Drop sheets with more than one "unknown" player, as the chapter does, and say how
many you dropped. If a season's lists carry more than eleven names, report that too, because it
changes what "per team sheet" means.
C2. Analyze this match — composition of a final (⭐⭐). Choose any real final in the snapshot (a
men's or women's T20 World Cup final, a WPL final, or an ODI World Cup final). Print both sides'
pre-match roles, the bowlers used in each innings, and the over-by-over runs conceded by any bowler
whose prior bowling share was below 10%. Expected output: two role tables and a short list of
part-timer overs with runs. Write three sentences in the style of the chapter's hook. Hint: the
stage column of the matches table marks finals and semi-finals. Use runs_conceded from the toolkit
so that wides and no-balls are charged to the bowler, and group by bowler_id, not by name.
C3. Optimize this strategy — any IPL 2026 squad (⭐⭐⭐). Use pool_for(team) from
code/03_xi_optimiser.py for a team other than RCB. Report: the optimal eleven under both rules, the
flexibility curve for capacities (None, 24, 28), the marginal value of every selected player, and the
all-rounder premium for every two-skill player. Expected output: four tables. Then answer: which
player is closest to irreplaceable, and why? Hint: a NaN marginal value means the eleven is
infeasible without that player. Check the keeper flags and the number of can_bowl players before
you interpret one. If the optimum is infeasible for the whole squad, the most likely cause is fewer
than five players with a bowling record in the value period.
C4. Build this metric — sensitivity of RAR to replacement level (⭐⭐⭐). Re-run player_value on
IPL 2024–26 with (regular_bat, regular_bowl) set to (50, 40), (70, 50) and (100, 70). For each, list
the top ten by total RAR per match (minimum 20 matches). Expected output: three ranked lists and the
Spearman correlation between each pair of rankings. Which players move most, and is it batters or
bowlers who gain when replacement is set lower? Finish with a recommendation: which setting would you
use for an auction model, and why? (Think about which players a franchise could really sign for the
base price.)
C5. Evaluate this player — the premium curve (⭐⭐⭐). For Kolkata Knight Riders' 2026 squad,
scale Narine's bowling value by factors 0, 0.25, 0.5, 0.75 and 1.0, recomputing his
allrounder_premium each time. Expected output: a five-row table and a line plot of premium against
bowling factor. At what fraction of his actual bowling value does the premium first exceed 0.5 runs
per match?
C6. Predict this match — bowling options and the toss (⭐⭐⭐). Join the composition table from
code/01_composition.py (IPL) to the toss outcome. Do teams that bowl first pick more bowling options
than teams that bat first? Fit won ~ n_bowl_options * chose_field + C(team_year). Expected
output: the interaction coefficient with a 90% interval, plus a one-sentence interpretation. Before
you fit anything, write down what sign you expect and why. A side that chooses to field may want an
extra bowler for a long first innings, or it may simply be the stronger chasing side. Then say whether
the fitted interval lets you tell those stories apart. Chapter
22 develops the toss model fully.
C7. Settle this debate — the women's ODI seven-option bump (⭐⭐). In §21.2, women's ODI XIs with
seven or more bowling options won 67.3% raw. Recompute that figure excluding Australia, and then
for Australia alone. Expected output: two win percentages with Wilson intervals and sample sizes,
and one sentence explaining what the bump was. Then repeat with the within-team model
(won ~ n_bowl_options + C(team_year)) on women's ODIs, and explain in one more sentence why a
fixed-effects estimate is immune to the "one dominant team" problem that created the raw bump.
Part D — Judgment & Format Transfer ⭐⭐⭐
D1. Would the optimiser work for Tests? List three things that change when you move the programme from a T20 eleven to a Test eleven: the overs constraint, the number of batting slots and their weights, and the meaning of a bowler's value per over. Propose a revised formulation in words. What is the biggest data obstacle? (Hint: think about what Cricsheet does and does not record about the order of batting, the declaration, and the follow-on, and about how much Test cricket each player has played in the snapshot.)
D2. Eye test versus data on the sixth bowler. Wendell argues that a sixth bowler is a match-up
option (left-handers, dew, a two-paced pitch), not bad-day insurance. Design an analysis using
player_styles.csv that would measure the value of carrying a second spinner of a different type
in IPL matches against batting line-ups with several left-handers. What would the result need to
show to beat the 1.29-run price of flexibility?
Structure your answer in four parts: the comparison groups (matches in which a side carried a second spinner of a different type, against matches in which it did not); the outcome (runs conceded against par in overs bowled to left-handers, not the match result); the controls (team-season, venue, year); and the sample-size check (how many such matches exist, and what effect size you could detect with them). Finish with the honest answer to "what if the sample is too small?"
D3. The Impact Player counterfactual. Suppose the IPL dropped the rule for 2027. Using the chapter's numbers, predict what happens to (a) the share of overs bowled by top-order batters, (b) the all-rounder premium in the optimiser, and (c) auction prices for players like Krunal Pandya and Axar Patel. Which of these predictions is most uncertain, and why? Remember that the decline in top-order bowling began in 2022, before the rule, so a reversal is not guaranteed even if the rule goes.
D4. All-rounders across formats. Hardik Pandya's IPL 2024–26 bowling was below replacement, yet he was one of India's two all-rounders in the 2026 T20 World Cup final. Is that a contradiction? Discuss what a different competition, role and replacement pool do to "value", with reference to Chapter 5's argument that formats are different sports.
D5. A selection meeting. You are the analyst for an IPL franchise in 2026. The optimiser leaves
out a famous overseas bowler (as it does for Rashid Khan in Gujarat Titans' squad in the chapter's
Project Checkpoint). Write the half-page note you would take into the meeting. Say what the model
assumes, which of its inputs you trust least, what the price of including him is in runs per match
(you can get it with force_in), and which non-data questions you would ask the coach before
recommending anything. Keep it neutral: your job is to make the trade-off visible, not to win the
argument.
Part M — Mixed / Interleaved ⭐⭐–⭐⭐⭐
M1. With Chapter 6 — shrinkage strength (⭐⭐). The optimiser shrinks with k = 150 balls (batting) and k = 200 (bowling) toward replacement. Chapter 6 found that forecasting next season's strike rate wants k of about 300–400 balls. Re-run the RCB optimiser with k_bat = 350 and k_bowl = 400. Which selections change? What does that say about how much the optimum depends on one or two short records?
M2. With Chapter 4 — the wins-and-losses trap (⭐⭐). Chapter 4 showed that 102 of 103 ODI batters average more in wins. Build the bowling equivalent for this chapter: the mean number of part-timer overs bowled in ODI wins and losses. Explain why the comparison cannot tell you whether part-timers cost matches.
M3. With Chapter 14 — BRS and RAR (⭐⭐⭐). Chapter 14's Bowling Runs Saved measures bowling against par. Show algebraically that this chapter's bowling RAR = BRS + (−replacement per ball) × legal balls, when both use the same wicket prices. Then compute both for Bumrah over IPL 2024–26. Why might they differ slightly in practice?
M4. With Chapter 17 — the
keeper constraint (⭐⭐). The RCB optimum is infeasible without Jitesh Sharma because no one else in
the 2026 squad was inferred to keep wicket in 2024–26. Use keeper_inference_check from Chapter 17
to estimate how often the inference names the right keeper, and discuss what a wrong inference would
do to the optimiser.
M5. With Chapter 18 — spinners by conditions (⭐⭐⭐). §21.7 showed subcontinent home Test XIs carry 2.14 spin options against 0.89 in SENA. Using Chapter 18's spin and pace tables, estimate how much a third spinner's overs cost or save in subcontinent home Tests compared with a third seamer's. Does the data support the composition teams actually pick?
M6. With Chapter 12 — depth and partnerships (⭐⭐⭐). The optimiser treats batting slots as independent: each batter's value per innings is fixed regardless of who bats with him. Chapter 12 showed that partnerships are not simply the sum of two batters. Using Chapter 12's partnership tables for IPL 2024–26, find out whether partnerships involving a #7 who is a genuine all-rounder (prior role in this chapter's sense) score faster or slower than partnerships involving a specialist #7. Discuss whether a "depth effect" (the top order attacking more freely because the #7 can bat) shows up anywhere in the data, and why it would be hard to detect.
Part E — Research & Extension ⭐⭐⭐⭐
E1. A Test selection optimiser. Build a Test version of optimise_xi. Use a bowling workload
model in which the fifth bowler absorbs a share of overs rather than a fixed four, batting slots
weighted by balls faced per position in Tests (compute them), and values per ball from Tests since
2015. Run it on two real home series, one in the subcontinent and one in SENA conditions. Write a
two-page report comparing the optimiser's XIs with the XIs actually picked.
Suggested steps: (1) compute mean balls faced per innings by inferred position in Tests since 2015,
and turn them into slot weights in the way the chapter derived 0.273 for the IPL's #8; (2) replace
"twenty overs, four each" with a workload model, for example a minimum share for each of the top four
and a capped share for the fifth, using the rank table in §21.7 as a starting point; (3) estimate
values per ball against a Test par by innings number rather than by phase, because Tests have no
phases; (4) price a wicket by the runs it costs the rest of the innings at that point, using a
regression like the one behind wicket_values but over overs into the innings; and (5) report
how the optimum changes between conditions. The hardest part is step (2). Explain your choice.
E2. The WPL and the all-rounder. The Women's Premier League in the snapshot has its own overseas rules and squad sizes. Adapt the chapter's pipeline (value, optimiser, premium) to WPL 2023–26. Is the all-rounder premium larger or smaller than in the IPL, and why? Present the result as a one-page briefing for a WPL team's analyst.
Things to decide and state: the replacement-level pool (WPL players only, or WPL plus women's T20Is between full members?); how you treat players who also appear in the WBBL and The Hundred (pin them by registry id); and what overseas limit and squad size you use. The WPL's playing conditions are published by the league. Describe the rule you apply, and do not guess at details you have not checked.
Deliverable for every Part E project: runnable scripts in a code/ folder, at least two figures
with described alt text, and a clear statement of every filter (competition, dates, minimum samples)
next to every number.
E3. Does balance travel? For men's T20Is between full members, estimate whether teams that carry
more all-rounders do better away from home than at home (use venues.add_home_away), within
team-seasons. Discuss whether flexibility is worth more in unfamiliar conditions, and what sample
sizes you would need to tell.