Acknowledgments
This book could not exist without other people's generosity, and most of that generosity was given freely to strangers.
Cricsheet, and Stephen Rushe. The first and largest debt is to Cricsheet and to Stephen Rushe, who has maintained it for years. Every delivery analysed in these pages — all 6,420,141 of them — comes from files he has collected, structured, corrected and published for anyone to download, under a licence that asks only for credit. Ball-by-ball data used to be something only broadcasters, boards and commercial firms had. Cricsheet made it something a student in Dhaka or a club analyst in Leeds can have on a Tuesday evening. Every chapter of this book rests on that work. If you use Cricsheet's data, credit it — and if you find an error in it, report it, so that the next reader benefits.
The open-source Python community. The analyses in this book are built on tools that thousands of people have written and maintained, mostly unpaid: Python itself; pandas, which turns six million deliveries into something a laptop can reason about; NumPy and SciPy beneath it; Apache Arrow and pyarrow, which make the Parquet cache fast; matplotlib, seaborn and plotly, which drew every chart; statsmodels, scikit-learn and XGBoost, which fitted every model; networkx for the partnership networks; lifelines for the survival analysis of batting innings; Streamlit for the dashboard; and Jupyter for the countless hours of exploration behind the scripts. The R community, and in particular the authors of the cricket packages cricketr and yorkr, showed early what open tools could do with cricket data.
The people who did cricket analytics before it was fashionable. Long before ball-by-ball data was free, statisticians, scorers, journalists and fans were asking better questions of cricket's numbers: the writers of statistics columns who explained strike rates and contexts to general readers, the academic researchers who modelled resources, rain rules and match outcomes, the bloggers who built their own databases by hand, the archivists who kept historical scorecards, and the analysts at clubs, boards and broadcasters whose work rarely carries their name. Frank Duckworth and Tony Lewis, and later Steven Stern, showed that a serious mathematical idea could become part of the laws of a sport. This book stands on all of their work, and the further-reading pages of each chapter try to point you to it.
The thinkers from other sports. The analytical habits in these pages were sharpened elsewhere first: in baseball's long tradition of public analysis, from Bill James's Abstracts through Tom Tango, Mitchel Lichtman and Andrew Dolphin's The Book and Marchi, Albert and Baumer's Analyzing Baseball Data with R; in Michael Lewis's telling of the Moneyball story; in Nate Silver's and Philip Tetlock's work on forecasting; and in the statisticians — Efron and Morris among them — who showed why shrinking small samples toward a sensible average is not a trick but a necessity.
The people who keep the game's public record. Scorers at every level, the volunteers and professionals who maintain public reference records of players and matches, and the publications whose lists of auction prices and player profiles made the book's reference tables possible. Their sources are cited in the files beside each table.
The players. Every number in this book was made by someone running in to bowl the nineteenth over, or walking out at 118 for 4 needing 52 off 24. Analytics is a way of paying closer attention to what they do. It never replaces the doing.
And you, the reader. A free book is written in the hope that someone will use it — to settle an argument, pass a course, build a portfolio, win a fantasy league, ask a better question on air, or simply watch the next match more closely. If you find an error, a clearer explanation, or a better analysis, the book's licence lets you fix it and share the fix. That is how open knowledge grows, and it is how cricket analytics will grow too.