Preface
You're 160 yards out, in the middle of the fairway. The flag is tucked right, six paces from a pond. Your playing partner says what golfers have always said: "Go at it. You've got the club." Somewhere in your head a quieter voice says that the last time you went at a flag like that, you made six.
Golf has more data than almost any sport. Every PGA TOUR shot has been measured for two decades. Launch monitors that once cost as much as a car now sit in garages. Shot-tracking apps log the rounds of millions of amateurs. And yet most of the decisions golfers make, on the course, on the range and in the fitting bay, are still made the way that 160-yard decision gets made: by feel, by habit, and by things somebody's uncle said in 1987.
This book is about closing that gap. It's a data-science textbook about golf, written by someone who has spent a lot of hours both with scoring data and on the course. You'll find physics, statistics, probability, optimisation and forecasting in it, and you'll write code. But every one of those tools is pointed at a golf question you actually face: where to aim, what to practise, which driver to buy, how much a round tells you, who will win this week, and whether a bet is worth making.
It is free. You can read it, run it, change it and share it under a Creative Commons licence (CC-BY-SA-4.0). That's deliberate. The tools here should belong to every golfer who wants them, not only to tour players with an analyst on the payroll.
The promise this book makes about its numbers
Golf writing is full of numbers that nobody can check. "Amateurs lose most of their strokes from 50 to 80 yards." "A ball goes 2% farther per thousand feet of altitude." "Tour players make 96% of their 3-footers." Some of these are roughly right, some are wrong, and almost none come with a source you could rerun.
So this book makes one promise and keeps it everywhere: you can check every number. Each number in it comes from one of three places, and the text always tells you which.
Real data. ESPN publishes, through its open JSON endpoints, the hole-by-hole scores of every player in every round of every PGA TOUR event. This book's snapshot runs from the Mercedes Championships in January 2004 to The RSM Classic in November 2026: 1,061 events, 4,221 players, 421,245 round rows and 7,535,490 hole scores. It also includes each course's par and yardage by hole and, from 2015, players' tournament statistics (driving distance, driving accuracy, greens in regulation, putts per green, sand saves). The scripts in the book download all of it, and the book never asks you to trust a dataset you can't rebuild yourself. Everything we say about tour players, including ratings, course difficulty, major championships, hot hands, course fit and forecasts, is computed from those real scores and labelled REAL.
Honest simulation. Some of the most useful golf data isn't free: strokes gained by category (off
the tee, approach, around the green, putting), the exact location of every tour shot, and your own
launch-monitor sessions. Rather than pretend, the book includes a shot simulator, golfkit.shotsim,
calibrated against published benchmarks. It generates shot-level data with fixed random seeds, so
anyone who reruns the code gets the same numbers. Every simulated number is labelled SIMULATED in
the text and on its figure, and no simulated number is ever attributed to a real player. The six golfers
you'll meet in these pages are fictional, and so are their rounds. That turns out to be an advantage:
with simulated data we know the truth, so we can test whether a method finds it.
Cited physics and published tables. Ball flight, impact and putting are modelled from published
aerodynamics and putting-physics papers and checked against TrackMan's published tour averages. Mark
Broadie's strokes-gained baseline, the USGA/R&A Rules and Equipment Rules, the World Handicap System
formulas and a few dozen other published tables live in the book's data/reference/ folder. Each keeps
its source and a confidence tag. Model outputs are labelled MODEL, and any parameter we had to
assume gets a 🧪 flag with a line on why it's reasonable.
There's a fourth thing we refuse to do: invent. You won't find quotes from players or caddies, insider anecdotes, bookmaker odds dressed up as real, or a statistic that arrived "from experience". When the data can't answer a question, the book says so.
What the book found
Writing a textbook on real data has one big surprise in store: the data talk back. Several findings in these chapters weren't what we expected when we started, and a few overturn things golf "knows". Here are ten of them (all REAL unless marked).
-
One round tells you very little. Once you account for a player's skill and the course, the round-to-round standard deviation on the PGA TOUR is 2.756 strokes. To pin a tour player's level to within ±1 stroke you need about 30 rounds; to within ±0.5, 117. To detect a genuine one-stroke improvement with 80% power you need 120 rounds before and 120 after (Chapter 14). Golf is a high-variance game, and most of what people read into a hot week is noise.
-
There is no hot hand from hole to hole. Across 6.5 million consecutive pairs of holes, a birdie changes the chance of a birdie on the next hole by −0.16 percentage points beyond that player's level that day. The famous "Sunday players" vanish under a fair test (0 discoveries). And the 54-hole leader's final-round "penalty", matched on form, is −0.11 strokes (95% CI −0.37 to +0.15): too small and too uncertain to call choking (Chapter 14).
-
Peak Woods and current Scheffler can't be separated. Tiger Woods in 2006 gained +3.72 strokes per round on the field after adjusting for field strength (52 rounds). Scottie Scheffler in 2025 gained +3.29. The difference, +0.43, has a 95% interval from −0.43 to +1.29 (Chapter 10). Both seasons are extraordinary; the data can't say which was greater.
-
Distance and accuracy both pay, and the trade is close to even. Across 2,106 player-seasons, a yard of driving distance is worth +0.0390 strokes per round and a percentage point of driving accuracy +0.0721. So 10 more yards at the cost of about 5.4 points of accuracy is worth almost exactly nothing (Chapter 21). "Drive for show" is wrong. So is "accuracy is everything".
-
The best player usually loses. Before 358 events, the player our ratings ranked #1 won 67, or 18.7% (95% CI 15.0–23.1%). The median winner was ranked 13th. Our walk-forward forecasts for 2024–2026 (133 events) are honestly calibrated but only modestly better than knowing nothing (win Brier skill score 0.031). Chapter 34 shows exactly why golf is so hard to predict: in a typical field, a round's noise is 3.64 times the spread of skill.
-
Course fit is almost all story. Using course length, players' driving profiles and their history at each venue, the best course-fit model we could build improves out-of-sample predictions by 0.00150 strokes per round. The famous Augusta "course horse" effect shrinks by about half once you allow for stale ratings of veterans who rarely play the TOUR, and what's left among regulars is not statistically established (Chapter 33).
-
Augusta's 12th is not the hardest hole at Augusta. In 23 Masters from 2004 to 2026 it was the hardest hole 0 times; its median difficulty rank is 8th of 18. It is the most volatile par 3 on the course. Amen Corner as a whole costs the field +0.236 strokes per round, only +0.008 more than an average three Augusta holes (Chapters 35 and 39).
-
Majors really are harder, and the U.S. Open most of all. Adjusted for field strength, majors play +2.20 strokes per round over par, a gap of +2.39 over regular events. The U.S. Open stands alone at +3.67 over regular events; the other three sit at about +1.9 to +2.0 (Chapter 35).
-
The amateur who putts well probably has an iron problem (SIMULATED). Rosa, our 15.4-handicapper who practises putting most, loses −1.55 strokes per round on approach shots against typical golfers at her level. Moving all her practice hours to approach play lowers her expected score by 1.54 strokes. But after 20 rounds the improvement isn't statistically detectable (p = 0.24); proving it takes about 118 rounds before and after (Chapters 11, 15 and 27). The data point to the right fix. Proving it worked takes patience.
-
Most of the "free yards" in a driver fitting come from the swing, not the club (MODEL). Walt, our 18.9-handicapper, swings at 88 mph with a −5° attack angle and carries his drives 178.7 yards. The best launch and spin he can get from equipment, without changing his delivery, adds +3.0 yards. Changing his attack angle to level adds +13.4; to +3°, +19.3 (Chapters 23 and 24). The launch monitor finds the yards; a fitter and a coach together collect them.
There are many more: altitude adds a real +17.2 yards (+5.8%) to tour driving distance at high venues (Chapter 6). Sand-save percentage is one of the least repeatable statistics in golf (reliability 0.37 over a season, against 0.79 for greens in regulation; Chapter 9). Aiming away from the flag saves Marcus, our 7.8-handicapper, 0.81 strokes per round (SIMULATED, 95% CI 0.65–0.99; Chapter 18). And the number of double bogeys at TPC Sawgrass's island 17th tracks ShotLink's published water-ball counts almost perfectly (r = 0.985 over 22 years; Chapter 31), which is how we know free scores can see things they never record directly.
The myths it tests
The book takes golf's received wisdom seriously enough to test it. Each chapter states a myth fairly, shows the data, gives a verdict and states the limits of that verdict. You'll see the book test:
- "Drive for show, putt for dough." It fails at both ends: approach play separates golfers more than putting does, and driving distance pays (Parts II and III).
- "Always aim at the flag." For almost everyone, almost always, the best aim is somewhere else, and the chapters show you how to find it with your own dispersion (Part III).
- "Practise your putting." For many amateurs it's the least valuable hour on the practice ground (Part V).
- "My 7-iron goes 150." Your best 7-iron might. Your typical one doesn't, and course management starts with the honest number (Chapters 4 and 19).
- "Momentum", "Sunday players" and "choking with the lead" (Chapter 14).
- "Horses for courses" and the "major gene". The second is real but modest, and it adds almost nothing to a forecast once you damp it properly (Chapters 33 and 35).
- Equipment folklore: "soft balls go farther for slow swingers", "more loft for slow speeds", "hit down for spin" (Part IV).
- Course folklore: Amen Corner, Augusta's 12th, the island 17th (Parts VI and VIII).
Some myths survive, and the book says so when they do. The point isn't to win arguments; it's to put a price, in strokes, on every belief you act on.
What this book can't do
Honesty about limits is part of the data promise, so here they are up front.
- No free category strokes gained and no shot locations for tour players. ESPN's scores tell us how many strokes each player took on each hole, not where the shots went. So the book's tour strokes gained is SG: Total, computed from real scores and adjusted for field strength. The four categories are taught on simulated shots, and Chapter 31 explains where real category data can be found (the PGA TOUR's statistics pages, DataGolf's paid service, ShotLink's academic programme).
- No lie, club, wind or tee times. We can't measure the morning-versus-afternoon wave directly, and any claim that needs to know what club a tour player hit is out of reach.
- Only the PGA TOUR. LIV Golf, the DP World Tour and the LPGA hole-by-hole data aren't in the snapshot. Players who left the TOUR appear only at the majors, which creates a real modelling problem that Chapters 17, 31 and 34 confront directly.
- The amateurs are simulated. Rosa, Marcus, Walt, Coach Tasha, Dev and Emma are generated by the simulator with fixed seeds. Each one's default sample was chosen as the 20 rounds closest to that golfer's long-run profile, so a lucky draw doesn't mislead you, and several chapters show what other seeds look like. The simulator is good but not perfect, and its known limits are documented where they matter. The tools are built to take your own data instead.
- Models are models. The flight model matches 46 rows of TrackMan's published averages to within an RMSE of 3.73 yards of carry (Chapter 1). That's very good, and it still isn't your ball on your course on a windy afternoon.
Who this book is for
If you play golf, at any level, and want to use data to get better faster, this book is for you. The same is true if you teach or fit golfers, want to work as a golf analyst, build models for fantasy golf or betting, or simply watch the broadcast and want to know what strokes gained actually measures. You need to know what a birdie is. You don't need any statistics, physics or programming: every idea is built from the ground up, and Python is taught as you go.
Four kinds of reader use the book differently, and each chapter opens with a short routing box for each: the ⛳ golfer, the 📊 analyst, the 🏌️ coach or fitter, and the 🎰 bettor or fantasy player. How to Use This Book lays out the routes.
Acknowledgements
This book stands on public work, and it's a pleasure to name it.
Mark Broadie turned "what matters most in golf?" from a bar argument into a measurable question. His shot-value method, used in his Golfmetrics software from 2005 and published in 2008, became strokes gained. The PGA TOUR adopted strokes gained: putting as an official statistic in May 2011, and his 2012 paper in Interfaces and his 2014 book Every Shot Counts laid out the approach for a general audience. His published PGA TOUR baseline is the backbone of Part II, and Chapter 11 reproduces one of his findings from free data: the TOUR's ten best regular players from 2004 to 2010 gained +1.83 strokes per round on our numbers, against +1.84 in his study of 2003–2010.
ESPN publishes its scoring data through open JSON endpoints that anyone can read. That openness is the only reason a free book can analyse twenty-three years of tour golf hole by hole. The endpoints are unofficial and undocumented; we describe what we found in them, quirks included, and claim nothing more.
TrackMan publishes its tour averages for every club, driver to wedge, for the PGA TOUR and the LPGA, in both its current (2024) release and the legacy table that preceded it. Those tables are how the book checks its flight model, and its published material on the D-plane underpins Chapters 3 and 5.
The USGA and The R&A publish the Rules of Golf, the Equipment Rules, the World Handicap System and the Course Rating System openly. Parts IV and V and Chapter 39 rely on them throughout.
Scott Fawcett's DECADE course-management system brought dispersion-based targeting to a wide audience of competitive golfers. Part III builds its own framework from the simulator and the data, and it owes a clear debt to the idea that your shot pattern, not your best shot, should choose your target.
We also build on Alastair Cochran and John Stobbs's The Search for the Perfect Swing (1968), the earliest serious scientific study of the game; on the putting research of Fearing, Acimovic and Graves; on the published aerodynamics and putting-physics papers listed in the bibliography; on DataGolf's public methodology writing; and on the published amateur benchmarks and ball tests cited where they're used. None of these people or organisations reviewed or endorsed this book, and any errors are ours.
Finally, thanks to the golfers who will rerun this code on their own rounds and tell us where we're wrong. That is what the open licence is for.
Now, about that 160-yard shot. Chapter 18 will tell you exactly where to aim it. You may not like the answer at first: the smart play usually feels boring. For Marcus, on a hole just like that one, the boring aim is worth 0.39 strokes on that single shot (SIMULATED), and you can check the arithmetic yourself.