Case Study 2 — Marcus Measures His Pattern (SIMULATED)
Setup
After the water-right hole (Chapter 18, and §19.7 here), Marcus Bell wants to stop arguing about his right miss and measure it. Coach Tasha Nguyen agrees on one condition: they decide in advance what they will measure, how many balls they'll hit, and what result would change his aim. In other words, they design the test before they hit a ball, so that whatever the range shows can't be read to suit his hopes.
Their plan:
- Target: a flag at 160 yards on the range, the same distance as the water-right approach.
- Club: his 7-iron. (His simulated preset's 7-iron total is 164.6 yards, so a stock swing covers the distance.)
- Sample: 40 balls in the first session, 40 more in a second. Full routine on every ball, and every ball counts. No mulligans for "that wasn't my real swing".
- Measures: the centre (bias), both SDs with confidence intervals, the correlation, and the shots a robust fit sets aside.
- Decision rule: if the bias is significant at 5% after 80 balls, Marcus adopts an aim offset on full irons. Then they check how much a wrong offset would cost.
Every shot in this case study is SIMULATED from Marcus's yardbook.cast profile using the full shot
model (yardbook.dispersion.sample_pattern, seeds 1912 and 1913). The analysis is in
code/case_study_02.py. Because it's simulated, we know the truth, which a real golfer never does. His 160-yard
core is centred 4.19 yards right and 3.55 yards short, with SDs of 12.30 yards lateral and 13.09
yards distance.
The data
# code/case_study_02.py (excerpt): two range sessions and their fits
marcus = cast.get_cast_member("marcus")
s1 = yd.sample_pattern(marcus, 160, 40, seed=1912) # session 1: 40 balls
s2 = yd.sample_pattern(marcus, 160, 40, seed=1913) # session 2: 40 more
both = pd.concat([s1, s2], ignore_index=True)
for s in (s1, both):
p, r = yd.fit_pattern(s), yd.fit_pattern(s, robust=True) # plain and robust fits
print(p.summary(), p.bias_test()["lat"], r.n_core, p.miss_tendency())
| Session 1 (40 balls) | Sessions 1 + 2 (80 balls) | Truth (model core) | |
|---|---|---|---|
| Mean lateral (95% CI) | +3.88 (−0.1 to +7.8) | +4.46 (+1.6 to +7.4) | +4.19 |
| p-value, lateral bias | 0.053 | 0.003 | |
| Mean distance | −4.76 (p 0.100) | −5.19 (p 0.006) | −3.55 |
| Lateral SD (95% CI) | 12.30 (10.1–15.8) | 13.05 (11.3–15.5) | 12.30 |
| Distance SD (95% CI) | 17.86 (14.6–22.9) | 16.44 (14.2–19.5) | 13.09 |
| Correlation ρ | +0.02 | +0.05 | 0 |
| Robust core: shots kept | 38 of 40 | 77 of 80 | |
| Robust lateral / distance SD | 12.79 / 13.52 | 13.57 / 13.33 | 12.30 / 13.09 |
| Shots set aside (lateral, distance) | (+12, −54), (+12, −62) | those two and (+5, −56) |
Analysis
After 40 balls: almost, but not yet
The first session's centre is 3.9 yards right, close to the truth. But its 95% interval runs from −0.1 to +7.8 yards, which just touches zero, and the p-value is 0.053. By the rule they wrote down in advance, that isn't enough. §19.6 predicted it: detecting a bias of a third of an SD with 80% power takes about 68 shots, and with 40 shots the chance of detection is only about 56%.
The distance SD looks alarming at 17.9 yards. The robust fit explains why: two of the 40 balls were heavy mishits, finishing 54 and 62 yards short. Set them aside and the distance SD of the remaining 38 is 13.5 yards, close to the truth of 13.1. Two balls in forty moved the distance SD by a third. That's the fat tail of §19.3 in a single session.
Marcus: "So the first 40 say I probably have a right miss, but not for sure. And my distance control is terrible."
Coach Tasha: "Your distance control is fine. Two chunks are not your swing. They're a separate problem: about one ball in twenty, by this session. Count them separately. And the right miss isn't proven yet. Forty more."
After 80 balls: the bias is real
With both sessions, the centre is 4.5 yards right (95% CI +1.6 to +7.4, p = 0.003), and the distance centre is 5.2 yards short (p = 0.006). The module's verdict reads: "centre is 4.5 yd right and 5.2 yd short of the aim." The lateral SD is 13.05 yards (CI 11.3–15.5), a little above the core's 12.30, as you'd expect when a few wide shots are included. The robust lateral SD (13.57) is no better here, because the three set-aside shots were mishits short, not wide misses. The correlation is +0.05, indistinguishable from zero, and with 80 shots its SE is about 0.11. They draw an upright ellipse.
The distance centre deserves a remark. The plain fit puts it 5.2 yards short. The model's core says 3.55. The gap is the mishits again. Even the robust fit, which keeps 77 shots, includes some milder short shots. For planning, Marcus should use the plain centre (that's where his balls actually go on average). For understanding his swing, the robust core is better.

📊 Figure (described): 80 simulated 7-iron finishes around a 160-yard target, lateral error horizontal and distance error vertical, in yards. The robust 1σ (dashed) and 2σ (solid) ellipses are centred a few yards right and short of the aim cross. Three hollow markers well short of the cloud (50–60 yards short) are the set-aside mishits. A dotted orange ellipse shows the true 2σ core for comparison. It nearly coincides with the fitted one.
How much does a wrong offset cost?
Now the decision. On the water-right approach, Chapter 18's search put Marcus's best aim 12.8 yards left of
the pin, which allows for both his bias and the water. Suppose his estimate of his own bias is off by a few
yards and he aims at the wrong spot. How much does that cost? We evaluated aim points along a line 0.8 yards
short of the pin, from 20 yards left to 4 yards right, with golfkit.targeting (full shot model, 20,000
balls each, rng 1, against his SIMULATED 7.8 baseline):
| Aim (yd from pin) | −20 | −18 | −16 | −14 | −12 | −10 | −8 | −6 | −4 | −2 | 0 | +2 | +4 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Expected strokes | 3.807 | 3.768 | 3.745 | 3.737 | 3.741 | 3.764 | 3.804 | 3.858 | 3.934 | 4.025 | 4.130 | 4.245 | 4.368 |
| P(water) | 4.2% | 5.4% | 7.1% | 9.1% | 11.4% | 14.6% | 18.3% | 22.3% | 27.0% | 32.4% | 38.2% | 44.2% | 50.1% |
The bottom of the bowl is flat between 12 and 16 yards left (all within 0.02 strokes of the best). Missing the best aim by 4 yards toward the water (−8 instead of −12) costs about 0.06 strokes. Missing it by 4 yards away from the water (−18) costs about 0.03. Near the water the bowl gets steep: each extra 2 yards right of the pin costs more than the last (0.11, then 0.12). The asymmetry is the practical lesson. If you're unsure of your offset, err away from the hazard.

📊 Figure (described): Expected strokes (vertical) against aim offset from the pin (horizontal, −20 to +4 yards). The curve is a lopsided bowl with its minimum of 3.74 at about 14 yards left. It is nearly flat from −16 to −12, rises gently to 3.81 at −20, and climbs steeply to the right, passing 4.13 at the pin line and 4.37 at +4.
Fix the swing or aim around it?
Coach Tasha's next question is the one every coach asks: should we fix the bias instead? The simulator
lets us answer it exactly, because we can turn Marcus's 1.5° bias off (🧪 bias_deg = 0) and keep everything
else, including his right-leaning big misses.
| Marcus… | Aim at the pin | Best aim | Best aim (from pin) |
|---|---|---|---|
| with his right bias | 4.132 (water 38%) | 3.738 (water 10.5%) | 12.8 yd left, 0.8 short |
| 🧪 with the bias removed | 3.921 (water 26%) | 3.736 (water 10.1%) | 8.8 yd left, 0.8 short |
Removing the bias is worth 0.21 strokes on this shot if Marcus keeps aiming at the pin. If he aims well, it is worth 0.001. A known, stable bias is free once you aim for it. That doesn't make swing work useless. A narrower pattern (smaller SD) helps on every shot, whatever the aim, and a bias that drifts from day to day can't be aimed around. But it reframes the priority. For a golfer with a stable miss, learning the miss is worth as much as fixing it, and it takes an afternoon instead of a winter. Notice also that even without the bias, the best aim is 8.8 yards left of the pin. The water is still on the right, and so is the tail of his big misses.
Coach Tasha: "Here's what I'll tell you. Aim full irons about four yards left of where you want the ball on any hole where the right side is trouble, and give water an extra few yards beyond that. We'll keep working on the face, because a tighter pattern helps everywhere. But don't wait for the swing to change before you change the aim."
What it means (and doesn't)
What it means.
- A pre-registered test turned an argument into a number. Eighty balls established a right bias of about 4.5 yards (95% CI 1.6–7.4) at 160 yards.
- The first 40 balls were inconclusive, exactly as the power calculation predicted. A golfer who quits after one session "because the data are unclear" has simply under-sampled.
- Mishits distort plain SDs badly in small samples. Report them separately.
- The cost of a wrong aim is asymmetric next to a hazard. Err away from it.
What it doesn't mean.
- Range patterns are not course patterns. These 80 balls came from a flat lie at a fixed target. On the course, lies, wind and pressure widen the pattern (§19.2, §19.9), and Marcus should check the offset with tagged on-course approaches over the next month.
- The bias may differ by club. It is 1.5° in his simulator profile for every full shot. A real golfer's bias could be larger with long irons than with wedges. Eighty 7-irons say nothing about his driver.
- Simulated truth is a luxury. Here we could compare every estimate with the model's truth. A real golfer only has the confidence intervals, which is why they matter.
Discussion questions
- Why did Coach Tasha insist on writing the decision rule down before the first ball? What could go wrong if Marcus decided after seeing the 40-ball result?
- The 40-ball p-value was 0.053. Would you have changed Marcus's aim at that point? Argue both sides, using the asymmetry in the aim-cost table.
- The plain fit's distance centre is 5.2 yards short, and the robust core's is closer to the truth. Which should Marcus use when he chooses a club for a 160-yard shot over water, and why?
- Removing the bias is worth 0.21 strokes at the pin aim and 0.001 at the best aim. Under what real-world conditions would fixing the bias be worth more than this case study suggests?
- Marcus's big misses still go right 75% of the time with the bias removed. How should that change the margin he gives water on the right compared with water on the left?
Your turn
Design and simulate your own pre-registered test.
- Pick a cast member or a handicap preset and a 🧪 bias of your choice (
Golfer.from_handicap(h).with_(bias_deg=…)). - Write down your decision rule before running anything: number of balls, significance level, and what aim change you'll make.
- Run it with
yardbook.dispersion.sample_patternfor 200 different seeds and record how often your rule reaches the right decision, how often it adopts an offset when there is no bias (setbias_deg=0), and how often it fails to adopt one when there is. - Find the smallest number of balls for which your rule gets the right answer at least 80% of the time.
Compare it with
shots_to_detect_biasfor your bias and SD.