Skip to content

Add "Golden Boot" exercise - #16

Merged
danhalligan merged 3 commits into
mainfrom
add-golden-boot
Nov 2, 2026
Merged

danhalligan merged 3 commits into
mainfrom
add-golden-boot

Conversation

@danhalligan

@danhalligan danhalligan commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Adds a 🌶️ Bayesian updating exercise on every player's minutes and goals in the 2017/18 Premier League (Wyscout public soccer match event dataset, CC BY 4.0).

  • New exercise exercises/golden_boot/: README, starter scoring_rates.py with three functions to write (update_gamma, posterior_summary and probability_greater), tests, loader, plot helper, investigation notebook, and the data with a source note crediting the authors.
  • Learners rank forwards by goals per 90, meet the misleading raw leaderboard, update a Gamma prior, and compare the stars with posterior probabilities. The README explains the general idea of prior + data = posterior, where a prior comes from, and why it is not "making up data".
  • The tests check the concepts, not input validation, and the simulated probabilities use tolerances of about five standard errors.
  • Catalogue entry in the README (under Parameter Estimation), a NEWS line, a data integrity test and a notebook setup test.

The README and NEWS edits are in the same places as the Beyond reasonable doubt PR, so expect a trivial merge conflict in whichever lands second.

Solutions: see the companion PR in red-to-green-python-solutions.

@danhalligan
danhalligan merged commit 8154219 into main Nov 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant