How to Use This Book
This is a big book: 40 chapters, each with a main text, exercises, a quiz, two case studies, key takeaways, further reading and a folder of runnable code. Nobody needs to read all of it in order. This page shows you how to find your route, what the symbols in the margins mean, how the numbers are labelled, how to run the code and who the six golfers are that you'll keep meeting.
Four learning tracks
Every chapter opens with a short routing box, one line per track, saying what to read closely and what you can skim. Pick the track that sounds most like you. You can switch whenever you like.
⛳ Golfer: you want to score lower
Your core is Parts I–III. You can skip the heavier mathematics and the code excerpts; the routing boxes point to the sections that change what you do on the course.
- Part I. Read Ch 1 (ball flight) for the ideas, not the equations; skim Ch 2 for the data promise; then Ch 4 (distance), Ch 5 (shot shaping), Ch 6 (conditions), Ch 8 (putting) and Ch 9 (short game). Chapters 3 and 7 are optional.
- Part II. Ch 10 and Ch 11 are essential; read the key ideas of Ch 14 (how much a round tells you) and all of Ch 15 (strokes gained from your own scorecard). Chapters 12, 13, 16 and 17 are for when you're curious.
- Part III. Read all five chapters, 18 to 22. This is where the strokes are.
- If you keep going: Part V (Ch 27–30) turns all of this into a practice plan, and Ch 40 builds your personal report.
📊 Analyst: you want the methods
Read everything, in order. The spine of the book for you is Ch 2 (the data pipeline and its quirks), Chapters 10–14 and 16 (strokes gained, baselines, variance and Markov chains), Ch 19 (dispersion), Part VI (Ch 31–35: ratings, course fit, forecasting, majors), Ch 39 (course difficulty modelling) and Ch 40 (validating a full pipeline against known truth). Build every Project Checkpoint.
🏌️ Coach/Fitter: you want to know what to tell a student
Your core is Parts I–II, IV and V.
- Part I in full, with Ch 3 (impact), Ch 4 (distance), Ch 5 (D-plane and curvature) and Ch 7 (speed and how to test a speed programme) as the centre. Chapters 8 and 9 cover putting and wedges.
- Part II: Ch 10, 11, 14 and 15: how to find a student's real leak, and how long it takes to see a change.
- Borrow Ch 19 from Part III; a student's dispersion pattern is the bridge between the range and the course.
- Part IV in full (Ch 23–26): fitting, drivers, gapping, balls, and how many shots a fair test needs.
- Part V in full (Ch 27–30): practice design, tracking, handicaps and what separates levels.
🎰 Betting/DFS: you want to model tournaments
Your core is Parts I–II, VI and VII.
- Part I: read Ch 2 closely (the data and its traps); skim the physics, but keep Ch 6 (weather and altitude).
- Part II: Ch 10 (field-adjusted SG: Total), Ch 14 (essential: noise, shrinkage, regression to the mean), Ch 16 (scoring distributions) and Ch 17 (what traditional stats do and don't predict).
- Part VI in full: data ecosystem, ratings, course fit, forecasts, majors.
- Part VII in full: Ch 36 (betting), Ch 37 (daily fantasy) and Ch 38 (what's coming). Then Ch 39 for course difficulty.
The callouts
Boxes in the text use the same icons throughout the book.
| Icon | Block | What it's for |
|---|---|---|
| 🔄 | Check Your Understanding | Two to four quick questions every 1,500 words or so; answers are folded underneath |
| 🧩 | Productive Struggle | A problem posed before the chapter teaches the method. Have a go first |
| 🔍 | Why Does This Work? | A question that makes you explain the mechanism, not just the result |
| 📋 | Play the Shot | A concrete decision with numbers: a lie, a distance, a hazard, a choice |
| ⛳ | On-Course Action | What to do in your next round or range session |
| ⚠️ | Common Pitfall | A mistake golfers, coaches or analysts often make |
| 🧪 | Assumption | A parameter we had to assume, with why it's reasonable and where it came from |
| 💡 | Key Insight | A result worth remembering (used sparingly) |
| 🚪 | Threshold Concept | An idea that changes how you see everything after it |
| 📊 | Figure (described) | A text description that follows every figure |
The track icons ⛳ 📊 🏌️ 🎰 also appear in the routing boxes. When ⛳ heads a callout it means On-Course Action, and when 📊 follows a figure it means the description. The context makes it clear.
How numbers are labelled
The book promises that you can check every number, so each number tells you where it came from. Data and Methods explains the three sources in full; here is the short version.
- REAL: computed from the ESPN PGA TOUR scores (2004–2026) or the players' tournament statistics (2015+), with the filter and sample size stated. Real players are named only for things computed from real scores.
- SIMULATED: generated by the shot simulator,
golfkit.shotsim, with a stated seed. The label appears in the text and on the figure itself (for example "SIMULATED — golfkit.shotsim, seed 2026"). A simulated number is never attributed to a real player. - MODEL: the output of a physics or statistical model with stated inputs, such as a carry distance from the flight model or an expected score from a fitted baseline.
- Reference values come from
data/reference/, with their source and a confidence tag: HIGH (read from the primary source), MED (a reliable secondary source), LOW (weak or indirect) or UNVERIFIED (never presented as fact). - 🧪 marks any input we assumed, such as a golfer's dispersion, a wind speed or a practice improvement rate, the first time it appears in a section.
- HYPOTHETICAL marks betting prices. The book has no real bookmaker odds, so any odds you see are illustrations and are labelled as such.
Strokes gained always names its baseline: "vs PGA TOUR (Broadie)" or "vs SIM 15.4" (a simulated 15.4-handicap benchmark). The same shot is worth very different amounts against different baselines, and mixing them up is the most common error in amateur strokes gained.
Running the code
Every chapter has code, and every number a chapter computes appears in the output of one of its scripts. You don't have to run anything to learn from the book, but if you do, you'll get the same numbers and the same figures.
What you need. Python 3.11 or newer (the book was run on 3.13) and the packages in
requirements.txt: numpy, pandas, scipy (1.9 or newer), matplotlib and pyarrow, plus pytest for the
toolkit's tests and statsmodels for a few Chapter 16 scripts.
python -m venv .venv
# Windows: .venv\Scripts\activate macOS/Linux: source .venv/bin/activate
python -m pip install -r requirements.txt
python -m pytest toolkit/tests -q # optional: test the toolkit
Building the data. The simulator and the reference tables need no download. The real tour data do. From the book's root folder, run the three steps in order. The download can be stopped and restarted; it skips files already on disk.
python scripts/fetch_espn.py calendar scoreboard events players --from 2004 --to 2026
python scripts/build_espn.py
python scripts/build_player_stats.py
The processed tables land in data/processed/ as Parquet files. Chapter 2 walks through the pipeline
step by step, including every quirk of ESPN's data the build has to repair.
Running a chapter. Scripts live in each chapter's code/ folder, are numbered in reading order and
write their figures to the chapter's images/ folder. Run them from the chapter folder:
cd part-02-strokes-gained/chapter-10-strokes-gained
python code/01_baseline_curves.py
python code/project_checkpoint.py
python scripts/run_all_code.py runs every chapter, and python scripts/drift_report.py checks that
the numbers printed in the text still match fresh output.
The toolkit: golfkit. toolkit/golfkit/ is the shared library every chapter imports: data loaders
with the corrected outcome columns, strokes gained and baselines, the shot simulator, the flight, impact
and putting models, dispersion and targeting, ratings and forecasting, and the plot style. Each script
begins with a short standard header that puts the toolkit on the path and sets the style. Appendix
A teaches enough Python to read every script, and
Appendix B documents the toolkit.
The project: yardbook. project/yardbook/ is your personal golf analytics dashboard, and it
grows one module per chapter: a round loader in Chapter 2, strokes gained in Chapter 10, an aim
calculator in Chapter 18, a practice planner in Chapter 27, a forecaster in Chapter 34, and so on. Each
chapter's Project Checkpoint builds that module. Chapter 40 assembles them into a command-line tool
that turns a file of your shots into a static HTML report:
python -m yardbook report --shots my_shots.csv --handicap 15
Your shots go in a simple ShotLink-like table (round, hole, par, shot number, club, start and end lie and distance, penalty, holed), with distances in yards off the green and feet on it. Appendix I is the guide to the whole package.
The cast
Six golfers appear throughout the book, one or two per chapter. All six are fictional and all their golf
is SIMULATED: yardbook.cast.cast_rounds(name, n, seed) returns any number of their rounds, so you can
rerun every example, try other seeds, or replace them with yourself. Each golfer's default sample is the
20 rounds, out of 60 candidate seeds, closest to that golfer's long-run profile.
Rosa Delgado (she/her) is 41, an ER nurse in Phoenix, with a 15.4 Handicap Index. She tracks her rounds with Arccos and spends most of her practice time on the putting green. Her story runs through Parts II and V: strokes gained shows her that approach play, not putting, is where she loses the most, and the honest statistics show how long it takes to prove a better practice plan worked. Her default seed is 154023.
Marcus Bell (he/him) is 29, a high-school maths teacher in Columbus and a 7.8 with club-championship hopes. He hunts flags, and his misses go right. In Part III he learns to aim with his dispersion rather than at the pin, and finds that the same right-hand miss costs him twice: into the water on approach shots and into trouble off the tee. Default seed 78035.
Walt Kowalczyk (he/him) is 63, a retired machinist from Grand Rapids, playing off 18.9. His driver club speed is about 88 mph, and he plays a 9° driver "because the pros do". A launch monitor in Parts I and IV finds him real yards, and the chapters are honest about how few of them come from equipment alone. Default seed 189019.
Coach Tasha Nguyen (she/her) is a PGA teaching professional and club fitter in San Diego, with a driver club speed of 104.6 mph. She's the book's practitioner, and she asks the question every coach asks of a statistic: "So what do I tell my student?" Default seed 30031.
Dev Raman (he/him) is 34, a data scientist at a fintech company who bets on golf as a hobby. He builds the book's tournament model on real ESPN data in Parts VI and VII and learns, at some cost to his confidence, how much of golf is variance. On the course his own leak is putting. Default seed 120041.
Emma Sato (she/her) is 20, a Division I college golfer playing off plus-1.2. She shows what elite amateur data look like, and what course fit and practice design mean at the top end of the amateur game. Default seed 1210.
Where to go next
Start with the Preface if you haven't, then read Data and Methods before your first chapter: it takes ten minutes and explains every label you'll see. Then turn to Part I.