Common Struggles

These are the misconceptions and practical snags that come up again and again with this book, collected from running every chapter's code and from the problems the chapters themselves had to solve. Each entry gives what students tend to think, why, what to do about it in class, and a quick check question. The first five are conceptual; the last five are mostly practical, but they eat more lab time than anything else.


1. Baseline choice

What students think. "Strokes gained is a number about the golfer." It is a number about the golfer against a named baseline, and changing the baseline changes the answer.

Why it happens. Tour broadcasts and apps show SG without naming the reference. Students also assume a baseline only shifts every category by the same amount. It doesn't.

What to do. - Show one round against three baselines. Rosa's simulated 101 is −31.94 against the PGA TOUR, −7.45 against a 15.4 and −11.57 against a 12.0 (Chapter 10). Ask which is "right". Answer: your own level to judge a round, a target level to plan practice. - Show that the tour baseline reallocates categories. Against the PGA yardstick, part of a short hitter's driving deficit is booked as approach, because short drives leave long approaches. Restoring Walt's driver is worth 1.81 strokes either way, split 0.92 OTT / 0.81 APP against the tour baseline but 1.62 / 0.14 against the SIM 14 baseline, which flips his top priority (Chapter 30). - Explain the course effect. The book's SIMULATED handicap baselines are built on generic holes, so even a typical simulated 15.4 on the member course is not zero by category (APP +1.20, OTT −0.53). Against same-course peers, Rosa's approach gap is −2.75 instead of −1.55 (Chapter 15). This is the real-world problem of applying any baseline to a course it wasn't built on. - Remind them the tour table is a 2003–2010 yardstick: at equal card yardage, today's tour is about 1.16 strokes per 18 holes better (Chapter 12). And app strokes gained isn't comparable across apps, because baselines and category boundaries differ. - Rule for every submission: each SG number names its baseline ("vs PGA TOUR (Broadie)", "vs SIM 15.4").

Check. Why does the tour baseline tell nearly every amateur to fix approach? (Because it prices every shot against tour expectations, and the gaps between levels are largest in approach; diagnosis against one's own level can point elsewhere. In the book's simulations, the six cast members' biggest leaks against their own levels are approach, off the tee or putting.)


2. SG sign conventions

What students think. Negative is good (as in golf scores), or SG and "to par" move the same way.

Why it happens. Golf scores are "lower is better" and ESPN reports to-par with negatives as good. Strokes gained is "higher is better".

What to do. - Write the formula on the board every week for the first month: $SG = E(\text{start}) - E(\text{end}) - 1 - \text{penalty}$. Positive means better than the baseline. Raw tour SG is the field's mean score on the same course-round minus the player's score, so beating the field is positive. - Use the telescoping identity as a sign check: a hole's shot SGs sum to E(tee) minus the score. A tour par on a 460-yard par 4 (E 4.17) is +0.17. - Fixed values to memorise: an out-of-bounds tee shot is −2.00 against any baseline; Rosa's approach "leak" of −1.55 is a loss. - Other signs that trip people up: lateral + = right of target; face and path + = open / in-to-out for a right-hander (mirror for a left-hander; yardbook.shape takes hand="L"); golfkit's wind direction is where the wind blows from, clockwise from the target line (0 head, 90 from the right, 180 tail). - Unit strings: the shot schema uses "yards" and "feet", not "yd" and "ft". Filters on start_unit == "yd" silently return nothing (two chapters hit this).

Check. A player's SG: Putting is −0.4 and his score to par is −4. Is he putting well? (No: he lost 0.4 strokes on the greens against the baseline, while scoring well overall.)


3. Simulated against real data

What students think. Every number in the book is a measurement, or every number is made up. Either error is bad.

Why it happens. The book uses both, deliberately. Category strokes gained and shot locations are not free, so the book teaches the method on SIMULATED shots and computes everything it can from REAL ESPN scores.

What to do. - State the rule on day one: REAL = ESPN hole-by-hole scores 2004–2026, per-hole par and yardage, per-player tournament statistics from 2015; field-adjusted SG: Total is computed from these. SIMULATED = golfkit.shotsim with a stated seed: every cast member's round, every category SG, every launch-monitor session. Cited = data/reference/ with its source and confidence tag. - Never present a simulated category number as a real tour player's ("Scheffler gained X on approach"). Real players can be named only for numbers computed from real scores or cited from a reference file. - The cast's default samples are representative draws, chosen as the 20-round sample closest to each golfer's long-run profile. Other seeds look different, and that is the sampling lesson (Chapter 14, Chapter 28). - The simulator is calibrated, not validated. Teach its known artefacts so students don't mistake them for golf: - generic par 3s have no fairway, so simulated tee values spike around 220–240 yards for higher handicaps; - long par 5s produce too few birdies and generic long par 3s too many doubles compared with the tour; - a ball in the water re-drops at the entry point with the same aim, which produces rare blow-up holes (one 5,000-play stress test gave a 78 with 38 drops), and on an island green a long ball drops back on the island, which is too cheap; - distance and lateral errors are drawn independently, so any correlation in a simulated pattern is sampling noise; - Golfer.dispersion returns the Gaussian core only, without mishits. - Different models answer different questions. Walt's simulator driver total (200.9 yards) is not the physics model's 219.5; the chapters never mix the two in one comparison, and students shouldn't either. - Use the simulator's unique power: it has a known truth. A good lab asks "does my method recover what the simulator built in?"

Check. A classmate writes "Rosa loses 1.55 strokes per round on approach." What is missing? (SIMULATED; the baseline, SIM 15.4; the sample, the representative 20 rounds; ideally the interval, −3.53 to +0.37.)


4. Variance and sample size

What students think. Twenty or thirty rounds show whether a change worked. One great round means a player has improved. A hot streak predicts the next hole.

Why it happens. Golf rounds feel informative, and the noise is larger than intuition allows.

What to do. - Anchor the class on three REAL numbers: a tour player's round wobbles σ = 2.756 strokes around his own level; true skill among regulars spreads only τ ≈ 0.75; about 7% of one round's variance is skill (ICC 0.070). - Separate level from change. Thirty rounds pin a tour player's level to ±1 stroke (117 for ±0.5). Detecting a 1-stroke change with 80% power needs about 120 rounds before and after. Amateurs are noisier: proving a 1-stroke improvement from scores takes roughly 140–560 rounds per period, and with 20 + 20 rounds a 15-handicapper has 16% power. - Use the right function. yardbook.signal.rounds_needed is power-based (for detecting a change); yardbook.ratings.rounds_needed sizes a confidence-interval half-width only. Students confuse them. - Measure the mechanism. For Rosa's approach work, SG: Approach detects the change much sooner than her score (Chapter 28: 82 rounds per period against 135). - Show regression to the mean live: 18-hole leaders averaged +6.53 in round 1 and +0.69 in round 2, near their pre-event rating of +0.44. - Show optional stopping: testing after every round turns a 5% false-alarm rate into about 18–19%. A 5-round rolling average "showed" a 1.5-stroke improvement in 98% of seasons with no change. - Show multiple comparisons: 48.8% of twenty-round reports flag a weakness in a golfer who has none (10.6% after Holm). The percentile bootstrap is also anti-conservative at 20 rounds. - There is no hot hand to speak of: across 6.5 million consecutive-hole pairs, a birdie changed the next hole's birdie rate by −0.16 percentage points beyond the day's level. - Rosa's anchor is the emotional version: a real 1.54-stroke improvement, not detectable after 20 rounds (p = 0.24), needing about 118 rounds before and after.

Check. Your student's handicap index fell 0.8 in a month. What do you say? (The index wanders about a stroke when nothing changes, SD 0.7–1.2 in the simulation; check which round dropped out of the 20; track SG and mean differential instead.)


5. Carry against total

What students think. "My drive goes 250" without saying which distance. Or they compare a TrackMan carry with an ESPN driving distance.

Why it happens. Launch monitors lead with carry; tour statistics and shot-tracking apps report totals; roll depends on the ground.

What to do. - Label the sources: TrackMan's tour tables are carry. ESPN's driveDistAvg is a total (the tour's measured drives). Shot-tracker distances are totals. The book's tour driving-distance trend (289.0 yards in 2015 to 302.1 in 2025) is total, not carry. - Roll in the book's model is a 🧪 assumption with ground presets (soft, normal, firm). Show Walt's before total changing with the ground: 210.4 / 219.5 / 237.1 yards (Chapter 4). - Optima differ. The total-optimal driver launch gives up about 5 yards of carry for 4–5 yards of total, with launch 2–3° lower and spin 500–600 rpm lower. "12° beats 9.5° under 100 mph" is mostly true for carry and often false for total (Chapter 24). "Longest ball" depends on which you mean (Chapter 26). - For approach clubs, carry is what matters to clear trouble, and the book's simulator has no carry/roll split for hazards (a ball is wet if it finishes in water).

Check. A student says the tour's average drive is 302 yards of carry. Correct it. (302.1 yards in 2025 is ESPN's total driving distance, opposite-field events excluded; carry is shorter.)


6. The D-plane

What students think. The ball starts on the path and curves away from it (the old "ball-flight laws"). A draw always goes farther. "Sidespin" is a separate kind of spin.

Why it happens. The old laws are still taught, and they feel right from what a golfer sees.

What to do. - State the modern rule: the face starts the ball, face-to-path curves it. Start direction is about 85% face for a driver and 75% for irons, and the share is club-dependent. Curvature comes from the tilt of the spin axis, which comes from the face relative to the path. "Sidespin" is the common word for spin-axis tilt. - Run Chapter 5's 07_play_the_shot.py. The old-laws draw recipe (path +2.70°, face 0) starts the ball +0.72° and curves it −10.0 yards, finishing 7.9 yards left of the flag instead of on it. - Show why curve grows with low spin loft: a tour driver curves about 8.85 yards per degree of face-to-path, a 7-iron 3.68, a pitching wedge 1.79 (model). A 1° open driver face with a square path lands 13.4 yards right. - A draw doesn't go farther by itself. With the same delivery, draws and fades carry the same distance, and both carry less than straight. "Draw distance" comes from the lower spin loft that often travels with a draw. - Gear effect is the impostor: on a driver, a toe strike rotates the head open about its CG, which imparts draw spin, while the bulge starts the ball right so it curves back. A heel strike is the mirror. Irons have little gear effect. A toe strike with a square face and path can therefore read as a closed-to-path draw on the monitor. - Use Chapter 3's reading order on any session: strike → start line → curve → spin loft → loft and equipment.

Check. A right-hander's ball starts right and curves further right. Is the face open or closed to the target, and to the path? (Open to the target, and open to the path.)


7. Kelly overbetting

What students think. If the model finds an edge, bet the full Kelly fraction; a 30% "edge" on a long shot is real.

Why it happens. Kelly maximises growth if the probability is known. Model probabilities aren't, and the bets a model likes most are the ones where its error is largest (the winner's curse).

What to do. - Run Chapter 36's 04_winners_curse.py and 06_kelly_bankroll.py. In the simulation, a model with twice the market's error saw +32.1% apparent edge on bets whose true edge was −8.3%. Full Kelly gave a 0.22 chance of halving the bankroll against 0.000 at quarter Kelly (median 128 against 112), and full Kelly on a 2×-overestimated edge gives about zero growth. - Show the cost of caution is small: at 5/1 with a +5% edge, half Kelly keeps 75.3% of full Kelly's growth rate and quarter Kelly 44.1%. - Show the edge a price demands: about (1 + overround)× the de-vigged probability, 1.05–1.40× for a 5–40% overround. The book's own model's observed-to-expected ratio ran 0.67–1.64 across bins on 133 held-out events. - Show the time needed: verifying a +5% edge at 20/1 takes about 32,189 bets; after 50 bets at 20/1, 32% of no-skill bettors are ahead (SIMULATED). - Tool snag: golfkit.betting.overround(odds, target=N) returns the absolute excess Σ1/d − N, so a 20% top-10 margin prints as 2.00; yardbook.bets.market_overround returns the relative margin. And the demonstration market shades long shots before applying its margin, so comparing de-vig methods on it is circular. - Don't price matchups from Elo directly: it gives the same probability whatever the contest length and is overconfident in short matchups (Chapter 32). - Close every betting session with the no-edge arithmetic (−110 costs 4.55% per unit; a 25% overround costs 20%) and the help resources Chapter 36 names.

Check. Your model says 6% for a player at decimal odds 21.0. Why might quarter Kelly still be too much? (The 6% is an estimate on a long shot, exactly where model error and the winner's curse inflate edges; blend toward the market, cap the stake.)


8. The join trap and data quality

What students think. A filter is a filter, an inner join is harmless, and missing data are random.

Why it happens. pandas makes silent row loss easy, and ESPN's data have documented quirks that only matter for some questions.

What to do. - The join trap. Inner-joining SG rows onto a filtered events table silently drops rounds. With a par_ok filter, Tiger Woods's 2006 season falls from 52 rounds (+3.72) to 48 (+3.91). par_ok flags four events with wrong ESPN hole pars (Bay Hill 2004–06, Booz Allen 2005); it is right for to-par, hole-scoring and score-type work and wrong for strokes gained, which never uses par. Use data.load("events") or a left join for metadata, and print row counts before and after every join (Chapter 31). - Outcomes. Read tournament outcomes only through golfkit.data.player_events() and the corrected columns status_fixed, position_fixed, won_fixed, made_cut_fixed, total_fixed, with data.infer_cuts for cut rules. Never the raw status, won, position or cut_after_round. - Calendar. Use year, not ESPN's season: 93 events have a season label different from their calendar year. The 2020 Masters was played in November 2020, and there was no Open in 2020. - Course-rounds. Compare players only within a course-round. At the 2026 Farmers Insurance Open the two courses differed by 3.08 strokes per round. Multi-course pro-ams are flagged; data.hole_scoring uses ESPN's course count, so the 2024 RSM (one course listed, two played) needs the multicourse flag. - Staggered starts. The 2019–2024 TOUR Championships rank by ESPN order, not strokes. - Zeros meaning missing. In player statistics, driveDistAvg is 0 or missing in about a tenth of rows. 2019's mean driving distance is 258.5 with zeros and 294.5 without. - Missing not at random. The first build dropped holes ESPN encoded as "OTHER", which were the worst holes (rounds averaging −5.11). Losing them shrank σ from 2.756 to 2.723 and lowered the best players' SG. Ask students to predict the direction before showing it. - Smaller snags: events().major is a string (the event name or None), not a boolean; data.hole_scoring takes event_id= while events takes event_ids=; data.courses() has duplicate (event, hole) rows for multi-course events and about 2.3–2.5% of single-course hole rows lack yardage, so np.select defaults can silently put them in the wrong bucket; is_signature exists only for 2025–2026; ratings.bayes_skill's posterior SD doesn't widen when a player stops playing, so forecasts must shift and widen absent players (forecast_event(widen=True)). - Stale documentation. Some counts in toolkit/README.md predate the final data fixes. Quote current counts from golfkit.data.inventory() or Appendix C.

Check. Your season SG for a player has fewer rounds than the book's. What do you check first? (Joins and filters: whether an inner join onto a filtered events table dropped rounds.)


9. Windows and UTF-8

What students see. UnicodeEncodeError: 'charmap' codec can't encode character '°' the first time a script prints a degree sign, a minus sign or 🧪, especially when output is piped to a file.

Why it happens. Windows consoles default to the cp1252 code page.

What to do. - Every chapter script has sys.stdout.reconfigure(encoding="utf-8") in its standard header (some add errors="replace"). Students' own scripts should copy the header from Chapter 2, or set Python's UTF-8 mode: set PYTHONUTF8=1 (cmd) or $env:PYTHONUTF8 = "1" (PowerShell). - When writing files, pass encoding="utf-8" explicitly. - Emoji in figures are a different problem: matplotlib's default DejaVu Sans has no 🧪 glyph, so style.save(note=...) with an emoji warns and draws a box. Keep emoji out of figure text; write "assumed" or "SIMULATED" instead. - Two plotting snags: with golfkit.style, scatter points drawn with facecolor="white" need explicit linewidths (the style sets patch line width to 0), and multi-panel figures with shared axes need adjustable="box" rather than "datalim". - In golfkit.flight.Trajectory, y is lateral and z is height. Plotting y as height is a common silent mistake.


10. Run times

What students think. A script that hasn't printed anything for a minute has hung.

What to do. - Tell them which scripts are slow. Most run in 1–20 seconds. The slow ones (on the machine the book was run on): Chapter 8's make-curve and pace scripts and first case study (about 1.6–2.7 minutes each, longer on a busy machine); Chapter 22's putter-fitting and slope scripts (about 2–2.5 minutes each); Chapter 13's 03_hidden_weakness.py (about 90 s); Chapter 18's table scripts (60–80 s each); Chapter 24's 07_did_it_help.py and second case study (about 1.5–1.75 minutes); Chapter 35's 05_major_gene.py (70 s) and second case study (100 s); Chapter 39's hazard experiment (about 75 s). - Cold caches. The field-adjusted SG table builds on first use (about 6 s) and then loads from cache. The tournament walk-forward cache took 1,021 s to build. Distribute data/processed/cache/ with the data, or have students build it once outside class. Caches are keyed to source timestamps: rebuilding the data invalidates them, so the first run after a rebuild is slow. - Other slow calls: predict.course_fit_dataset() takes about 25 s per call and isn't cached (the Chapter 33 module memoises it); flight.launch_batch takes about 21 s for 40,000 shots. - Start slow scripts at the beginning of a lab and discuss the previous result while they run. Use python scripts/run_all_code.py N --jobs 1 to time a chapter on a lab machine before the term; its default per-script timeout is 900 s. - If a script really hangs, check the working directory (scripts run from the chapter folder) and whether the data are in data/processed/.


Quick reference: other pitfalls the chapters flag

Pitfall Where Fix
"Tour players make 96% from 3 feet" Ch 8 Definitions: 99.50% for all putts under 3 ft (2026); 96% at exactly 3 ft (Broadie 2003–2010)
Comparing smash factor across clubs Ch 3 Compare within a club, or use smash efficiency
"Putts per round" as a putting test Ch 15, 17 It confuses ball-striking with putting; use SG: Putting with first-putt length
Using TOUR_PUTTER for pace or three-putts Ch 22 Use LAG_TOUR / LAG_AM90, fitted to one- and three-putt rates
The "scale" plays-like method at long range Ch 6 Prefer yardbook.conditions.plays_like (the take-more-club method)
Grid aim optimiser jumps at hazard lines Ch 18, 39 Monte Carlo search and reprice (as yardbook.aim does)
"Augusta history" as course fit Ch 33, 35 Carry the stale-ratings caveat: among regulars, not established
Picking the longest of several heads Ch 23 Winner's curse: confirm in a second session
Shaft and length claims stated as fact Ch 23, 24 No controlled shaft data in the references; treat as hypotheses to test
"2% more carry per 1,000 ft" Ch 6 About 1% per 1,000 ft for drivers, 1.5–1.6% for irons
The 0.96 handicap multiplier Ch 29 Removed with the World Handicap System; there is none