~/talk

R + Tidyverse in Sports

Talkat rstudio::conf 2019 · 2019-01-15..01-18· [data-visualization]
links:none on file
slides:none on file

Case study builds an expected goals model for NHL unblocked shots (2017–present) using R and the Tidyverse, ingesting MoneyPuck CSVs scraped by Peter Tanner and cleaning with janitor and purrr. A distance-only logistic regression hits most of the signal (unblocked shots ≈ 6% goal rate; that example shot ≈ 10%), while an xgboost model with angle, shot type and time-since-last-event nudges estimates to ~12% and improves log loss/AUC versus the simple model; shooter/goalie effects come from residuals after filtering for sample size.

AI-written summary · about

  1. 0:00Introduction
  2. 2:20Statistical Aspects
  3. 2:47Shots
  4. 2:57Goal
  5. 5:22Block Shots
  6. 6:10Expected Goals
  7. 6:51Disclaimer
  8. 7:26Playbyplay data
  9. 9:07Big code chunk
  10. 9:57Heat maps
  11. 10:43Shot distance
  12. 11:20Boosting
  13. 12:04Variable Inclusion
  14. 13:59Variable Importance Metrics
  15. 15:56Model Comparison
  16. 19:13Outro
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.