Expected Goals in Hockey: A Review (2004-2020)
Josh & Luke Younggren
Evolving-Hockey.com
@EvolvingWild
xG Review | CBJHAC '20
2
Overview
xG Review | CBJHAC '20
3
Expected Goals: What is it?
Is Goal | Shot Distance | Shot Angle | Rush | Rebound | … |
1 | 20 | 20 | 0 | 0 | … |
0 | 30 | 0 | 1 | 0 | … |
0 | 10 | 5 | 0 | 1 | … |
1 | 5 | 14 | 0 | 1 | … |
1 | 60 | 8 | 0 | 0 | … |
0 | 3 | 90 | 0 | 0 | … |
0 | 10 | 3 | 1 | 0 | … |
0 | 9 | 7 | 1 | 0 | … |
0 | 22 | 2 | 0 | 1 | … |
0 | 220 | 29 | 0 | 0 | … |
0 | 9 | 3 | 0 | 1 | … |
1 | 3 | 32 | 1 | 1 | … |
… | … | … | … | … | … |
What:
Use:
xG Review | CBJHAC '20
4
A Brief History
Shot Quality Models
Focus:
Expected Goals
Focus:
xG Review | CBJHAC '20
5
The Data
NHL’s Real Time Scoring System (RTSS) Data
Cleaning/Modifying the Data
xG Review | CBJHAC '20
6
Available Predictor Variables
From RTSS:
Created:
Is Goal | Shot Distance | Shot Angle | Rush | Rebound | … |
1 | 20 | 20 | 0 | 0 | … |
0 | 30 | 0 | 1 | 0 | … |
0 | 10 | 5 | 0 | 1 | … |
1 | 5 | 14 | 0 | 1 | … |
1 | 60 | 8 | 0 | 0 | … |
0 | 3 | 90 | 0 | 0 | … |
0 | 10 | 3 | 1 | 0 | … |
0 | 9 | 7 | 1 | 0 | … |
0 | 22 | 2 | 0 | 1 | … |
0 | 220 | 29 | 0 | 0 | … |
0 | 9 | 3 | 0 | 1 | … |
1 | 3 | 32 | 1 | 1 | … |
… | … | … | … | … | … |
xG Review | CBJHAC '20
7
Modeling
xG Review | CBJHAC '20
8
The Models
Baseline (Model 0)
Alan Ryder (Model 1)
glm Base (Model 2)
glmnet (Model 3)
XGBoost (Model 4)
xG Review | CBJHAC '20
9
Evaluation
Timeframe
Metrics
Methods:
xG Review | CBJHAC '20
10
Shot Distance
AUC: 0.7294 | LL: 0.1954
Ryder Model
AUC: 0.7409 | LL: 0.1943
xG Review | CBJHAC '20
11
glm Base
AUC: 0.7669 | LL: 0.1878
glmnet
AUC: 0.7675 | LL: 0.1882
xG Review | CBJHAC '20
12
XGBoost 3 year
AUC: 0.778 | LL: 0.1847
Model | AUC | LL |
Shot Distance | 0.7294 | 0.1954 |
Ryder | 0.7409 | 0.1943 |
glm Base | 0.767 | 0.1878 |
glmnet | 0.7675 | 0.1882 |
XGBoost 3 | 0.778 | 0.1847 |
CV Model Comparison
Model | AUC | LL |
Shot Distance | 0.7319 | 0.2047 |
Ryder | 0.7441 | 0.2028 |
glm Base | 0.7656 | 0.1979 |
glmnet | 0.7654 | 0.1983 |
XGBoost 3 | 0.7764 | 0.1947 |
Future Season Comparison (‘18-20)
xG Review | CBJHAC '20
13
xG Review | CBJHAC '20
14
Comparison
xG Review | CBJHAC '20
15
Correlation Matrix: 5v5 xG Comparison, ‘18-20
xG Review | CBJHAC '20
16
Correlation Matrix - Skater On-Ice Measure:
xGF per 60 / xGA per 60, ‘18-20, Min. 200 Minutes
xG Review | CBJHAC '20
17
Correlation Matrix - Skater On-Ice Measure:
xGF per 100FF / xGA per 100FA, ‘18-20, Min. 200 Minutes
xG Review | CBJHAC '20
18
Team xGF%: ‘18-19, 5v5
xG Review | CBJHAC '20
19
Team xG +/- per Fenwick Shot: ‘18-19, 5v5
xG Review | CBJHAC '20
20
Magnitude: All Models
xG Review | CBJHAC '20
21
Calibration and Heatmaps
xG Review | CBJHAC '20
22
xG Review | CBJHAC '20
23
Models 0-1: Shot Distance / Ryder
xG Review | CBJHAC '20
24
Models 2-3: glm base / glmnet
xG Review | CBJHAC '20
25
Models 4+: XGBoost
xG Review | CBJHAC '20
26
Wrapping Up
xG Review | CBJHAC '20
27
Biases
1. Seconds since
2. Distance / Rink bias
3. Shots from behind the goal line
Goals | 68 |
Fenwick | 825 |
% of All | 0.59% |
0: Distance | 79.06 |
1: Ryder | 69.30 |
2: glm Base | 48.45 |
3: glmnet | 40.86 |
4: XGB 3 | 63.32 |
4+ xG XGB 9 | 89.01 |
xG Review | CBJHAC '20
28
Takeaways
Objectives
Data
Time / Performance Tradeoff
Future
xG Review | CBJHAC '20
29
References
http://hockeyanalytics.com/Research_files/Shot_Quality.pdf
http://hockeyanalytics.com/Research_files/SQ-DistAdj-RS0809-Krzywicki.pdf
http://hockeyanalytics.com/Research_files/SQ-RS0910-Krzywicki.pdf
http://www.hockeyanalytics.com/Research_files/DIGR_Schuckers.pdf
https://www.arcticicehockey.com/2011/6/15/2224920/a-look-at-shot-quality
http://moneypuck.com/about.htm
https://rstudio-pubs-static.s3.amazonaws.com/311470_f6e88d4842da46e9941cc6547405a051.html
http://www.crowdscoutsports.com/game-theory/expected-goal-xg-model/
http://fooledbygrittiness.blogspot.com/2018/01/expected-goals-model.html
http://fooledbygrittiness.blogspot.com/2018/03/evaluating-my-shooter-xg-model.html
https://rpubs.com/evolvingwild/395136/
Thank You!