Cricket Analytics, Prediction, and Forecasting
The Data Revolution in Cricket
Performance Metrics, Win Probability, Player Valuation, Match Prediction, and Strategic Analytics Across Test, ODI, and T20
A free, open textbook for cricket fans who want to go beyond the batting average, for aspiring analysts and data scientists, for franchise scouts, journalists, coaches, fantasy players and responsible betting analysts — and for anyone who has argued about Kohli, Smith and Williamson and wanted data instead of opinions.
Published by DataField.Dev
First edition, November 2026
Built on the Cricsheet data snapshot of 18 November 2026: 6,420,141 deliveries from 17,186 matches
Licence
The text, figures and documentation of this book are licensed under the Creative Commons Attribution-ShareAlike 4.0 International Licence (CC BY-SA 4.0) (https://creativecommons.org/licenses/by-sa/4.0/).
You are free to share and adapt this work, for any purpose, including commercially, as long as you give appropriate credit, link to the licence, say whether you made changes, and release your own adaptations under the same licence. Teach a course from it. Translate it into Bangla, Hindi, Urdu, Sinhala, Tamil or Afrikaans. Hand a chapter to the captain of your club side.
The Python code in toolkit/, project/ and every chapter's code/ folder may be used under the same
CC BY-SA 4.0 terms or, at your option, under the MIT Licence. The full terms are in the LICENSE file at
the root of the book.
Data credit
Ball-by-ball match data comes from Cricsheet (https://cricsheet.org), maintained by Stephen Rushe, and is used under the Open Data Commons Attribution Licence (ODC-By). This book does not redistribute Cricsheet's files: its toolkit downloads them from Cricsheet on your own machine. If you publish work built on this data, credit Cricsheet.
The reference tables in data/reference/ (IPL auction prices, 2022–2026; player batting hands and
bowling styles) were compiled from public sources, which are listed in the *_SOURCES.md file beside
each table.
Independence notice
This is an independent educational work. It is not affiliated with, sponsored by, or endorsed by the International Cricket Council, any national cricket board, the Indian Premier League or any franchise, any other league named in it, Cricsheet, ESPNcricinfo, CricViz, Hawk-Eye or any fantasy or betting platform. Team, league, competition and product names are used only to identify the subjects of analysis of public data.
The recurring characters who appear in the book's examples — Nusrat, Wendell, Kavya, Tom and Imran — and their clubs and employers are fictional composites. They never meet or speak for real players. Every statistic about a real player, team or match is computed from the data described in About the Data.
Nothing in this book is financial advice or encouragement to gamble. The betting and fantasy chapters are about measurement, probability and risk; where gambling is illegal, the analysis remains an exercise.
Every ball is a data point. Every match is a story told one ball at a time. This book teaches you to read both.