Instructor Companion — Overview

This companion is for anyone teaching from Cricket Analytics, Prediction, and Forecasting: a lecturer running a full sports analytics course, a data science tutor who wants a real project for the term, a coach educator with six evenings and a room of club coaches, or a journalism instructor who needs students to read a number critically before they put it in a headline. It assumes you have read the book's front matter, especially How to Use This Book, About the Data and Learning Paths, and that you are willing to run the code yourself before your students do.

The book makes one promise: every number about a real player, team, match or league is computed from public data the reader can download. The companion is built to help you keep that promise in your classroom too. Students will be tempted to argue from remembered numbers, as fans do. Your job, and the job of every lab and assessment described here, is to move them from "I'm sure Kohli's death-overs strike rate is about 139" to "I computed it: 188.38 off 835 balls, through the 2026 IPL season".


What the companion contains

File What it is for
overview.md (this file) Philosophy, classroom logistics, adapting the book for five kinds of course, assessment and accessibility
syllabi.md Four complete schedules (a 15-week sports analytics course, a 12-week applied data science project course built around Crease, a 6-week coaching-analytics module, an 8-week journalism data-literacy course), a five-session cricket management supplement, and ways to adapt them
data-lab-guide.md Running the labs: setup checklist, the toolkit, the reference tables, what is real and what is simulated, reproducibility, troubleshooting
common-struggles.md The conceptual and technical problems students hit, part by part, with fixes that work in class
rubrics.md Rubrics for code labs, analysis write-ups, "Settle this debate" presentations, the Crease capstone and media pieces
responsible-gambling-teaching-guide.md How to teach Chapters 35 and 36 responsibly
assessments/midterm.md A midterm on Parts I–III (Chapters 1–18) with a full answer key
chapter-notes/ch-NN.md Per-chapter teaching notes: objectives, struggles, pacing for 50- and 75-minute sessions, a live-coding demo with the real output to expect, an in-class activity, answers to key exercises, connections
discussion-guides/ch-NN.md Per-chapter discussion plans: a framing question, tiered questions with facilitator notes, a structured debate, an eye-test prompt and an exit ticket

Each chapter of the book also carries its own exercises (graded ⭐ to ⭐⭐⭐⭐), a quiz, two case studies, key takeaways and further reading. The companion does not repeat them. It tells you which to use, when, and what good answers look like.


Teaching philosophy

1. Real data, computed in the room

Every chapter's scripts run against the book's data snapshot (Cricsheet, downloaded 18 November 2026: 6,420,141 deliveries from 17,186 matches across 20 competition archives). The output printed in the book is the output the scripts produce. That gives you something most statistics courses don't have: a student can check the textbook. Encourage it. The first time a student reruns chapter-01-cricket-moneyball-moment/code/project_checkpoint.py and sees Kohli's IPL line come back as (9336, 6926, 231), exactly as printed, the book stops being an authority and becomes a colleague.

The corollary is strict: no invented numbers in student work. A student who writes "Rashid Khan's T20 career: 500 wickets at an economy of 6.90" has misread the data in front of them. Afghanistan's men's internationals are withheld from Cricsheet, so Rashid appears only through the franchise leagues (plus one World XI T20I): 500 wickets in 392 matches in the franchise leagues in the data, as Chapter 2 shows, not his career. Hold that line in every assessment. A number must come from a script the student ran, from a table in data/reference/, or from a page of the book they cite.

2. Honest uncertainty

Theme 3 of the book, small samples plague cricket, is the one students resist most and need most. A T20 innings is 20 to 60 balls; an IPL league stage is 14 games. Chapter 6 shows that IPL strike rate needs about 98 balls before it is half signal and dismissal rate about 554, and that roughly 92% of the spread in IPL team-season records is what luck alone would produce. From Chapter 6 onward, reward intervals and shrunk estimates, and penalise confident claims built on 40 balls. Anchor D (Quinton de Kock against off-spin) is the model: always quote the shrunk strike rate, 115.5 (90% interval 108.5–122.4) against an expected 125.8, never the raw 112.9 alone.

Theme 6, variance is not failure, belongs here too. Good pre-match models are right perhaps 60–65% of the time; in the IPL, the book's walk-forward Elo favourite won only 47.6% of 286 matches in 2023–26 (Chapter 35). Students who equate a lost forecast with a wrong forecast need Chapter 20's calibration material before they build anything predictive.

3. Eye test and data together

The book's voice respects the eye test (Theme 5), and so should your classroom. Wendell Baptiste, the book's sceptical academy coach, is often right. Every chapter has at least one 🏏 Eye test callout, and every discussion guide has an eye-test-versus-data prompt. Use them to stop two failure modes: the fan who dismisses any number that contradicts what they saw, and the analyst who dismisses anything not in the data. Cricsheet has no line, no length, no shot direction, no dropped catches and no fielding positions. A coach who watched the match knows things the data cannot. The goal is an analyst who can say what the data shows, what it cannot see, and how the two fit.

4. Format-awareness as a habit

Test, ODI and T20 are three different sports (Theme 2). Chapter 5 shows that Test average and T20I strike rate are essentially uncorrelated (ρ = −0.01 across 76 men who played all three formats) while ODI and T20I strike rates move together (ρ = 0.80). Make "which format?" the first question in every critique a student writes, and mark down any metric introduced without one.


How the code and data work in a classroom

The software

Everything is free: Python 3.10 or newer (the book was run with 3.13), and the libraries in requirements.txt — pandas, numpy, pyarrow, matplotlib, seaborn, scipy, statsmodels, scikit-learn, xgboost, plotly, networkx, lifelines, and streamlit for the Chapter 39 dashboard. No graphics card, no cloud account, no paid software. A four-year-old laptop with 8 GB of RAM is comfortable; 4 GB works if students load only the columns they need (Chapter 2, §2.6).

The data download

The book does not ship Cricsheet's files. The toolkit (toolkit/cricdata.py) downloads them and builds a Parquet cache. Measured on the snapshot:

Folder Contents Size
data/raw/ 20 Cricsheet zip archives 91.6 MB
data/raw/people.csv Cricsheet's people register 1.2 MB
data/processed/ 40 Parquet files 50.0 MB
Total about 143 MB

The download is about 93 MB: a minute or two on a fast connection, ten to fifteen minutes on a slow one. Parsing all twenty archives took 93 seconds on a fast laptop; allow five minutes or more on older machines. Two practical consequences for a course:

  • Do the download in week 1, not the night before the first lab. Set it as homework with the Chapter 1 checkpoint as the deliverable: the script ends READY FOR CHAPTER 2 when everything is in place.
  • On shared lab machines, build the cache once on a network drive or the machine image and point the book folder at it. Students then start from a warm cache and every script loads in seconds.

The Data Lab Guide has the full checklist, including what to do on a campus where students' home connections are slow or metered.

The Windows UTF-8 tip

The data and the output contain the rupee sign (₹), accented names and typographic dashes. Some Windows consoles use an older encoding and a script stops with UnicodeEncodeError: 'charmap' codec can't encode character '₹'. The data is fine; the console isn't. Fix it once per terminal with $env:PYTHONIOENCODING = "utf-8" (PowerShell) or set PYTHONIOENCODING=utf-8 (Command Prompt), make it permanent as a user environment variable, or run scripts with python -X utf8 code/01_….py. Put this on the first lab handout. It will otherwise cost you twenty minutes in week 2, when Chapter 3's IPL scripts first print rupee values.

Scripts, not notebooks

Chapter scripts are numbered (01_…py, 02_…py, plus project_checkpoint.py) and are run from the chapter folder: python code/01_scoring_revolution.py. They write figures to images/ instead of opening windows, so they behave the same on a laptop, a lab machine or a server. Notebooks are fine for exploration (the setup page shows the replacement for the script header), but require Restart kernel and run all before any number goes into submitted work.

The progressive project: Crease

Across the book, students build Crease, a cricket analytics platform: a Python package in project/crease/ with one module per chapter (data.py in Chapter 2, explore.py in Chapter 3, through storytelling.py in Chapter 37) and a Streamlit dashboard assembled in Chapter 39. Each chapter's Project Checkpoint has a runnable code/project_checkpoint.py. Crease is the natural coursework spine for a data science course and an optional thread for everything else. The 12-week syllabus in syllabi.md is built around it.


Adapting the book for five kinds of course

The book is designed to be taught five ways. The syllabi file gives a full schedule for each: four complete courses and a five-session management supplement.

1. A sports analytics course (cricket focus)

Audience: undergraduates or master's students in sport science, statistics or business analytics. Route: Parts I–V in depth, with selected strategy chapters. The 15-week syllabus covers Chapters 1–25 plus 28, 31, 34, 35 and 39. Assessment: weekly code labs, two analysis write-ups, a midterm, a "Settle this debate" presentation and a capstone dashboard. Lean on the Analyst and Franchise tracks. Watch for: students who already know pandas skipping Chapters 2 and 3. Don't let them. Those chapters make the data decisions (wides are not balls faced, super overs are excluded, names must be pinned to registry ids) that every later number depends on.

2. An applied data science project course

Audience: computing or data science students who need a substantial, real, open-ended project. Route: Crease is the course. Twelve weeks, two or three modules a week, with code review, tests and a final dashboard. Assessment: module milestones, a mid-course code review, a model-validation report and the Chapter 39 capstone. Watch for: strong programmers building impressive models that leak. Chapter 20's random-ball split gives a gradient-boosted model a test Brier score of 0.0185; split by match, the same model scores 0.1933. Teach that result early, and require every model to be validated by match or by time.

3. A cricket coaching analytics module

Audience: coaches on a coaching certificate, academy staff, club analysts, players. Route: six weeks, minimal code, built on the Fan and Franchise tracks: Chapters 1, 4, 5, 6, 8, 11, 14, 16, 18, 21, 22 and 31. Assessment: a match debrief using the book's printed outputs, a matchup plan, and a short presentation to a mock selection meeting. Watch for: coaches discounting the data because it lacks line and length. Agree with them. Cricsheet does lack it. Then show them what outcome data can say (Chapter 16: ten extra dots faced do not raise the next-ball wicket odds in men's Tests; the odds ratio is 0.848) and let them argue with it.

4. A sports journalism data-literacy course

Audience: journalism students, commentators, content producers. Route: eight weeks on the Fan Track plus Chapters 7, 20 and 37. Code is optional; students can work from printed outputs and the figures. Assessment: a fact-check of a published cricket claim, a story graphic with a one-line caption, and a final media piece judged against Chapter 37's decision checklist. Watch for: the "record" reflex. Chapter 37's rule is that every rare claim carries its k of n and its pool ("in the data", never an unqualified "record"). The book's data starts in December 2001 for men's Tests; there is no Bradman in it.

5. A cricket management programme supplement

Audience: students on a sport management or cricket administration programme, franchise and board staff. Route: not a full course but a four-to-six-session supplement attached to an existing module on squad building or sport business. Use Chapters 1, 4, 13, 21, 34 and 38, with Chapter 6 as background reading. Anchor B is the centrepiece: Rishabh Pant (₹27 crore) against Aniket Verma (₹30 lakh, base price), both bought as batters at the 2025 mega auction. In IPL 2025's middle overs Pant's runs above replacement were −28.5 and Verma's +26.5. Insist on the caveats every time: the gap did not persist in 2026 (Verma made 16 off 21 in the middle overs), and Pant was the better death-overs batter in both seasons. The lesson is about market inefficiency and small samples. Assessment: a squad-budget memo using real prices from data/reference/ipl_auction.csv, and a short paper on how a franchise should organise its analysts (Chapter 38). Chapter 38's verified salary information is thin: the only published analyst pay it could verify is from county adverts (Durham £28–30k in 2025, Glamorgan £28k in 2026). Don't let students quote franchise salaries that nobody has published.


Assessment philosophy

Four principles run through the rubrics and the midterm.

  1. Process is visible. Every numerical answer comes with the code or the book page that produced it. An answer without a source scores nothing for accuracy, however close it is.
  2. Uncertainty is part of the answer. From Chapter 6 on, a point estimate without a sample size, interval or shrinkage step is incomplete. "Verma out-batted Pant" is half an answer; "in 82 and 108 middle-overs balls respectively, in one season, and it did not persist" is a whole one.
  3. Judgement is assessed, not just computation. The "Settle this debate" and "Evaluate this player" exercises have no single right answer. Mark the argument: is the evidence real, is the format stated, are the sample sizes honest, does it engage with the eye test?
  4. Honesty about limits earns credit. A student who writes "Cricsheet cannot tell me whether he was dropped on 12" has shown more analytical maturity than one who guesses. So has a student who labels a simulated pitch map as simulated without being told.

Weightings in the syllabi are suggestions. Most instructors find that weighting the project or capstone at 30–40% keeps students coding steadily rather than in a final-week rush.


Accessibility

Fans who skip code

The book is written so that a reader who never runs a line of code still gets the full cricket argument from the prose, tables, figures and printed outputs. Every chapter routes readers by track, and the Fan Track route through Parts I–III needs no programming at all. For mixed classes:

  • Offer a no-code pathway for assessed work. Most "Settle this debate" and "Analyze this match" exercises can be done from the printed numbers. The coaching and journalism syllabi are built on this.
  • Pair coders with non-coders for labs. The non-coder owns the cricket question and the write-up; the coder owns the script. Rotate roles at least once.
  • Assess reading of output, not only writing of code. The midterm's data question gives real printed numbers and asks for interpretation. A student who can't write a groupby can still earn full marks on it.

Other access considerations

  • Figures are described. Every figure in the book is followed by a 📊 Figure (described) callout for readers who can't see the image. Require the same of students: every chart they submit gets a two-to-four sentence text description.
  • Colour. The book uses colour-blind-safe palettes (tab10, viridis, Okabe–Ito for comparisons) and never relies on red against green alone. Make that a rubric item for submitted charts.
  • Hardware and bandwidth. The book is designed for "a fan in Dhaka with a laptop": Nusrat Jahan, the student who builds Crease through the book, works on an old laptop with slow internet. Plan for students like her. Provide a pre-built data cache on a lab machine or a campus file share, and let students load only the competitions they need (load_deliveries("ipl") builds just the IPL).
  • Cricket knowledge varies. Some students will know every IPL squad; others will not know what a powerplay is. Appendix E covers the laws and playing conditions, and the glossary covers the vocabulary. Pair the two groups, and never assess cricket trivia.
  • Global and women's cricket. The book draws on India, Pakistan, Bangladesh, Sri Lanka, Australia, England, South Africa, New Zealand, West Indies, Zimbabwe, Ireland and associates, and on substantial women's data (3,623 women's matches in the snapshot: ODIs, T20Is, WPL, WBBL and the women's Hundred). Use them. A lab that asks students to redo an IPL analysis on the WPL or women's T20Is is often better teaching, because the student cannot coast on remembered numbers.