Chapter 13 Exercises
Difficulty: ⭐ recall and reasoning · ⭐⭐ calculate and interpret · ⭐⭐⭐ build, judge, transfer · ⭐⭐⭐⭐ open research
Work through Parts A and B first; they check that the method is clear before you start changing it in code. Parts C–E reuse the module crease.valuation_batting, so every task is a few dozen lines rather than a new project. All numbers below come from the chapter's scripts run on the Cricsheet snapshot (through November 2026) and from data/reference/ipl_auction.csv. Short answers to Part B are in the <details> blocks; selected answers to other parts are in Appendix I.
Part A — Conceptual ⭐
A1. Explain in two or three sentences why a batter's value is measured above replacement rather than above zero or above the league average.
A2. The price of a wicket in IPL 2023–26 falls from about 17.5 runs (over 2) to 0 (over 20). Give the cricket reason for the fall, and one reason the early-over figure might overstate what a wicket really costs.
A3. What is "net runs"? Why is it a better single currency for T20 batting than either batting average or strike rate alone?
A4. The raw 20th percentile of batters' net-run rates moved from −0.32 to +0.01 (2023–26 death overs) when the minimum sample rose from 30 to 200 balls. Name the two different forces that push the raw percentile around, one at each end.
A5. In one paragraph, explain how the chapter turned the observed spread of batters' rates into a talent spread, and why the replacement level was taken from the talent distribution.
A6. Why does runs per win go up when an era's scoring goes up? Use the IPL estimates for 2008–22 (about 131) and 2023–26 (about 150) in your answer.
A7. The chapter's market rate was about ₹35.7 crore per batting win above replacement. Why is that number so much larger than any individual auction price, and why is it still a reasonable yardstick?
A8. What is the difference between the price test (A) and the value test (B) in §13.8? Why do you need both before calling a trait "mispriced"?
A9. List four things a batter's ₹ price can be paying for that batting RAR does not measure.
A10. Death-overs batting has the smallest shrinkage constant (k ≈ 106 balls in IPL 2023–26) and the powerplay the largest (≈ 558). Explain what k means, in words a coach would accept.
Notes on A2, A4 and A10
A2. Late in the innings there are few balls left for the incoming batter to use, so losing a batter removes little of the side's expected total. Early, the new batter must start again with most of the innings ahead. The early figure may overstate the true cost because sides that lose early wickets are also more often on difficult pitches or facing better attacks — conditions that would have cut the total anyway — and because the 2023–26 overs 1–2 values rest on relatively few innings.
A4. At a low minimum (30 balls), noise: plenty of decent batters have an unlucky 30-ball stretch, so the bottom fifth is dragged far below true talent. At a high minimum (200 balls), selection: teams stop giving balls to batters who are failing, so only the trusted survive and the bottom fifth of the survivors is better than the bottom fifth of everyone.
A10. k is how many balls of evidence it takes before a batter's own record deserves as much weight as the league average. After k balls, his record and the league count half each. A small k (death batting) means one season tells you a lot; a large k (powerplay) means one season is mostly luck, and you should lean on the league and on his longer record.
Part B — Calculation & Interpretation ⭐⭐
B1. In IPL 2025's middle overs, Rishabh Pant faced 108 balls, scored 141 runs and was dismissed in overs 7, 7, 8, 8, 11, 12, 14 and 15. The chapter's 2023–26 wicket-value table is indexed by the over in which the wicket falls: over 7 = 8.70, over 8 = 8.39, over 11 = 7.63, over 12 = 6.75, over 14 = 5.14, over 15 = 4.28. Compute his wicket cost, his net runs and his net runs per ball.
Answer
Wicket cost = 2 × 8.70 + 2 × 8.39 + 7.63 + 6.75 + 5.14 + 4.28 = 17.40 + 16.78 + 23.80 = 57.98 (the script prints 57.99 from unrounded values). Net runs = 141 − 57.99 = 83.01; per ball = 83.01 / 108 = 0.769. Half of the cost comes from the four dismissals in overs 7 and 8.
B2. In IPL 2026, the league's middle-overs net runs per ball was 1.168 and the 2023–26 replacement offset for the middle overs is −0.102. A batter faces 150 middle-overs balls in 2026 with 190 net runs. Compute his replacement rate, his RAR and his RAR per 100 balls.
Answer
Replacement rate = 1.168 − 0.102 = 1.066 net runs per ball. Replacement over 150 balls = 159.9. RAR = 190 − 159.9 = 30.1; per 100 balls = 20.1.
B3. Using 140.2 runs per win and the market rate of ₹35.7 crore per win (plus a ₹0.30 crore floor), compute the WAR, the value and the surplus of: (a) Shubman Gill 2023 (277.36 RAR, ₹8 crore); (b) Ruturaj Gaikwad 2026 (−66.92 RAR, ₹18 crore).
Answer
(a) WAR = 277.36 / 140.2 = 1.978; value = 1.978 × 35.7 + 0.30 = ₹70.9 crore (script: 70.96); surplus ≈ +₹63.0 crore. (b) WAR = −66.92 / 140.2 = −0.477; value = −0.477 × 35.7 + 0.30 = −₹16.7 crore; surplus ≈ −₹34.7 crore. A negative "value" just means below replacement: the team would have done better, in batting terms, with a free player.
B4. The 2008–22 match-level runs-per-win estimate is 130.6 and the 2023–26 estimate is 150.1. A batter adds 150 RAR in a season. How many wins is that in each era? What share of the difference is due to the exchange rate alone?
Answer
2008–22: 150 / 130.6 = 1.15 wins. 2023–26: 150 / 150.1 = 1.00 win. All of the difference (0.15 wins) is the exchange rate: the same 150 runs buy fewer wins when every match produces more runs.
B5. In the §13.8 recency test, next-season RAR = 0.269 × last season + 0.358 × (average of the two seasons before). The auction's log price = 0.0108 × last season + 0.0115 × (average of two before). Show that the predictive weight on last season versus each earlier season is 1.50 to 1, and the auction's is 1.87 to 1.
Answer
The coefficient on an average of two seasons is spread over two seasons, so each earlier season carries half of it. Predictive: 0.269 / (0.358 / 2) = 0.269 / 0.179 = 1.50. Auction: 0.0108 / (0.0115 / 2) = 0.0108 / 0.00575 = 1.88 (the script's 1.87 uses unrounded coefficients).
B6. Aniket Verma's 2025 middle-overs net-run rate was +0.221 per ball above the league, on 82 balls. With k = 255 balls and a talent mean of +0.025, compute his shrunk estimate. Then compute it again as if he had faced 400 balls at the same rate.
Answer
82 balls: (82 × 0.221 + 255 × 0.025) / (82 + 255) = (18.12 + 6.38) / 337 = +0.073 (script: +0.072). 400 balls: (400 × 0.221 + 6.38) / 655 = (88.4 + 6.38) / 655 = +0.145. Five times the sample keeps about twice as much of the observed advantage.
B7. On the fitted consistency curve, win = 0.340 + 0.00714 × runs − 0.0000343 × runs². Compute the expected win rate for (a) a steady 30, (b) alternating 0 and 60, (c) alternating 10 and 50.
Answer
f(0) = 0.340; f(10) = 0.340 + 0.0714 − 0.0034 = 0.408; f(30) = 0.340 + 0.2142 − 0.0309 = 0.523; f(50) = 0.340 + 0.357 − 0.0858 = 0.611; f(60) = 0.340 + 0.4284 − 0.1235 = 0.645. (a) 0.523 (script: 0.524). (b) (0.340 + 0.645) / 2 = 0.493. (c) (0.408 + 0.611) / 2 = 0.510. The steadier the scores around the same mean, the higher the expected win rate — the signature of a concave curve.
B8. In the salary-band table, batters paid over ₹10 crore averaged 0.33 WAR at a mean salary of ₹15.52 crore; batters paid ₹5–10 crore averaged 0.26 WAR at ₹7.52 crore. Compute the marginal cost of the extra 0.07 WAR when moving from the second band to the first.
Answer
Extra salary ₹15.52 − 7.52 = ₹8.00 crore for 0.33 − 0.26 = 0.07 extra WAR → about ₹114 crore per extra win at the margin, against ₹28.9 crore per win on average in the ₹5–10 crore band. That's the diminishing-returns story of §13.6 in one number. (The band averages are noisy, so treat the size as rough.)
Part C — Code It ⭐⭐–⭐⭐⭐
Start each task from the chapter's scripts in code/ and the module project/crease/valuation_batting.py. Keep the defaults (20th percentile, 30-ball minimum, era wicket values, 140.2 runs per win) unless the task says otherwise, and print the inputs you used at the top of your output so a reader can reproduce it.
C1. Build this metric — RAR per 100 balls with shrinkage. ⭐⭐ Add a function shrunk_rate(rar_table, phase, era, years) to a copy of valuation_batting.py. For each batter it should return the shrunk net-run rate relative to the league in one phase, using replacement_levels(...)["k"] and ["mean"] from rar_table.attrs["levels"], and the implied shrunk RAR per 100 balls (shrunk rate minus the replacement offset, times 100).
- Inputs: the RAR table from
runs_above_replacement, a phase name, an era label, a pair of years. - Output: one row per batter with
balls,raw_rel,shrunk_rel,shrunk_rar_per_100, sorted by the last. - Check: rerun the §13.5 death-overs list (IPL 2022–26, 150+ death balls). Which of Livingstone, Pant, Shreyas Iyer, Stoinis and Karthik moves most, and is it the one you predicted in the chapter's Try-it?
- Hint: the league-relative rate must be computed season by season (the league rate differs each year), then pooled — copy the
excesslogic fromreplacement_levels.
C2. Evaluate this player — any batter's value card. ⭐⭐ Write value_card(name, years) that prints, for one IPL batter, a season-by-season table (team, salary, balls, runs, RAR by phase, WAR, value at the market rate, surplus) and a one-line verdict ("above / below the market rate in N of M seasons").
- Test cases: Venkatesh Iyer (2021–26) and Jos Buttler (2022–26).
- Expected shape: 5–6 rows each. Buttler's surplus should be positive in most seasons; Venkatesh Iyer's should swing from negative (2022, 2025) to positive (2023, 2024, 2026).
- Hint: use
display_namesto turn the name into a registry id first, and remember that seasons before 2022 have no salary in the reference table — show them with a blank salary rather than dropping them.
C3. Analyze this match — RAR for one innings. ⭐⭐ Using per-ball net runs, compute RAR for every batter in the IPL 2026 final (Royal Challengers Bengaluru 161/5 in 18 overs beat Gujarat Titans 155/8; find the match id with load_matches("ipl")). Then compute each batter's WPA for the same match with Chapter 9's crease.impact (era-matched IPL table).
- Expected output: a 10–14 row table with runs, balls, outs, RAR and WPA, one row per batter who faced a ball.
- Questions to answer: which batter does RAR rate higher than WPA, and why? Is Kohli's 75* off 42 worth more in RAR or in WPA, relative to the others?
- Hint: a single-match RAR uses that season's league rate and the era replacement offset, exactly as in a season table — just restrict the deliveries to the one match before aggregating.
C4. Settle this debate — does replacement level change the anchor pair? ⭐⭐⭐ Rerun the §13.7 pair search for all nine combinations of pct ∈ {0.10, 0.20, 0.30} and min_balls ∈ {30, 60, 100}.
- Output: a 9-row table with
pct,min_balls, the number of qualifying pairs, whether Pant–Verma (2025, middle overs) is still listed, and its RAR gap. - Question: explain why the gap between two batters within one phase and season changes much less than their levels. (Hint: both batters' RAR shift by offset × their own balls, and their ball counts are similar.)
C5. Optimize this strategy — buy phases, not names. ⭐⭐⭐ Using IPL 2024–26 shrunk RAR per 100 balls by phase (from C1) and 2026 salaries, find the cheapest combination of four batters whose expected RAR over a 14-match season is at least 250. Assume the four together face 150 powerplay, 180 middle-overs and 90 death balls, and that at least two must have taken at least 60% of their balls in the powerplay.
- Method: allocate each phase's balls to the four by their share of balls in that phase in 2024–26 (re-normalised), and multiply by their shrunk RAR per 100 in that phase. Brute-force over the 40 best-value candidates (C(40, 4) = 91,390 combinations — fine on a laptop).
- Output: the four players, their total salary, expected RAR by phase and in total, and the next-best combination for comparison.
- Reflect: does the optimum buy any players above ₹10 crore? What happens to the answer if you require 300 RAR?
C6. Build this metric — a venue-adjusted RAR. ⭐⭐⭐ Change the league rate in runs_above_replacement from (season, phase) to (season, phase, venue), with a fallback to (season, phase) when the venue-season-phase cell has fewer than 600 balls.
- Output: the IPL 2022–26 top 15 under both versions, with the three biggest rank changes highlighted.
- Question: do batters whose home grounds were high-scoring fall? Use Chapter 22's venue effects to explain the direction of each change.
- Hint: Cricsheet spells some venues two ways (for example with and without the city after a comma). Normalise by taking the text before the first comma, as
runs_per_windoes.
C7. Predict this match — do RAR leaders win? ⭐⭐⭐ For each IPL match from 2023 to 2026, sum the previous season's RAR of the batters who batted for each side (zero for players with no previous-season record), and fit a logistic model of the result on the difference between the two sums.
- Train/test: fit on 2023–25, test on 2026.
- Output: the coefficient (per 100 RAR of difference), the 2026 accuracy and Brier score, and the same for a model that always picks the side batting second.
- Question: how close does a batting-only, previous-season model get to the 60–65% pre-match ceiling discussed in theme 6? Why should it be well short of it?
Part D — Judgment & Format Transfer ⭐⭐⭐
Each Part D answer should be a short argued paragraph or memo, not a calculation. A strong answer names the specific ingredient of the method that changes, gives at least one number from this chapter or an earlier one as evidence, and says what you would do about it. Weak answers say "it depends on the format" without saying how.
D1. Would RAR work for Test batting? Go through each ingredient — price of a wicket, replacement level, runs per win — and say what changes. (Hint: Chapter 5 found a Test wicket at 40 overs into a first innings costs about 43 runs; Chapter 10 uses balls per dismissal and conversion; there are no phases, and a draw is a third result.)
D2. An ODI version needs phases (overs 1–10, 11–40, 41–50). Sketch the price-of-a-wicket curve you would expect for an ODI first innings (Chapter 5 estimated about 21 runs at over 10, 19 at 25 and 10 at 40 in men's ODIs), and say where you would expect the biggest gap between an ODI and a T20 batter's value.
D3. Eye test vs data. A franchise coach says: "Our number four's RAR is negative because he bats in the powerplay after early wickets, when the job is to rebuild. Your model punishes him for doing what we asked." Write a reply of 150–200 words that takes the point seriously, says what the model does and doesn't account for, and proposes one change to the model or to how it's used.
D4. Pant's death-overs RAR per 100 balls (57.2, 2022–26) is second-best among 39 regulars, but most of his balls came in the powerplay and middle overs. Write a short memo to a team that has just bought him, arguing for or against moving him down the order. Use numbers from §13.5 and §13.7 and name what you would want to know that the data can't tell you.
What a strong D3 includes: agreement that RAR measures output against a league-average context, not against the specific instruction given; the fact that the price of a wicket is an average side's loss and is lower for a deep batting order; a concrete fix such as a "rebuild" context variable (wickets down at entry), a team-specific wicket price, or reporting his RAR alongside his WPA from Chapter 9.
What a strong D4 includes: the phase split (death 57.2 per 100 balls, 2022–26, against negative RAR in the 2025 and 2026 powerplay and middle overs); the shrinkage caveat (death k ≈ 106, so 177 death balls are already informative); the cost of the move (who bats in the powerplay instead, and at what RAR); and what only the dressing room knows — his own preference, the captain's view, matchups against the opposition's death bowlers.
D5. The six-hitting premium was the best-supported market claim (+42% price per SD, p = 0.025). Give two reasons, other than "fans like sixes", why a rational franchise might pay extra for six-hitting beyond its RAR — and how you would test each with the data in this book.
Part M — Mixed / Interleaved ⭐⭐–⭐⭐⭐
M1 (with Chapter 6). ⭐⭐ Chapter 6 found that about 98 balls are needed for half the signal in a batter's strike rate and about 554 for dismissal rate. This chapter's k for net runs per ball is 106 at the death and 558 in the powerplay. Explain why the powerplay figure is so close to the dismissal-rate figure, and the death figure so close to the strike-rate figure.
M2 (with Chapter 8). ⭐⭐ Compute both SR+ (Chapter 8) and RAR per 100 balls for the 2024–26 middle-overs leaders (Patidar, Prabhsimran Singh, Pooran, Gill). Do the two metrics rank them the same way? Explain any difference in terms of dismissals.
M3 (with Chapter 9). ⭐⭐⭐ For IPL 2022–26 chases, correlate each batter's season RAR with his season chase WPA (Chapter 9's era-matched model). Which batters have high WPA but modest RAR? What does that say about leverage, and should a franchise pay for it?
M4 (with Chapter 4). ⭐⭐ Chapter 4 showed Simpson's paradox for bowlers (Bumrah cheaper than Ashwin in every phase but dearer overall). Can the same paradox happen with RAR per 100 balls between two batters? Construct a small numerical example, then search IPL 2022–26 for a real pair.
M5 (with Chapters 11 and 12). ⭐⭐⭐ A batter's RAR depends partly on whom he faces (Chapter 11) and whom he bats with (Chapter 12). Choose one of those effects and design an adjustment to RAR that removes it. Describe the data you'd need and how you'd check whether the adjustment improved next-season prediction.
M6 (with Chapter 7). ⭐⭐ Redesign Figure 6 (salary against WAR) for a broadcast audience, following Chapter 7's rules: one message, a clear title that states it, colour used only for the two highlighted players, and a caption a viewer can read in five seconds. Produce the chart and write the five-second caption.
Part E — Research & Extension ⭐⭐⭐⭐
E1. The Hundred, valued. Build the price of a wicket, replacement level and runs per win for The Hundred (men's or women's; load_deliveries("hnd")), using its own phases (balls 1–25, 26–75, 76–100). You will need to adapt wicket_value_by_over to work in five-ball "sets" or ten-ball blocks rather than six-ball overs. Produce a RAR leaderboard and compare the exchange rates with the IPL's and the WPL's. Write a 1,000-word report on what transfers and what doesn't.
E2. A WPL price table. Following the method in ipl_auction_SOURCES.md (fixed source revisions, independent cross-checks, a corrections log, name matching to Cricsheet), build and document a WPL auction table for at least two seasons. Then compute the WPL market rate per batting win and the best and worst value contracts, using Case Study 2's exchange rates. Be explicit about every source and every correction, and never fill a gap from memory.
E3. Does the market learn? Using the 2022 and 2025 mega auctions, test whether the six-hitting premium (§13.8) shrank between them. Then extend the sample to all-rounders by adding a bowling value from Chapter 14's Bowling Runs Saved converted to wins with the same runs-per-win figure, and report whether the conclusion survives the larger sample.