Chapter 2 — Key Takeaways

Key Takeaways

  1. Three sources, nothing else. Real ESPN scores (1,061 events, 11 Jan 2004 – 23 Nov 2026; 1,031 usable; 7,535,490 hole scores; 4,221 players); SIMULATED shots from golfkit.shotsim, always with a seed; and cited reference tables with confidence tags.
  2. ESPN's JSON is a tree: events → competitions → competitors → rounds → holes. Par is derived as strokes − relative-to-par, with a second, independent par in the course document. Use one to check the other.
  3. The fetcher is resumable, atomic and polite: to-do lists of missing files, write-then-rename, backoff from 1 to 16 seconds, four workers, and Python's default User-Agent (custom strings got 403). Use the endpoints modestly and respect the site's terms.
  4. Tidy tables, stored long and printed wide. Seven Parquet tables, about 8 MB, replace about 1.1 GB of JSON.
  5. Know the quirks by count. 4,741 build WD/DQ labels → 3,542 genuine; 4 wrong winners in the first pass (none now); 12,946 holes with unusable to-par tags ("OTHER" blow-ups and impossible pars) resolved from other scorecards, 134 not; 443 minority pars corrected to the hole's consensus; 93 wrap-around seasons; 107 multi-course events; 6 staggered starts; 4 wrong-par events (par_ok); 3 quality-screen failures; zeros meaning "missing" in player stats.
  6. Always read outcomes through the corrected columns (status_fixed, position_fixed, won_fixed, made_cut_fixed, total_fixed) and use year, not ESPN's season.
  7. Compare players only within course-rounds. At the 2026 Farmers Insurance Open the two courses differed by 3.08 strokes per round.
  8. Shot-level data are not free. ShotLink (from 2003 in research data, majors excluded) feeds pgatour.com's category strokes gained. DataGolf is a paid service; ShotLink Intelligence serves academics. This book never presents a simulated category number as a real player's.
  9. The simulator is calibrated, not validated. Its tour preset matches Broadie's 2003–10 baseline (RMSE 0.050 over the main ranges; 0.029 weighted by where tour shots are played). The amateur presets were tuned to Broadie 2008 and to WHS index recovery. Label every output SIMULATED, with its seed.
  10. Validate before you compute. The chain check (each shot starts where the last ended) catches deleted shots, unit slips and typos at once. Look at the tails: the simulator itself produced a 78 on a par 4 once in 5,000 plays.

Formulas & Metrics

Item Formula / definition Worked number
Derived par par = strokes − (relative to par) 4 strokes at "−1" → par 5
Shot strokes gained SG = E(start) − E(end) − 1 − penalty fairway 150 → green 20 ft: 2.943 − 1.870 − 1 = +0.073
Hole identity Σ shot SG = E(tee) − score 4.007 − 6 = −1.993 (Marcus, SIMULATED, seed 7)
ARG (golfkit's definition) non-putt, non-(par-4/5 tee) shot starting ≤ 30 yd from the green's edge 66 yd out, 51 yd from the edge → APP
GIR on the green in ≤ par − 2 strokes, penalties included —
Score Differential (WHS) (113 / Slope) × (AGS − CR − PCC) (113/125)(79 − 70.8) = 7.4
Course Handicap HI × Slope/113 + (CR − Par) 15.4 × 125/113 − 1.2 = 15.84 → 16
Rounds to pin a tour level to ±1 (1.96σ/1)², σ = 2.756 30 rounds
Course-round key (event_id, round, par signature) —

Common Mistakes (and the fix)

Mistake Fix
Using the build's raw status / won / position Use the *_fixed columns from data.player_events()
Counting by ESPN season Use year (calendar year of the end date)
Comparing scores across courses in a pro-am rotation Group by course-round
Averaging ESPN stats that contain zeros Treat driveDistAvg == 0 (and similar) as missing; check girPoss covers all rounds
Dropping holes with odd codes ("OTHER", impossible tags) Resolve them from other scorecards; the worst holes are exactly the ones you can't afford to lose, and dropped holes are rarely a random sample (Case Study 1)
Trusting a hole table from an event with incomplete scorecards Check the complete-scorecard share per round, and compare the subset with all round scores
Calling a simulated number a player's statistic Label it SIMULATED with its seed, and keep real players for real data
Comparing strokes gained across apps Name the baseline; compare within one system
Logging putts in yards, or skipping tap-ins Feet on the green; one row per stroke; run validate_shots
Treating calibration as proof Ask whether the model was fitted to the test it passes

On-Course / Range Checklist

  • [ ] Keep a scorecard table for your next three rounds: strokes, putts, fairway (hit / left / right), penalties.
  • [ ] Before each shot on one tracked nine, note the lie and the distance to the hole (yards off the green, feet on it).
  • [ ] Log every stroke, including tap-ins and penalty drops.
  • [ ] After the round, run rounds.load_shots_csv and fix whatever the report shows. Check the totals against your paper scorecard.
  • [ ] Write your course's real Course Rating and Slope on the scorecard table, so that your differentials are right.