Chapter 2 Quiz — The Golf Analytics Toolkit
20 questions. Answers and explanations are in the collapsible blocks. The scoring guide is at the end.
Multiple Choice
1. How many events are in the book's ESPN snapshot, and how many are usable for modelling (stroke_play_ok)?
- A. 1,140 and 1,061
- B. 1,061 and 1,027
- C. 1,061 and 1,031
- D. 1,027 and 1,000
Answer
C. 1,061 events are kept by the build; 1,031 pass stroke_play_ok once team events, exhibitions, Q-School, non-stroke events and events with fewer than two complete rounds are removed. The 4 events with wrong ESPN pars stay in (they are flagged par_ok False and left out only of to-par and hole statistics); excluding them too would give 1,027, the count in earlier drafts. 1,140 is the number of distinct event ids in the raw scoreboards.
2. ESPN's hole record for a quadruple bogey or worse gives the relative-to-par code as: - A. "+4" - B. a blank - C. "OTHER" - D. the par itself
Answer
C. That is why par can't be derived from the record alone. The final build treats OTHER and any impossible tag as "par unknown" and resolves the par from other players' scorecards: 12,946 holes resolved and 134 unresolved.
3. Why did the first-pass build name Shubhankar Sharma the winner of the 2023 Open? - A. ESPN listed him first. - B. He had the lowest 72-hole score. - C. The players ahead of him in ESPN's order had incomplete hole-by-hole scorecards and were labelled WD/DQ. - D. A staggered start.
Answer
C. In the first-pass tables, Brian Harman (271) and the next six players in ESPN's order all lacked at least one complete scorecard, because holes with an unusable to-par tag had been set aside. The build treated any incomplete round as a withdrawal. Sharma, eighth in ESPN's order, was the first with four complete scorecards. In the final build every scorecard is complete and the raw column names Harman.
4. Which fetch_espn.py feature makes it safe to skip any file that already exists?
- A. Exponential backoff
- B. Write to a temporary file, then rename
- C. The thread pool
- D. The calendar phase
Answer
B. A crash can then leave only a .tmp file, never a truncated .json that would be skipped forever.
5. In ESPN's numbering, season 2021 contains how many majors? - A. 3 - B. 4 - C. 5 - D. 6
Answer
D. The November 2020 Masters falls in ESPN's season 2021, alongside the four majors played in 2021. By calendar year, 2020 has 3 majors (no Open) and 2021 has 4.
6. At the 2026 Farmers Insurance Open, how much harder did the South Course play than the North in rounds 1–2? - A. About 0.5 strokes - B. About 1.5 strokes - C. About 3.1 strokes - D. About 5 strokes
Answer
C. 72.44 against 69.36, a gap of 3.08 strokes per round. Comparing everyone with the whole round's average shifts each course's players by about ±1.54 strokes.
7. In the 2020 Tour Championship (a staggered start), who had the lowest 72-hole total, and who won? - A. Dustin Johnson / Dustin Johnson - B. Xander Schauffele / Dustin Johnson - C. Jon Rahm / Patrick Cantlay - D. Scottie Scheffler / Xander Schauffele
Answer
B. Schauffele shot 265 and Johnson 269 (the third-lowest total), but Johnson won on the Starting Strokes. position_fixed follows ESPN's order in these six events.
8. Which statement about ShotLink is supported by the book's references? - A. Its research data begin in 2003 and include the majors. - B. Its research data begin in 2003 and exclude the four majors. - C. It is free to download. - D. It began in 2011.
Answer
B. Broadie (2012, HIGH): data since 2003, majors not included. The system first appeared around 2001 (MED). It is not free to download. 2011 is when SG: Putting became an official TOUR statistic.
9. Under this book's (golfkit's) definition, a lob wedge from the rough 66 yards from the hole, 51 yards from the green's edge, is: - A. Around-the-Green - B. Approach - C. Off-the-Tee - D. Putting
Answer
B. ARG requires a start within 30 yards of the green's edge. This was Marcus's third shot in §2.9.
10. In the simulated hole (Marcus, seed 7), what did the water ball cost him in strokes gained against the PGA TOUR baseline? - A. −1.000 - B. −1.971 - C. −0.119 - D. +0.056
Answer
B. SG = 2.951 − 2.922 − 1 − 1 = −1.971 (SIMULATED). The penalty stroke and the lost position together cost almost two strokes.
11. The check in validate_shots that catches deleted shots, unit slips and distance typos all at once is:
- A. holed_flag
- B. bad_lie
- C. chain_break
- D. too_many_shots
Answer
C. Each shot must start where the previous one finished, except after a water or OB finish.
True / False (justify in one line)
12. ESPN reports a missing driving distance as a blank, so averages over driveDistAvg are safe.
Answer
False. ESPN reports 0. In 6,825 of 67,509 rows the value is 0 or missing; in 2019, including the zeros drags the mean from 294.5 to 258.5 yards.
13. The simulator's tour preset matching Broadie's baseline (RMSE 0.050 strokes over the main ranges) shows that it plays like today's PGA TOUR.
Answer
False. It reproduces the 2003–2010 baseline Broadie built from ShotLink. That says nothing about today's tour, and it was tuned to that table.
14. In the processed tables, the par of every hole comes from subtracting ESPN's relative-to-par code from the strokes.
Answer
True for holes (with "OTHER" holes resolved from other scorecards). The course document gives a second, independent par in courses, which is useful for cross-checks. Before the label fix that check found 1,282 phantom par-6 rows; the consensus-par rule now corrects them, and the check finds none.
15. Marcus's double bogey on seed 7 was an unusually bad outcome for him on that hole.
Answer
False. Over 5,000 SIMULATED plays (seed 2026) with that pin he scored 6 or worse 39.5% of the time and found the water in 35.7% of plays. His mean was 5.486 and his median 5.
16. You can compute a real PGA TOUR player's SG: Approach from the ESPN snapshot.
Answer
False. ESPN has no shot locations. Category strokes gained needs ShotLink-type data; pgatour.com publishes the official values.
Short Answer
17. Give two reasons the book simulates shot data rather than using published amateur averages directly.
Answer
Published averages can't give you shot-level structure (dispersion ellipses, aim-point tests, per-shot strokes gained), and they can't be rerun with different strategies or seeds. A simulator calibrated to those averages, with every number labelled and seeded, can do both honestly.
18. What is a par signature, and name one failure case.
Answer
A short hash of a round's hole-by-hole par sequence, used to tell which course a round was played on. It can't separate two courses with identical par sequences (the 2005 Bob Hope: 5 courses, 4 signatures), and a coding glitch on one scorecard creates a spurious signature, which golfkit folds into the round's main course.
19. A friend's app shows "SG: Approach −1.8". What two questions do you ask before interpreting it?
Answer
Against what baseline (scratch? a handicap level? the tour?), and over how many rounds? A third good one: where does the app draw the approach boundary (for example, Shot Scope counts every shot over 50 yards)?
Chart Reading
20. Look at Figure 2.6 (images/ch02-fig-masters-hole-difficulty.png).

📊 Figure (described): Eighteen vertical bars showing each hole's field average relative to par at the 2026 Masters, with the par and yardage printed under each hole number. Orange bars (over par) dominate. The 5th (+0.30), 11th (+0.29), 17th (+0.24) and 4th (+0.22) are the tallest. The four par 5s are blue and below zero: the 8th (−0.38), 2nd (−0.29), 13th (−0.24) and 15th (−0.14). The 3rd (−0.10) and 16th (−0.05) are slightly under par, and the 9th and 14th sit at par.
(a) Which hole played hardest relative to par, and by how much? (b) Which kind of hole makes up most of the blue (under-par) bars, and which blue bars don't fit that pattern? (c) Can you conclude from this chart that the 5th is the "hardest hole at Augusta"? Why or why not?
Answer
(a) The 5th, a 495-yard par 4, at +0.30 (0.297). (b) The par 5s: all four (2, 8, 13, 15) played under par, and they are the four longest blue bars. The two exceptions are short holes, the 350-yard par-4 3rd (−0.10) and the 170-yard par-3 16th (−0.05). The 9th and 14th sit at par. (c) No. It is one week (290 rounds) of raw averages, not adjusted for field or conditions, and other years differ: in 2025 the 5th was again the hardest at +0.323, but the order behind it changes. Ranking holes needs many years and a field-adjusted model.
Scoring Guide
| Score | What it means |
|---|---|
| 18–20 | You can trust yourself with the data. Go on to Chapter 3. |
| 14–17 | Solid. Reread whichever of §2.5 (quirks) and §2.10 (validation) you missed questions on. |
| 10–13 | Rerun code/03_snapshot_and_quirks.py and code/08_cast_and_schema.py and read their output alongside §2.5 and §2.10. |
| below 10 | Work through the Check Your Understanding boxes again before moving on. The rest of the book depends on this chapter's data habits. |