Case Study 1 — How Fast Could You Have Known? A Drift Alarm for IPL 2023
Format: T20 (IPL) · Men's · A forecasting model that failed, and a monitor that caught it
Setup
At the start of the 2023 IPL season, a forecaster with all fifteen previous seasons of data would have expected the average first-innings total to be about 170. The line through 2008–2022 rose gently, +0.91 runs a season, and put 2023 at 170.4 with a 90% prediction interval of 160.4 to 180.3. Nothing in fifteen years of data suggested anything else.
The season finished at 183.0, and the three after it at 189.6, 190.9 and 195.7. Section 40.2 showed that the old line missed all four, by margins that grew to 22.6 runs. With hindsight, the cause is not mysterious: 2023 was the first IPL season with the Impact Player rule. But forecasters don't get hindsight. They get one match at a time.
So here is the practical question for anyone running a model through a season: how quickly could you have known that 2023 was different? Not with a theory about the rule, but with a monitor that watches the numbers and raises an alarm when they leave the range the model expects. And just as important: how often would the same monitor have cried wolf in an ordinary season?
This is the core of Crease's ROADMAP item R2 (a drift monitor for every model), worked through on one real season.
The data
The data is every IPL match from 2008 to 2026 in the snapshot, restricted, as in the chapter, to decided matches without a rain rule (no D/L method, a winner recorded, 20 overs a side). For each match we take the first-innings total, including all extras. Matches are ordered by date within each season.
Full script: code/case_study_01.py.
Analysis
Building the alarm
For a test season Y, the monitor knows only the seasons before Y. It fits a straight line to their season averages and forecasts season Y's mean, μ. Then, after each match of season Y, it compares the running average of first-innings totals so far with μ.
How far from μ should the running average be allowed to drift before we worry? Three sources of uncertainty combine:
- Uncertainty about where the line is for season Y: the standard error of the line's forecast.
- Season-to-season wobble around the line: even if the game hasn't changed, seasons scatter (2021, for example, was well below the line).
- Match-to-match noise in the running average: after n matches the running average's noise is about σ/√n, where σ is the standard deviation of single first-innings totals (estimated from the five seasons before Y).
half = z * np.sqrt(se_mean ** 2 + resid_sd ** 2 + sd_match ** 2 / n)
out = (np.abs(run - mu) > half) & (n >= min_matches)
With z = 1.645 this is a 90% band. The alarm "fires" the first time the running average leaves it (after at least five matches), and we also record the match from which it stays outside to the end of the season.
📐 Definition — Drift alarm: a monitor that compares a running statistic from the current season with the range a model fitted on earlier seasons expects (here a 90% band combining line uncertainty, season-to-season scatter and match-to-match noise), and flags when the statistic leaves that range.
What happened in 2023
IPL 2023: first alarm after match 8 of 71 (date 2023-04-06); running average then 190.6 v line 170.4
IPL 2023: alarm on for good from match 65 (date 2023-05-20)
IPL 2023: band half-width after 10 matches 18.1 runs, at season end 10.9; final gap +12.6

📊 Figure (described): For IPL 2019 (light blue), 2022 (green) and 2023 (dark orange), the running average of first-innings totals minus the forecast of a line fitted on earlier seasons, by match number, with each season's shaded 90% band. The bands start wide and narrow over the first twenty matches, settling at about ±11 to ±12 runs. The 2019 and 2022 paths settle near zero, inside their bands. The 2023 path rises above its band around match 8 and then runs along the band's upper edge, about 10–14 runs above the forecast, for the rest of the season.
The first alarm came early. After eight matches, a week into the season, the running average stood at 190.6, more than 20 runs above the line. A monitor would have flagged it on 6 April 2023.
But look at what happened next. The path settled about 10 to 14 runs above the forecast, which put it almost exactly on the edge of the band. The band never shrinks below about ±11 runs, because even with infinitely many matches we'd still be uncertain about the season mean itself (the line's error plus the season-to-season wobble). So the alarm flickered on and off for most of the season, and stayed on for good only from match 65, on 20 May 2023, by which time the final was a week away.
That's an honest, slightly uncomfortable result. The early warning came in eight matches. The firm verdict took nearly the whole season.
What happened in ordinary seasons
A monitor that fires all the time is useless. So we ran the same alarm on every season from 2015 to 2026, each time fitting the line only on the seasons before:
=== Drift alarm: running season average v the line fitted on earlier seasons (90% band) ===
year line_forecast matches final_mean first_alarm alarm_stays_from direction
2015 160.0 54 165.2 NaN NaN above
2016 162.9 56 164.3 NaN NaN above
2017 164.3 57 166.7 NaN NaN above
2018 166.1 57 172.1 NaN NaN above
2019 169.3 57 168.3 NaN NaN below
2020 170.2 56 169.2 18.0 NaN below
2021 171.1 59 159.3 48.0 48.0 below
2022 168.9 74 171.1 NaN NaN above
2023 170.4 71 183.0 8.0 65.0 above
2024 174.4 71 189.6 8.0 35.0 above
2025 179.2 69 190.9 5.0 NaN above
2026 183.3 71 195.7 NaN NaN above
Seasons 2015-2022 with ANY alarm: 2 of 8; with an alarm that stays on to the season's end: 1 of 8
In the eight seasons before the rule change, the alarm fired in two and stayed on in one. The persistent one was 2021, and it fired below the line: the season averaged 159.3 against a forecast of 171.1. 2021 was the season the IPL was suspended partway through and finished in the UAE. Whatever the cause (different venues, different conditions, a broken season), the alarm was right that something was unusual. The other, 2020's brief alarm at match 18, faded. That's a reasonable false-alarm record for a 90% band applied match by match. Because the band is checked dozens of times a season, some excursions are expected even when nothing has changed.
The line that kept missing
Now look at what happened after 2023, when the line was refitted each year with the new seasons included:
Line refitted with 2023 included forecasts 2024 at 174.4 (actual 189.6)
IPL 2024: band half-width after 10 matches 19.1 runs, at season end 12.0; final gap +15.2
IPL 2026: band half-width after 10 matches 22.2 runs, at season end 14.2; final gap +12.4
Refitting a straight line through all seasons is a slow learner. Including 2023's 183.0 nudged the 2024 forecast only to 174.4, and 2024 came in at 189.6, so the alarm fired again after eight matches and stayed on from match 35. By 2026 something subtler had happened. The line had absorbed enough high seasons that its forecast rose to 183.3. But those same seasons increased the scatter around the line, which widened the band to ±14.2 at season end. The 2026 season ran 12.4 runs above the forecast and the alarm didn't fire at all.
That is a trap worth naming. A model that refits on a broken series gets less sensitive, not more. The break inflates the residual scatter, the band widens, and the monitor goes quiet even though the model is still wrong in the same direction every year. Four seasons in a row above the line is evidence the band can't see, because it checks each season on its own. The fix is the one Chapter 20 used for win probability: stop pretending there's one game, and model the eras separately (scenarios B and C in section 40.2), or give the model a feature that knows about the scoring environment.
What it means (and doesn't)
What it means. A simple drift alarm, built from nothing but last season's model and this season's matches, would have flagged IPL 2023 within its first eight matches, and would have been right. Over eight earlier seasons it raised one persistent false alarm, and that one pointed at a genuinely unusual season. For a franchise or broadcaster whose models depend on the scoring level (par scores, win probability, projected totals), that's a cheap, useful tool. The practical rule: an early alarm triggers an investigation and a provisional switch to recent-only tables. A persistent alarm triggers a rebuild.
What it doesn't mean. The alarm doesn't explain why the season changed. It saw that 2023 was high; the rule change, the cricket knowledge, supplied the cause. It also can't distinguish a permanent shift from a one-season blip in a few weeks. 2021 was a blip; 2023 was the start of an era. Only more seasons, or knowledge of the cause, could tell them apart. And the band's width is a design choice. A tighter band would fire sooner and cry wolf more often. A looser band would miss 2023 for longer. There's no setting without a trade-off, only a choice you should state.
Theme 6, variance is not failure, applies to the monitor too. An alarm in an ordinary season isn't a failed alarm. It's the price of catching the extraordinary ones early.
Discussion questions
- The alarm checks the running average after every match. How does checking many times a season affect the false-alarm rate, compared with checking once at mid-season? How would you adjust for it?
- 2021's persistent alarm fired below the line. Should a franchise respond to a downward alarm differently from an upward one? Think about which models (win probability, par scores, auction values) are hurt more by each.
- The band never narrows below about ±11 runs because of uncertainty about the season mean itself. Is that a weakness of the monitor or an honest feature? What extra information could narrow it?
- In 2026 the alarm stayed silent although the season ran 12.4 runs above the line. Explain the mechanism in your own words and propose a monitor that would not go quiet this way.
- Would a drift alarm on Test cricket (for example, runs per wicket by season) behave similarly? What makes Test series harder to monitor match by match?
Your turn
Build drift_alarm() as a reusable function in your own Crease (it belongs with ROADMAP item R2) and run it on men's full-member T20I first-innings totals by calendar year, fitting each year's line on the years before. Report the years in which the alarm fires and stays on, and check 2026 (the book's season tables put the 2026 average at 184.1). Then run it on the WBBL, which section 40.2 found rose 14.7 runs between 2019–22 and 2023–26. Did a monitor catch the WBBL's change, and how quickly? Present one figure like the one above and a short paragraph comparing the three competitions.