Chapter 20 Exercises — Win Probability Models

Difficulty: ⭐ recall and concepts · ⭐⭐ calculation and interpretation · ⭐⭐⭐ build and judge · ⭐⭐⭐⭐ open-ended research.

All numbers quoted below come from the chapter's scripts run on the book's data snapshot (Cricsheet, through November 2026). Scripts live in code/; the module is project/crease/winprob.py.


Part A — Conceptual ⭐

A1. In one sentence each, say what a win-probability model is for in (a) a broadcast, (b) a player-valuation study, (c) a bookmaker's pricing room. Which of the three needs calibration most, and why?

A2. A friend says: "The model gave Kolkata 0.2% at 177 for 7 needing 28 off 5, and they won, so the model is rubbish." Explain, without any formulas, why one match cannot show that a probability was wrong — and what evidence could show it.

A3. Define leakage. Give two different routes by which leakage can enter a ball-by-ball cricket model, one of which is not about how the data are split.

A4. Why is the scoring environment (env_par) computed from the previous 60 matches in the competition, rather than from the whole season the match belongs to?

A5. The Brier score and log loss are both "proper" scoring rules. What does "proper" protect against? Give a forecaster's trick it would punish.

A6. Explain the difference between calibration and resolution to a coach who has never seen a formula. Use a weather forecaster who always says "30% chance of rain" as your example.

A7. WP v1's gradient-boosted alternative used monotone constraints. State the three constraints on the chase state, and one constraint that would be wrong to impose (and why).

A8. Why does a model that adds the target as a feature improve on one that knows only (runs needed, balls left, wickets in hand)? Isn't the target already "in" runs needed?

A9. WPA rankings from the pooled and era-only WP v1 models correlate 0.978 across IPL 2026 batters, even though the two models disagree about win probabilities by several points. Explain why a sum of changes is less sensitive to a model's level than the level itself.

A10. Give two reasons why a Test-match win-probability model cannot simply be WP v1 with 450 overs instead of 20.


Part B — Calculation & Interpretation ⭐⭐

B1. Three forecasts and outcomes: 0.80 (won), 0.30 (won), 0.10 (lost). Compute the Brier score and the log loss (natural logs). Which forecast contributes most to each, and why do the two rules disagree about how much?

Answer

Brier: (0.2² + 0.7² + 0.1²)/3 = (0.04 + 0.49 + 0.01)/3 = 0.18. Log loss: −(ln 0.8 + ln 0.3 + ln 0.9)/3 = (0.223 + 1.204 + 0.105)/3 = 0.511. The 0.30 forecast that won dominates both (91% of the Brier total, 79% of the log-loss total). The two rules diverge most when a forecast near 0 or 1 goes wrong: a 0.01 forecast that wins costs 0.98 under Brier (bounded by 1) but 4.6 under log loss (unbounded) — log loss is the rule that punishes overconfidence hardest.

B2. In the 70% test (section 20.6), WP v1's states with forecasts between 0.65 and 0.75 numbered 24,178, from 1,765 distinct chases; the chasing side won 0.721 against a mean forecast of 0.701. (a) Treating the 1,765 chases as independent, roughly how big is one standard error of a win share near 0.70? (b) Is a 2-point gap evidence of miscalibration?

Answer

(a) √(0.7 × 0.3 / 1,765) ≈ 0.011, about 1.1 points. (b) A 2-point gap is about two standard errors — borderline on its own. It becomes more convincing because the gap has the same sign in every probability bin for 2023–26 (chasers did better than forecast across the board), which a pure noise explanation would not produce.

B3. The Brier decomposition for WP v1 (fit < 2023, test 2023–26) was reliability 0.0006, resolution 0.1328, uncertainty 0.2499. (a) Check that these approximately reproduce the Brier score of 0.1143. (b) If you could remove WP v1's calibration error entirely, by how much would its Brier score fall? (c) Where, then, did most of WP v1's improvement over WP v0 (0.1252) come from?

Answer

(a) 0.0006 − 0.1328 + 0.2499 = 0.1177; the decomposition is approximate because it uses binned forecasts (within-bin variation is ignored), so it does not match exactly. (b) About 0.0006 — almost nothing. (c) Resolution: 0.1328 for WP v1 against 0.1222 for WP v0. The context features let WP v1 separate easy chases from hard ones earlier.

B4. The leakage experiment gave the flexible boosted model a training Brier of 0.0117 and a by-match test Brier of 0.1933. The logistic model gave 0.1271 and 0.1301. Compute each model's "generalisation gap" (test minus train) and explain what the size of each gap tells you.

Answer

Boosted: 0.1933 − 0.0117 = 0.1816. Logistic: 0.1301 − 0.1271 = 0.0030. The boosted model fits the training matches almost perfectly and has learned things that do not carry to new matches — memorisation. The logistic model's tiny gap says it has learned only structure that generalises. A large train–test gap is the signature of overfitting; a model's training score is not evidence of anything.

B5. From the defend-curve table (WP v1 fitted before 2023, Elo gap 0): a total of 180 is worth 0.733 at environment 145 and 0.475 at environment 190. A franchise analyst wants to know "how many runs is a 45-run rise in the environment worth?" Using the break-even totals (163 at environment 160, 183 at environment 190), estimate the runs of first-innings total needed to stay a coin-flip per run of environment.

Answer

(183 − 163)/(190 − 160) = 20/30 ≈ 0.67 runs of total per run of environment. By this model, a 30-run rise in the league's scoring level raises the coin-flip total by about 20 runs — less than one-for-one. Treat the exact ratio with caution: it comes from a logistic model extrapolating beyond most of its pre-2023 training environments, and section 20.6 showed that model is still too generous to the side batting first in the modern IPL.

B6. At Newlands, WP v1 has Sri Lanka 0.503 after 15 overs and 0.191 after 16; WP v0 has 0.649 and 0.246. (a) Compute each model's change over Tahir's over. (b) Which model thinks Tahir's over was more decisive, and which thinks the match was already slipping before it? Use the 15th-over swings (−0.177 for v1, −0.107 for v0) in your answer.

Answer

(a) v1 −0.312; v0 −0.403. (b) WP v0 makes Tahir's over the bigger single blow; WP v1 spreads the damage across overs 15 and 16 (−0.177 and −0.312, total −0.489, against v0's −0.510 over the same two overs). Both models agree the two overs together cost Sri Lanka about half a win; they disagree about how to split it — a reminder that turning points depend on the model as well as on the match.

B7. IPL 2026 batting WPA: Suryavanshi gained 4.44 wins of probability and lost 2.10 (net +2.34); Prabhsimran Singh gained 3.23 and lost 2.15 (net +1.08). Compute each player's ratio of gained to lost, and explain what it captures that net WPA does not.

Answer

Suryavanshi 4.44/2.10 = 2.11; Prabhsimran 3.23/2.15 = 1.50. The ratio is a kind of "efficiency": how much probability a batter adds per unit he gives back (dots and dismissals). Net WPA mixes that with volume and leverage (how many high-stakes balls you faced). Two batters with the same net WPA can be a high-volume, moderate-efficiency accumulator or a low-volume, high-efficiency finisher.

B8. For women's chases 2023–26, the men's WP v1 (with women's environment and Elo) had a recalibration intercept of −0.99 and slope 1.13. In plain words, what do these say about how the model's forecasts should be adjusted for women's matches?

Answer

The intercept of about −1 on the logit scale says the men's model's forecasts are systematically too high for the chasing side — a 50% forecast corresponds to something nearer 27% after adjustment (logit 0 → −0.99). The slope a little above 1 says that, once shifted, its forecasts are slightly too timid — they should be spread a little further from 50%. The honest fix is to fit a women's model (Brier 0.0916 against 0.1111).

B9. First-innings forecasts for IPL matches 2023–26: sides batting first won 0.474 of the time (per state); Chapter 9's method forecast 0.607 on average, WP v1 via par 0.573, the direct model 0.527. (a) Compute each method's calibration-in-the-large error. (b) The direct model has the smallest error; does that make it the best IPL first-innings model? What else would you check?

Answer

(a) Chapter 9: 0.474 − 0.607 = −0.133; WP v1 par: −0.099; direct: −0.053. All three over-rate the side batting first in the modern IPL. (b) Smallest error in the mean is necessary, not sufficient. Its Brier score in the IPL was also lowest (0.2231 v 0.2301 and 0.2421), which helps; you would still want the IPL reliability diagram (is it right across the range, or right on average by being wrong in opposite directions?) and the resolution (does it separate good first innings from bad?).

B10. In IPL 2026, Narine conceded 339 runs in 306 balls and added +1.17 bowling WPA; Malinga conceded 507 in 326 and added +0.91. (a) Compute each economy rate. (b) The 2026 IPL environment was about 189 runs per first innings, roughly 9.4 an over. How can a bowler at 9.33 an over add almost a win?

Answer

(a) Narine 6 × 339 / 306 = 6.65; Malinga 6 × 507 / 326 = 9.33. (b) WPA judges every ball against what the situation expected, not against zero. An over that goes for 9 when the state expected 11 adds win probability for the fielding side. Malinga's economy is roughly the league rate, but his WPA says his good balls came at moments that mattered (wickets, tight overs at the death) and his expensive ones when the game was already settled — or simply that his balls were bowled at states where 9.33 was below the going rate. A rate statistic cannot see that; WPA can.

B11. Case Study 2's comeback test: of 1,729 chases whose WP v1 ever fell to 5% or below, 70 were won (4.0%); of 1,663 whose WP v0 fell that low, 77.5 were won (4.7%). (a) For each, compute a rough 95% interval for the share (treat chases as independent). (b) Does either model fail the test?

Answer

(a) WP v1: √(0.040 × 0.960 / 1,729) ≈ 0.0047, so about 3.1% to 4.9%. WP v0: √(0.047 × 0.953 / 1,663) ≈ 0.0052, so about 3.7% to 5.7%. (b) Neither fails: a calibrated model's share should be at most about 5%, and both intervals include values at or below 5%. WP v0's point estimate sits right at the edge, consistent with its slight under-rating of 2023–26 chasers; WP v1 sits comfortably inside.

B12. Using the "Start of the chase" table in section 20.5, chasing 160 has WP 0.473 at environment 150, 0.604 at 170 and 0.721 at 190. Express the effect of 20 runs of environment as a change in log-odds for the two steps (150 → 170 and 170 → 190). Is the effect roughly constant on that scale? Why would you expect it to be, given the model's form?

Answer

logit(0.473) = −0.108; logit(0.604) = 0.422; logit(0.721) = 0.950. Steps: +0.530 and +0.528 — almost exactly constant. The logistic model is linear in its features on the log-odds scale; at the first ball the environment enters through terms that are linear in env_par (the interactions with share of innings left are fixed at 1), so equal steps in environment give equal steps in log-odds — and therefore unequal steps in probability (+13.1 then +11.7 points).


Part C — Code It ⭐⭐–⭐⭐⭐

C1. Build this metric — calibration by stage. ⭐⭐ Extend code/03_calibration.py to produce reliability tables for WP v1 separately for overs 1–6, 7–15 and 16–20 of the chase (by legal_before). Output: three 10-bin tables and a one-line Brier score per stage. Which stage is worst calibrated in 2023–26, and is the direction of the miss the same in all three?

C2. Analyze this match — any chase you remember. ⭐⭐ Pick a men's T20 match in the snapshot (any competition; find its id in data.games). Use wp.wp_curve(match_id, model, par, data=data) with a WP v1 fitted without that match, then wp.turning_points(curve, n=8) and wp.wpa(curve). Write a 200-word match report built only from those outputs. Expected output: a curve figure, an 8-row turning-point table, and a batting and bowling WPA table.

C3. Build this metric — a direct first-innings model in Crease. ⭐⭐⭐ Section 20.8's direct logistic model beat the par method (Brier 0.1952 v 0.1994). Add a class DirectFirstWP to your copy of winprob.py with fit(s1_train) and predict(states1), using the same features as code/05_first_innings.py. Then add an option to wp_curve to use it. Check that the first-innings curve still meets the chase curve at the innings break — and if it does not, measure the jump across 2023–26 matches and explain why it happens.

C4. Predict this match — the era-only model, live. ⭐⭐ Refit WP v1 on 2023–25 chases (as in code/07_ipl2026_wpa.py) and produce a table of start-of-chase WP for every IPL 2026 match with the actual result. Group the forecasts into five bins and draw a reliability diagram for the season. With only 72 matches, how wide is the uncertainty in each bin? (Bootstrap the matches.)

C5. Settle this debate — does Elo belong in a WP model? ⭐⭐⭐ Elo improved WP v1 overall but not in the IPL (section 20.5). Split the 2023–26 test set by competition and by the size of the Elo gap (|gap| < 50, 50–150, > 150). Compare WP v1 with and without the Elo feature in each cell. Expected output: a table of Brier differences with match-bootstrap intervals. Where does team strength matter, and why might franchise leagues be the exception?

C6. Build this metric — a better end-game. ⭐⭐⭐ EndGame (section 20.6) under-forecasts chasers by about 5 points in mid-range last-over states. Improve it by giving each chase its own scoring "tilt", as Chapter 19 did for its Markov chain: draw a per-innings multiplier on boundary probabilities from a distribution whose spread you fit so that the model's in-sample last-over reliability is flat. Compare last-ball calibration (the 1–8+ runs-needed table) before and after. Expected output: the two last-ball tables and the last-over Brier score for 2023–26.

C7. Optimize this strategy — choose the environment window. ⭐⭐ build_states(window=60) uses the previous 60 matches. Re-run the out-of-time comparison (fit < 2023, test 2023–26) with windows of 20, 40, 60 and 120, choosing the window on a by-match validation split inside the training years only, then report the test score of the chosen window. Why must the window not be chosen on the test years?

C8. Evaluate this player — season WPA with an interval. ⭐⭐⭐ Season WPA is a sum of ball-level changes; its uncertainty is not obvious. For the top ten IPL 2026 batters by WPA, estimate a 90% interval by resampling the matches each batter played (a match bootstrap) and recomputing season WPA. Expected output: a table of batter, WPA, lower and upper bound. How many of the ten are clearly above zero? Is Suryavanshi's lead over second place outside the noise? Write three sentences on what this does to the idea of a "WPA MVP".

C9. Analyze this match — the second anchor. ⭐⭐ Chapter 9's case study valued Mumbai Indians v Delhi Capitals, IPL 2023 (id 1359490), with era-matched tables: start of chase 0.392 (pre-2023 pool) and 0.720 (IPL 2023–26). code/project_checkpoint.py gives WP v1 (fitted before 2023) 0.477. Refit WP v1 on 2023–25 chases excluding this match and recompute the start-of-chase WP, the turning points and the batting WPA. Which of the three earlier numbers does the era-only WP v1 land closest to, and what does that tell you about the in-sample IPL 2023–26 table Chapter 9 used?


Part D — Judgment & Format Transfer ⭐⭐⭐

D1. A broadcaster wants one WP model for every competition it shows: the IPL, the BBL, men's and women's T20Is, and The Hundred. Using this chapter's findings, write a one-page technical brief: which models, fitted on what, refitted how often, and which calibration checks to run before each season. What would you do about The Hundred's 100-ball format?

D2. Would the "scoring environment" feature work in ODIs? Think about how many ODIs a full member plays per year, the role of rain, and whether "the previous 60 matches" means the same thing. Propose an alternative environment measure for ODIs.

D3. Wendell's hypothesis (section 20.7): since the Impact Player rule, "wickets in hand don't mean the same thing" because sides bat deeper. Design a test using only the data Cricsheet provides. What would you compare (hint: WP v1's residuals by wickets in hand, IPL 2023–26 against other leagues over the same seasons)? What result would support Wendell, and what would undermine him? What could the data not tell you?

D4. A coach looks at the IPL 2026 WPA table and says: "Pooran cost us a win. Drop him." Write the reply — respectful, specific, and using at least two numbers from the chapter — that explains what WPA can and cannot say about that decision.

D5. The eye test v the model: at Newlands, WP v1 charges Dickwella with losing 0.615 of a win across his innings but credits him with +0.229 net. Wendell would "drop him down the order in his head". What information would you need — which the ball-by-ball data does not contain — to decide who is right?

D6. A data journalist at Kavya's outlet wants to put "the model's chance" on every ball of a live women's World Cup match, using the men's WP v1 "because it was trained on far more data". Using section 20.11's numbers, argue against it in a paragraph a non-statistician editor would accept — then say what the outlet should do instead, and what caveat should sit under the graphic either way.


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

M1 (Chapters 6 and 20). The 2023–26 calibration gaps are computed over ball states but carry the information of matches. Using Chapter 6's ideas on effective sample size, estimate how many "independent" observations a calibration bin with 25,000 states from 1,800 chases is worth, and show how the interval on the IPL gap (+0.077, 90% interval +0.045 to +0.110 from 281 chases) would have looked if you had wrongly treated 40,000 states as independent.

M2 (Chapters 9 and 20). Recompute Chapter 9's career IPL chase WPA leaderboard (players with 400+ chase balls) using pooled WP v1 instead of WP v0's era-matched tables. Who moves most, and is the move explained by the eras they played in?

M3 (Chapters 19 and 20). Chapter 19's Expected Runs Added (xRA) and this chapter's first-innings WPA both value first-innings batting. For IPL 2023–26 batters with 300+ first-innings balls, compute both and their rank correlation. When do runs-based and win-based values disagree most?

M4 (Chapters 14 and 20). Bumrah's IPL 2026 season had 4 wickets in 294 balls yet +0.49 bowling WPA. Using Chapter 14's expected-wickets (xW) model and this chapter's WPA, compute for every IPL 2026 bowler with 120+ balls: wickets minus xW, and WPA. Are the two related? What does it mean for a bowler to have negative wickets-above-expected and positive WPA?

M5 (Chapters 22 and 20). Chapter 22 found the toss and venue carry almost no out-of-sample information about IPL results. Add a venue effect (shrunk, from crease.venue_toss) as a feature to WP v1. Does it improve the out-of-time Brier score at the start of the chase? Mid-chase?

M6 (Chapters 7 and 20). Chapter 7 drew the Newlands worm and run-rate chart; this chapter drew its WP curve. Build a single "match story" figure (with crease.charts) that stacks the worm, the required-rate chart and the WP v1 curve on a shared over axis, and mark the three biggest turning points on all three panels. Which turning points are visible on the worm and run-rate chart, and which only on the WP curve? Write two sentences on what that says about the value of a WP curve for a broadcast audience.


Part E — Research & Extension ⭐⭐⭐⭐

E1. A women's WP v1 for the WPL. Using build_states(wp.WOMEN_T20), fit a women's WP v1 and apply it to every WPL match in the snapshot. Produce a WPA leaderboard for the most recent WPL season, a calibration check against the women's T20I test years, and a short written comparison with the IPL 2026 leaderboard: do the same kinds of players (fast top-order scorers, death-over finishers) lead?

E2. Calibration across leagues you have not modelled. The Hundred is 100 balls with a different over structure. Adapt build_states and WP v1 to it (balls left out of 100, the same context features), test out of time, and decide whether a men's 20-over model rescaled to 100 balls does better or worse than a Hundred-only model. Write up which choices mattered.

E3. A three-outcome Test model. Using Chapter 29's fourth-innings data, build a multinomial (win/draw/loss) model for the side batting fourth, with state features (runs needed, overs left in the match, wickets in hand) and a conditions feature. Score it with a multi-class Brier score out of time, and draw one reliability diagram per outcome.