Chapter 38 Exercises — The Future of Golf Analytics

Difficulty: ⭐ recall and concepts · ⭐⭐ calculation or short code · ⭐⭐⭐ analysis and judgement · ⭐⭐⭐⭐ research and extension

All golfer data in these exercises is SIMULATED (golfkit.shotsim, cast from yardbook.cast), unless an exercise says REAL (the ESPN PGA TOUR snapshot, 2004–2026). The numbers in the solutions come from the chapter's scripts. code/09_exercise_answers.py reproduces every Part B answer.


Part A — Concepts ⭐

A1. The chapter sorts technologies into three bins. Name them, and put each of these in a bin: ShotLink research data from 2003; ball-tracking at practice ranges; TrackMan's published tour averages; a claim that "every range will have tracking within five years".

Answer

The bins are documented in this book's references, exists as a category and speculation. ShotLink research data from 2003 is documented (Broadie 2012, HIGH), and so are TrackMan's averages. Range ball-tracking is category only. The five-year claim is speculation, and the chapter doesn't repeat it as a forecast.

A2. List the four jobs of an AI caddie, and say which yardbook module handles each in the prototype.

Answer
  1. Route the situation: the rule layer in caddie_ai.recommend_shot.
  2. Know the day: conditions.plays_like, via conditions_effect and today_golfer.
  3. Know you: the golfer's shot model and dispersion, plus a fitted putter from putting_strategy.
  4. Price the options in expected strokes: aim, tee_strategy, decisions and putting_strategy, all against a named baseline.

A3. Why does every recommendation report both ev and ev_default?

Answer

Because a recommendation without its alternative has no price. The saving is ev_default − ev. Reporting both also shows what the default is, so you can tell whether it's your real habit or a straw man.

A4. The prototype applies wind by changing the golfer's short bias and direction bias. Explain in one or two sentences why that's enough to make the aim search, tee plan and lay-up model "wind-aware".

Answer

Every downstream model prices outcomes with the golfer's shot model. If that model's pattern lands 12% short or drifts 21 yards, each optimiser sees the shifted pattern and compensates by itself. None of them needs its own wind code.

A5. What are common random numbers, and why do they matter when comparing two policies?

Answer

Both policies play each hole with the same random seed, so they face the same luck until their decisions differ. The paired differences then have far less variance than two independent samples would, which gives tighter confidence intervals for the same number of rounds.

A6. Give two reasons why a caddie's simulated saving against the cast's default policies would overstate the saving for a real golfer.

Answer

The defaults are deliberately simple: always the flag, always driver, 1.5 feet past on every putt. Real golfers already do some of what the caddie suggests. Also, the oracle caddie knows the golfer's true model exactly, and a real one must learn it. The simulator also leaves out lies, slopes and nerves.

A7. What does the chapter's reference material say about slope-measuring devices, and what does it not cover about electronic devices in competition?

Answer

putting_physics.md (MED) says that feeling slope with your feet is allowed and slope-measuring devices are not. The equipment-rules file covers balls and clubs, not electronic devices. For distance devices and apps that suggest clubs or aims, you have to read the official Rules of Golf and the competition's Local Rules; the chapter doesn't state them.

A8. Explain "a decision needs less data than a parameter" using the water-hole result.

Answer

Chapter 19 says about 51 shots pin down an SD to ±10%. Yet aims learned from about nine shots (5 rounds) captured a median 0.357 of the oracle's 0.381 strokes. The expected-strokes surface is flat-bottomed near its best point (the safe window), so many slightly wrong patterns still point at a near-optimal aim.

A9. The windy-day test compares four golfers. Which comparison measures the value of the strategy layer on a windy day, and why is "full caddie vs a golfer who ignores the wind" the wrong one for that?

Answer

"Full caddie vs plays-like only." That compares the strategy layer against a golfer who already has the right yardage and aim-off; it saved Marcus 1.00 and Walt 1.24. "Full caddie vs ignores the wind" (8.29 and 6.72) mixes the yardage layer's value with the strategy layer's, and most of it is yardage.

A10. Name the two layers of the prototype and give one example of a decision each makes.

Answer

The rule layer: inside 40 yards play at the flag; from the trees punch out to the fairway; optionally use the rule-of-thumb aim when it's within a tolerance of the optimum. The model layer: the tee club and offset (tee_strategy), go/advance/lay-up (decisions), the aim point (aim) and the putting pace (putting_strategy).


Part B — Calculations ⭐⭐

B1. Marcus's 7-iron carries 161.8 yards calm. Into a 15 mph headwind it plays 184.1. Compute $f$, the short bias the caddie adds, and how far a swing meant for 150 calm yards actually travels.

Solution

$f = 161.8/184.1 = 0.879$. The added short bias is $1 - f = 0.121$. A 150-yard calm swing travels $150 \times 0.879 = 131.8$ yards.

B2. With the 15 mph wind from the right, the same 7-iron drifts −21.1 yards. Compute the drift angle $\delta = \arctan(\ell/r)$ and the drift of a 150-yard shot at that angle.

Solution

$\delta = \arctan(-21.072/161.8) = -7.42°$. At 150 yards: $150 \tan(-7.42°) = -19.5$ yards (left).

B3. For Rosa, the full caddie's paired differences over 2,400 rounds have mean 0.996 and SD 5.20. Compute the standard error and the 95% CI.

Solution

$SE = 5.20/\sqrt{2400} = 0.106$. The CI is $0.996 \pm 1.96 \times 0.106$, or 0.788 to 1.204.

B4. Rosa's simulated round SD is 5.02. The caddie saves her 0.941 strokes per round. How many rounds before and after would a two-sided 5% test with 80% power need? Use $n = 2\big((z_{0.975} + z_{0.80})\sigma/\Delta\big)^2$.

Solution

$z_{0.975} + z_{0.80} = 1.960 + 0.842 = 2.802$. Then $n = 2(2.802 \times 5.02/0.941)^2 = 446.8$, which rounds up to 447 per period. (yardbook.signal.rounds_needed gives 447. Case Study 2's printout, computed from the unrounded SD and effect, says 448.)

B5. REAL. After 54 holes of The Open 2026 the book's live model gave Ryan Fox 9.2%. Suppose a bookmaker offered 12-to-1. What probability does that price imply (ignoring the margin), and what is the expected profit per unit staked if the model is right?

Solution

Implied probability $1/13 = 0.077$. Expected profit $0.092 \times 12 - 0.908 = +0.196$ per unit staked. That's an edge only if you trust the model. Chapter 36 explains why the margin and the model's known biases shrink it.

B6. The "explainable aims" variant saved Marcus 1.321, Rosa 0.890 and Walt 1.039 strokes per round, against full-caddie savings of 1.454, 0.996 and 1.082. What share of each saving does simplicity keep?

Solution

Marcus $1.321/1.454 = 90.9\%$, Rosa $89.4\%$, Walt $96.0\%$.

B7. Pace advice is worth about 0.04 strokes per first putt for a golfer whose habit is 1.5 feet past. With 18 first putts a round, what is it worth per round? Then use the chapter's Figure 38.10 to say why the true figure for Rosa in the simulator's model (0.60) is lower than this back-of-envelope number.

Solution

$18 \times 0.04 = 0.72$ putts per round. Per-putt savings vary by distance: 0.01 to 0.07 in the pace plans, with the largest from 3–5 feet. They also depend on which model tests the advice. In the simulator's putting model Rosa's advice kept less of its value (0.60) than in the caddie's own model (0.83).

B8. Decision under an uncertain wind. On the water hole, script 02 prices four aims in two possible winds, each 15 mph:

Aim If the wind is from the right If it's from the left
Aim chosen for "from the right" (9 yd right of flag) 3.748 5.785
Aim chosen for "from the left" (34 yd left) 5.219 3.747
Calm-day aim (14 left, 2 long) 4.432 4.590
Flag 3.847 5.398

(a) With a 50/50 belief, which aim minimises expected strokes? (b) With 70% on "from the right"? (c) Which aim minimises the worst case?

Solution

(a) 50/50: 4.767, 4.483, 4.511 and 4.622. The "from the left" aim wins, but the calm-day aim is only 0.03 behind. (b) 70% from the right: 4.359, 4.777, 4.479 and 4.312. Now the flag wins: when the wind most likely blows the ball away from the water, the flag is good, and it's not a catastrophe if you're wrong. (c) Worst cases: 5.785, 5.219, 4.590 and 5.398. The calm-day aim is the robust choice. When you're unsure, choose the aim that's acceptable under every reading. Don't pick the one that's best under your favourite guess.


Part C — Data & Code ⭐⭐–⭐⭐⭐

C1. Optimize your target. Run recommend_shot on holes.demo_hole("water_right_approach_par4") from 160 yards (fairway, calm) for Marcus, Rosa and Walt, each with caddie_profile defaults, n=4000, seed=1. Report club, aim, expected strokes, flag expected strokes and the gap between the rule-of-thumb aim and the optimiser. Expected shape: everyone aims well left of the flag; the savings are about 0.15–0.41.

Our run (script 09)
  • Marcus: 7i, hit it 162, aim 14 left and 2 long; 3.68 vs 4.08. Rule-of-thumb gap 0.032.
  • Rosa: 6i, hit it 162, aim 13 left and 1 long; 4.27 vs 4.45. Gap 0.009.
  • Walt: 6i, hit it 163, aim 11 left and 3 long; 4.16 vs 4.31. Gap 0.043.

Rosa's saving (0.18) is less than half of Marcus's (0.41). Her wider pattern means no aim keeps her safely dry and on the green, so the gain from aiming is smaller. That's Section 38.4's "aim can't hide a wide pattern".

C2. Build your model. Using script 03's cached plans, evaluate Marcus with prefer_simple = 0.02 and 0.05, and with components=("tee", "layup") (flag aims). Three sheets × 800 rounds, seed 3800. Expected shape: savings fall slowly as the tolerance grows. Dropping the aim piece entirely costs about half the saving.

Our run (script 09)

Full caddie 1.454; simple within 0.02 → 1.409 (1.241 to 1.578); within 0.05 → 1.351 (1.180 to 1.522); always the rule → 1.321 (script 03). Tee and lay-up only, flag aims → 0.685 (0.543 to 0.826). The aim piece is worth roughly 0.77 for Marcus, but any reasonable aim rule gets most of it.

C3. Analyze your round. Take cast.cast_rounds("Marcus", n=20) (his representative 20-round sample, default seed; see cast.py). For every fairway approach of 100–200 yards, call recommend_shot from the shot's start position (use position=(start_x, start_y) and the hole from holes.demo_course("member") with that round's pin). Count the shots where the caddie's aim differs from his actual aim point by at least 5 yards, and sum the per-shot savings. Expected shape: a minority of shots move, a handful carry most of the saving, and the sum is in the region of Section 38.4's aim-only value. Hints: cast_rounds returns aim_x, aim_y for every shot, so the habit aim is recorded. Rebuild each hole's pin from the shot table: the end point of the holing putt is close enough, or use the first putt's start position plus its distance. Report the per-round average and the SD across the 20 rounds, and remember that 20 rounds is a small sample (Chapter 14).

C4. Decode your conditions. For your own bag, use conditions.bag_from_carries with your calm carries, then compute conditions_effect for a 10 mph and a 20 mph wind at every 30°. Plot plays-like yardage and drift as in Figure 38.4. Expected shape: the same headwind–tailwind asymmetry, with headwind gains larger than tailwind losses, and drift roughly proportional to wind speed.

C5. Compare two players. Run ca.evaluate for Coach Tasha Nguyen (3.0) on the member course with the five variants of script 03 (3 sheets × 800 rounds; the first run builds plans for about a minute per sheet). Which piece does the most for a short-game specialist with a scratch-ish long game? Compare her with Marcus's split. Expected shape: smaller total savings than Marcus's, because she has no pin-hunting habit or right-miss quirk. State your CIs. Hints: her truth in yardbook.cast is a short game at 0.75× the preset's error, and the caddie has no short-game model (inside 40 yards it plays at the flag). So the caddie can't touch her real strength. Whatever it saves comes from the same tee, aim and lay-up pieces as for everyone else. That's a useful reminder of what this prototype leaves out.

C6. Design your practice plan. Extend Case Study 2. Make Rosa's 🧪 practice change half as large (approach_mult 1.30 → 1.245) and evaluate default and caddie (2 sheets × 800). Does the caddie's saving grow or shrink as her approach play improves? Expected shape: the caddie's saving changes little. In Case Study 2 it went from 0.94 to 0.82 after the full change.

C7. Build your model (REAL). Use forecast.live_forecast(event_id, after_round=2) on every 2026 event (as in code/case_study_01.py) and compare the 36-hole and 54-hole favourites' win rates with what the model expected. Expected shape: fewer favourites win after 36 holes than after 54, and the expected counts track the observed ones within the noise of 43 events.


Part D — Judgment ⭐⭐⭐

D1. A vendor's brochure claims its app "saves the average golfer 3 strokes a round". List five questions you'd ask before believing it, and say which of this chapter's results each question comes from.

Discussion
  1. Saves compared with what default? (Section 38.4's straw-man pitfall.)
  2. Measured how: expected strokes, or before/after scores? (Case Study 2: about 447 rounds per period to detect 0.94 strokes.)
  3. Which golfers? (The split by golfer in Figure 38.6.)
  4. Does the saving survive a different model or real outcomes? (Section 38.6's two-worlds test, Section 38.7's true-model pricing.)
  5. What happens when the inputs are wrong, for instance the wind or old data? (The wrong-wind test.)

D2. You coach Walt. The caddie tells him "3-wood on every tee". He loves his driver and hits it with confidence. What do you tell him?

Discussion

The 3-wood call is worth 0.54 per round in simulation, and it rests on a 🧪 feature of his simulated bag: the 3-wood goes as far as the driver. Before changing anything, check it on a launch monitor. Chapter 23's fitting and Anchor C's attack-angle fix could make the driver longer, and then the call flips. On many holes the saving is tiny anyway (0.02 on the 5th in the checkpoint), so "swing the one you trust" costs little there. Change the club only where the numbers are large.

D3. A club wants to give every member a caddie app for the club championship. Using Section 38.9, write three conditions you'd want met first.

Discussion
  1. The competition committee confirms which features the Rules and Local Rules allow during play.
  2. Members control their data: export, delete, and no sharing without consent.
  3. A pace-of-play plan: advice precomputed as a hole-by-hole card, used before the round or kept silent on routine shots. You might add a fairness point too: is access equal for everyone, or only for members with the right phone?

D4. It's Sunday at a tour event. The leader is four ahead and a broadcast graphic says 72%. Using Chapter 34 and Section 38.8, is 72% likely to be too high, too low or about right for this book's model?

Discussion

Probably too low. In 2024–26, leaders by four or more won 21 of 23, while this book's model gave them 0.728 on average, because it doesn't update skill for in-event form. A broadcaster's model may differ; the question is always what its record shows over many events.

D5. Marcus asks whether he should use the caddie's wind-aware aims in his club championship next month, when he expects gusty conditions and admits he's "not great at reading wind". Using Section 38.3 and Exercise B8, advise him.

Discussion

First, check that using the device during play is allowed in that competition (Section 38.9). If it is, the risk is in the input: his own wind read. A wrong read made the "smart" aim worse than the flag (5.79 vs 5.40). Exercise B8 shows that under real uncertainty about the wind direction, the robust calm-day aim's worst case (4.59) beats every other aim's worst case. Advise him to use the wind-aware aim only when the wind is unambiguous (a steady flag, tree tops, consistent drift on earlier shots), and otherwise the calm-day aim. He should practise reading wind on the range with a plays-like table (Chapter 6) so his input gets better.


Part M — Mixed / Interleaved ⭐⭐–⭐⭐⭐

M1. (Ch 18 + Ch 38) Chapter 18 found Marcus's optimal aim saves 0.81 strokes per round (0.65 to 0.99). This chapter's aim-only piece saves 0.77 (0.62 to 0.93). Are these the same finding? Name one difference in how each was computed.

Answer

They are consistent: each interval contains the other's estimate. They differ in method. Chapter 18's round figure came from its own simulation (seed 78100, 4,000 rounds per policy, a fresh random pin every round). This chapter wrote yardbook.aim recommendations into a policy table and played three fixed pin sheets (seed 3800) × 800 rounds.

M2. (Ch 6 + Ch 21 + Ch 38) On Walt's breezy morning the caddie still says 3-wood on the 5th tee (into the wind). Use Chapter 6's head-wind asymmetry to argue whether a headwind should push toward or away from the longer-carrying club, and then say why it barely matters for Walt.

Answer

A headwind shortens every club, which raises the value of extra distance. That usually argues for the longer club, as long as its extra spin doesn't balloon. For Walt, though, the two clubs go about the same distance (205.4 vs 200.9 yards in the simulator), so the choice comes down to dispersion. The saving is only 0.02.

M3. (Ch 14 + Ch 38) Rosa's practice change saves 1.48 strokes per round and the caddie 0.94; both together save 2.30. How many rounds before and after would she need to detect each at 80% power (two-sided 5%)? What does that imply about how she should judge whether her changes worked?

Answer

From Case Study 2: caddie 448, practice 180, both 75 rounds per period. She shouldn't judge by scores over a few weeks. Judge the decision by expected strokes (the caddie's numbers) and the skill by dispersion measurements, which move faster than scores.

M4. (Ch 22 + Ch 38) Chapter 22's LAG_AM90 putter has a habit pace of 0.25 feet. The caddie's pace advice for it is worth 0.001 strokes from 40 feet. For the same putter with a 1.5-foot habit, the pace plan saves 0.011–0.040 per putt. Explain the difference in one sentence, and say what you'd measure on your own greens before trusting either number.

Answer

Advice only pays where the habit is wrong. A putter who already dies long putts has nothing to gain from "die it", while a 1.5-foot-past habit does. Measure your own leave distances (long and short of the hole) over many putts, as Chapter 28 recommends, to find your real habit.

M5. (Ch 31 + Ch 34 + Ch 38) Why did Chapter 34 need an explicit correction for players with few recent rounds, and what change in the data ecosystem (Section 38.1) made that correction necessary?

Answer

ratings.bayes_skill doesn't widen its uncertainty when a player stops playing, so ratings for players seen mostly at majors went stale and ran too high. Former TOUR regulars seen only at majors rose from 2.8 per major in 2019–21 to 14.2 in 2023–26 (Chapter 31). Their recent rounds moved outside the free data.


Part E — Research & Extension ⭐⭐⭐⭐

E1. A caddie with uncertainty. Extend recommend_shot to accept a distribution over wind (for example three directions with probabilities). Choose the aim that minimises expected strokes averaged over that distribution, and add a "robust" option that minimises the worst case. Test it on the water hole with the B8 table's scenarios, then over a windy round with evaluate. Does the robust caddie lose much on average?

E2. Grade a real decision aid. Pick any shot-tracking or strategy tool you have access to. Write down its recommendations for ten holes of your course, then price them, and your own usual choices, with yardbook.aim, tee_strategy and a baseline at your level. Report the saving with an honest uncertainty statement. In the write-up, keep vendor claims and your own measurements separate.

E3. Learned caddie over a season. Generalise Section 38.7 from one hole to the whole member course: fit Marcus's patterns by distance band from $n$ rounds, rebuild hole_plan with a golfer whose dispersion matches the fit, and evaluate with truth_golfer= the real Marcus. Plot round savings against $n$. Where is the knee of the curve?