Chapter 40 — Exercises

Difficulty: ⭐ concept check · ⭐⭐ calculation or short analysis · ⭐⭐⭐ data, code or judgment · ⭐⭐⭐⭐ research and extension

Every golfer in these exercises is SIMULATED (golfkit.shotsim through yardbook.cast), and your answers must say so. Tour numbers in Case Study 1 and Exercise C7 are REAL (ESPN, through golfkit). The chapter's scripts live in code/; the modules are project/yardbook/dashboard.py and project/yardbook/cli.py. Run everything from the book's project/ folder (or put it on PYTHONPATH).


Part A — Concepts ⭐

A1. Why can a report on a SIMULATED golfer be validated, while a report on a real golfer can't? What is the price of validating on simulated golfers?

A2. The report shows four yardsticks: target SIM baseline, own-level SIM baseline, PGA TOUR (Broadie), and same-course peers. Give one question each yardstick answers well, and one it answers badly.

A3. State the book's rule for which baseline a personal practice plan uses, and give Chapter 30's Walt example that motivated it.

A4. What is the "baseline-course caveat"? Explain in two sentences why a perfectly typical 15.4 on the member course is not zero by category against the SIM 15.4 baseline.

A5. The report fits a robust pattern for the dispersion section and a plain pattern for the aim calculator. Why the difference?

A6. Why does the report flag on-course club gaps by size alone, instead of using Chapter 25's overlap test?

A7. What does it mean for a gap flag to be "firm"?

A8. Explain, without numbers, why a first-half-versus-second-half split of your rounds is not a test of improvement, even when its p-value is below 0.05.

A9. Why does a Handicap Index lag a real improvement? Use the words "best 8 of 20" in your answer.

A10. The cast's default seeds were chosen to be representative. Why does that make a validation on those seeds alone misleading?


Part B — Calculations ⭐⭐

B1. The peers column. Rosa's approach is −13.40 strokes per round against the PGA TOUR baseline. A typical 15.4 on the same course scores −11.20 against the same baseline. Compute her same-course-peers approach number and say what it means.

B2. Holm by hand. Three sub-categories have bootstrap p-values 0.0005, 0.003 and 0.013, and there are 18 tests in all. Compute the Holm-adjusted p-values of these three (the three smallest).

B3. Rounds to prove. Use $n = 2((z_{1-\alpha} + z_{1-\beta})\sigma/\delta)^2$ with one-sided α = 0.05 and 80% power ($z$ sum 2.487). (a) Rosa's score: σ = 4.75, δ = 1.54. (b) Walt's simulated attack-angle fix: σ = 4.92, δ = 0.51. (c) A tour player: σ = 2.756, δ = 1.0. (Use two-sided α = 0.05 for this one: $z$ sum 1.960 + 0.842 = 2.802.)

B4. The gap model. Rosa's approach gap to a 12 is 3.29 strokes. With the 🧪 rate r = 0.03 per hour, what does the gap model price 20 hours on approach at? What about 10 hours?

B5. Aim value. Marcus's fitted pattern prices the flag at 4.306, the centre of the green at 4.148 and the optimum at 4.096. What share of the optimal saving does the centre of the green capture?

B6. The club event. A 24-player event has a fair win share of 1/24. Marcus's simulated win chance is 3.6% aiming at flags and 5.5% playing dispersion targets. Express each as a multiple of the fair share. If he plays 10 such events a year and the events are independent, what is the chance he wins at least one under each policy?

B7. Driver levers. Walt's MODEL carries: today 178.7 yards; best loft at his −5° attack +3.0; attack 0° +13.4; +5 mph +17.1; both +28.9. What fraction of the "both" gain is available from equipment alone? Is the "both" gain the sum of the attack and speed gains? Why or why not?


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

C1. Analyze your round (the whole report). Export Marcus's representative sample with python -m yardbook cast-csv marcus --out marcus.csv and run python -m yardbook report --shots marcus.csv --handicap 7.8 --name Marcus --out marcus.html. Open the page. Report: (a) his biggest leak against each yardstick, (b) the driver's lateral centre and its p-value, (c) the aim calculator's best aim and saving. Expected shape: off the tee is the leak against his own level (about −0.7), approach against the target and peers; the driver centre is several yards right with a tiny p-value; the best aim is about 12 yards left of the flag.

C2. Build your model (a new yardstick). Rerun C1 with --target 3. Which category gets the most practice hours now, and does the priced gain go up or down? Explain using the gap model's formula.

C3. Compare two players. Run 02_cast_reports.py and put Coach Tasha's and Emma's strokes-gained tables side by side. For each, state the biggest gain against the own-level baseline and against same-course peers, and explain any difference with the course-offset table in case_study_02.py's output.

C4. Decode your launch monitor. Run the report on Walt's file with --driver-speed 88 --attack -5 --dynamic-loft 12, then with --attack 0. Read the driver table in each. Expected shape: the first reproduces 178.7 yards today and +3.0 / +13.4 / +19.3 / +17.1 / +28.9; in the second, "today" carries a little further (the level delivery launches higher on less spin) but is still well short of the attack-0° optimum, so the best-loft row is worth several yards of carry on its own and the attack rows add less than they do for Walt at −5°.

C5. Design your practice plan (validation, your way). Modify 03_validation_seeds.py to use 40-round samples (seeds of your choice; state them). Report the recovery rate against the own-level and peers yardsticks for each golfer. Expected shape: every rate between its 20-round and 60-round value in the chapter's table; Emma and Marcus-against-peers stay the weakest.

C6. Optimize your target (the progress test). Using 04_progress_rosa.py, replace the after-golfer's approach_mult=1.187 with 1.10 (a larger assumed improvement). Report the 20-versus-20 score test and SG: Approach test. Then compute, with yardbook.signal.rounds_needed, the rounds needed for the long-run gain the chapter's Rosa table lists for approach_mult 1.10 (score 93.24 → 90.42 in the book's improvement table; use σ = 4.75). Expected shape: compare each test with the chapter's p = 0.237 (score) and 0.054 (SG: Approach), and don't expect both to move the same way; rounds needed falls to roughly a third of 118.

C7. Analyze real rounds (REAL). Run case_study_01.py. Then pick a tour player of your choice with at least 40 rounds in both 2025 and 2026, and run signal.is_improvement_real on his two years. Report the change, its interval and the rounds needed to detect a change of that size at σ = 2.756. Expected shape: most players' year-to-year changes are well inside their intervals.

C8. Analyze your round (no aim points). Drop the columns aim_x, aim_y from Dev's CSV and rerun the report. Which sections disappear, and which numbers are unchanged? Why is that the right behaviour?


Part D — Judgment ⭐⭐⭐

D1. The member's question. A club member shows you his report: "Biggest gap to a 10: putting −1.1 (95% CI −2.0 to −0.2). Against same-course peers: approach −0.6 (CI −1.9 to +0.7)." He has 20 rounds. He asks whether to book putting lessons. What do you tell him, and what would change your mind?

D2. Coach Tasha's dilemma. A student's 20-round report says off the tee is her biggest leak against her own level, but her driver pattern shows no bias and the same-course peers column shows off the tee at +0.1. Using §40.7's Tasha and Marcus findings, explain what is probably going on and what Tasha should do first.

D3. Ship it? You've been asked to put the dashboard into a golf app for thousands of users. Name the three limits from §40.8 that you'd insist on displaying on every report, and one validation you'd run on real users' data even though it can't measure accuracy.

D4. The betting parallel. Dev's putting fix needs about 208 rounds each side to prove; his betting model would need tens of thousands of bets to prove a modest edge. Write a short paragraph for Dev on what "patience" means in each case, and why the arithmetic is the same.


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

M1 (Chapters 10, 12 and 40). Rosa's total strokes gained is −24.32 against the PGA TOUR baseline, +0.21 against her own level and −3.84 against a 12. Explain what each total means and which one is closest to "how many strokes better a 12 would score than Rosa on the same rounds."

M2 (Chapters 18, 21 and 40). The aim calculator saves Marcus 0.21 strokes on one 160-yard shot with his fitted pattern. The book's round-level numbers are 0.81 (golfkit's built-in optimal policy) and 1.45 (Chapter 38's caddie). List what each round-level number includes that the single-shot saving doesn't.

M3 (Chapters 14, 28 and 40). The report's "Prove" box uses the SIMULATED round SD for your level (4.79 at 15.4) rather than your own 20-round SD (5.81 for Rosa). Argue for and against that choice, using Chapter 28's measurement of round SDs.

M4 (Chapters 19, 25 and 40). Rosa's on-course driver-to-3-wood gap is 36.0 yards with a 95% interval from 10.3 to 61.7. Chapter 25 measured gaps on a launch monitor with 30 or so shots per club. Explain why the on-course interval is so wide and what session would narrow it.

M5 (Chapters 29 and 40). Rosa's index after 80 simulated rounds (16.2) is higher than when she started (15.4), although her simulated golfer improved after round 20. Use Chapter 29's findings to say how surprising that is and what she should conclude.


Part E — Research & Extension ⭐⭐⭐⭐

E1. A better peer yardstick. The peers column exists only for the member course. Design a way to build same-course peer norms for your course: what you'd need (a course model with your holes' hazards, Chapter 39's course_profile), how many simulated rounds, and how you'd check the result. Implement a prototype for one of your holes.

E2. Validation on real golfers, honestly. Without ground truth you can still test a report's stability. Propose and run a split-half test on the REAL tour data: compute a player's SG:Total profile from odd-numbered and even-numbered rounds and measure agreement. Then explain what such a test can and can't tell you about a category-level amateur report.

E3. Fix a toolkit quirk (in your own copy). Pick one of the simulator quirks listed in §40.8 (for example, the approach multiplier applied to 3-woods off the tee). Patch it in a copy of golfkit, rerun 03_validation_seeds.py, and report which recovery rates move. Explain why the book left the quirk in place.


Answer guide

Part A

A1

A simulated golfer's skill parameters are known (the cast.py docstring), so the report's findings can be compared with the truth and an error rate measured. A real golfer's skill is unknown. The price: the simulator isn't reality, so the error rates are SIMULATED and could differ for real golfers whose errors behave differently.

A2
  • Target SIM baseline: answers "what separates me from the golfer I want to become" (the plan). Answers badly "what makes me unusual for my level".
  • Own-level SIM baseline: answers "how am I different from other golfers of my handicap" (myth-busting: Rosa's putting is a strength). Answers badly on a course unlike golfkit's generic holes (the course offset).
  • PGA TOUR (Broadie): answers "how far am I from the tour" and is the common yardstick for comparing levels. Answers badly "what should I practise" (it books a short hitter's driving as approach).
  • Same-course peers: answers "what is truly mine, with the course cancelled". Answers badly anywhere but the member course, where no peer norms exist.
A3

Personal plans price categories against the golfer's target-level SIMULATED baseline, and say so. Chapter 30 restored Walt's driving distance (worth 1.81 strokes): against the tour baseline the saving split 0.92 off the tee and 0.81 approach; against the SIM 14 baseline 1.62 and 0.14, which flips his top priority to off the tee.

A4

SIMULATED baselines are built on golfkit's generic holes, not on any real course. The member course's approach shots happen to be easier than the generic holes' and its tee shots a little harder for mid-handicaps, so a typical golfer there shows an approach "gain" (+1.22 for a typical 15.4 in this chapter's run) and an off-the-tee "loss" (−0.47) against his own level's baseline.

A5

The dispersion section describes the shape of your normal swing, so it sets aside rare big misses when fitting the core and shows them separately. The aim calculator must price every outcome, and big misses into water are among the most expensive, so it keeps them.

A6

On the course, a club's shot-to-shot spread (15–40 yards) reflects which holes asked for it, not only how consistently it carries. The overlap probability would be large for every pair and flag everything; gap size, with its sampling interval, still carries information.

A7

The flag would be the same at both ends of the gap's 95% interval: for a "compressed" pair, even the upper end of the interval is below the compressed threshold. A firm flag is unlikely to be an artefact of a small sample.

A8

If you search for the split that looks best after seeing the data, you've run many tests and kept the luckiest one; its p-value no longer means what it says. A test needs a change point chosen before you look.

A9

The index averages your best 8 differentials of the most recent 20, so a new, better round only matters if it displaces one of the best 8, and old good rounds stay in the window for 20 rounds. A real 1.5-stroke improvement in your average is small next to the 4–5-stroke spread of single rounds, so the best 8 move slowly. Chapter 29: about 18 rounds for most of the move.

A10

Each default seed was picked, from 60 candidates, as the sample closest to the golfer's long-run profile. A report on it will almost always look right; that's how it was chosen. Only fresh seeds measure how often a typical 20-round sample misleads.

Part B

B1

−13.40 − (−11.20) = −2.20 strokes per round. Rosa loses 2.2 strokes per round on approach compared with a typical 15.4 who played the same holes; the course's approach offset cancels because both are measured on the same holes with the same yardstick.

B2

Sorted: 0.0005 × 18 = 0.009; 0.003 × 17 = 0.051; 0.013 × 16 = 0.208. Each is at least the one before, so no monotone correction is needed. Only the first is below 0.05. These are exactly Rosa's 225+, 100–125 and 125–150 bands in §40.3.

B3

(a) $2 \times (2.487 \times 4.75/1.54)^2 = 2 \times 7.67^2 \approx 118$ rounds each side. (b) $2 \times (2.487 \times 4.92/0.51)^2 = 2 \times 23.99^2 \approx 1{,}151$; with the three-decimal inputs the chapter's table prints (σ 4.924, δ 0.508) you should get 1,162. The chapter quotes 1,164 because its script feeds rounds_needed the full-precision σ and δ, not the rounded ones; expect 1,151 from the question's inputs, 1,162 from the table's, and 1,164 only from the script itself. At this size, a rounding in the third decimal of δ moves the answer by a dozen rounds. (c) $2 \times (2.802 \times 2.756/1.0)^2 = 2 \times 7.72^2 \approx 119$; Chapter 14 quotes 120 per period with unrounded $z$ values.

B4

20 hours: $3.29 \times [1 - 0.97^{20}] = 3.29 \times (1 - 0.5438) = 3.29 \times 0.4562 = 1.50$ strokes per round. 10 hours: $3.29 \times [1 - 0.97^{10}] = 3.29 \times (1 - 0.7374) = 0.86$. The second ten hours buy less than the first (0.64 against 0.86): diminishing returns, by construction of the 🧪 model.

B5

Optimal saving 4.306 − 4.096 = 0.210; centre saving 4.306 − 4.148 = 0.158; share 0.158/0.210 = 75%.

B6

Fair share 1/24 = 0.0417. 3.6% is 0.86× fair; 5.5% is 1.32× fair. At least one win in 10 independent events: $1 - 0.964^{10} = 0.31$ aiming at flags; $1 - 0.945^{10} = 0.43$ with dispersion targets (SIMULATED, and the independence is an assumption).

B7

Equipment alone: 3.0/28.9 ≈ 10%. The "both" gain (28.9) is less than 13.4 + 17.1 = 30.5 because the levers interact: the loft is re-optimised at the new speed and attack angle, and carry gains per unit of each lever shrink as the other improves (it's a MODEL optimum, not a sum).

Part C

C1 (from the chapter's run)

Own level: OTT −0.73 (CI −1.43 to −0.01). Target (5): APP −1.32. Peers: APP −0.44 (not clear). Driver: +6.0 yards right, p < 0.0005, 285 shots. Aim: 12 yards left, 4 long; 4.096 against 4.306 at the flag (0.21 saved). All SIMULATED, seed 78035.

C3 (from the chapter's run)

Tasha: biggest gain ARG against both (own +0.60, peers +0.54); own-level approach +0.39 becomes −0.38 against peers, because a typical 3 on the member course shows +0.74 on approach against the SIM 3 baseline. Emma: OTT against both (own +0.64, peers +0.46); her own-level approach +0.33 becomes −0.06 (typical +1.2 approach offset +0.57).

C2 (what to look for)

A lower target makes every gap bigger, so the gap model's priced gain rises (each $g_c$ in $g_c[1-(1-r)^t]$ is larger) and hours may spread to more categories. The ranking can change too: against a 5, Marcus's approach and off-the-tee gaps are close (−1.32 and −1.04 in the chapter's run), and a lower target can reorder them. Report the hours table and say whether the top category moved.

C4 (what to look for)

The first run reproduces the chapter's table (178.7 yards today; +3.0, +13.4, +19.3, +17.1, +28.9). With --attack 0 the "today" row is a golfer who already delivers level: 182.2 yards of carry at 10.2° and 2,309 rpm. That is not near the 0° optimum: the "best loft at attack +0.0" row carries 192.1, 9.9 yards more, and because the attack is already 0° that row and the "attack +0.0, best loft" row are identical. (Its total falls 3.7 yards, because the extra loft adds about 800 rpm of spin and the ball rolls less; carry and total can disagree.) The attack +3 row adds 15.8 yards of carry, against 19.3 at −5°. The point: the same model tells a golfer with a good delivery that loft matters more for him than it does for Walt.

C5 (what to look for)

Rates should land between the chapter's 20- and 60-round values: about 82–87% pooled against the own-level yardstick, and 74–88% against peers. If a golfer's 40-round rate falls outside that range, check the number of samples: 60 samples give each rate a standard error of about 5 percentage points near 80%.

C6 (what to look for)

The book's improvement table puts the long-run score at 90.42 for approach_mult 1.10 against 93.24 at 1.30: a gain of 2.82. signal.rounds_needed(2.82, 4.75, sided=1) gives 36 rounds each side, roughly a third of the 118 needed for 1.54. The 20-versus-20 tests are another matter. With the seeds in Appendix K's script, the score test is stronger than the chapter's (+1.75, p 0.156 against 0.237), but the SG: Approach test is weaker (+1.94, CI −0.41 to +4.31, p 0.067 against 0.054), even though the assumed improvement is larger. Twenty rounds a side gives only about 59% power for a 2.82-stroke gain, so one pair of samples can easily move against the truth. That is the lesson: a bigger real effect raises the chance of a convincing test; it doesn't guarantee that this test is more convincing.

C7 (what to look for)

Most changes have intervals spanning zero, and the rounds needed for a change of a few tenths run to hundreds or thousands per period (Case Study 1: Scheffler 645 for 0.43, McIlroy 3,301 for 0.19).

C8

The dispersion and aim sections are skipped (they need aim points). Strokes gained, sub-categories, equipment distances (computed from start and end coordinates, or start minus end distance), the practice plan, the progress test and the handicap trend are unchanged, because none of them uses the aim point. That's the right behaviour: the report uses what you have and never invents what you don't.

Part D

D1 (one good answer)

Twenty rounds against a 10 say putting is a clear gap, but the same-course-peers view (removing course effects) points to approach and is not clear. Before booking lessons, check the own-level column and the putting sub-categories (is the loss in 3–10 ft makes or in lag pace?), and log 20 more rounds. What would change my mind: a putting leak that stays clear against peers at 40 rounds, or a sub-category (say 3–6 ft) that survives the Holm adjustment.

D2 (one good answer)

Two candidates from §40.7. Like Marcus's, the own-level off-the-tee number may be mostly the course: on the member course a typical 7.8 loses 0.66 strokes off the tee against his SIM baseline, so a leak against one's own level can vanish against peers. Like Tasha's, there may be a small real difference that 20 rounds can't size. With no driver bias and peers at +0.1, Tasha should not start with driving. She should look at the gap to the student's target, check the sub-categories, and ask for 20 more rounds before changing anything about the tee shot.

D3 (one good answer)

Display, on every report: (1) which baseline the plan uses and the course-offset caveat; (2) the interval beside every category and the word "clear" only when it excludes zero; (3) the "Prove" box's rounds needed, so users don't judge a plan after five rounds. A validation on real users that can't measure accuracy but can measure stability: split each user's rounds into odd and even, run the report on both halves, and report how often the biggest leak agrees. Low agreement means the app is showing users noise.

D4 (one good answer)

In both cases the signal is small next to the noise: about a stroke a round against a round SD over 4 for the putting fix, a few per cent of return against the huge variance of a long-odds bet. The rounds (or bets) needed grow with the square of noise ÷ signal, so both need hundreds or thousands of trials. Patience means deciding in advance what you'll test and how many trials you'll wait, then not changing course on a lucky or unlucky stretch, whether the stretch is ten rounds or fifty bets.

Part M

M1

−24.32: how many strokes per round Rosa's shots lose against tour expectations from the same positions. +0.21: she plays about as well as a typical SIM 15.4 would from her positions. −3.84: a SIM 12 would, on average, need about 3.8 fewer strokes from the same positions. The last is closest to "how many strokes better a 12 would score on the same rounds", with the caveat that a 12 wouldn't have found the same positions in the first place.

M2

The 0.21 single-shot saving covers one approach on one hole. Both round-level numbers add every other approach aim in the round, tee club and tee aim on par 4s and 5s (about 0.48 of golfkit's 0.81 is the tee plan), and go-or-lay-up decisions; they also use Marcus's true pattern rather than a 38-shot estimate. The caddie's 1.45 uses Chapter 18's and Chapter 21's smoother tools; putting pace is not in either number.

M3

For the level SD: Chapter 28's 3,000-round SDs are far more precise than any golfer's 20-round SD (Rosa's 5.81 includes some unlucky rounds), and power calculations need a stable σ. Against: a golfer who is genuinely more (or less) consistent than typical for her level gets the wrong answer. A compromise: use your own SD once you have 60 or more rounds.

M4

Rosa hits her 3-wood only 10 times in 20 rounds and her on-course spreads are 32–38 yards, so the gap's SE is large ($1.2533\sqrt{38.4^2/280 + 32.3^2/10}$ is about 13 yards). A launch-monitor session with 30 or so shots per club, at full effort to a fixed target, removes the hole-to-hole variation and narrows the interval to a few yards.

M5

Not very surprising. Chapter 29 found that after the same assumed improvement, about 1 in 5 simulated Rosas (0.21) still had a higher index 60 rounds after the change. The index is the best 8 of the last 20 differentials, so it moves with the luckiest rounds in a rolling window, and a 1.5-stroke shift in the average is small next to a 4.75-stroke round SD. She should judge the plan with the progress test on a declared change point, not with her index.