On the evening of 30 October 2025, at the Dr DY Patil Sports Academy in Navi Mumbai, Australia
In This Chapter
- 24.1 What a pre-match forecast is, and how to score one
- 24.2 Elo: ratings that learn one match at a time
- 24.3 Ten competitions, one verdict at a time
- 24.4 Elo for Test cricket: the third result
- 24.5 The ICC's rankings and Elo: which forecasts better?
- 24.6 Rating the team sheet, not the badge
- 24.7 Logistic regression, random forest, XGBoost
- 24.8 Calibration: does 70% mean 70%?
- 24.9 The ceiling: how accurate could any model be?
- 24.10 Six finals, priced before the first ball
- Spaced Review
- Project Checkpoint: match_model.py
- Chapter Summary
- What's Next
Chapter 24 — Match Outcome Prediction: Building Models That Forecast Who Will Win Before the First Ball
On the evening of 30 October 2025, at the Dr DY Patil Sports Academy in Navi Mumbai, Australia batted first in the second semi-final of the Women's ODI World Cup and made 338. Phoebe Litchfield scored 119 off 93 balls; Ellyse Perry added 77. India had already lost to Australia in the group stage, and they had lost three league matches in a row (to South Africa, Australia and England) before they scrambled into the last four. Then Jemimah Rodrigues made 127 off 134 balls, Harmanpreet Kaur made 89 off 88, and India reached 341 for 5. They won by five wickets.
Three days later India beat South Africa by 52 runs in the final. Shafali Verma made 87 off 78 and Deepti Sharma 58 off 58 in a total of 298 for 7. Laura Wolvaardt answered with 101 off 98, her second hundred of the knockouts after 169 against England in the other semi-final. It was not enough.
Now go back to the morning of that semi-final and ask the question this chapter is about: before a ball was bowled, how likely was India to win? Here is what the model we build in this chapter said. It was frozen the day before each match, so it had never seen the result.
Women's ODI Elo going into the tournament (full members):
Australia 1971
India 1747
England 1690
New Zealand 1547
South Africa 1508
...
Semi-final 2025-10-29 at Barsapara Cricket Stadium: South Africa 1612 v England 1755 -> P(South Africa) 0.305; winner South Africa
Semi-final 2025-10-30 at Dr DY Patil Sports Academy: Australia 2009 v India 1686 -> P(Australia) 0.848; winner India
Australia went into that semi-final rated 2009, more than 300 points clear of India. Even with India at home, the model made Australia an 85% favourite. India won. In the other semi-final South Africa were a 30% chance against England, and they won by 125 runs. Then the final:
date venue team1 elo1 team2 elo2 P(team1) P(draw) P(team2) winner margin model
Women's ODI World Cup final 2025 2025-11-02 Dr DY Patil Sports Academy India 1736 South Africa 1654 0.650 NaN 0.350 India by 52 runs Elo
India were 65% favourites, and this time the favourite won.
Was the model wrong in the semi-final? Not necessarily, and this chapter will teach you why that is a real answer and not an excuse. A forecaster who says 85% expects the underdog to win about three times in twenty. If Australia never lost matches like that one, the 85% would have been the mistake. What you can fairly ask of a pre-match model is something else. Over hundreds of matches, do its 85% calls come in about 85% of the time? Does it beat simpler rules? Does it say anything at all in the competitions where everyone thinks they can pick a winner?
That last question has an awkward answer, and we will reach it honestly. The idea most people carry around is the one in this book's outline: "a good pre-match model is 60–65% accurate." We test it in ten competitions, on matches the models never saw. In some of them, models do better than 65%. In others, the best model we can build barely beats a coin. One famous league is the clearest example of the second kind. The difference between the two groups is not modelling skill. It is cricket.
🏏 Fan Track: Read 24.1 (how forecasts are scored), 24.3 (the competition-by-competition verdict), 24.9 (the ceiling) and 24.10 (six finals). Skim the code. You will come away able to judge any "who wins?" prediction you see before a match.
📊 Analyst Track: Everything, especially 24.2 (Elo and tuning K), 24.6 (rating the team sheet), 24.7 (the model bake-off with time-ordered validation) and 24.8 (calibration). Run every script; the Project Checkpoint gives you
crease.match_model, which Chapter 28's tournament simulator imports.🎰 Betting Track: 24.1, 24.3, 24.8 and 24.9 are the core. A pre-match probability is only worth something if it is calibrated, and the ceiling in 24.9 tells you how much of an edge can exist at all. Chapter 35 turns these numbers into prices.
24.1 What a pre-match forecast is, and how to score one
A pre-match forecast answers one question: given what is known before the first ball, what is the probability that this side wins? "Known before the first ball" covers a lot. Every earlier result is known, and so are the venue, the home side, the date, the two squads and the history of every player in them. At the toss, the toss winner, the decision and the two team sheets become known too. What is not known is anything that happens once play starts. That is in-match forecasting, the job of Chapter 20 and Chapter 27.
The output is a number between 0 and 1. That changes how we judge a model. "Did it pick the winner?" is part of it. Calling the winner is easy to understand and easy to fool yourself with, so we need three scores, and the book uses all three everywhere in this chapter.
📐 Definition — accuracy (favourite's win %). The share of decided matches in which the side the model rated above 50% won. It ignores how confident the model was.
📐 Definition — Brier score. The mean of (p − y)², where p is the forecast probability that a side wins and y is 1 if it won, 0 if it lost. Lower is better. A coin flip (p = 0.5 always) scores 0.2500.
📐 Definition — log loss. The mean of −[y·ln p + (1 − y)·ln(1 − p)]. Lower is better. A coin flip scores ln 2 = 0.6931. Log loss punishes confident mistakes very hard. A forecast of 0.99 that loses costs as much as about seven coin flips.
Here is how the three scores treat single forecasts (from code/01_baselines.py):
Scoring one forecast of 0.70 for the side that wins / loses:
outcome win : Brier 0.090 log loss 0.357
outcome loss: Brier 0.490 log loss 1.204
a 0.90 favourite that loses: Brier 0.810 log loss 2.303
a 0.99 favourite that loses: Brier 0.980 log loss 4.605
Both Brier and log loss are proper scoring rules. A forecaster gets the best expected score by reporting exactly what they believe. You cannot game them by shading probabilities toward 0.5 or away from it. Accuracy is not proper. A model that says 51% for every favourite has the same accuracy as one that says 90%, which is why a model that "picks 65% of winners" tells you very little until you know its log loss.
What does a model have to beat?
Before building anything, try the rules a pundit would use. We take every decided match from 2023 to 2026 in ten competitions. Each rule picks a side using only pre-match information and gets the hit rate it earned in the earlier years as its probability:
- home side: back the team at home (no view at neutral venues);
- toss winner: back whoever won the toss (known at the toss, still before the first ball);
- better record: back the side with the better win share over the previous 365 days.
Naive pre-match rules, test 2023-26 (decided matches). 'cov' = share of matches the rule picks a side;
'rate' = the rule's hit rate in the training years (used as its probability); 'hit' = its hit rate in the test.
n_test home_cov home_rate home_hit home_LL toss_rate toss_hit toss_LL record_cov record_rate record_hit record_LL coin_LL
competition
IPL 286 0.808 0.562 0.485 0.702 0.518 0.507 0.693 0.969 0.525 0.534 0.691 0.693
BBL 160 0.613 0.506 0.673 0.690 0.524 0.550 0.690 0.963 0.561 0.545 0.690 0.693
PSL 142 0.183 0.769 0.692 0.682 0.620 0.535 0.706 0.859 0.537 0.492 0.697 0.693
CPL 134 0.567 0.550 0.513 0.695 0.526 0.590 0.685 0.896 0.563 0.550 0.689 0.693
T20 Blast 492 0.827 0.529 0.516 0.693 0.492 0.500 0.693 0.972 0.530 0.565 0.687 0.693
Men's T20Is (FM) 323 0.836 0.524 0.544 0.691 0.494 0.533 0.694 0.997 0.568 0.618 0.670 0.693
Men's ODIs (FM) 260 0.831 0.583 0.634 0.667 0.496 0.504 0.693 0.950 0.629 0.583 0.684 0.693
Women's T20Is (FM) 285 0.744 0.542 0.552 0.689 0.545 0.558 0.687 0.947 0.657 0.678 0.633 0.693
Women's ODIs (FM) 199 0.874 0.553 0.632 0.674 0.501 0.467 0.693 0.925 0.728 0.679 0.638 0.693
WBBL 145 0.297 0.519 0.674 0.689 0.490 0.483 0.693 0.924 0.551 0.507 0.697 0.693
"FM" means matches between two of the twelve ICC full members. Three things stand out.
First, the toss is worth nothing as a predictor, which is exactly what Chapter 22 found when it treated the toss as a randomised experiment. The PSL's toss rule had earned 62.0% in its training years, the one league where Chapter 22 found a toss effect that survived a multiple-testing correction. Out of time it won 53.5% and scored a worse log loss than a coin, because the probability it carried forward was too confident.
Second, home advantage behaves like Chapter 22 said it would: real in 50-over internationals (in 2023–26 the home side won 63.4% of the decided full-member ODIs that had one), modest in T20Is, and in the IPL from 2023 to 2026, below a coin. The IPL home side won 48.5% of its decided games.
Third, plain recent form is the strongest naive rule in the international game. In women's ODIs the side with the better recent record won 67.9% of the time. In the IPL the same rule managed 53.4%.

📊 Figure (described): For each of ten competitions, three bars show how often a naive rule picked the winner in 2023–26: the home side, the toss winner, and the side with the better record over the previous year. A shaded band marks 60–65%. Only the women's internationals and the better-record rule in men's T20Is get into or above the band; in the IPL all three rules sit within a few points of 50%.
🔄 Check your understanding
- Model A says 0.55 for every favourite; model B says 0.80. Both call 60% of winners. Which has the better log loss, and why does accuracy not tell them apart?
- In the IPL test years the home side won 48.5% of decided games. Why might the "home" rule's log loss (0.702) be worse than a coin's even though 48.5% is close to 50%?
Answer
- With favourites winning 60% of the time, A's forecasts (0.55) are close to the truth and B's (0.80) are far too confident. A has the better log loss, because log loss rewards probabilities close to what actually happens. Accuracy only checks which side of 0.5 the forecast was on, and both models put the same side above 0.5.
- The rule carried its training hit rate (0.562) forward as a probability. Saying 56% for a side that wins 48.5% of the time is miscalibrated, and log loss charges for it. A coin says 50% and is closer to the truth.
⚠️ Common pitfall — scoring a forecast by its hits alone. "Our model called 62% of winners" sounds like a result. It is half of one. Two models with the same hit rate can differ enormously in log loss if one of them is confidently wrong in a handful of matches, and a punter or a tournament simulator pays for the probabilities, not the picks. Report accuracy for the reader's intuition, then report log loss and Brier, always against the coin (0.6931 and 0.2500) and against the best naive rule.
24.2 Elo: ratings that learn one match at a time
The "better record over the last year" rule has two obvious flaws. Beating Australia counts the same as beating a side at the bottom of the table, and a win eleven months ago counts as much as one last week. The fix is more than sixty years old. Arpad Elo designed it for chess players (his book is The Rating of Chessplayers, Past and Present), and it suits any sport where two sides meet and one of them wins.
Every team carries a rating. Before a match, the gap between the two ratings becomes an expected result. After the match, each side's rating moves by an amount proportional to the surprise: what happened minus what was expected.
📐 Definition — Elo rating (as used in this book). Before a match between A and B,
P(A wins) = 1 / (1 + 10^(−(R_A − R_B + H·h)/400)),
where h = +1 if A is at home, −1 if B is at home, 0 at a neutral venue, and H is the home bonus in rating points. After the match, R_A ← R_A + K·(y − P) and R_B ← R_B − K·(y − P), with y = 1 for an A win, 0 for a loss, and 0.5 for a tie (or, in Tests, a draw). K sets how far one result moves a rating. An optional season regression pulls every rating a fixed share of the way back toward the mean at the start of a new season, because franchise squads change. Every team starts at 1500.
The scale is arbitrary. A 100-point gap at a neutral venue means P = 0.64, a 200-point gap 0.76, and a 400-point gap 0.91. Only differences matter.
The arithmetic fits in ten lines. This is the heart of crease.match_model.elo_history:
for t1, t2, y, h, s in zip(m["team1"], m["team2"], m["y"], m["home"], seasons):
if season_regress and s != last_season and ratings: # new season: pull toward the mean
mu = np.mean(list(ratings.values()))
ratings = {t: r - season_regress * (r - mu) for t, r in ratings.items()}
last_season = s
r1, r2 = ratings.get(t1, 1500.0), ratings.get(t2, 1500.0)
gap = r1 - r2 + home_adv * h
p1 = 1.0 / (1.0 + 10 ** (-gap / 400)) # the forecast, made BEFORE the match
record(p1)
if not np.isnan(y): # no-results don't update
ratings[t1] = r1 + k * (y - p1)
ratings[t2] = r2 - k * (y - p1)
The comment on the forecast line is the important one. The forecast is written down before the result is used, so every probability this function produces is walk-forward: made with only the matches that came before. Nothing about the future leaks in. That is what makes it honest to score those probabilities against what happened.
Tuning K, honestly
K is a choice, and it matters. A small K makes ratings slow and stable, so a team's rating reflects years of results. A large K makes them jumpy, so last month dominates. The right value depends on how fast real strength changes in a competition and on how noisy single results are. We do not guess it. We tune K, the home bonus and the season regression by log loss on each competition's training years (from two years after the competition starts, which only warm the ratings up, through 2022). Then we freeze the settings and score 2023–2026.
GRID = dict(DEFAULT_GRID, k=[5, 10, 15, 20, 30, 40, 60, 80, 100])
m = results(code, full_members_only=fm)
best, grid = tune_elo(m, train_mask_for(first), GRID) # log loss on training years only
e = elo_history(m, **best) # walk-forward over the whole history
te = e[(e["year"] >= 2023) & e["outcome"].isin(["team1", "team2"])]
Full script: code/02_elo_by_competition.py. For the IPL the search lands on K = 10, a 50-point home
bonus and a 25% pull toward the mean between seasons. Those are the settings Chapter 35 found when it
built its illustrative betting book, and the out-of-time result reproduces Chapter 35's exactly:
IPL K=10 home=50 regress=0.25: favourite won 47.6% of 286, Brier 0.2576, log loss 0.7085
From 2023 to 2026 the IPL Elo favourite won fewer than half of the decided matches, and its log loss is worse than a coin's. Our grid reaches lower than Chapter 35's (down to K = 5), and the training years still chose K = 10, so this is not a tuning accident. We return to why in 24.9 and Case Study 1.

📊 Figure (described): Two panels, the IPL (left) and men's full-member T20Is (right). Each plots log loss against K on a log scale, once for the training years (blue) and once for 2023–26 (orange), with a dashed line for a coin flip. For T20Is both curves sit well below the coin and the training curve's minimum is close to where the test curve is low. For the IPL the training curve barely dips below the coin, and the test curve sits above the coin line at every K.
🔍 Why this works — Elo is a learning rule, and K is its learning rate. The Elo update is one step of online logistic regression. The forecast is a logistic function of the rating gap, and each result nudges the ratings in the direction that would have made that result less surprising. K plays the part of the learning rate. Too large and the ratings chase noise. Too small and they cannot keep up with real change. When results are mostly noise, as in an even league, the best K is small: the sensible response to a surprising result is to barely move. That is why the IPL's tuned K is half the men's T20I value and a sixth of the women's.
24.3 Ten competitions, one verdict at a time
Here is the whole table: ten competitions, each with its own tuned settings, every probability walk-forward, scored on 2023–2026.
Walk-forward Elo, tuned on training years (after 2-year burn-in, before 2023), judged on 2023-26 (decided matches)
K home regress n_train acc_train n_test acc_test brier_test LL_test LL_gain_vs_coin median_fav_p share_fav_ge_0.70
competition
IPL 10.000 50.000 0.250 818 0.549 286 0.476 0.258 0.708 -0.015 0.560 0.000
BBL 15.000 0.000 0.250 441 0.571 160 0.581 0.242 0.676 0.017 0.558 0.000
PSL 15.000 100.000 0.500 162 0.568 142 0.570 0.242 0.677 0.016 0.534 0.021
CPL 20.000 25.000 0.500 252 0.532 134 0.545 0.243 0.679 0.014 0.538 0.000
T20 Blast 5.000 25.000 0.000 776 0.534 492 0.589 0.241 0.676 0.017 0.553 0.010
Men's T20Is (FM) 20.000 25.000 0.000 757 0.602 323 0.641 0.222 0.637 0.056 0.645 0.322
Men's ODIs (FM) 30.000 75.000 0.000 1615 0.673 260 0.612 0.227 0.645 0.048 0.650 0.365
Women's T20Is (FM) 60.000 25.000 0.000 394 0.734 285 0.719 0.188 0.555 0.138 0.782 0.674
Women's ODIs (FM) 60.000 25.000 0.000 333 0.721 199 0.729 0.173 0.516 0.178 0.799 0.668
WBBL 20.000 25.000 0.250 331 0.547 145 0.566 0.248 0.689 0.004 0.558 0.021
Now we can test the "60–65%" claim competition by competition:
| Competition (2023–26) | Elo favourite won | Verdict on "60–65%" |
|---|---|---|
| Men's T20Is (full members) | 64.1% (n = 323) | In the band |
| Men's ODIs (full members) | 61.2% (n = 260) | In the band |
| Women's T20Is (full members) | 71.9% (n = 285) | Above it |
| Women's ODIs (full members) | 72.9% (n = 199) | Above it |
| T20 Blast, BBL, PSL, WBBL, CPL | 54.5–58.9% | Below it |
| IPL | 47.6% (n = 286) | Below a coin |
So the claim is roughly right for men's international cricket and wrong everywhere else, in both directions. The reason is visible in the last two columns. In women's internationals the median favourite was a 78% shot and two-thirds of matches had a favourite at 70% or more. The gaps between the strongest and weakest full members are wide, and the model can see them. In the franchise leagues the median favourite was a 53–56% shot and almost no match had a 70% favourite. Drafts, auctions, salary caps and squad limits are designed to make franchise teams equal, and they do. How accurate a pre-match model can be depends first on how unequal the teams are, and only second on how clever the model is. We put a number on that in 24.9.
Two more readings of the table. Look at the training accuracy next to the test accuracy. The two are close in most competitions, so these models are not overfitted. There is almost nothing to overfit: three parameters per competition. In the IPL the gap goes the wrong way (54.9% in training, 47.6% in the test), and the year-by-year split shows where:
Favourite's win % by test year:
IPL Men's T20Is (FM) Men's ODIs (FM) Women's T20Is (FM)
year
2023 39.7 47.4 64.8 65.3
2024 53.5 68.8 55.3 71.9
2025 45.7 69.3 67.2 74.3
2026 51.4 64.7 50.0 76.4
The IPL favourite won 39.7% in 2023, the first season of the Impact Player rule, and never got far above a coin after that. Even men's T20Is had a 47.4% year. One season of a single competition is a small sample. Seventy-odd matches give a 95% interval about ±11 points wide around any hit rate, which is what the error bars in Figure 24.3 show.

📊 Figure (described): Horizontal bars give the Elo favourite's win percentage in 2023–26 for ten competitions (men's blue, women's orange), each with a 95% interval and its sample size; a gold band marks 60–65% and a dashed line 50%. Women's ODIs (72.9%) and T20Is (71.9%) sit above the band, men's T20Is (64.1%) and ODIs (61.2%) inside it, the five other franchise leagues between 54.5% and 58.9%, and the IPL at 47.6%, with an interval that includes 50%.
🔄 Check your understanding
- Women's T20Is tuned to K = 60 and the IPL to K = 10. Explain in one sentence each why both are sensible.
- A friend says, "Elo is useless in the IPL, so I'll use it for nothing." What would you tell them?
- Why do we tune on 2010–2022 and test on 2023–2026, rather than tuning on all the years and reporting the best score?
Answer
- Women's international teams differ a lot in strength and their results are less noisy, so ratings should move quickly when a team improves. IPL teams are close in strength and results are noisy, so a surprising result is mostly luck and the rating should barely move.
- Elo is a method, not a verdict. It works well where teams genuinely differ (internationals) and can only do as well as the competition allows where they don't. The IPL failure tells you about the league's parity, not about Elo.
- Tuning on the same matches you score lets the choice of K absorb the test period's luck, so the score is optimistic. A forecast is only honest if every choice was made before the matches it is judged on.
24.4 Elo for Test cricket: the third result
White-ball Elo has two outcomes. A Test has three, and the draw is not a rare nuisance. In the book's data, 169 of the 899 men's Tests were drawn. Elo handles the update side easily: a draw scores 0.5, like a tie. The forecast side needs more. Elo's logistic curve gives the probability that A beats B, and it has nothing to say about how likely the match is to end with neither winning.
We split the job in two:
- A draw model. A small logistic regression gives P(draw) from three pre-match facts: the calendar year (draws have been disappearing, as Chapter 29 and Chapter 33 both found), the size of the Elo gap (mismatches produce results), and whether the venue is neutral.
- Elo for the rest. Whatever probability is not a draw is split by Elo: P(A) = (1 − P(draw)) · P_Elo(A), P(B) = (1 − P(draw)) · (1 − P_Elo(A)).
📐 Definition — ranked probability score (RPS). For three ordered outcomes (A wins, draw, B wins) with forecast probabilities (p₁, p₂, p₃) and outcome indicators (o₁, o₂, o₃), RPS = ½·[(p₁ − o₁)² + (p₁ + p₂ − o₁ − o₂)²]. It treats "predicted a draw, A won" as a smaller miss than "predicted B, A won", which the three-way log loss and Brier do not. Lower is better.
K and the home bonus are tuned by three-way log loss on 2004–2022 (code/03_test_elo_draws.py). Test
cricket chooses a much larger K and a much larger home bonus than the white-ball game:
Tuned on 2004-2022 by three-way log loss: {'k': 60.0, 'home_adv': 150.0, 'season_regress': 0.0}
Draw model coefficients (intercept, per decade, per 100 Elo of gap, neutral venue): [-1.205 -0.48 -0.145 0.175]
Both settings make cricket sense. Teams play few Tests a year, so each one has to carry more information (large K). And home advantage in Tests is enormous. Chapter 22 measured 63.5% of decided Tests won by the home side, more than in any other format. A 150-point bonus is worth about 20 percentage points at an even rating. The draw model's year coefficient says the log-odds of a draw fall by 0.48 per decade. Each 100 points of rating gap lowers them by 0.145.
Now the test. We score four forecasts of the 146 Tests from 2023 to 2026:
Training base rates for the home side: win 0.515, draw 0.205, loss 0.279; draw rate 2020-22 0.159; test-period draw rate 0.089
Test period 2023-26, three-way scores:
n accuracy log_loss brier rps
uniform 1/3 146.0000 0.4795 1.0986 0.6667 0.2629
home/away base rates 146.0000 0.5205 0.9833 0.5942 0.2498
home/away, recent draw rate 146.0000 0.5205 0.9544 0.5827 0.2484
Elo + draw model 146.0000 0.6164 0.9003 0.5280 0.2235
Decided Tests 2023-26: Elo favourite won 67.7% of 133; home side won 57.3% of 131 decided non-neutral Tests
median two-way favourite probability 0.762
Elo with the draw model wins on every score. Among decided Tests its favourite won 67.7%, against 57.3% for "pick the home side". That is above the 60–65% band, for the same reason as in women's cricket: Test sides differ widely in strength, and the rating sees it. (Chapter 22's "pick the home side" figure of 61.0% covered 2018–26, a different window.) The median favourite in a decided Test was a 76% chance.
How did the draw model do?
Draws: observed vs the draw model (fitted on 2004-22; 2023-26 is out of time)
tests observed_draw forecast_draw
period
2002-09 214 0.252 0.260
2010-15 252 0.242 0.209
2016-19 177 0.130 0.173
2020-22 107 0.159 0.149
2023-26 146 0.089 0.124
It carried the downward trend forward and still forecast too many draws for 2023–26: 12.4% against an observed 8.9%. Case Study 2 tries three repairs and finds that the gap is about one standard deviation of binomial noise on 146 matches. That is less alarming than it looks, but it is worth watching.
Test Elo at the end of the snapshot:
rating last_test
team
South Africa 1777 2026-10-27
Australia 1730 2026-10-27
New Zealand 1694 2026-06-25
India 1647 2026-08-23
England 1583 2026-09-09
Sri Lanka 1435 2026-08-23
West Indies 1405 2026-10-28
Pakistan 1394 2026-09-09
Bangladesh 1366 2026-10-28
Ireland 1339 2026-05-27
Zimbabwe 1142 2026-06-28

📊 Figure (described): Walk-forward Test Elo (K = 60, home bonus 150) for eight teams from 2002 to 2026, with a dashed line at the start of the 2023 test period. Australia's line is highest for most of the 2000s; India's climbs through the late 2010s; South Africa's rises to the top at the end of the snapshot. The lines spread widely, from below 1300 to above 1800, far wider than any franchise league's ratings.
Afghanistan is missing from that table, and from every international Elo in this chapter. Cricsheet withholds Afghanistan's men's internationals by policy, so their Tests, ODIs and T20Is are not in the data. That has two effects you should state whenever you publish these ratings. Afghanistan has no rating at all. And every opponent's rating has learned nothing from its matches against Afghanistan, including the defeats. A side that lost two ODIs to Afghanistan is rated as if those games never happened.
Imran: Sixty points a result. That's a lot of movement for one Test.
Nusrat: The training years chose it. Teams play maybe ten Tests a year. If K were 20, a side that genuinely got better would take two seasons to show it.
Imran: And the home bonus — 150. At Headingley Road we'd call that "the Dukes ball in April". You can't explain English home Tests without it. But it isn't the same everywhere, is it? India at home and Zimbabwe at home are different things.
Nusrat: It's one number for every host. A per-host bonus would fit better in the training years and might not survive the test.
Imran: Try it before you decide. That's an exercise, not a conclusion.
(It is Exercise C4.)
🔄 Check your understanding
- Why can't plain Elo forecast a draw, and how does the draw model fix that?
- The tuned Test home bonus (150) is twice the men's ODI value (75). Give one cricket reason.
- Why does Afghanistan's absence from the data affect other teams' ratings?
Answer
- Elo's logistic curve gives P(A beats B) only. It has no third outcome. The draw model estimates P(draw) separately (from year, rating gap and neutral venue), and Elo splits the remaining probability between the two sides.
- Any of: Tests last five days in local conditions (pitches that wear in familiar ways, the Dukes or SG ball, heat), and visiting batters face them for long innings; tours give visitors few warm-up games; Chapter 22 found home advantage strongest in Tests.
- Elo updates are zero-sum between the two teams in a match. Results against Afghanistan never happened as far as the data knows, so opponents keep the points they lost (or never get the points they won) in those games.
24.5 The ICC's rankings and Elo: which forecasts better?
The ICC publishes team rankings for all three formats, and broadcasters quote them before every series. This book's outline says "ICC already uses a version" of Elo. It does not. The ICC's method is a points-average system. As the ICC and secondary descriptions of the method set it out:
- each result earns the team a number of points that depends on its rating and the opponent's rating before the match. If the ratings are less than 40 apart, a win earns the opponent's rating plus 50, a loss the opponent's rating minus 50. If they are 40 or more apart, the expected result moves the stronger side by only 10 points, while an upset is worth ±90;
- a team's rating is its points total divided by its number of matches;
- older results are down-weighted and then dropped at an annual update in May, so the table reflects roughly the last three to four years.
The ICC's published methodology has details (seeding, exact weighting windows, series bonuses in
earlier versions) that we do not reproduce. crease.match_model.icc_points_history re-implements the
structure: per-match points as above, full weight for the most recent year, half weight for the
two years before, older results dropped, and every team starting at 100. Read it as an "ICC-style"
rating built for teaching, not the official table.
The structural difference from Elo is worth seeing. Elo is a running sum of surprises. The points-average rating is an average of performances, each scored relative to the opponent, and it forgets on a fixed calendar. Both are reasonable. Which one forecasts better?
To compare them fairly, we give both ratings the same link. On the training years we fit one logistic
regression of the result on the rating gap (plus home), separately for each rating, then score 2023–26
(code/04_icc_vs_elo.py):
Same logistic link fitted on training years, judged on 2023-26 (decided matches):
coef_per_100 home_coef n accuracy brier log_loss
format rating
Men's ODIs (FM) ICC-style points average 2.4203 0.2608 260 0.6192 0.2320 0.6557
Elo 0.4842 0.2945 260 0.6077 0.2297 0.6514
Men's T20Is (FM) ICC-style points average 2.0099 0.1465 323 0.6502 0.2261 0.6444
Elo 0.5840 0.1552 323 0.6533 0.2218 0.6372
Men's Tests (decided) ICC-style points average 3.1192 0.6687 133 0.6767 0.2138 0.6237
Elo 0.5792 0.7352 133 0.6842 0.2202 0.6473
Men's ODIs (FM): log loss Elo minus ICC-style -0.0043 (90% bootstrap interval -0.0183 to +0.0101)
Men's ODIs (FM): the two ratings name the same favourite in 91.2% of 260 test matches
Men's T20Is (FM): log loss Elo minus ICC-style -0.0072 (90% bootstrap interval -0.0240 to +0.0103)
Men's T20Is (FM): the two ratings name the same favourite in 90.1% of 323 test matches
Men's Tests (decided): log loss Elo minus ICC-style +0.0237 (90% bootstrap interval -0.0122 to +0.0607)
Men's Tests (decided): the two ratings name the same favourite in 88.0% of 133 test matches
(The coefficients differ in size because the two scales differ: ICC-style ratings sit around 100, Elo around 1500.) Elo is slightly better in ODIs and T20Is. The ICC-style rating is better in decided Tests. Every interval includes zero. The two ratings name the same favourite about nine times in ten, and their end-of-snapshot ODI orders agree almost perfectly:
Ratings going into each team's last match in the snapshot (ODIs; ICC-style starts every team at 100):
icc_style elo rank_icc rank_elo
New Zealand 105.7 1669.4 2 1
India 108.7 1661.3 1 2
South Africa 102.2 1601.8 3 3
Australia 95.4 1582.8 5 4
Pakistan 97.8 1571.3 4 5
Sri Lanka 88.9 1514.7 6 6
England 87.7 1500.8 7 7
Bangladesh 85.5 1476.5 8 8
West Indies 72.8 1394.6 9 9
Ireland 61.6 1307.7 11 10
Zimbabwe 63.2 1240.0 10 11
Spearman rank correlation (ODI): 0.973

📊 Figure (described): Paired bars give the 2023–26 log loss of the ICC-style points-average rating and of Elo, each converted to a probability by the same logistic fit, for men's ODIs, T20Is and decided Tests; a dashed line marks the coin. All six bars sit between about 0.62 and 0.66, well below the coin, and within each format the two bars differ by less than 0.025.
📋 Try it — Settle this debate. "The ICC rankings are a joke. Elo would rank teams properly." Using the output above, write a three-sentence verdict.
Worked answer
As forecasts, the two systems are statistically indistinguishable on 2023–26: the log-loss differences are under 0.025 in every format and every bootstrap interval includes zero, and they agree on the favourite in about 90% of matches. Their ODI orders at the end of the snapshot have a rank correlation of 0.973. The real differences are design choices, not accuracy: Elo moves after every match by an amount you can tune, while the points-average forgets on a fixed annual calendar. That produces the overnight rank changes in May that fans find strange.
24.6 Rating the team sheet, not the badge
Elo knows only results. It does not know that a side is missing its best fast bowler, that three debutants are playing, or that a franchise rebuilt its squad at the auction. The natural next step, and the one this book's outline asks for, is to rate the players in the announced XI and add them up.
Cricsheet records every playing XI. The team sheet is exchanged at the toss, so it is fair pre-match
information for any forecast made at the toss. (A forecast made days earlier would need a predicted
XI, which is a different and harder problem.) We read XIs with crease.fielding.load_xis, the helper
Chapter 17 wrote, which
parses them from the raw Cricsheet files.
⚠️ Common pitfall — using "who batted" as the team sheet. The delivery table only contains players who batted or bowled, and who batted depends on what happened. Lose early wickets and your number 9 bats. Chase 120 easily and he doesn't. Building team strength from the batters who appear in the scorecard quietly leaks the result into the features. Use the announced XI. One wrinkle remains: from 2023 the IPL team sheet lists 12 names, including the Impact Player substitute, and which substitute is used can depend on the toss. That leak is small, but it is a leak, and we flag it.
From players to runs
Each player gets a rating built only from the three calendar years before the match, from all twelve
men's T20 competitions in the data. We reuse
Chapter 25's machinery (crease.projection): season lines
expressed as indices against par for the same competition, year and phase (SR+, out+, econ+, wkt+),
Marcel weights 5/4/3, and shrinkage with Chapter 25's fitted k values (370 balls for SR+, 140 for
out+, 487 for econ+, 3,200 for wkt+). One change matters. Instead of shrinking toward par (100), we
shrink toward a newcomer prior: the average index of players in their first season in the pool,
2005–2022. Players without much history are, on average, worse than par:
Par constants (men's T20 pool, 2005-2022): runs/ball faced 1.247, outs/ball 0.0548; runs conceded/legal ball 1.296, wickets/legal ball 0.0506
Newcomer prior (first season in the pool, 2005-2022): SR+ 90.5, out+ 112.0, econ+ 102.0, wkt+ 99.3; balls/innings 8.25
-> a newcomer is worth -0.158 runs per ball batting and -0.028 bowling
Then the indices become runs.
📐 Definition — player value per ball (T20). batting value = par runs/ball × (SR+ − 100)/100 − W × par outs/ball × (out+ − 100)/100; bowling value = par runs/ball × (100 − econ+)/100 + W × par wickets/ball × (wkt+ − 100)/100 (runs saved, so positive is good). W = 6 runs per wicket in T20 (15 in ODIs), a stated modelling choice between Chapter 5's ~5.3 runs at the halfway point and Chapter 19's phase values.
📐 Definition — team-sheet strength. Batting strength = 120 × Σ wᵢ·(batting valueᵢ) with wᵢ ∝ each player's past balls per innings (openers carry ~20, the tail ~3). Bowling strength = 120 × Σ vᵢ·(bowling valueᵢ) with vᵢ ∝ past balls bowled per match (capped at a full quota of 24). Both are in runs per match above par; the strength difference is (batting + bowling) for A minus the same for B.
def xi_strength(player_ids, ratings, newcomer, balls=120, max_bpm=24.0):
r = ratings.reindex([p for p in player_ids if isinstance(p, str)])
for c in newcomer.index:
r[c] = r[c].fillna(newcomer[c]) # no history -> newcomer prior
wb = r["bpi"].clip(lower=0.5) # expected share of the innings
bat = balls * float((wb * r["bat_value"]).sum() / wb.sum())
ww = r["bpm"].clip(upper=max_bpm) # expected share of the overs
bowl = balls * float((ww * r["bowl_value"]).sum() / ww.sum()) if ww.sum() > 0 else 0.0
return {"bat": bat, "bowl": bowl}
Full script: code/05_player_strength.py. Here are the best batters going into 2026, rated on 2023–25:
Ratings for 2026 (from 2023-25), batting value per ball above par — top 8 with 600+ weighted balls:
name bat_balls sr_plus out_plus bpi bat_value
player_id
6a97c7a4 Karanbir Singh 949.200 132.228 65.875 29.663 0.514
f29185a1 Abhishek Sharma 1179.000 133.489 114.252 17.756 0.371
33b67317 Bilal Zalmai 701.800 121.648 90.530 20.051 0.301
bf74b130 FH Allen 932.600 130.504 125.479 15.042 0.297
eaa36b2a BJ Bennett 916.800 118.372 86.722 21.321 0.273
3241e3fd N Pooran 2986.400 113.049 74.231 20.097 0.248
33290a80 K Kadowaki-Fleming 779.800 112.162 71.090 26.345 0.247
f1f99156 TH David 1598.200 114.380 79.675 13.683 0.246
Karanbir Singh and Bilal Zalmai play for Austria, and Kadowaki-Fleming for Japan. In the data, almost all of their balls come in T20Is against other associate sides. Their indices are measured against par for men's T20Is as a whole, which mixes Austria v Romania with India v Australia. They really did score fast against the bowling they faced. But an SR+ of 132 against that bowling is not the same skill as an SR+ of 132 in the IPL.
⚠️ Common pitfall — untranslated league strength. Indices against par are comparable within a competition, not across them. Pool them untranslated and an associate T20I batter can outrank an IPL opener. The fix is Chapter 26's translation factors (
crease.translation), which estimate how an index in one competition converts to another. We leave the ratings untranslated here so you can see the problem, and Exercise E1 asks you to fix it.
Restricted to players who appeared on an IPL team sheet in 2023–25, the lists look like the game you watch:
Same, IPL team-sheet players 2023-25 only — batting:
name bat_balls sr_plus out_plus bpi bat_value
f29185a1 Abhishek Sharma 1179.000 133.489 114.252 17.756 0.371
3241e3fd N Pooran 2986.400 113.049 74.231 20.097 0.248
f1f99156 TH David 1598.200 114.380 79.675 13.683 0.246
3d284ca3 PD Salt 1833.800 118.317 99.357 18.301 0.231
271f83cd SA Yadav 1494.400 114.729 86.638 18.964 0.228
12b610c2 TM Head 1042.600 120.187 107.983 18.486 0.225
99b75528 JC Buttler 2082.000 111.092 77.984 22.879 0.211
235c2bb6 H Klaasen 1557.600 112.617 84.082 17.307 0.210
bowling:
name bowl_balls econ_plus wkt_plus bpm bowl_value
462411b3 JJ Bumrah 1044.000 82.651 102.684 23.200 0.233
9d430b40 SP Narine 3432.000 82.474 88.851 23.034 0.193
efc04be7 Noor Ahmad 2300.000 90.745 109.682 22.330 0.149
8d2c70ad Kuldeep Yadav 1334.000 91.943 105.623 21.869 0.122
62af8546 Mohammad Nabi 1055.000 89.895 96.563 17.881 0.121
5b7ab5a9 CV Varun 1558.000 93.861 112.817 22.580 0.119
402f8494 RJ Gleeson 941.000 91.116 100.393 21.386 0.116
a97c8ec2 PWH de Silva 2318.000 95.455 110.772 22.505 0.092
Bumrah's 0.233 runs saved per ball is about 5.6 runs over a full four-over spell, compared with a par
bowler in the same competitions, years and phases. Noor Ahmad's and Mohammad Nabi's ratings come
only from the franchise leagues in the data. Afghanistan's internationals are not in Cricsheet, so a
large part of their recent cricket is invisible to this model. (The bat_balls and bowl_balls
columns are 5/4/3-weighted balls, not raw counts.)
A real team sheet
The IPL 2026 final, Gujarat Titans v Royal Challengers Bengaluru at Ahmedabad, rated with 2026 ratings:
IPL 2026 final (1535465) — team sheets rated with 2026 ratings (built from 2023-25):
Gujarat Titans batting +1.8 bowling +0.5 total +2.2 runs per match vs par (12 names, 100% with history)
Royal Challengers Bengaluru batting -1.4 bowling -0.0 total -1.5 runs per match vs par (12 names, 100% with history)
feature row: team1 Gujarat Titans, elo_diff +43.5, str_diff +3.7, winner Royal Challengers Bengaluru
The two team sheets were 3.7 runs apart. Gujarat's edge in Elo, home bonus included, was 43.5 points. Both say "slight Gujarat favourites", and Royal Challengers won.
How much do team sheets say?
Across the twelve competitions, 2012–2026:
Pooled men's T20, decided matches 2012-26: 6476
SD of strength difference 8.3 runs (batting 6.9, bowling 4.4); SD of Elo difference 76.2 points
correlation(Elo diff, strength diff) = 0.391
One-variable logistic links, trained 2012-2022 (n=4291), tested 2023-26 (n=2185):
coef_per_100 n accuracy brier log_loss
Elo difference 0.6276 2185.0000 0.5794 0.2412 0.6758
Team-sheet strength 3.7248 2185.0000 0.5506 0.2455 0.6840
Batting only 3.7475 2185.0000 0.5510 0.2451 0.6832
Bowling only 3.8399 2185.0000 0.5350 0.2493 0.6918
a 10-run strength edge -> P(win) 0.582 on the fitted link
a 20-run strength edge -> P(win) 0.669 on the fitted link
a 30-run strength edge -> P(win) 0.746 on the fitted link
The typical gap between two T20 team sheets is about 8 runs (one standard deviation), worth roughly 58% for the better side. On its own, the team sheet predicts less well than Elo. Elo is built from results, which already include everything the players did, and it updates within a season, while the player ratings are frozen at the start of each year. The two are related but far from the same (correlation 0.39), so the obvious next question is whether together they beat either alone. (These one-variable fits keep an intercept; the full models in 24.7 are made symmetric, so which team is listed first cannot matter.)

📊 Figure (described): Team1's win percentage in bins of team-sheet strength difference (runs per match vs par) for 2012–22 (blue) and 2023–26 (orange), each with a 95% interval, over a black logistic curve fitted on 2012–22. Win rates rise from about 30% at a 15-run deficit to about 65% at a 20-run advantage, and the out-of-time points follow the curve slightly flatter than the training points.
🔄 Check your understanding
- Why does the model shrink a player with little history toward a newcomer prior rather than toward par?
- Give one reason the team-sheet rating predicts less well than Elo on its own.
- Which IPL information would make the 2023+ team sheets leak slightly, and why?
Answer
- Because players with little history are, on average, below par (newcomer SR+ 90.5, out+ 112.0). Shrinking toward 100 would flatter every unknown debutant.
- Any of: the ratings are frozen at the start of each calendar year while Elo updates every match; league strength is not translated; the weights (W = 6, balls-per-innings shares) are fixed choices; fielding, captaincy and conditions aren't in it; Elo's results already contain the players' contribution.
- The 12th name, the Impact Player substitute. Which substitute is used can depend on the toss and on how the match goes, so it is not entirely fixed before the first ball.
24.7 Logistic regression, random forest, XGBoost
This book's outline calls gradient boosting "typically the best performer for tabular sports data". Here is a fair contest. The features, all known by the toss:
elo_diff: the Elo gap with each competition's tuned home bonus;bat_diff,bowl_diff: team-sheet batting and bowling strength differences (runs per match);home: +1, 0, −1;- separately,
toss1: +1 if the first-listed side won the toss.
The data: all twelve men's T20 competitions pooled (6,476 decided matches from 2012), T20Is restricted to full members. Training uses 2012–2022 and testing uses 2023–2026. The tree models' settings are chosen inside the training years: fit on 2012–19, pick the settings with the best log loss on 2020–22, then refit on all of 2012–22. Every model is made symmetric. Each match enters training from both sides, with the features negated and the outcome flipped, and predictions average both orientations, so P(A beats B) = 1 − P(B beats A) exactly and the order in which Cricsheet lists the teams carries no information.
🧩 Productive struggle. Before you read the table, write down your guesses. (a) Which of the seven models will have the lowest test log loss? (b) By how much will adding the team sheet to Elo improve the log loss: 0.001, 0.01 or 0.05? (c) Will XGBoost beat logistic regression? Keep your answers. The useful thing about this exercise is how far off they turn out to be.
FULL = ["elo_diff", "bat_diff", "bowl_diff", "home"]
models = {
"Elo as-is (no fitting)": None,
"Logit: Elo only": MatchModel("logit", ["elo_diff"]),
"Logit: team sheet only": MatchModel("logit", ["bat_diff", "bowl_diff", "home"]),
"Logit: Elo + team sheet + home": MatchModel("logit", FULL),
"Logit: ... + toss": MatchModel("logit", FULL + ["toss1"]),
"Random forest": MatchModel("rf", FULL, **best["rf"]),
"XGBoost": MatchModel("xgb", FULL, **best["xgb"]),
}
for name, mm in models.items():
preds[name] = te["p_elo"].to_numpy() if mm is None else mm.fit(tr).predict_proba(te)
Full script: code/06_model_bakeoff.py. The tuning step and the results:
rf: best on 2020-22 validation {'min_samples_leaf': 200, 'max_features': 2} (log loss 0.6660); worst 0.6758
xgb: best on 2020-22 validation {'max_depth': 1, 'n_estimators': 300, 'learning_rate': 0.03, 'min_child_weight': 20} (log loss 0.6650); worst 0.6721
Logit coefficients (per unit of each feature): {'elo_diff': 0.0054, 'bat_diff': 0.0206, 'bowl_diff': 0.0204, 'home': -0.0079}
Logit + toss coefficients: {'elo_diff': 0.0054, 'bat_diff': 0.0207, 'bowl_diff': 0.0205, 'home': -0.0082, 'toss1': 0.0336}
All twelve competitions pooled, test 2023-26:
n accuracy brier log_loss
Elo as-is (no fitting) 2185.0000 0.5730 0.2420 0.6771
Logit: Elo only 2185.0000 0.5730 0.2422 0.6776
Logit: team sheet only 2185.0000 0.5597 0.2456 0.6842
Logit: Elo + team sheet + home 2185.0000 0.5808 0.2414 0.6760
Logit: ... + toss 2185.0000 0.5794 0.2410 0.6752
Random forest 2185.0000 0.5812 0.2410 0.6746
XGBoost 2185.0000 0.5753 0.2414 0.6757
Coin flip 2185.0000 0.5373 0.2500 0.6931
Look at the tuning lines first. The best XGBoost had trees of depth 1, so each tree splits on a single feature. The best forest needed 200 matches in every leaf. When the tuning process is left to choose, it picks the least flexible models on offer. Depth-1 boosting is an additive model, very close to logistic regression. The data have no interactions for the trees to find, and the trees were sensible enough to stop looking.
Then the results. Every model beats the coin, most of them by about 0.017 in log loss. Apart from the team-sheet-only model, all six are within 0.003 of each other. Adding the team sheet to Elo gains 0.0015. Is that real?
Log loss, (Elo + team sheet + home) minus (Elo only), all: -0.0015 (90% interval -0.0042 to +0.0011; n=2185)
Log loss, (Elo + team sheet + home) minus (Elo only), IPL: +0.0017 (90% interval -0.0052 to +0.0085; n=286)
Log loss, (Elo + team sheet + home) minus (Elo only), Men's T20Is (FM): -0.0007 (90% interval -0.0082 to +0.0067; n=323)
Not detectably. A paired bootstrap over the 2,185 test matches puts the gain between −0.0042 and +0.0011. The coefficients tell a story that makes sense (a run of batting strength is worth as much as a run of bowling strength, 0.0206 against 0.0204 per run), but out of time the team sheet adds almost nothing that Elo doesn't already know. The toss coefficient is small and positive (0.0336 on the log-odds, about 0.8 percentage points). After 24.1 you should treat it as noise.
By competition, three of the models side by side:
By competition (test):
n Elo as-is (no fitting) Logit: Elo + team sheet + home XGBoost
accuracy log_loss accuracy log_loss accuracy log_loss
comp
T20 Blast 492 0.589 0.676 0.596 0.673 0.583 0.674
Men's T20Is (FM) 323 0.641 0.637 0.675 0.638 0.663 0.641
IPL 286 0.476 0.708 0.476 0.712 0.469 0.709
BPL 170 0.659 0.663 0.665 0.646 0.659 0.651
BBL 160 0.581 0.676 0.569 0.681 0.575 0.682
PSL 142 0.570 0.677 0.592 0.674 0.570 0.673
CPL 134 0.545 0.679 0.582 0.682 0.597 0.678
ILT20 132 0.545 0.693 0.545 0.695 0.545 0.695
SA20 122 0.516 0.696 0.557 0.696 0.557 0.691
MLC 108 0.602 0.690 0.519 0.696 0.546 0.689
LPL 69 0.435 0.760 0.377 0.762 0.377 0.764
Syed Mushtaq Ali 47 0.638 0.577 0.723 0.559 0.681 0.547
In men's T20Is the full model's favourite won 67.5% of 323 matches, above the 60–65% band. Its log loss was no better than plain Elo's (0.638 against 0.637), which is the kind of disagreement that should make you trust log loss over accuracy. In the IPL nothing works. The newer leagues (ILT20, SA20, MLC, from 2023) have no tuning years of their own. They ran on default Elo settings, so for them the test period is also the warm-up.
What if we train on the IPL alone? The checkpoint script (code/project_checkpoint.py) fits the same
logistic regression on IPL 2018–25 and gets this:
IPL-only logit (520 matches): {'elo_diff': -0.0012, 'bat_diff': 0.0045, 'bowl_diff': 0.0062, 'home': 0.1516}
Pooled men's T20 logit (6113 matches): {'elo_diff': 0.0049, 'bat_diff': 0.0186, 'bowl_diff': 0.016, 'home': 0.0021}
On recent IPL seasons alone, the Elo coefficient comes out negative. Taken at face value, that model
would back the lower-rated team. That is not a discovery. It is what 520 matches of a near-coin-flip
league can produce, and it is the strongest argument in this chapter for pooling. Learn the
relationship between rating gaps and results where there is enough signal to learn it, across twelve
competitions, then apply it to the league in front of you. The module's fit_pooled_t20 does exactly
that, and it is what Chapter 28 should use.
Rolling origin
A single train/test split can be lucky. A rolling origin repeats the exercise: for each year from 2019 to 2026, train on every earlier year and test on that year alone.
Rolling origin (train on all years before, test that year): accuracy
model Elo + team sheet Elo + team sheet [IPL] Elo + team sheet [Men's T20Is (FM)] Elo only XGBoost
year
2019 0.610 0.596 0.578 0.604 0.604
2020 0.593 0.554 0.737 0.590 0.578
2021 0.606 0.542 0.624 0.594 0.603
2022 0.582 0.473 0.663 0.553 0.578
2023 0.553 0.397 0.526 0.551 0.557
2024 0.584 0.507 0.720 0.572 0.586
2025 0.595 0.471 0.727 0.583 0.594
2026 0.594 0.514 0.659 0.588 0.581
Pooled across all twelve competitions, the full model's favourite wins 55–61% in every year. That is steady, honest, and below the "60–65%" folklore in most years. The IPL slice drifts from 59.6% in 2019 to below 50% in two of the four Impact Player seasons, and never above 51.4% in the other two. The men's T20I slice swings between 52.6% and 73.7%, because one year of full-member T20Is is only about 80 matches.

📊 Figure (described): Left: test log loss (2023–26, pooled) for the seven forecasts as horizontal bars between 0.66 and 0.70, with the coin at 0.693. Six bars sit between 0.6746 and 0.6776; the team-sheet-only logit stands out at 0.6842. Right: the rolling-origin favourite's win % for the full logit, IPL (blue) and men's full-member T20Is (orange), 2019–2026, against a gold 60–65% band. The T20I line sits mostly in or above the band and the IPL line mostly below 55%.
⚠️ Common pitfall — tuning on the test years. It is tempting to try twenty settings for the forest and report the one that did best on 2023–26. That number would be optimistic by an amount you cannot know. Here every choice (K, home bonus, regression, tree depth, leaf size, which features) was made on years before 2023. If you change anything after seeing the test score, the test years have become training years, and you need a new test.
🏏 Eye test: Wendell Baptiste reads the bake-off and is not surprised. "You've rated the names on the sheet," he says. "You haven't rated the sheet. A team sheet tells you who's fit enough to play. It doesn't tell you who's carrying a side strain, who's had three nights in three cities, or that the captain picked an extra spinner because he walked the pitch at nine o'clock and saw it was dry. Every coach knows things on the morning of a game that your file doesn't." He's right, and the bake-off agrees with him in its own way: the information in the team sheet that a data file can see is mostly already in Elo. The information that would move the needle (fitness, conditions read from the pitch, a tactical plan) is not in Cricsheet at all. That is a real place where an analyst's forecast should be adjusted by people who were there.
🪞 Learning check-in. Stop and take stock before calibration. Can you explain, without code, why a model can call 67.5% of winners and still be no better than another that called 64.1%? Can you say why the tree models chose depth-1 trees, and what that tells you about the data? If someone showed you a backtest with 75% accuracy in the IPL, what three questions would you ask first? (Hint: how was it split, what was tuned on what, and how many matches.) If any of these feels shaky, re-read 24.1's scoring rules and the rolling-origin table. The rest of the chapter assumes you can tell "accurate" apart from "well calibrated" and both apart from "lucky".
24.8 Calibration: does 70% mean 70%?
Chapter 20 made calibration its threshold concept for in-match win probability, and the idea carries straight over. A forecast is calibrated if, among all the matches where it says 70%, the side wins about 70% of the time. Calibration is what lets someone else use your numbers: a tournament simulator, a bookmaker, a broadcaster's graphic.
📐 Definition — calibration slope and intercept. Regress the outcome on the forecast's log-odds with a logistic regression. A perfectly calibrated forecast has intercept 0 and slope 1. A slope below 1 means the forecasts are too extreme (favourites win less often than claimed). A slope above 1 means they are too timid.
We check four forecast sets, all on 2023–26, with each match counted from both sides
(code/07_calibration.py, using calibration_fit and brier_decomposition from Chapter 20's
crease.winprob):
Calibration, test 2023-26 (decided matches):
n accuracy brier log_loss recal_intercept recal_slope reliability resolution share_fav>=0.60 fav_won_if>=0.60 share_fav>=0.70 fav_won_if>=0.70
Men's T20, 12 competitions (logit) 2185.000 0.581 0.241 0.676 -0.000 0.796 0.003 0.010 0.330 0.634 0.083 0.735
IPL (same logit) 286.000 0.476 0.259 0.712 -0.000 -0.329 0.009 0.001 0.203 0.500 0.000 NaN
Men's ODIs (FM) (Elo) 260.000 0.612 0.227 0.645 -0.000 0.739 0.008 0.031 0.685 0.691 0.365 0.726
Women's T20Is (FM) (Elo) 285.000 0.719 0.188 0.555 0.000 0.816 0.010 0.069 0.856 0.746 0.674 0.771
(The intercepts are zero by construction. Counting each match from both sides makes the forecasts symmetric.)
Read the slopes. All three working forecasts have slopes of 0.74–0.82: slightly overconfident out of time, a standard result when a model meets a future that is a little noisier than its past. When the pooled T20 model was at least 60% sure, its favourite won 63.4%. At 70% or more, 73.5%. Those are honest numbers. The IPL slope is −0.33: in 2023–26 the IPL forecasts pointed the wrong way more often than the right way. The Brier decomposition makes the same point another way. The IPL's resolution, the amount by which its forecasts separate winners from losers, is 0.001. It is practically zero.
The reliability table for women's T20Is has one band that matches Chapter 35:
Women's T20Is (FM) (Elo) — reliability (both sides of each match):
bin forecast observed n
(-0.001, 0.1] 0.068 0.091 44
(0.1, 0.2] 0.150 0.157 83
(0.2, 0.3] 0.246 0.415 65
(0.3, 0.4] 0.351 0.346 52
(0.4, 0.5] 0.449 0.439 41
(0.5, 0.6] 0.551 0.561 41
(0.6, 0.7] 0.649 0.654 52
(0.7, 0.8] 0.754 0.585 65
(0.8, 0.9] 0.850 0.843 83
(0.9, 1.0] 0.932 0.909 44
Favourites priced between 70% and 80% won only 58.5% of 65 matches, the same figure Chapter 35 found for the same settings. The bands either side are close to perfect. One soft band among ten is about what chance gives you with 65 matches in it (a 95% interval of roughly ±12 points), so the honest reading is "watch it", not "fix it".

📊 Figure (described): Four reliability diagrams for 2023–26, one each for the pooled men's T20 logit, the IPL slice of it, men's ODI Elo and women's T20I Elo. Each plots observed win frequency against forecast probability in ten bins (point size = matches) beside the dashed diagonal of perfect calibration. The pooled T20 and the two international panels track the diagonal, slightly flatter than it; the IPL points crowd between 0.38 and 0.62 and slope the wrong way.
Tom: The slope's what I'd look at first. Point eight means: shrink every forecast a fifth of the way back toward fifty-fifty and you'd have been better calibrated on these years.
Nusrat: So I should recalibrate it?
Tom: On later data, fitted on earlier data — yes, that's what a desk does. But don't fit the slope on 2023–26 and then report 2023–26. You'd just be marking your own homework. And in the IPL there's nothing to recalibrate. You can't stretch a resolution of 0.001 into anything useful.
🔄 Check your understanding
- A model's calibration slope out of time is 0.80. What does that mean in words, and what simple adjustment would you try on the next season?
- Why is "counted from both sides" enough to force the intercept to zero?
- The IPL resolution is 0.001. Explain why no recalibration can make that forecast useful.
Answer
- The forecasts were too extreme: favourites won less often than claimed. Multiply each forecast's log-odds by about 0.8 (shrinking it toward 0.5), with the factor fitted on earlier years, and check it on the new season.
- Each match contributes p and 1 − p, with outcomes y and 1 − y, so the forecast set is symmetric about 0.5 and any fitted intercept must be zero.
- Resolution measures how far the observed outcomes in each forecast bin differ from the base rate. If every bin wins about 50% of the time, rescaling the forecasts changes the labels on the bins but not what happens in them.
24.9 The ceiling: how accurate could any model be?
So far each failure has looked like a modelling problem. The IPL Elo doesn't beat a coin, the team sheet adds nothing, the trees find nothing. This section asks a different question: if you knew every team's true strength exactly, how often would the favourite win? That is the ceiling. No model of any kind can beat it on average.
Chapter 6 gave us the tool. Over a season, the spread of teams' win percentages comes from two sources: real differences in strength, and binomial luck. The luck part is known (p(1 − p)/n for n games), so the true-strength spread is what is left over.
📐 Definition — true-strength spread and the oracle ceiling. For team-seasons with at least 8 decided games, σ²_true = Var(observed win %) − mean(p̄(1 − p̄)/n). The oracle knows each side's true win % against an average opponent, drawn from N(0.5, σ_true), and prices a match by the log5/Bradley–Terry rule. Its expected accuracy, Brier and log loss are the ceiling. Assumptions: strength fixed within a season, no home advantage, balanced schedules.
Team-season win % (>= 8 decided games): spread, luck share, and the oracle ceiling
team_seasons sd_observed sd_true luck_share oracle_acc oracle_brier oracle_LL elo_acc_2023_26 elo_LL_2023_26 share_of_oracle_LL_gain
competition
IPL 166 0.137 0.040 0.916 0.543 0.247 0.687 0.476 0.708 -2.414
BBL 105 0.171 0.077 0.795 0.586 0.239 0.670 0.581 0.676 0.720
PSL 62 0.176 0.080 0.792 0.590 0.238 0.668 0.570 0.677 0.643
CPL 81 0.193 0.113 0.655 0.626 0.226 0.644 0.545 0.679 0.290
T20 Blast 233 0.159 0.074 0.782 0.582 0.239 0.671 0.589 0.676 0.794
Men's T20Is (FM) 129 0.186 0.119 0.589 0.631 0.224 0.639 0.641 0.637 1.036
Men's ODIs (FM) 214 0.200 0.154 0.407 0.668 0.208 0.603 0.612 0.645 0.530
Women's T20Is (FM) 84 0.240 0.191 0.363 0.706 0.190 0.558 0.719 0.555 1.022
Women's ODIs (FM) 64 0.259 0.211 0.333 0.723 0.180 0.534 0.729 0.516 1.114
WBBL 78 0.179 0.105 0.657 0.616 0.230 0.651 0.566 0.689 0.100
This is the most important table in the chapter. In the IPL, 91.6% of the spread in team-season records is what luck alone would produce. That is Chapter 6's "~92%" again, computed a different way. True strength varies by about 4 percentage points of win rate from team to team. An oracle that knew those strengths exactly would pick the winner 54.3% of the time, with a log loss of 0.687, against 0.693 for a coin. The whole edge any pre-match IPL model can hope for is 0.006 of log loss. Our models lost it, and 2023's 39.7% shows how easily a season of noise swallows an edge that small.
At the other end, women's ODIs have a luck share of 33% and a true-strength spread of 21 points, and an oracle would call 72.3%. That is why the 60–65% folklore is wrong in both directions. The ceiling is a property of the competition.
Two honest caveats about the oracle:
- In the international rows, our Elo beats the oracle (women's T20Is 71.9% against 70.6%; the share of the oracle's gain exceeds 1). That cannot happen against a true ceiling. It happens here because international schedules are not balanced. Australia's women play Ireland as well as England, and mismatches produce more confident, more often correct forecasts than the oracle's balanced pairings assume. In internationals, treat the oracle as a lower bound on the real ceiling.
- Strength changes within a season (injuries, form, auction-built squads settling). That makes the real ceiling a little higher than a fixed-strength oracle in every competition. In the IPL it cannot be much higher, because the observed season spread (0.137) is barely above pure luck (about 0.133 for a 14-game season; see Case Study 1).

📊 Figure (described): For each of ten competitions, a grey bar gives the oracle's accuracy (the ceiling if true strengths were known) and a blue dot Elo's achieved 2023–26 accuracy, against a gold 60–65% band. The ceilings run from 54.3% (IPL) to 72.3% (women's ODIs); Elo sits close to its ceiling in most competitions, slightly above it in the international rows (unbalanced schedules), and well below it in the IPL and CPL.
🔍 Why this works — parity puts a cap on prediction. The favourite's win probability depends on the difference in strength between the two sides. If team strengths have spread σ, the typical difference between two teams is about √2·σ, and a log5 match between them is close to 50–50 when σ is small. In the IPL σ_true ≈ 0.04, so a typical matchup is roughly 53–47 even when the strengths are known exactly. Leagues built for parity (auction purses, squad caps, retention limits) are meant to make this number small. The IPL succeeds, and pre-match prediction is the price.
🔄 Check your understanding
- An analyst claims 62% pre-match accuracy for the IPL over five seasons. Using 24.9, what is your first reaction?
- Why can the oracle's "ceiling" be beaten in women's T20Is but not, on average, in the IPL?
Answer
- The oracle that knows every team's true strength calls about 54% in the IPL. A claim of 62% sits far above that ceiling, so it is almost certainly overfitting, leakage (in-match or after-the-toss information), cherry-picked seasons, or a small sample. Ask how it was split and tuned.
- The oracle assumes balanced schedules. Women's internationals include many mismatches (strong sides against much weaker ones), which make confident, correct forecasts possible beyond the balanced-schedule ceiling. IPL teams all play each other, and the true spread is tiny, so the ceiling binds.
24.10 Six finals, priced before the first ball
The module is built for the job Chapter 28 will give it: freeze a predictor on a date and price
matches. build_predictor(code, as_of, …) uses only matches before as_of. For T20 competitions it
can take the pooled model and the two announced team sheets. Here are six finals from the snapshot,
each priced the day before (code/09_worked_finals.py):
date venue team1 elo1 team2 elo2 P(team1) P(draw) P(team2) winner margin model
final
Men's ODI World Cup final 2023 2023-11-19 Narendra Modi Stadium India 1724 Australia 1692 0.650 NaN 0.350 Australia by 6 wickets Elo
World Test Championship final 2025 2025-06-11 Lord's Australia 1801 South Africa 1682 0.573 0.139 0.288 South Africa by 5 wickets Elo
Women's ODI World Cup final 2025 2025-11-02 Dr DY Patil Sports Academy India 1736 South Africa 1654 0.650 NaN 0.350 India by 52 runs Elo
Men's T20 World Cup final 2026 2026-03-08 Narendra Modi Stadium India 1723 New Zealand 1563 0.739 NaN 0.261 India by 96 runs Elo + team sheet
IPL 2026 final 2026-05-31 Narendra Modi Stadium Gujarat Titans 1535 Royal Challengers Bengaluru 1541 0.571 NaN 0.429 Royal Challengers Bengaluru by 5 wickets Elo + team sheet
Women's T20 World Cup final 2026 2026-07-05 Lord's England 1775 Australia 1878 0.390 NaN 0.610 Australia by 7 wickets Elo
The favourite won three of the six. India at Ahmedabad in 2023 (65%), Australia at Lord's in 2025 (57%) and Gujarat at their home ground in 2026 (57%) all lost. India in 2025 and 2026 and Australia's women in 2026 all won. Three wins from six forecasts averaging about 63% is what you'd expect; you would need dozens of finals to tell a good forecaster from a lucky one.
Two details are worth noticing. Gujarat's Elo was lower than Royal Challengers' (1535 against 1541), but the venue was Gujarat's inferred home ground, and the home bonus made them favourites. That is Chapter 35's 0.562 Elo price, now 0.571 with the team sheets. For the men's T20 World Cup final the team sheets barely mattered:
Men's T20 World Cup final 2026: with the announced XIs P(India) = 0.739; with each side's previous team sheet instead 0.748; Elo alone (incl. home) 0.744; ...
IPL 2026 final: with the announced XIs P(Gujarat Titans) = 0.571; with each side's previous team sheet instead 0.577; Elo alone (incl. home) 0.562; ...
📋 Try it — Predict this match. The World Test Championship final of June 2025 was played at Lord's, a neutral venue for Australia and South Africa. Going in, our Test Elo had Australia on 1801 and South Africa on 1682. Using the Elo formula (no home bonus) and the draw model's output of P(draw) = 0.139, compute the three-way forecast by hand.
Worked answer
Gap = 1801 − 1682 = 119. Two-way P(Australia) = 1 / (1 + 10^(−119/400)) = 1 / (1 + 10^(−0.2975)) = 1 / (1 + 0.504) ≈ 0.665. Then P(Australia) = (1 − 0.139) × 0.665 ≈ 0.573, P(draw) = 0.139, P(South Africa) = (1 − 0.139) × 0.335 ≈ 0.288, matching the table. South Africa won by five wickets: a 29% outcome, roughly a two-in-seven chance. (Case Study 2 prices the same final with three draw models.)
Spaced Review
Answer each question before you read the reminder.
- Chapter 6 — luck share. Chapter 6 said about 92% of the spread in IPL team-season records is luck. What does that imply for the accuracy of a pre-match IPL model? Reminder: it implies a ceiling around 54% even with perfect knowledge of strength, which is what 24.9's oracle found (54.3%). Men's full-member T20Is had a 59% luck share in Chapter 6, and 58.9% here, and their ceiling is about 63%.
- Chapter 20 — leakage. Chapter 20 showed a flexible model scoring a Brier of 0.0185 on a random-ball split and 0.1933 split by match. What is this chapter's equivalent trap? Reminder: using anything decided after the first ball (the scorecard's batters, a later rating, a tuning choice made on the test years). Walk-forward Elo and a year-based split are this chapter's version of "split by match".
- Chapter 22 — toss and home. Chapter 22 found the toss worth almost nothing in the IPL (51.6%) and home advantage strongest in Tests (63.5%). Where did those findings show up here? Reminder: the toss rule's 50.7% IPL hit rate, the toss coefficient of 0.034, and the Test Elo's tuned home bonus of 150 points, two to six times the white-ball values.
- Chapter 25 — shrinkage constants. Why can a player rating built with k = 3,200 legal balls for wickets barely tell bowlers apart on wicket-taking? Reminder: Chapter 25 found wicket rates almost unprojectable. Three seasons of a bowler's wickets carry little signal, so the team-sheet bowling strength is mostly economy.
Project Checkpoint: match_model.py
Nusrat's Crease now has a pre-match layer. project/crease/match_model.py gives her:
| Function / class | What it does |
|---|---|
results(code, full_members_only=False) |
match table with home team, year, outcome, y |
elo_history(matches, k, home_adv, season_regress, …) |
walk-forward Elo; ties and Test draws score 0.5 |
tune_elo(matches, train_mask, grid, three_way=False) |
K/home/regression by log loss on training rows |
fit_draw_model(df), test_probs(df, dm) |
Test draw model and three-way probabilities |
icc_points_history(matches) |
ICC-style points-average rating (simplified) |
scores(p, y), three_way_scores(P, outcome), reliability(p, y) |
accuracy, Brier, log loss, RPS, calibration |
PlayerRatings(pool).fit().at(year), xi_strength, team_strength |
team-sheet strength in runs per match |
build_features(code, elo, ratings) |
one leakage-free feature row per match |
MatchModel(kind, features) |
symmetric logit / random forest / XGBoost |
fit_pooled_t20(as_of) |
the recommended T20 model, fitted on twelve competitions |
build_predictor(code, as_of, …) → Predictor.predict_match(team_a, team_b, venue, date, home, xi_a, xi_b, toss_winner) |
P(A wins) (and P(draw) for Tests), frozen at as_of; .update() applies a result |
The demo freezes an IPL predictor on the eve of the 2026 season and prices the opening fixtures:
IPL_ELO = dict(k=10, home_adv=50, season_regress=0.25)
pooled = fit_pooled_t20(eve) # logit fitted on 12 competitions
pred = build_predictor("ipl", eve, elo=IPL_ELO, model=pooled)
o = pred.predict_match("Sunrisers Hyderabad", "Royal Challengers Bengaluru", venue=r["venue"])
Opening fixtures of IPL 2026, priced on the eve of the season (each side's last team sheet):
date match P(team1) winner
2026-03-28 Sunrisers Hyderabad v Royal Challengers Bengaluru 0.387 Royal Challengers Bengaluru
2026-03-29 Kolkata Knight Riders v Mumbai Indians 0.401 Mumbai Indians
2026-03-30 Chennai Super Kings v Rajasthan Royals 0.427 Rajasthan Royals
2026-03-31 Gujarat Titans v Punjab Kings 0.492 Punjab Kings
...
All 72 decided IPL 2026 matches priced from the eve, pooled model: favourite won 54.2%, Brier 0.2516, log loss 0.6965
All 72 decided IPL 2026 matches priced from the eve, IPL-only model: favourite won 48.6%, Brier 0.2518, log loss 0.6967
Last Test in the snapshot, 2026-10-28, Bangladesh v West Indies at Shere Bangla National Stadium, Mirpur: P(Bangladesh) 0.686, P(draw) 0.100, P(West Indies) 0.215; result: West Indies
Updating: P(Mumbai Indians beat Chennai Super Kings) 0.556 -> 0.551 after a (hypothetical) Mumbai Indians loss to RCB (K = 10: one IPL result barely moves the needle)
Nusrat runs one more line out of loyalty. The last Test in the snapshot was played at Mirpur, the ground she grew up near, and the model made Bangladesh 69% favourites at home. West Indies won.
How it plugs in: Chapter 28 builds a Predictor on
the eve of a tournament, calls predict_match for every fixture (passing home= for franchise games
and the venue for internationals), simulates results, and can call update() after each simulated
match to test in-tournament updating. Chapter 35's betting.py can take predict_match probabilities
as its fair prices. Chapter 39's dashboard shows a "who wins?" card from the same call.
Chapter Summary
The pre-match forecasting scorecard (2023–26, out of time):
| Competition | Best model | Favourite won | Log loss (coin 0.693) | Oracle ceiling |
|---|---|---|---|---|
| Women's ODIs (FM) | Elo, K 60 | 72.9% | 0.516 | ≥ 72.3% |
| Women's T20Is (FM) | Elo, K 60 | 71.9% | 0.555 | ≥ 70.6% |
| Men's Tests (decided) | Elo + draw model, K 60, home 150 | 67.7% | 0.900 (three-way) | n/a |
| Men's T20Is (FM) | Elo / pooled logit | 64.1% / 67.5% | 0.637 / 0.638 | ≥ 63.1% |
| Men's ODIs (FM) | Elo, K 30, home 75 | 61.2% | 0.645 | ≥ 66.8% |
| T20 Blast, BBL, PSL | Elo / pooled logit | 57–60% | 0.673–0.681 | 58–59% |
| IPL | none beats a coin | 47.6% | 0.708 | 54.3% |
Decision framework for a pre-match model:
- Start with Elo, walk-forward, tuned on early years by log loss. It is three parameters and usually most of the signal.
- Score with log loss and Brier, against a coin and the best naive rule. Report accuracy only alongside them.
- Split by time. Tune on years before the test, freeze, then score. Use a rolling origin to see how much the score varies year to year.
- Add features only if they beat Elo out of time with a paired bootstrap interval that excludes zero. Team sheets, toss and home did not in men's T20; prefer the simpler model.
- Pool small leagues. Learn the rating-to-probability link across competitions; one league's 500 matches can give a negative Elo coefficient.
- Check calibration. Expect a slope a little below 1 out of time; recalibrate on later data, never on the test.
- Know the ceiling. Estimate the true-strength spread from season records. If the ceiling is 54%, no model will reach 60%, and anyone claiming it is overfitting or lucky.
- State the gaps. Afghanistan's internationals are missing; leagues are untranslated; Impact Player sheets list 12 names.
What's Next
This chapter rated teams. Chapter 25 goes down a level to
the players, asking how much of a season is the player and how much was luck, which is the same
distinction behind every player rating in 24.6. Chapter 27 moves into the match and forecasts scores
and milestones ball by ball. Chapter 28 then uses this chapter's predict_match to simulate whole
tournaments and find out how often the best team actually wins.