59 min read

Every cricket argument eventually reaches for a number. Here is one you may have heard in some form, in a commentary box, a WhatsApp group, or a tea stall in Mirpur on a match night:

Chapter 1 — Cricket's Moneyball Moment: Why the Most Data-Rich Sport on Earth Is 20 Years Behind Baseball in Analytics

The numbers everyone quotes

Every cricket argument eventually reaches for a number. Here is one you may have heard in some form, in a commentary box, a WhatsApp group, or a tea stall in Mirpur on a match night:

"Kohli is the accumulator. Average in the high thirties, fine, but he can't finish — his death-overs strike rate is about 139. Suryakumar is the opposite: averages under 30, but at the death he goes at 190-plus. That's why Suryakumar is the better T20 batter."

It is a good argument. It has a shape every fan recognises — the steady anchor against the explosive improviser — and it comes with numbers attached, which makes it sound settled. The first outline of this very book used exactly those numbers: Kohli's IPL average 37.25, Suryakumar's 29.89, Kohli's death-overs strike rate 139, Suryakumar's 193. They were written down the way most cricket numbers are written down: from memory, with confidence.

Then we computed them.

Using every ball of every IPL match from 2008 to the end of the 2026 season — 1,243 matches, 295,732 deliveries, freely downloadable from Cricsheet — here is what the data actually says:

IPL 2008–2026 Virat Kohli Suryakumar Yadav
Runs 9,336 4,581
Balls faced 6,926 3,083
Dismissals 231 136
Batting average 40.42 33.68
Strike rate 134.80 148.59
Strike rate, overs 1–6 129.55 141.05
Strike rate, overs 7–15 125.80 144.14
Strike rate, overs 16–20 188.38 178.21

Every number in the quoted argument was wrong. Not slightly wrong — wrong in the direction that matters. Kohli's career strike rate in the death overs is not 139; it is 188.38, higher than Suryakumar's 178.21. The real gap between them is not at the death at all. It is in the middle overs, where Suryakumar has scored at 144.14 and Kohli at 125.80 — a difference of more than 18 runs per hundred balls across thousands of deliveries. And Kohli's average is not "high thirties"; it is 40.42.

So is the story backwards? Is Kohli the better finisher and Suryakumar merely a fast middle-overs batter? Not quite that either. Kohli has faced 835 balls in the death overs in his IPL career; Suryakumar 468. Kohli opened the batting for most of his career, so when he is still there at over 16, he is set — thirty, forty, fifty balls into an innings, eyes in, reading the bowlers. Suryakumar usually walks in at number three or four, often in the middle overs, and has to start fast against spin. The phase numbers are real, but they are not a fair race: the two players reach the death overs in different states and the middle overs for different reasons.

That is the whole problem of cricket analytics in a single table. The average and the strike rate tell different stories, and neither tells the whole one. Phase splits tell a third story, and even that needs context — who was bowling, what the match needed, how set the batter was — before it becomes a fair judgement.

This book is about getting from the first kind of argument (confident numbers from memory) to the second kind (numbers you computed, with their limits stated). It is a cricket book that uses statistics, not a statistics book that uses cricket. Every number about a real player, team, or match in it was computed from public data you can download yourself, and every chapter shows you the code. When a famous number turns out to be wrong — as it just did — we will say so, and show you how we know.

This first chapter sets the scene. We will look at how much data cricket actually produces (more than almost any sport), how fast the game is changing (faster than its statistics), why the traditional numbers mislead, what baseball's "Moneyball" revolution actually was, why cricket has been slow to have its own, and what this book will build — including the four real matches, markets, and players that will run through all forty chapters.

🏏 Fan Track: Read the prose and the figures; skim the code blocks. Sections 1.1, 1.3, 1.5 and 1.8 carry the cricket argument. You will finish knowing why "average" and "economy" are not enough, and what to ask instead.

📊 Analyst Track: Run the three scripts in code/ and the checkpoint. Read 1.2 closely for what the data does and does not contain, and do the 📋 Try it exercises — they are your first real analyses.

🧑‍💼 Franchise Track: Focus on 1.4 (economy and phase), 1.6–1.7 (why the market is inefficient) and the auction preview in 1.8. Chapter 13 and Chapter 34 are where this road leads.


1.1 Two numbers, two stories

The cricket question: Who is the better T20 batter, Kohli or Suryakumar?

Before we can even attempt that question, we need the two numbers every scorecard prints. Let's define them properly, because the rest of the book depends on these exact definitions.

📐 Definition — Batting average: runs scored ÷ number of times dismissed. In this book, runs means runs off the bat (not extras), and dismissals include being run out as the non-striker but exclude "retired hurt" and "retired not out". A batter who is never dismissed has no average (it is undefined, not infinite).

📐 Definition — Strike rate (SR): 100 × runs ÷ balls faced. Balls faced counts every delivery received on strike except wides (a no-ball does count as a ball faced, because the batter can score off it). A strike rate of 150 means 150 runs per 100 balls, or 9 runs per six-ball over.

📐 Definition — Phase: the stage of an innings, by over number. In T20 cricket, the powerplay is overs 1–6 (only two fielders allowed outside the 30-yard circle), the middle overs are 7–15, and the death overs are 16–20. In ODIs the phases are 1–10, 11–40 and 41–50. Tests have no phases.

The average answers how long a batter tends to survive, measured in runs. The strike rate answers how fast they score while they are there. In Test cricket, the first matters far more than the second: there is no limit on overs, so a wicket is the scarcest thing on the field. In a T20 match, there are only 120 legal balls per side, and wickets are comparatively cheap — a side rarely uses all ten — so the scarce resource is balls. The same average can be a great T20 innings or a poor one, depending on how many balls it took.

Here is the core of the computation. (Don't worry if the Python is new: Chapter 3 teaches it from the first line. For now, read the code as a recipe.)

from cricdata import load_deliveries, batting_summary

balls = load_deliveries("ipl")                 # one row per delivery, 2008-2026
balls = balls[~balls["super_over"]]            # super overs are not part of careers

PAIR = ["V Kohli", "SA Yadav"]
career = batting_summary(balls).loc[PAIR]      # the book's standard batting table

by_phase = batting_summary(balls[balls["batter"].isin(PAIR)], ["batter", "phase"])
by_phase["share_of_balls_pct"] = (
    100 * by_phase["balls"] / by_phase.groupby(level=0)["balls"].transform("sum")
).round(1)

Full script: code/02_kohli_vs_sky.py. The real output:

=== IPL career, 2008-2026 ===
          innings  runs  balls  outs  average  strike_rate  dot_pct  boundary_run_pct
batter
V Kohli       275  9336   6926   231    40.42       134.80     32.6             56.47
SA Yadav      164  4581   3083   136    33.68       148.59     33.8             65.40

=== By phase (striker balls; outs here are dismissals while on strike in that phase) ===
                    runs  balls  outs  strike_rate  average  share_of_balls_pct
batter   phase
V Kohli  middle     4286   3407    94       125.80    45.60                49.2
         powerplay  3477   2684    75       129.55    46.36                38.8
         death      1573    835    60       188.38    26.22                12.1
SA Yadav middle     2730   1894    68       144.14    40.15                61.4
         powerplay  1017    721    21       141.05    48.43                23.4
         death       834    468    43       178.21    19.40                15.2

Grouped bar chart of IPL strike rate by phase for Kohli and Suryakumar, with ball counts

📊 Figure (described): Strike rate by phase for Virat Kohli (blue) and Suryakumar Yadav (orange), IPL 2008–2026, with the number of balls behind each bar. Suryakumar is faster in the powerplay (141 v 130) and much faster in the middle overs (144 v 126); Kohli is faster at the death (188 v 178). Kohli's bars rest on far more balls — 2,684 and 3,407 in the first two phases — than Suryakumar's 721 powerplay balls.

Read the last column of that output. Kohli has faced 38.8% of his IPL balls in the powerplay; Suryakumar 23.4%. Suryakumar has faced 61.4% of his in the middle overs. These are not the same job. A batter who opens faces two new balls, fielding restrictions, and the opposition's best pace; a batter at number three or four often faces spin through the middle overs, with five fielders on the boundary.

One way to ask whether the gap is "just the role" is a simple thought experiment: take each batter's strike rate in each phase and re-weight it by the other batter's mix of balls.

Kohli's phase SRs weighted by Suryakumar's mix of balls: 136.2
Suryakumar's phase SRs weighted by Kohli's mix of balls: 147.2

If Kohli had faced his balls in Suryakumar's proportions, his overall strike rate would have been about 136 instead of 134.80 — barely different. If Suryakumar had faced his in Kohli's proportions, about 147 instead of 148.59. The role explains a little; most of the 14-point gap in career strike rate survives the re-weighting. Suryakumar really has scored faster than Kohli in the IPL, and the place he has done it is the middle overs.

And Kohli's average? It is 6.74 runs higher. Over a typical innings, that is the difference between getting out at, say, 34 and getting out at 40. Is that worth 14 strike-rate points? Answering that properly needs a currency that converts runs and balls and wickets into the only thing that matters — winning — and that currency is win probability, which we build in Chapter 9 and Chapter 20. For now, the honest conclusion is narrower: these two great batters are good at different things, the conventional story about which thing is backwards, and neither number alone can rank them.

The impact-player era changes the picture again

There is a twist. The IPL of 2024–2026 is not the IPL of 2012 (section 1.3 shows how different). Restrict the same comparison to the last three seasons and both batters look like different players:

IPL 2024–2026 Kohli Suryakumar
Runs (balls) 2,073 (1,340) 1,332 (816)
Average 57.58 39.18
Strike rate 154.70 163.24
SR powerplay / middle / death 164.48 / 136.83 / 199.01 145.24 / 163.26 / 196.67

Kohli's powerplay strike rate in these three seasons (164.48) is higher than Suryakumar's (145.24). Both have scored far faster than their career numbers. Is that improvement, or a league where everyone scores faster? We cannot tell from these rows alone. To compare a 2026 strike rate with a 2012 one, we have to know what an average batter did in each season — the idea of measuring performance relative to the environment, which runs through the whole book.

⚠️ Common pitfall: Comparing raw career numbers across eras. A strike rate of 135 meant something different in a season when the average first-innings score was 157 than in one where it was 196. Before you say "X was faster than Y", ask "faster than the league at the time?"

Scatter plot of batting average against strike rate for IPL batters with at least 1,500 balls

📊 Figure (described): Every IPL batter with at least 1,500 balls faced (58 batters), plotting batting average (vertical) against strike rate (horizontal); dot size shows balls faced and dotted lines mark the medians. The points form a loose cloud rather than a line — the two numbers barely move together. A handful of batters (de Villiers, Buttler, Gayle, Sai Sudharsan) sit high on both; Russell is far to the right with a modest average; Kohli and KL Rahul are high but left of most of the elite.

If average and strike rate measured the same thing — "being good at batting" — the dots in that figure would form a rising line. They don't:

=== IPL batters with 1,500+ balls faced: 58 ===
Correlation between average and strike rate: 0.16

Batters in the top 15 for BOTH average and strike rate: 4
                 balls  average  strike_rate  avg_rank  sr_rank
batter
AB de Villiers    3403    39.71       151.69         9        6
CH Gayle          3333    39.72       148.96         8        9
JC Buttler        3103    39.71       149.73         9        7
B Sai Sudharsan   1686    48.37       149.17         1        8

A correlation of 0.16 is weak: knowing a batter's average tells you very little about their strike rate. (We define correlation properly in Chapter 6; for now, 1 means "perfectly in step", 0 means "no linear relationship".) Of 58 batters, only four are in the top fifteen on both. Andre Russell has the highest strike rate in the group, 174.18, with an average of 28.20 that ranks 42nd. KL Rahul has the second-highest average, 46.15, with a strike rate that ranks 21st. Ask "who is the best IPL batter?" and the answer depends almost entirely on which of these two numbers you were raised to trust.

🔄 Check your understanding 1. Why can the same batting average describe a good Test innings and a poor T20 innings? 2. Kohli's career death-overs strike rate is higher than Suryakumar's. Give one reason, from the phase table, why that does not prove Kohli is the better finisher. 3. What does a correlation of 0.16 between average and strike rate tell you?

Answer

  1. Tests have no over limit, so wickets are the scarce resource and survival (average) dominates; in T20 the scarce resource is balls, so the rate of scoring matters as much as or more than survival.
  2. Kohli usually reaches the death overs as an opener who is already set; Suryakumar more often arrives later and has less time to get in. Their death-overs balls come in different states, so the comparison is not like for like (and Kohli's death number rests on 835 balls, Suryakumar's on 468).
  3. That the two numbers are only weakly related among established IPL batters — they measure largely different skills, so you need both (and more).

1.2 The most data-rich sport on earth

The cricket question: How much data does cricket actually produce?

Think about what a single delivery is. A bowler runs in. The ball is legal or not (a wide, a no-ball). It pitches somewhere, at some speed. The batter plays or leaves. Runs are scored off the bat, or as byes or leg-byes, or not at all. A boundary is hit, or not. A wicket falls — bowled, caught, lbw, run out, stumped — or not. The scorer writes all of that down, and has done, in some form, for more than two centuries.

Now multiply. A T20 innings is up to 120 legal balls plus extras; a full T20 match is around 240 deliveries. A full ODI is around 600. A five-day Test can be 2,000 or more. Every one of those deliveries is a discrete, recorded event with a clear before-state (score, wickets, balls left, who is batting, who is bowling) and a clear outcome. Very few sports are built like that. In football, the "events" are continuous and fuzzy; in basketball, possessions are shorter but the game is a flowing tangle of ten players. Cricket, like baseball, is a sequence of separate contests between one bowler and one batter — and that structure is what makes it so analysable.

Here is the size of the public record this book uses: the Cricsheet ball-by-ball archive, downloaded on 18 November 2026.

import pyarrow.parquet as pq
from cricdata import COMPETITIONS

rows = []
for code, name in COMPETITIONS.items():
    d_path = proc / f"{code}_deliveries.parquet"
    m_path = proc / f"{code}_matches.parquet"
    rows.append({"code": code, "competition": name,
                 "matches": pq.ParquetFile(m_path).metadata.num_rows,
                 "deliveries": pq.ParquetFile(d_path).metadata.num_rows})
=== The data snapshot: deliveries by competition ===
       code                           competition  matches  deliveries
 tests_male                    Men's Test matches      899     1730523
  odis_male          Men's One-Day Internationals     2617     1388641
  t20s_male              Men's T20 Internationals     3649      820658
t20s_female            Women's T20 Internationals     2200      499978
        ntb                    Vitality T20 Blast     1570      360545
odis_female        Women's One-Day Internationals      620      324744
        ipl                 Indian Premier League     1243      295732
        ...
        wpl                Women's Premier League       88       20656

TOTAL: 17,186 matches, 6,420,141 deliveries in 20 competitions

Horizontal bar chart of deliveries per competition in the Cricsheet snapshot

📊 Figure (described): The number of recorded deliveries in each of the twenty competitions in the book's data snapshot, in millions, with international cricket in blue and domestic leagues in orange. Men's Tests dominate (1.73 million deliveries from 899 matches), followed by men's ODIs (1.39 million) and men's T20Is (0.82 million). Women's T20Is contribute half a million deliveries; the IPL, despite its fame, is about 0.3 million.

Six and a half million deliveries, every one with a batter, a bowler, an outcome, and a position in a match. Notice something in that figure: the IPL — the league that generates most of cricket's money and most of its analytics debate — is only the seventh-largest block of data. The 899 men's Tests in the snapshot hold almost six times as many deliveries as all nineteen IPL seasons. Women's T20 internationals hold more deliveries than the IPL. If you want large samples, cricket has them; you just have to look beyond the competition everyone talks about.

📐 Definition — Ball-by-ball data: a table with one row per delivery, recording (at minimum) the match, innings, over, ball, batter, non-striker, bowler, runs off the bat, extras by type, and any dismissal (who was out and how). Cricsheet publishes it as one JSON file per match; the book's toolkit flattens it into a deliveries table and a matches table.

What the data does not contain

Here is the honest part, and you will hear it often in this book. Cricsheet records what happened on each ball. It does not record:

  • where the ball pitched (line and length), how fast it was, or how much it swung or spun;
  • where the batter hit it — no shot direction, no wagon wheel;
  • where the fielders stood, or which catches were dropped and which misfields cost runs;
  • ball-tracking values from the Decision Review System;
  • batting positions (we infer the order from when each batter first appears) or player roles.

That information exists. Ball-tracking systems such as Hawk-Eye (owned by Sony, and used for the Decision Review System since its introduction in Tests in 2009) capture the trajectory of every ball in televised international cricket. Broadcasters and data companies record shot direction and fielding positions. But it is not public. A franchise analyst may have it; you and I do not.

The book handles this in two ways. First, it squeezes everything it can out of the public outcomes data — which turns out to be a great deal. Second, where a chapter genuinely needs locations (pitch maps in Chapter 15, field placement in Chapter 32), it uses a clearly labelled simulated layer: real deliveries with real outcomes, plus simulated locations, so you can learn the method. You will always see a 🧪 label when that happens, and the book will never present a simulated number as a fact about a real player.

⚠️ Common pitfall: Treating "not in the data" as "didn't happen". A fielder who saves twenty runs in a T20 match with dives and cut-offs leaves almost no trace in ball-by-ball data — the runs that weren't scored are invisible. Absence of evidence in the scorebook is not evidence of absence on the field.

Why the structure matters more than the size

Size alone is not what makes cricket analysable. What matters is that every delivery is a decision point with a measurable state. Before each ball, we know the score, the wickets down, the balls remaining, the target (in a chase), the batter, the bowler, the venue, the format. After it, we know what changed. That makes cricket a natural fit for the ideas that transformed baseball analytics:

  • Expected value: given this state, how many runs does an average side go on to score? (Chapter 19)
  • Win probability: given this state, how often does the chasing side win? (Chapter 20)
  • Value added: how much did this ball, this over, this innings change those numbers? (Chapter 9)

Baseball built its analytics on exactly this structure — a game made of discrete plate appearances, each starting from a known base-out state. Cricket has the same structure, and more of it.

🔄 Check your understanding 1. Which competition in the snapshot has the most recorded deliveries, and roughly how many times more than the IPL? 2. Name three things a ball-by-ball record does not tell you. 3. Why does cricket's ball-by-ball structure suit the same analytical ideas as baseball?

Answer

  1. Men's Tests: 1,730,523 deliveries against the IPL's 295,732 — almost six times as many.
  2. Any three of: line and length, ball speed, swing/spin, shot direction, fielding positions, dropped catches and misfields, DRS ball-tracking values, batting positions, player roles.
  3. Both sports are sequences of discrete contests that start from a known, measurable state (score, wickets/outs, balls/innings remaining) and end with a recorded outcome — exactly what expected-value and win-probability models need.

1.3 The game is changing faster than its statistics

The cricket question: Is a good T20 score in 2026 the same as a good T20 score in 2012?

If cricket's numbers were stable — if 160 had always been a par T20 total and 130 had always been a fine strike rate — the traditional statistics might be crude but at least comparable across time. They are not stable. The T20 game has changed more in the last four seasons than in the fifteen before them, and the clearest evidence is in the IPL.

The script code/01_scoring_revolution.py builds a season table. The key step is to total the first innings of every match that finished with a clean result (a winner, and no rain-rule revision of the target), then average by season:

games["year"] = games["start_date"].dt.year          # "2007/08" -> 2008, "2020/21" -> 2020
clean = games[games["method"].isna() & games["winner"].notna()]
first_inns = (balls[(balls["innings"] == 1) & balls["match_id"].isin(clean["match_id"])]
              .groupby("match_id")["runs_total"].sum())
first = clean.set_index("match_id")[["year"]].join(first_inns.rename("first_total"))

season = pd.DataFrame({
    "avg_1st_inns": first.groupby("year")["first_total"].mean().round(1),
    "first_200plus": first.groupby("year")["first_total"].apply(lambda s: int((s >= 200).sum())),
})

One small trap is worth pointing out now: Cricsheet labels three IPL seasons by the cricket-season convention — "2007/08", "2009/10" and "2020/21" — even though each was played inside a single calendar year (2008, 2010 and 2020). The script uses the year of each match's start date so the seasons line up the way fans name them. Data never arrives in exactly the shape you expect; Chapter 2 is about that.

=== IPL season table (first-innings scores from matches with a clean result) ===
      matches  avg_1st_inns  first_200plus  sixes_per_match  RR_powerplay  RR_middle  RR_death
year
2008       58         161.9              7             10.7          7.70       7.99      9.95
2009       57         150.3              1              8.9          7.22       6.85      9.13
2012       74         157.5              4              9.9          7.22       7.40      9.52
2013       76         156.3              4              8.9          6.93       7.24      9.57
2018       60         172.1             11             14.5          8.42       8.06     10.14
2021       60         159.3              6             11.4          7.72       7.60      9.41
2022       74         171.1             13             14.4          7.82       8.08     10.45
2023       74         183.0             23             15.2          8.72       8.43     10.49
2024       71         189.6             26             17.7          9.47       8.83     11.21
2025       74         190.9             32             17.6          9.61       9.03     10.96
2026       74         195.7             37             19.3         10.10       9.31     10.79

200+ first-innings totals, 2008-2022 combined: 94
200+ first-innings totals, 2023-2026 combined: 118
Sixes per match 2008 vs 2026: 10.7 -> 19.3

(Selected seasons shown; the script prints all nineteen.)

IPL average first-innings score and number of 200-plus totals by season, 2008 to 2026

📊 Figure (described): The average first-innings score in IPL matches with a clean result (blue line, left axis) and the number of 200-plus first-innings totals (orange bars, right axis), by season from 2008 to 2026. For fifteen seasons the average wandered between about 150 and 172; from 2023, the season the Impact Player rule arrived (dashed line), it climbed every year to 195.7 in 2026, and 200-plus totals went from single figures to 37 in a season.

Stop and absorb those numbers. In 2012 the average first-innings score in the IPL was 157.5. In 2026 it was 195.7 — nearly forty runs higher, in the same twenty overs. In the fifteen seasons from 2008 to 2022, IPL sides batting first passed 200 a combined 94 times. In the four seasons from 2023 to 2026, they did it 118 times — 37 times in 2026 alone. Sixes per match have almost doubled, from 10.7 in 2008 to 19.3 in 2026.

Something structural happened in 2023. The most visible change was the IPL's Impact Player rule, introduced that season, which lets each side bring in a substitute who can bat and bowl. In practice that means a side can field an extra specialist batter without losing a bowler, so the batting line-up runs deeper and the top order can attack with less fear of collapse. The rule is strongly associated with the scoring surge, though it is not the only cause: bats, boundary sizes, pitch preparation, the spread of power-hitting coaching, and a generation of batters raised on T20 all play a part, and their effects are tangled together in the data. (How long the rule will stay is a policy question this book won't predict.)

IPL run rate by phase, 2008 to 2026

📊 Figure (described): IPL run rate (runs per six legal balls) in the powerplay, middle overs and death overs, season by season. For most of the IPL's history the death overs were clearly the fastest-scoring phase, two runs an over or more above the powerplay. Since 2023 the powerplay has surged — from 6.93 in 2013 to 10.10 in 2026 — and in 2026 it was within about seven-tenths of a run of the death overs.

The phase picture is even more striking. In 2013, sides scored 6.93 runs an over in the powerplay and 9.57 at the death: the powerplay was for building, the death for hitting. In 2026, powerplay scoring reached 10.10 an over while death-overs scoring was 10.79. The shape of a T20 innings — the "build, then accelerate" template that coaches taught for a decade — has been flattened.

Not just the IPL

The same direction shows up elsewhere, at different speeds. In men's T20 internationals between full-member nations, the average first-innings score was 184.1 in 2026, with 23 totals of 200 or more. In women's T20 internationals between the ten leading teams, the average first-innings score was 117.6 in 2014 and 152.4 in 2026, with 42 totals of 150 or more in 2026 (Case Study 2 has the full series). And in Test cricket, which you might expect to be immune, the run rate in men's Tests reached 3.66 runs an over in 2024, against 3.28 in 2003 — while the share of Tests ending in a draw fell to 4.0% in 2024.

🏏 Eye test: Ask anyone who played T20 cricket in 2010 what a "good" powerplay looked like and they will probably say "45 or 50 without losing two". In 2026 the IPL powerplay averaged over 60 runs. A coach who still judges an opener against the 2010 standard is not wrong about cricket — he is wrong about which cricket. The data makes the shift visible; what it can't tell you is whether your own players, on your own pitches, are ready for it.

What this does to every statistic

Here is why this matters for analytics, not just for highlights packages. A batting average of 30 and a strike rate of 135 meant one thing in 2012, when a side scoring 158 batting first was par, and something quite different in 2026, when par was nearer 196. An economy rate of 8 an over was mediocre for an IPL bowler in 2013 (the whole league scored at under 8) and excellent in 2026 (the whole league scored at over 9). A number without its environment is not a measurement.

That is the first sense in which the game is "changing faster than its statistics". Career averages and strike rates mix seasons from different scoring environments without adjusting for them, so they quietly mislead. The repair — comparing every performance with what an average player did in the same league, season, phase, and conditions — is one of the themes of Part II.

📋 Try it — Analyze this match (season context): In 2013, the IPL's average first-innings score was 156.3; in 2026, it was 195.7. A side batting first scores 180. Express that total as a percentage of the season average in each year, and say in one sentence what the comparison tells you.

Worked answer

180 ÷ 156.3 = 115% of the 2013 average; 180 ÷ 195.7 = 92% of the 2026 average. The same 180 would have been a strong, above-par total in 2013 and a below-par total in 2026: the number on the scoreboard means nothing until you know the environment it was scored in. (A percentage of the season average is the simplest possible "environment adjustment"; Chapter 8 builds better ones.)


1.4 Why the traditional numbers mislead

The cricket question: If average and economy are on every scorecard, what exactly is wrong with them?

Chapter 4 prosecutes the full case. Here are the three charges, each with a real example.

Charge 1: the average ignores pace and situation

Imagine a T20 chase where your side needs ten an over and you score 30 off 30 balls. Your average for the day, if you got out, is 30 — a perfectly respectable number on a scorecard. But you used a quarter of your side's balls to score at the rate the chase already required just to stand still. Unless your partners made up the difference, you lost ground every over you batted.

That is not a hypothetical. The script code/02_kohli_vs_sky.py searches every IPL chase with a clean result for innings of 28 to 34 runs off 28 to 34 balls, played by a batter who arrived needing at least 9.5 runs an over, in a match the chasing side lost:

=== IPL chases (clean results): innings of 28-34 off 28-34 balls, entry required rate >= 9.5, team lost: 13 ===
start_date       batter                batting_team  runs  balls  rrr_at_entry                      winner
2008-05-15    SB Styris             Deccan Chargers    29     28         10.29            Delhi Daredevils
2014-05-07  BB McCullum         Chennai Super Kings    33     29         11.74             Kings XI Punjab
2014-05-13 KP Pietersen            Delhi Daredevils    33     29          9.96 Royal Challengers Bangalore
2019-03-31    SPD Smith            Rajasthan Royals    28     30          9.66         Chennai Super Kings
2023-04-02  Abdul Samad         Sunrisers Hyderabad    32     32         14.86            Rajasthan Royals
...

(Five of the thirteen rows shown, venue column omitted; the script prints them all.)

Thirteen of them, including some of the finest batters of the era — Brendon McCullum, Kevin Pietersen, and Steve Smith, whose Test average in the Cricsheet era is 55.29. Look closer at Smith's innings at Chepauk on 31 March 2019:

=== Zoom: match 1175367, Chennai Super Kings v Rajasthan Royals, MA Chidambaram Stadium, 2019-03-31 ===
Target: 176 off 20.0 overs
Smith arrived at 14 after 19 legal balls; required rate then 9.62
Smith's innings ended at 94 after 80 legal balls (how out: ['caught']); required then 82 off 40
Final: 167/8; winner Chennai Super Kings by 8.0 runs
Rest of the chasing side, off the bat: 132 runs off 91 balls, SR 145.1

Smith walked in at 14/3 needing 9.62 an over. He left at 94/5 with 82 still needed off 40 balls — more than 12 an over. Rajasthan lost by eight runs. The rest of the side scored at 145.1 off the bat; Smith's 28 came at 93.33. In a match lost by eight runs, an innings that consumed 30 balls at less than a run a ball is not a neutral contribution, whatever it does to an average. Case Study 1 works through the innings over by over, and asks the fair questions — the wickets that had already fallen, what the bowlers were doing, what the alternative was.

⚠️ Common pitfall: Judging a limited-overs innings by its runs alone. "He top-scored" and "he got 28" are not verdicts. Ask: how many balls did it take, what did the match need at the time, and what did the side do with the balls that were left?

Charge 2: economy ignores when you bowl

📐 Definition — Economy rate: runs conceded per six legal balls. Runs conceded include wides and no-balls (charged to the bowler) but exclude byes, leg-byes and penalty runs.

An economy rate treats an over in the powerplay and an over at the death as interchangeable. They are not. Here is every ball bowled in the IPL across 2024–2026, split by phase:

=== League-wide bowling by phase, IPL 2024-2026 ===
                       balls   runs  wickets  economy
all         phase
IPL 2024-26 middle     23012  34409     1040     8.97
            death      10842  19594      803    10.84
            powerplay  15616  24878      652     9.56

The league as a whole conceded 10.84 an over at the death and 8.97 in the middle. A bowler who bowls mostly at the death will have a worse economy than an equally good bowler who bowls mostly in the middle, simply because of when the captain throws him the ball.

Scatter of overall economy against share of balls bowled at the death, IPL 2024-26

📊 Figure (described): Each dot is an IPL bowler with at least 300 legal balls in 2024–2026; the horizontal axis is the share of their balls bowled in overs 16–20 and the vertical axis their overall economy. The cloud slopes upward — bowlers who carry more of the death overs tend to have higher economies. Jasprit Bumrah stands out far below the cloud: 31% of his balls at the death and an economy of 7.17.

Bowlers with 300+ balls, IPL 2024-26: 58
Correlation between overall economy and % of balls bowled at the death: 0.46

Heaviest death-overs workloads:
                balls  economy  death_share
M Pathirana       391     9.24         53.5
...
Selected bowlers:
JJ Bumrah         889     7.17         31.2
SP Narine         906     7.01         11.9
...
Lightest death-overs workloads:
RA Jadeja         707     8.23          2.3

A correlation of 0.46 between economy and death-overs share is a clear relationship. Matheesha Pathirana bowled 53.5% of his balls at the death in these seasons and conceded 9.24 an over; Ravindra Jadeja bowled 2.3% of his at the death and conceded 8.23. Ranked by economy, Jadeja looks the better bowler by a run an over. Adjusted for when they bowled, that conclusion is far from obvious — Pathirana's 9.24 is well below the league's 10.84 for the overs he mostly bowled. And Bumrah, with almost a third of his balls at the death and an economy of 7.17, is the outlier the whole league has been trying to explain for a decade. Chapter 14 builds phase-adjusted bowling metrics; Chapter 31 uses them to decide who should bowl when.

Charge 3: the numbers are blind to conditions and opposition

A Test century on a flat pitch against a weak attack and a Test century on a seaming pitch against the best attack in the world both count as 100 runs. Runs per wicket in Test cricket vary sharply by innings, country, and era — for example, between 2015 and 2026 the average first innings in subcontinental Tests produced 36.39 runs per wicket and the fourth innings 24.48. A batter who often bats fourth is penalised by the raw average; a bowler who often bowls fourth is flattered. Chapter 5 and Chapter 22 deal with this.

The same story in women's cricket

None of this is peculiar to the men's game or to the IPL. Here are twelve of the leading batters in women's T20 internationals:

=== Women's T20 internationals (Cricsheet, through Nov 2026): selected batters ===
              innings  runs  balls  outs  average  strike_rate  dot_pct
batter
BL Mooney         119  3816   2993    91    41.93       127.50    34.51
MM Lanning         89  2538   2206    64    39.66       115.05    41.52
L Wolvaardt        99  2984   2413    76    39.26       123.66    36.47
S Mandhana        157  4612   3552   142    32.48       129.84    42.06
EA Perry          105  2242   1850    70    32.03       121.19    34.76
H Kaur            148  3561   3062   113    31.51       116.30    37.46
SFM Devine        112  3006   2399    97    30.99       125.30    39.47
HK Matthews       115  3188   2729   104    30.65       116.82    45.36
AC Jayangani      138  3837   3198   128    29.98       119.98    49.66
JI Rodrigues      117  2788   2358    95    29.35       118.24    34.35
AJ Healy          117  2710   2082   100    27.10       130.16    42.36
DJS Dottin         91  2086   1713    77    27.09       121.77    45.77

Beth Mooney has the highest average in the group (41.93). Alyssa Healy has the highest strike rate (130.16) — and the second-lowest average (27.10). Smriti Mandhana has the most runs (4,612). Sort by any one column and you get a different "best". (One data note for later: Cricsheet records Chamari Athapaththu under the name "AC Jayangani". Player names are a recurring headache, and Chapter 2 shows how the Cricsheet people register solves it.)

🔄 Check your understanding 1. In the IPL in 2024–2026, how much more expensive was the average death over than the average middle over? 2. Why does a raw economy rate penalise a specialist death bowler? 3. Steve Smith's 28 off 30 came in a chase Rajasthan lost by eight runs. Give one reason the innings hurt the chase, and one question you would want answered before blaming him.

Answer

  1. 10.84 v 8.97 runs per over — nearly two runs (1.87) more per over.
  2. Because the death overs are the most expensive phase for every bowler; a bowler who bowls a large share of them will concede more per over than an equally good bowler used mainly in the middle overs.
  3. It used 30 balls at 93.33 when the required rate was already above 9.6 and rising, leaving 82 needed off 40. Before blaming him: he arrived at 14/3 — was he told to rebuild? How good was the bowling he faced, and on what kind of pitch? Did his partners have the licence to attack because he was holding an end?

1.5 What Moneyball actually was

The cricket question: People say cricket needs its "Moneyball moment". What does that mean, precisely?

Moneyball: The Art of Winning an Unfair Game, Michael Lewis's 2003 book, tells the story of the Oakland Athletics, a Major League Baseball team with one of the smallest payrolls in the sport, and its general manager Billy Beane. The Athletics could not outbid rich clubs for established stars. So they asked a different question: which skills does the market pay too little for?

The answer, in the early 2000s, included on-base percentage — how often a hitter reaches base by any means, including walks. Baseball's traditional statistics, and the scouts and executives who relied on them, prized batting average (hits per at-bat), which ignores walks. A hitter who walked a lot but hit for a modest average was cheap; a hitter who hit for a high average but rarely walked was expensive. Yet, as analysts had been arguing for years, avoiding outs was what actually produced runs. The market priced the wrong number. The Athletics bought what was cheap and valuable, and competed with teams spending far more.

Three things about that story are worth getting right, because they are often misremembered.

First, the ideas were old. The analytics in Moneyball were not invented in Oakland. Bill James had been publishing his Baseball Abstract since the late 1970s, arguing — with data, wit, and considerable hostility from the baseball establishment — that the traditional statistics misled. James named the field sabermetrics, after SABR, the Society for American Baseball Research. A community of amateur analysts, many of them fans with no connection to any team, had done much of the work. What changed in Oakland was not the ideas but the willingness of a front office to bet money on them.

Second, the edge was about a market, not a formula. On-base percentage was not magic. It was mispriced. The moment the rest of baseball understood it — and they did, quickly — the price of patient hitters rose and the edge disappeared. The lasting lesson of Moneyball is not "use on-base percentage". It is "find what the market undervalues, and know that the edge will close once others see it".

Third, analytics won, and then the game changed. Within a few years most major-league clubs had analytics departments. The Boston Red Sox hired Bill James as an adviser and won the World Series in 2004. By the mid-2010s, ball-tracking (MLB's Statcast system, introduced across the league in 2015) measured the speed and angle of every batted ball. Analytics stopped being a competitive secret and became the language of the sport — and, many fans would argue, changed how the game is played in ways not everyone likes.

🔍 Why this works: Why should a better measurement lead to winning? Because in any market where prices are set by a crude measure, the gap between the crude measure and true value is free money. If franchises price batters by average and reputation, a batter whose average understates his value — because he scores fast in the hardest phase, say, or because his average was dragged down by batting in tough conditions — will be cheaper than he should be. Buying enough such players gives you more winning per rupee. The edge comes not from knowing everything, but from knowing one thing the market gets systematically wrong. That is the logic behind Chapter 13 and Chapter 34.

So when people say cricket is waiting for its Moneyball moment, they mean three different things, and it helps to separate them:

  1. Better measurement — replacing average and economy with metrics that capture pace, phase, context, and conditions (Parts II and III of this book).
  2. Better decisions — using those measurements to pick teams, set batting orders, rotate bowlers, declare, and bid (Parts IV and VI).
  3. An exploitable market — a place where the crude measures set prices, so the better measures make money (the IPL auction, Chapter 34; and, more controversially, betting markets, Chapter 35).

Cricket has made progress on all three. It has not had a moment where the whole sport visibly turned — no single season where a franchise built from undervalued players beat the giants and everyone noticed. That is what the "20 years behind" in this chapter's title means. It is a provocation, not a measurement: baseball's revolution was publicly visible by 2003, and cricket's public conversation in 2026 still runs largely on batting average, economy rate, and the eye.


1.6 Why cricket lagged

The cricket question: If cricket has more data than almost any sport, why did its analytics revolution arrive so late?

There is no single answer. Here are the five reasons that matter most, with the evidence for each.

1. The data was not free until recently

Baseball's box scores were printed in newspapers for a century, and fan researchers spent decades building public databases of every game. Cricket's scorecards were public too, but ball-by-ball records — the raw material for every model in this book — were mostly locked inside broadcasters, governing bodies, and commercial providers. ESPNcricinfo's Statsguru made career statistics searchable, a huge step, but you could not download the deliveries.

That changed when Cricsheet, a project maintained by Stephen Rushe, began publishing free, structured ball-by-ball data for international and league cricket. The six and a half million deliveries in section 1.2 are the result. For most of cricket's history, the analysis in this book would have required a job at a broadcaster or a board. Now it requires a laptop and an internet connection — in Dhaka, Lahore, Port of Spain, or anywhere else.

2. Three formats split every question three ways

Baseball is one game. Cricket is at least three: a five-day Test, a fifty-over ODI, and a twenty-over T20 (plus The Hundred's 100-ball variant). They reward different skills and need different metrics — Chapter 5 argues they are "three different sports". Every analytical question has to be asked three times, and the samples for each answer are a third the size.

3. Samples are small where the money is

The IPL is where cricket's money concentrates, and IPL samples are small. A league season gives each side fourteen group matches. A T20 innings is often twenty to forty balls. Suryakumar Yadav's entire IPL career at the death — the number at the heart of the opening argument — is 468 balls, roughly what a Test opener might face in two or three innings. Small samples make honest analysis hard and dishonest analysis easy: with enough splits (venue, phase, bowler type, season), any player can be made to look like a genius or a liability. Chapter 6 is the antidote.

4. The culture prizes the eye — and the eye is often right

Cricket is old, proud, and run largely by people who played it at a high level. Its knowledge is passed down by watching, playing, coaching, and talking — the reading of a pitch, the feel of a spell, the instinct for when a batter is "about to go". That knowledge is real. Former players can see things in a batter's footwork that no ball-by-ball table records. But a culture that trusts the eye has little reason to question a number that matches what the eye already believes — and every reason to be suspicious of a number that contradicts it.

5. The community was small

The overlap between "serious cricket fan" and "can write a statistical model" used to be small and scattered. Baseball had SABR from 1971 and a tradition of fan research; cricket had brilliant individual statisticians — the scorers and record-keepers whose work fills the almanacs — but less of a culture of public, model-based argument. That has been changing fast, especially in South Asia, where a generation that grew up with T20 cricket also grew up with Python. If you are reading this book, you are part of that change.

Cricket's own early analytics

It would be unfair to say cricket had no analytics revolution. It had one important early success, and it is instructive. In 1998 Frank Duckworth and Tony Lewis, two English statisticians, published in the Journal of the Operational Research Society a method for resetting targets in rain-interrupted limited-overs matches. It replaced cruder rules — including the "most productive overs" rule that, at the 1992 World Cup semi-final in Sydney, left South Africa's scoreboard showing 22 needed off 1 ball after a rain break. The Duckworth–Lewis method was used in international cricket from 1997, formally adopted by the ICC in 1999, and revised by Steven Stern into Duckworth–Lewis–Stern in 2014. It rests on exactly the idea at the heart of this book: that a side's scoring potential depends on two resources, overs remaining and wickets in hand. Chapter 23 derives a resource table from the data and critiques the method.

So cricket can adopt analytics when the problem is clear and the old way is visibly broken. What it has lacked is a visible, competitive reason to rethink the everyday numbers — the averages and economies that run through selection meetings, commentary, and auction rooms.

🧩 Productive struggle: Before reading on, try this. You have a single number to rank T20 batters, and you are allowed to combine only average (A) and strike rate (SR). A batter with A = 40 and SR = 135 and a batter with A = 34 and SR = 149 — the Kohli and Suryakumar shape — must be ranked. Propose a formula. Then test it: does it rank Andre Russell (A = 28.20, SR = 174.18) above or below KL Rahul (A = 46.15, SR = 139.15)? Does that ranking feel right? What is your formula assuming about the value of a wicket?

Some approaches and what they reveal

A popular folk formula is A × SR / 100 ("runs per innings, weighted by pace"). It gives 40 × 1.35 = 54.0 against 34 × 1.49 = 50.7 (Kohli shape ahead), and Russell 28.20 × 1.7418 = 49.1 against Rahul 46.15 × 1.3915 = 64.2 (Rahul well ahead). Another is A + SR/2: 107.5 against 108.5 (Suryakumar shape ahead), and Russell 115.3 against Rahul 115.7 (almost level). Two reasonable-looking formulas give different answers because each silently assumes an exchange rate between runs and balls — and between wickets and balls. In T20 that exchange rate is not fixed: a wicket costs a lot in over 3 with a new batter to come, and almost nothing in over 20. You can't fix the formula without knowing the match state. That is why the book builds expected runs and win probability before it ranks anybody.

🔄 Check your understanding 1. What idea underlies the Duckworth–Lewis method, and why does it make the method an early piece of cricket analytics? 2. Why do small samples matter more in the IPL than in Test cricket? 3. Give one way the "culture of the eye" has helped cricket and one way it has slowed analytics.

Answer

  1. That a side's run-scoring potential depends on two resources — overs remaining and wickets in hand — so a fair revised target must account for both. It replaced intuition-based rules with a model fitted to data.
  2. An IPL season gives each side only fourteen group matches and a batter often faces twenty to forty balls an innings, so phase- or matchup-level numbers rest on a few hundred balls; a Test career offers thousands of balls per player.
  3. Helped: experienced eyes see technique, intent and conditions that ball-by-ball data cannot record. Slowed: numbers that confirm what the eye believes go unquestioned, and numbers that contradict it are distrusted rather than tested.

1.7 What's changing — and where the opportunity is

The cricket question: If cricket is behind, what is pulling it forward?

Data, tools, and people

The free data now exists (section 1.2). The tools are free too: Python, pandas, matplotlib, scikit-learn — the stack this book uses — run on any laptop. A fan in Dhaka with a slow connection can download a season of IPL ball-by-ball data once, cache it, and run every model in this book offline.

The professional side has moved too. Franchises in the IPL and other T20 leagues employ analysts. Broadcasters show real-time win predictors and phase-by-phase graphics. Companies such as CricViz (a real cricket analytics company whose models are proprietary) supply data and models to broadcasters and teams. National boards use ball-tracking for the Decision Review System and, increasingly, for preparation. The details of who uses what, and how, are mostly private — this book won't pretend to know them — but the direction is clear.

The market: the IPL auction

Most importantly for anyone who remembers Moneyball, cricket now has a market where crude measures set prices: the IPL player auction. Every year franchises bid for players under a fixed salary cap — the purse, which grew from ₹90 crore per franchise in 2022 (₹95 crore in 2023, ₹100 crore in 2024) to ₹120 crore in 2025 and ₹125 crore in 2026. (₹1 crore is 100 lakh, or ten million rupees; ₹120 crore is very roughly US$14 million at around ₹85 to the dollar.) The book's data includes a reference table of auction prices for 2022–2026, built from public sources (data/reference/ipl_auction.csv).

auc = pd.read_csv(BOOK / "data" / "reference" / "ipl_auction.csv")
buys = auc[auc["acquisition"] == "auction purchase"].copy()
buys["price_crore"] = buys["price_lakh"] / 100

s = buys.sort_values("price_crore", ascending=False)["price_crore"].reset_index(drop=True)
top10pct = s.head(int(np.ceil(0.10 * len(s)))).sum() / s.sum()
at_base = (buys["price_lakh"] == buys["base_price_lakh"]).mean()
=== Anchor B: IPL auction purchases in the reference table ===
                     players  total_crore  median_crore  max_crore
season event
2022   mega_auction      204       551.70          1.05      15.25
2023   mini_auction       80       167.00          0.50      18.50
2024   mini_auction       72       230.45          1.25      24.75
2025   mega_auction      174       591.65          1.50      27.00
2026   mini_auction       77       215.45          1.00      25.20

Ten most expensive auction purchases, 2022-2026:
 season        event              player                  team  price_crore  base_price_lakh overseas
   2025 mega_auction        Rishabh Pant  Lucknow Super Giants        27.00            200.0    False
   2025 mega_auction        Shreyas Iyer          Punjab Kings        26.75            200.0    False
   2026 mini_auction       Cameron Green Kolkata Knight Riders        25.20            200.0     True
   2024 mini_auction      Mitchell Starc Kolkata Knight Riders        24.75            200.0     True
   ...

Auction purchases: 607; total spend Rs 1756.25 crore
Share of all auction spend going to the most expensive 10% of purchases: 45.3%
Share of purchases made at exactly the base price: 50.2%
Median purchase price: Rs 1.00 crore; mean: Rs 2.89 crore

Histogram of IPL auction purchase prices, 2022 to 2026

📊 Figure (described): The distribution of prices paid for the 607 players bought at IPL auctions from 2022 to 2026, in ₹ crore. Almost half of all purchases sit in the lowest band, below ₹1 crore; the bars thin out quickly above ₹5 crore, and a long tail stretches to the four most expensive buys — Rishabh Pant (₹27.00 crore, 2025), Shreyas Iyer (₹26.75 crore, 2025), Cameron Green (₹25.20 crore, 2026) and Mitchell Starc (₹24.75 crore, 2024).

This is an extraordinarily skewed market. Half of all players bought went for exactly their base price — nobody bid against the first offer. The median purchase cost ₹1.00 crore; the mean was ₹2.89 crore, nearly three times higher, because a small number of enormous prices drag it up. The most expensive tenth of purchases absorbed 45.3% of all the money spent.

A skewed market is not necessarily an inefficient one — perhaps the stars really are worth 25 times the median player. But it is exactly the kind of market where inefficiency can hide. If franchises price players partly by name, nationality, and last season's highlights, and partly by the traditional numbers we have just seen mislead, then some ₹25 crore players will be overpriced and some ₹1 crore players will be bargains. Finding them, with real data and honest uncertainty, is the subject of Chapter 13 and Chapter 34.

⚠️ Common pitfall: Reading a high price as a mistake. An auction price reflects more than batting or bowling numbers: captaincy, fitness, marketability, the specific gap in a squad, how much purse other franchises had left, and the order in which players came up. "Player X cost ₹20 crore and averaged 25" is the start of an analysis, not a conclusion.

📋 Try it — Settle this debate: A friend says, "The auction is irrational: half the players go for their base price while a few go for twenty-five times the median." Using only the numbers above, argue both sides in two or three sentences each.

Worked answer

Irrational: 45.3% of the money went on 10% of the players, and half of all purchases drew no competing bid at all. In a T20 side where eleven players each matter, such concentration suggests franchises are paying a premium for a few famous names and ignoring value lower down — the classic Moneyball setting.

Rational: Talent in T20 may itself be highly concentrated — a handful of players might genuinely change win probability far more than the rest — and the purse forces trade-offs, so many players should go cheaply. Base-price purchases are also partly an artefact of the auction format (players presented late, when purses are nearly spent). Skew alone doesn't prove mispricing; you need to compare price with measured value, which is what Chapter 13 does.

🔄 Check your understanding 1. In one sentence, what was the real lesson of Moneyball? 2. Name two reasons cricket analytics developed later than baseball's. 3. What do the median (₹1.00 crore) and mean (₹2.89 crore) auction prices tell you together that neither tells alone?

Answer

  1. Find the skills the market undervalues because it measures them with crude statistics, buy them cheaply — and expect the edge to disappear once others catch on.
  2. Any two of: ball-by-ball data was not freely available until recently; three formats split every question; samples are small in the IPL; the culture trusts the eye; the analytical community was small.
  3. That the price distribution is heavily skewed: a typical player costs about ₹1 crore, but a few very expensive players pull the average up to nearly three times that.

1.8 Four questions this book will answer

Every chapter in this book uses real matches and players, but four examples come back again and again. Think of them as the book's spine. Here is a first look at each — what it is, and what we'll do with it.

Anchor A — The turning point: Newlands, 25 January 2017

South Africa v Sri Lanka, third T20 international, Newlands, Cape Town. South Africa won the toss, batted, and made 169/5. Sri Lanka needed 170.

Sri Lanka's chase, over by over:
 over         bowler  runs  wkts  cum_runs  cum_wkts  need  balls_left
   14       JT Smuts    12     0       114         2    56          36
   15 AL Phehlukwayo     2     0       116         2    54          30
   16    Imran Tahir     2     2       118         4    52          24
   17     WD Parnell    19     0       137         4    33          18
   18     D Paterson     7     1       144         5    26          12
   19 AL Phehlukwayo    15     0       159         5    11           6
   20     D Paterson    11     0       170         5     0           1

South Africa's innings at the same checkpoints (cumulative runs/wickets):
  after 15 overs: 119/3   |   Sri Lanka: 116/2
  after 16 overs: 124/3   |   Sri Lanka: 118/4
  at the close   : 169/5   |   Sri Lanka: 170/5

After 15 overs Sri Lanka were 116/2, needing 54 off 30 balls, with Niroshan Dickwella and Dhananjaya de Silva set. Then Imran Tahir bowled the sixteenth over: two runs, two wickets — Dickwella for 68 off 51 balls and de Silva for 19 off 27. Suddenly it was 118/4, 52 needed off 24, two new batters in. Seekkuge Prasanna came in and the seventeenth over, from Wayne Parnell, went for 19. Kusal Mendis fell in the eighteenth. Prasanna finished 37 not out off 16 balls, Asela Gunaratne 11 not out off 6, and Sri Lanka won by five wickets with one ball to spare — the balls_left column, which counts the legal balls actually bowled, shows the delivery that was never needed.

Worm chart of both innings at Newlands, 25 January 2017

📊 Figure (described): Cumulative runs over by over for South Africa (blue, batting first) and Sri Lanka (orange, chasing 170), with dots marking overs in which wickets fell. The two lines track almost exactly for fifteen overs. In over 16 (shaded) Sri Lanka's line flattens and a large dot marks two wickets; then it climbs steeply through overs 17 and 19 to reach the target in the final over.

Look at the worm. The two innings were almost identical for fifteen overs — South Africa 119/3, Sri Lanka 116/2. Over 16 is where the chase seemed to turn against Sri Lanka; overs 17 and 19 turned it back. Which over mattered most? How much did Tahir's over change Sri Lanka's chances, and how much did Prasanna's 37 off 16 change them back? Was Dickwella, the player of the match, really the most valuable player in it? Those questions need a win-probability model: a function that, given the state of a chase, estimates how often the chasing side wins. We build a simple version from the data in Chapter 9 and a full one in Chapter 20 — and we will let those models, not intuition, put numbers on the turning point.

Anchor B — The auction inefficiency

You have just seen the shape of the IPL auction market. In Chapter 13 we will find a real pair of players: an expensive one whose phase-specific value lags a much cheaper one's, using real prices from the reference table and real performance data. We will not invent a "Player X". If the cleanest real pair the data offers is imperfect, we will say so. Chapter 34 then turns the method into a full auction strategy — maximum bids, contingency plans, squad balance under a ₹120–125 crore purse.

Anchor C — The batting-average illusion: Rohit Sharma in ODIs

Here is a statistic that circulates in many forms: Rohit Sharma averages much more in matches India win. It is true. Here is the computation from code/03_anchor_previews.py:

rohit_matches = odi[(odi["batter"] == "RG Sharma") | (odi["non_striker"] == "RG Sharma")]["match_id"].unique()
# label each of those matches won / lost / no result-tie from India's point of view, then:
split = batting_summary(rb, ["batter", "res"]).loc["RG Sharma"]
=== Anchor C: Rohit Sharma, men's ODIs (Cricsheet), by India's result ===
               innings  runs  balls  outs  average  strike_rate
res
won                171  8243   8651   141    58.46        95.28
lost                96  3349   3821    93    36.01        87.65
no result/tie        9   165    201     7    23.57        82.09

Rohit averages 58.46 in ODIs India won and 36.01 in ODIs India lost. (The first outline of this book said 62 and 28 — another number from memory that the data corrected.) The tempting conclusion is "Rohit performs in wins" or even "when Rohit fires, India win". But look at how the split was made: we sorted his innings by the result of the match. Matches in which India's top-order batter scored heavily are, almost by construction, more likely to be matches India won. The causation can run from runs to wins, from wins to runs (a winning chase ends early with the batter not out, which inflates the average), or from a third factor (a flat pitch or a weak opponent makes both easier). This is selection on the outcome, one of the most common traps in sports statistics, and we return to it in Chapters 4, 6 and 9.

📐 Definition — Selection on the outcome: splitting performance data by a result that the performance itself helps cause (such as "matches won"), so that the split partly measures the result rather than the player.

Anchor D — The matchup that wins a semi-final

The fourth anchor is a batter whose record against one specific type of bowling — left-arm wrist spin, say, or left-arm pace — is dramatically worse than against everything else. In Chapter 11 we find a real example by joining the deliveries to a table of bowling styles, and we immediately meet the trap: raw matchup numbers rest on tiny samples (a batter may face a particular bowler type for only thirty or forty balls a season). We will need shrinkage — pulling a small-sample estimate toward a sensible baseline — before the matchup is believable. Chapter 31 then asks whether a captain should rearrange his bowling to exploit it.

📋 Try it — Evaluate this player: Using Anchor C's table, compute Rohit Sharma's overall ODI average from the three rows (total runs ÷ total outs). Then explain why the overall average lies closer to the "won" figure than the "lost" figure.

Worked answer

Total runs = 8,243 + 3,349 + 165 = 11,757. Total outs = 141 + 93 + 7 = 241. Overall average = 11,757 ÷ 241 = 48.78. It sits nearer 58.46 than 36.01 because far more of his runs and dismissals come from matches India won (171 innings, 141 outs) than lost (96 innings, 93 outs): an overall average is a weighted mixture of the subgroup averages, weighted by dismissals.

🔄 Check your understanding 1. After 15 overs at Newlands, Sri Lanka needed 54 off 30 with eight wickets in hand. What changed in the 16th over, and why can't we yet say how much it changed the match? 2. Why is "Rohit averages 58.46 in wins" weak evidence that his runs cause India's wins? 3. Why will the matchup anchor need shrinkage?

Answer

  1. Imran Tahir took two set batters' wickets for two runs, leaving 52 off 24 with two new batters. To say how much that shifted the result we need a win-probability model built from many similar chases — Chapters 9 and 20.
  2. Because the innings were sorted by the match result, which his own runs help produce; winning chases also end with batters not out, and easy conditions raise both his runs and India's chances. The split partly measures the selection, not the player.
  3. A batter faces a specific bowling type for only a few dozen balls a season, so the raw matchup figure is dominated by noise; shrinking it toward a baseline gives a more believable estimate.

1.9 The eye test and the spreadsheet

The cricket question: If the data can correct Kohli's numbers, why do we still need people who watch the game?

Meet two people you will see throughout the book.

Nusrat Jahan is twenty-two, a statistics undergraduate in Dhaka, and a lifelong fan who grew up watching the Tigers at Mirpur. Her laptop is old and her internet is slow; everything in this book has to run for her. She will build the book's project, chapter by chapter, and ask the questions a smart beginner asks.

Wendell Baptiste is fifty-eight, a Trinidadian former first-class seamer who now coaches the Port of Spain Pelicans, an academy T20 side in a local league. He has forgotten more about bowling at the death than most analysts will ever learn, and he is not easily impressed by spreadsheets.

Nusrat showed Wendell the Kohli and Suryakumar table over a video call.

Wendell: Kohli faster than Suryakumar at the death. All right. I believe the arithmetic. Now tell me what it means.

Nusrat: It means the usual story — Kohli can't finish — is wrong. Over 835 balls he's scored at 188 at the death.

Wendell: Over 835 balls, after he'd already batted fifteen overs. You know what it's like to bowl at a man who's been in for fifty balls? He's seen your slower ball. He's seen your yorker. He knows what you've got left. A man walking in at the death sees none of that. Your number is fair to Kohli. It is not fair to the question.

Nusrat: So what would be fair?

Wendell: Compare them when they've faced the same number of balls. Compare them against the same bowlers. And watch them. I'll tell you something your table can't: some batters go hard at the death because they've been told to, and some go hard because the bowler's gone to pieces. You can't see the difference in a scorebook. You can see it from the boundary.

Nusrat: I can't see it from Dhaka.

Wendell: (laughing) No. So you need me, and I need you to tell me when I'm remembering a match that never happened.

That exchange is the book's attitude in miniature. Wendell's first point — that "balls already faced" changes what a death-overs strike rate means — is a real statistical issue, and Chapter 9 builds measures that account for how set a batter is. His second point — that intent, instruction, and the bowler's state of mind are invisible in ball-by-ball data — is simply true. The data cannot tell you why a captain made a choice; it can only tell you what happened next, and how often similar choices worked before.

🏏 Eye test: A good coach watching a bowler's first over can often tell you whether he is "on" today — the rhythm, the wrist, whether the ball is hitting the bat hard. No ball-by-ball dataset contains that. But the coach's memory is also selective: we remember the yorker that won the match and forget the three full tosses before it. The healthiest relationship is two-way. The coach proposes ("he bowls better with the new ball"), the data tests it, and both sides change their minds when they should.

Variance is not failure

There is one more thing the spreadsheet teaches that the eye resists: luck is enormous in cricket, and especially in T20. Across 1,218 IPL matches in the snapshot with a result, the side that won the toss won 51.6% of them — barely different from a coin flip, despite how much captains and commentators talk about the toss. And even good prediction models of T20 matches, as later chapters show, are right only modestly more often than they are wrong before the first ball is bowled.

That doesn't mean analysis is useless. It means the right goal is not "be right about every match" but "make decisions that win slightly more often, over many matches". A franchise that makes a 55% decision a hundred times will beat one that makes a 50% decision a hundred times, even though it will lose many individual calls. The Newlands chase is a reminder: a side can be well placed and still lose, and a decision can be good and still fail. Judge decisions by the information available when they were made, not by how a single match turned out. That theme — variance is not failure — runs through every prediction chapter in Part V.

🔄 Check your understanding 1. What was Wendell's objection to comparing Kohli's and Suryakumar's death-overs strike rates directly? 2. The toss winner won 51.6% of IPL matches with a result. What does that suggest about the toss as a predictor? 3. Explain "judge decisions by the information available when they were made" using a captain's choice of bowler for the last over.

Answer

  1. Kohli usually reaches the death overs already set, having faced many balls and seen the bowlers' variations; batters who arrive late have not. The comparison mixes skill with circumstance.
  2. Very little: a 51.6% win rate for toss winners is close to the 50% a coin flip would give, so on its own the toss barely shifts the odds (venue and conditions may change that, which Chapter 22 tests).
  3. If the captain gives the last over to his best death bowler, who has conceded the fewest runs per over at the death over hundreds of balls, that is a good decision even if the batter hits two sixes and the match is lost. The outcome was bad; the decision, on the information available, was right.

1.10 How this book works

A few promises, so you know what you are holding.

Every number about a real player is computed from real data. The data is the Cricsheet ball-by-ball archive (snapshot of 18 November 2026: men's Tests from December 2001, men's and women's ODIs and T20Is, the IPL from 2008 to 2026, eleven other men's T20 leagues, the WPL, the WBBL, and The Hundred), plus a few sourced reference tables such as IPL auction prices. Where we compare with a famous official figure, we say "in the Cricsheet data" — Cricsheet can differ by a run or a match from official records, especially for older matches.

Every analysis shows its code. Scripts live in each chapter's code/ folder and save their figures to images/. You can run them yourself; the outputs printed in the chapters are the real outputs of those scripts. If you never run a line of code, you can still follow every argument from the prose and figures.

Formats are never mixed without saying so. A strike rate is a T20 strike rate or an ODI strike rate or a Test strike rate. When a chapter treats more than one format, it says which numbers belong to which.

Simulated data is always labelled. Where public data stops (pitch maps, shot directions, fielding positions), the book uses a simulated tracking layer attached to real deliveries, marked 🧪 every time.

Uncertainty is part of the answer. A number without a sample size is a rumour. From Chapter 6 onward, important estimates come with an honest range.

The road map

The book has eight parts:

Part Chapters What it does
I. Foundations 1–7 Data, Python, why traditional stats mislead, the three formats, statistical thinking, visualisation
II. Batting Analytics 8–13 Better batting metrics, impact, Test batting, matchups, partnerships, IPL batting valuation
III. Bowling & Fielding 14–18 Bowling metrics, pitch maps (simulated layer), Test bowling, fielding, spin v pace
IV. Match & Team Analytics 19–23 Expected runs, win probability, team composition, toss and venue, DLS
V. Prediction & Forecasting 24–29 Pre-match models, player projection, league translation and women's cricket, in-match forecasting, tournament simulation, Test forecasting
VI. Strategic Analytics 30–34 Batting order, bowling rotation, field placement, declarations, auction strategy
VII. Betting, Fantasy & Applications 35–38 Betting markets, fantasy cricket, media and broadcasting, careers
VIII. Synthesis 39–40 Your analytics platform; the future of the field

🔷 R corner (not run in this book's build): the phase table from section 1.1 in R with arrow and dplyr.

r library(arrow); library(dplyr) balls <- read_parquet("data/processed/ipl_deliveries.parquet") balls |> filter(!super_over, wides == 0, batter %in% c("V Kohli", "SA Yadav")) |> group_by(batter, phase) |> summarise(runs = sum(runs_batter), balls = n(), sr = 100 * runs / balls, .groups = "drop")


Project Checkpoint: is your machine ready for Crease?

Across this book you will build Crease, a cricket analytics platform — think of it as a small, open, do-it-yourself version of the analytics dashboards that broadcasters and franchises use. It lives as a Python package in project/crease/, and every chapter from Chapter 2 onward adds one module to it: data loading in Chapter 2, batting profiles in Chapter 8, a win-probability model in Chapter 20, an auction value model in Chapter 34, and so on. In Chapter 39 the modules come together as an interactive dashboard.

Chapter 1 doesn't add a module. Its job is to make sure your machine can carry the rest. Nusrat ran the check on her old laptop in Dhaka before she did anything else, and you should too. The script code/project_checkpoint.py checks five things — Python itself, the libraries, the toolkit and the empty Crease package, the processed data files, and one number from this chapter:

def report(label: str, good: bool, detail: str = "") -> None:
    """Print one aligned OK / MISSING line and remember any failure."""
    global ok
    ok &= good
    print(f"  [{'OK' if good else 'MISSING':7s}] {label:28s} {detail}")

for lib in ["pandas", "numpy", "matplotlib", "seaborn", "scipy", "statsmodels",
            "sklearn", "xgboost", "plotly", "networkx", "lifelines", "pyarrow"]:
    try:
        mod = importlib.import_module(lib)
        report(lib, True, getattr(mod, "__version__", "?"))
    except ImportError:
        report(lib, False, "pip install " + ("scikit-learn" if lib == "sklearn" else lib))

# ...then the toolkit, the data files, and a sanity check:
k = batting_summary(load_deliveries("ipl")).loc["V Kohli"]
report("Kohli IPL runs/balls/outs", (int(k["runs"]), int(k["balls"]), int(k["outs"])) == (9336, 6926, 231))

On the machine that built this book, the output was (library list shortened):

1. Python
  [OK     ] Python >= 3.10               3.13.12

2. Libraries
  [OK     ] pandas                       2.3.3
  [OK     ] numpy                        2.3.5
  [OK     ] matplotlib                   3.10.9
  ...
  [OK     ] pyarrow                      24.0.0

3. Toolkit and Crease package
  [OK     ] cricdata                     importable
  [OK     ] venues                       importable
  [OK     ] tracking_sim                 importable
  [OK     ] crease                       importable

4. Processed data (data/processed/*.parquet)
  [OK     ] tests_male                    1,730,523 deliveries
  [OK     ] ipl                             295,732 deliveries
  ...
  Total deliveries available: 6,420,141

5. Sanity check against the chapter
  [OK     ] Kohli IPL runs/balls/outs    (9336, 6926, 231) (chapter says (9336, 6926, 231))

READY FOR CHAPTER 2

Three design choices in this little script are worth noticing, because they are habits the whole project will follow.

It checks rather than assumes. Every line either confirms something or tells you exactly what to do about it ("pip install …", "run: python toolkit/cricdata.py ipl"). An analytics tool that fails silently is worse than none.

It reads file metadata, not whole files. Counting six and a half million deliveries by loading them all would take a while on Nusrat's laptop. The Parquet format stores the row count in the file's metadata, so pq.ParquetFile(p).metadata.num_rows answers instantly. Chapter 2 explains Parquet and why the toolkit caches everything in it.

It ties code to the text. The final check recomputes a number printed in this chapter. If your data snapshot differs from the book's (a newer Cricsheet download, say), that line will tell you — and you will know to expect small differences in every later chapter. That is the book's "real data" promise made testable.

If any line says MISSING, don't worry: Chapter 2 walks through installing Python and the libraries on Windows, macOS and Linux, and building the data cache from scratch. If everything says OK, you are ready.


Chapter Summary

The argument in one paragraph. Cricket records every ball — 6,420,141 of them across 17,186 matches in this book's snapshot — yet its everyday statistics (batting average, economy rate, aggregates) ignore pace, phase, conditions, and the changing scoring environment. The T20 game in particular has changed faster than its statistics: the IPL's average first-innings score rose from 157.5 in 2012 to 195.7 in 2026. Baseball faced the same gap between measurement and value, and Moneyball showed that a market which prices players by crude numbers can be beaten. Cricket lagged because ball-by-ball data was not free until recently, three formats split every question, samples are small where the money is, the culture trusts the eye, and the analytical community was small. All five are changing, and the IPL auction — a skewed, crude-measure market — is where the opportunity is clearest.

Key numbers established in this chapter

Quantity Value Scope
Kohli average / SR / death SR 40.42 / 134.80 / 188.38 IPL 2008–2026
Suryakumar average / SR / death SR 33.68 / 148.59 / 178.21 IPL 2008–2026
Middle-overs SR, Kohli v Suryakumar 125.80 v 144.14 IPL 2008–2026
Correlation, average v SR 0.16 58 IPL batters, 1,500+ balls
Average first-innings score 157.5 (2012) → 195.7 (2026) IPL, clean results
200+ first-innings totals 94 (2008–22) v 118 (2023–26) IPL
Economy by phase PP 9.56 · middle 8.97 · death 10.84 IPL 2024–2026
Correlation, economy v death share 0.46 58 IPL bowlers, 300+ balls, 2024–26
Auction spend on top 10% of buys 45.3% 607 purchases, 2022–2026
Rohit ODI average, wins v losses 58.46 v 36.01 Men's ODIs (Cricsheet)
Toss winner's win rate 51.6% 1,218 IPL matches

A decision framework for any cricket number you meet

  1. Which format? A Test average, an ODI average and a T20 average are different quantities.
  2. Which era and league? Compare with what an average player did in the same environment.
  3. How many balls? A strike rate on 468 balls and one on 3,407 deserve different confidence.
  4. When in the innings? Phase changes everything in white-ball cricket — for batters and bowlers.
  5. Selected how? Splits by result ("in wins") or by hand-picked periods measure the selection as much as the player.
  6. Where did it come from? If it was quoted from memory, compute it.

What's Next

Every argument in this chapter rested on one thing: a table with a row for every ball. In Chapter 2 we open that table up — where Cricsheet's data comes from, what a single delivery looks like in raw JSON, how the toolkit turns thousands of match files into the tidy tables you used here, and what to do when a player is called "AC Jayangani" in one place and Chamari Athapaththu everywhere else. By the end of it, you will have built the first module of Crease and computed your own IPL 2026 leaderboard.