Syllabus — Introduction to Data Science and Statistics Through Golf

Format: 15 weeks; two 50-minute lectures and one 2-hour computer lab per week. Prerequisites: high-school algebra. No programming experience is assumed; weeks 1–2 teach the Python needed. Text: Golf Analytics, Chapters 2, 10–17, 28 and 31–34, with Appendix A (Python), Appendix D (baselines) and Appendix E (statistics). Data: the processed ESPN tables from the course site, about 8 MB.

Why golf

A golf round is a natural unit of data with a known, large noise level: a tour player's round wanders σ = 2.756 strokes around his own level, while true skill among regulars spreads only about 0.75. That single fact drives most of an introductory statistics course: why averages help at a square-root rate, why extreme results regress, why we shrink small samples, why looking at many players guarantees false discoveries, and why a forecast must be graded on events it hasn't seen. The data are real (every PGA TOUR hole score from 2004 to 2026), the questions are ones students argue about, and the simulator lets them check their methods against a known truth, which real data never allow.

Learning outcomes

  1. Load, filter, group and join tables in pandas, and detect when a join has silently dropped rows.
  2. Describe a distribution (mean, SD, quantiles, shape) and explain why a hole score is a distribution, not a number.
  3. Compute and interpret standard errors and confidence intervals; plan a sample size with a power calculation.
  4. Explain regression to the mean and apply shrinkage.
  5. Recognise and correct for multiple comparisons and optional stopping.
  6. Build an absorbing Markov chain and compute expected values and score distributions from it.
  7. Fit and interpret a linear and a logistic regression on real data, including what "partial R²" does and doesn't mean.
  8. Evaluate probabilistic forecasts with Brier score, log-loss and reliability tables on held-out data.
  9. Use simulation as a laboratory: generate data with a known truth and test whether a method recovers it.

Assessment

Component Weight
Weekly labs (best 12 of 14) 25%
Problem sets (5) 20%
Midterm (week 8; use questions from midterm-exam.md on Chapters 2 and 10–17 and the assessment bank) 15%
Case-study report (week 11; rubric B in project-rubrics.md) 15%
Final (use questions from final-exam.md on Chapters 28 and 31–34 plus the cumulative items) 25%

The yardbook project is optional in this course; the four milestones below give it structure for students who want it, and they can replace two problem sets.

Week by week

Week 1 — Python and the shape of the data

  • Read: Appendix A §A.1–A.6; Ch 2 The Golf Analytics Toolkit §2.1–2.3.
  • Lab: set up the environment; Ch 2 03_snapshot_and_quirks.py. Students reproduce one count (events, players, hole scores) with their own three lines of pandas.
  • Statistics: observation, variable, table; long versus wide data.

Week 2 — Data quality as a statistical problem

  • Read: Ch 2 §2.4–2.8; Appendix C §C.3.
  • Lab: Ch 2 04_masters_2026_end_to_end.py, 05_multicourse_and_staggered.py, 08_cast_and_schema.py.
  • Statistics: missing data, coding errors, "know each problem by count". Why comparisons must be made within course-rounds (the 2026 Farmers Insurance Open's two courses differed by 3.08 strokes per round).
  • Assign: PS1: Ch 2 Ex A, B, C1–C3.

Week 3 — Expected value: strokes gained

  • Read: Ch 10 Strokes Gained.
  • Lab: Ch 10 01_baseline_curves.py, 02_shot_prices.py, 03_hole_by_hole.py.
  • Statistics: expected value as a conditional mean; a telescoping sum (a hole's shot SG adds to E(tee) minus the score).
  • Yardbook S1 (optional): sg_core.round_sg on a cast round.

Week 4 — Decomposition and variance shares

  • Read: Ch 11 Decomposition.
  • Lab: Ch 11 01_categories.py, 02_rosa_decomposition.py, 03_tour_spread.py.
  • Statistics: additivity; variance shares (cov(c, total)/var(total)) and why a variance share is not importance.
  • Assign: PS2: Ch 10 Ex B, Ch 11 Ex B, C.

Week 5 — Estimating a function from data

  • Read: Ch 12 The Baseline; Appendix D.
  • Lab: Ch 12 01_broadie_table.py, 02_rebuild_from_sim.py, 03_smoothing_fits.py, 06_own_baseline.py.
  • Statistics: binning and averaging, SE = s/√n per cell, smoothing and interpolation (PCHIP against a cubic spline), RMSE as a fit measure.

Week 6 — Subgroups and the bootstrap

  • Read: Ch 13 Advanced Strokes Gained.
  • Lab: Ch 13 01_subcategories_by_level.py, 04_ott_distance_accuracy.py, 05_real_tour_situations.py; 03_hidden_weakness.py as a demonstration (about 90 s).
  • Statistics: bootstrapping by round, detection power, and the first look at multiple comparisons (about 18 bands per report).
  • Assign: PS3: Ch 12 Ex B, Ch 13 Ex B, C.

Week 7 — Signal and noise

  • Read: Ch 14 Signal and Noise (all); Appendix E.
  • Lab: Ch 14 01_round_noise.py, 02_standard_error.py, 03_reliability_shrinkage.py, 04_regression_to_mean.py, 05_hot_hand.py, 06_multiple_comparisons.py.
  • Statistics: SE = σ/√n; reliability and ICC; regression to the mean; shrinkage; the hot hand; Holm and Benjamini–Hochberg; optional stopping.
  • Yardbook S2 (optional): signal.rounds_needed for a 1-stroke change.

Week 8 — Midterm; measuring amateurs

  • Midterm on weeks 1–7.
  • Read: Ch 15 SG for Amateurs.
  • Lab: Ch 15 04_scorecard_ladder.py, 06_leak_agreement.py.
  • Statistics: measurement error and its bias (random errors in first-putt length bias SG: Putting downward); agreement between two measurement methods.

Week 9 — Markov chains

  • Read: Ch 16 Scoring Probability.
  • Lab: Ch 16 01_tour_score_distributions.py, 02_birdie_odds_and_hard_holes.py, 03_markov_hole.py, 06_expectation_vs_distribution.py.
  • Statistics: discrete distributions; logistic regression (birdie odds against card yardage, odds ratio per 25 yd); absorbing Markov chains, E = (I − Q)⁻¹c.
  • Assign: PS4: Ch 14 Ex B, Ch 16 Ex B (a toy chain by hand), C.

Week 10 — Regression and the history of a statistic

  • Read: Ch 17 History and Future of Golf Statistics.
  • Lab: Ch 17 01_traditional_vs_sg.py, 02_distance_vs_accuracy.py, 03_gir_putts_paradox.py, 04_putts_per_round_sim.py.
  • Statistics: correlation against regression; centring within events; partial R²; confounding (putts per round confuses ball-striking with putting); extrapolation outside the data's range.
  • Case-study report opens (rubric B): pick one chapter case study from Ch 10–17 and extend it.

Week 11 — Tracking change over time

  • Read: Ch 28 Tracking Your Progress.
  • Lab: Ch 28 01_noise_by_handicap.py, 04_rolling_averages.py, 05_control_charts.py, 06_is_it_real.py, 07_tour_season_change.py.
  • Statistics: power for before/after comparisons; rolling averages; Shewhart, EWMA and CUSUM charts; pre-registered looks.
  • Due: case-study report.
  • Yardbook S3 (optional): progress.py control chart on a cast member.

Week 12 — Real data at scale

  • Read: Ch 31 PGA Tour Analytics.
  • Lab: Ch 31 02_layers_and_persistence.py, 04_coverage.py, 07_data_quality.py.
  • Statistics: persistence (season-to-season correlations); selection and survivorship; data that are missing not at random (the worst holes were the ones the first build lost); the join trap.
  • Assign: PS5: Ch 31 Ex C, Ch 32 Ex B.

Week 13 — Ratings: shrinkage in practice

  • Read: Ch 32 Player Skill Ratings.
  • Lab: Ch 32 01_round_noise.py, 02_rolling_vs_decay.py, 03_bayes_skill.py, 04_golf_elo.py.
  • Statistics: weighted means and half-lives; empirical-Bayes shrinkage; walk-forward validation; Elo as a model with a fixed variance.

Week 14 — Does fit matter? Out-of-sample testing

  • Read: Ch 33 Course Fit.
  • Lab: Ch 33 01_horses_for_courses.py, 04_course_history.py, 05_out_of_sample.py.
  • Statistics: a significant in-sample effect that adds almost nothing out of sample (best course-fit gain 0.00150 strokes per round); variance components; interaction terms.

Week 15 — Forecasting and calibration

  • Read: Ch 34 Tournament Prediction.
  • Lab: Ch 34 01_why_golf_is_hard.py, 03_simulator_anatomy.py, 04_walk_forward_calibration.py. (Make sure the walk-forward cache is distributed; building it from scratch took 1,021 s.)
  • Statistics: Monte Carlo simulation; Brier score, log-loss, Brier skill against a base rate; reliability tables; bootstrap by event.
  • Yardbook S4 (optional): forecast.forecast_event(widen=True) for one 2026 event.
  • Final exam in the exam period.

Statistics topic map

Topic Chapter Appendix E
Distributions, expected value 10, 16 yes
SE, CIs, sample size and power 14, 28 yes
Bootstrap 13, 14 yes
Regression to the mean, shrinkage 14, 32 yes
Multiple comparisons, optional stopping 13, 14, 28 yes
Linear and logistic regression 16, 17, 33 yes
Markov chains 16 —
Scoring rules, calibration 34 yes
Measurement error 15 —
Simulation as a laboratory 12, 15, 28 —

Notes for the instructor

  • Teach the labelling rule from week 1: every number is REAL, SIMULATED (with seed) or cited. Students who learn it in a golf course take it into every later data job.
  • Students without golf knowledge do fine. Give them Appendix H and five minutes of "what is a par 4" in week 1.
  • See common-struggles.md on variance and sample size, the join trap, and simulated against real data. Those are the three that matter most here.