hockey in space!statsportsconsulting.com/main/wp-content/uploads/... · devan becker university of...

23
Hockey in Space! Hockey in Space! Characterizing team-wise differences in shot locations with spatial point processes Devan Becker The University of Western Ontario [email protected] September 16, 2018 Devan Becker University of Western Ontario 1 / 20

Upload: others

Post on 13-Oct-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!

Hockey in Space!Characterizing team-wise differences in shot locations with

spatial point processes

Devan BeckerThe University of Western Ontario

[email protected]

September 16, 2018

Devan Becker University of Western Ontario 1 / 20

Page 2: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!Introduction

Introduction

Devan Becker University of Western Ontario 2 / 20

Page 3: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!Introduction

The Data

Devan Becker University of Western Ontario 3 / 20

Page 4: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!Introduction

2017-2018 Season Shot Locations

All Shots, Detroit All Shots, Tampa Bay

Devan Becker University of Western Ontario 4 / 20

Page 5: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!Introduction

2017-2018 Season Shot Hexbins

## Coordinate system already present. Adding new coordinate system, which will replace the existing one.## Coordinate system already present. Adding new coordinate system, which will replace the existing one.

Devan Becker University of Western Ontario 5 / 20

Page 6: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!Introduction

2017-2018 Season Shot Density

Devan Becker University of Western Ontario 6 / 20

Page 7: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!Introduction

Objective

Fit a parametric statistical model to determine:

• Where do different teams shoot from?• Are the patterns consistent? (Variance!)• Which shots go in?• What can goalies expect?

Devan Becker University of Western Ontario 7 / 20

Page 8: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!LGCP

LGCP

Devan Becker University of Western Ontario 8 / 20

Page 9: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!LGCP

Log-Gaussian Cox Processes (Yay math!)

log(Λ(x , y)) = µ+ βC(x , y) + S(x , y)

The log of the rate of points in a given location is modelled as anintercept plus a spatial covariate plus a random process.

• “Random” doesn’t mean unstructured!• The random process is a smooth function based on the normal

distribution.

Devan Becker University of Western Ontario 9 / 20

Page 10: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!LGCP

Log-Gaussian Cox Processes (Yay math!)

log(Λ(x , y)) = µ+ βC(x , y) + S(x , y)

The log of the rate of points in a given location is modelled as anintercept plus a spatial covariate plus a random process.

• “Random” doesn’t mean unstructured!• The random process is a smooth function based on the normal

distribution.

Devan Becker University of Western Ontario 9 / 20

Page 11: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!LGCP

Variance and Clustering (Simulated)

−2

−1

0

1

2

Diff

Low Variance, Small Clusters

−2

−1

0

1

2

Diff

High Variance, Small Clusters

−2

−1

0

1

2

Diff

Low Variance, Large Clusters

−2

−1

0

1

2

Diff

High Variance, Large Clusters

Devan Becker University of Western Ontario 10 / 20

Page 12: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!LGCP

League Average as a Spatial Covariate

Devan Becker University of Western Ontario 11 / 20

Page 13: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!LGCP

League Average as a Spatial Covariate

Our interpretation becomes:

log(Λ(x , y)) = µ+ C(x , y) + S(x , y)

The log of the rate of shots is modelled as an intercept plus theleague average plus a team specific deviation.

• S(x , y) can be seen as the intended strategy difference.• The variance and range illustrate the team’s consistency.

Devan Becker University of Western Ontario 12 / 20

Page 14: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!LGCP

League Average as a Spatial Covariate

Our interpretation becomes:

log(Λ(x , y)) = µ+ C(x , y) + S(x , y)

The log of the rate of shots is modelled as an intercept plus theleague average plus a team specific deviation.

• S(x , y) can be seen as the intended strategy difference.• The variance and range illustrate the team’s consistency.

Devan Becker University of Western Ontario 12 / 20

Page 15: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!LGCP

Estimation of LGCP

oh no

Devan Becker University of Western Ontario 13 / 20

Page 16: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!LGCP

Estimation of LGCP

oh no

Devan Becker University of Western Ontario 13 / 20

Page 17: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!Results

Results

Devan Becker University of Western Ontario 14 / 20

Page 18: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!Results

Random Processes - S(x,y)

−0.1 0.0 0.1 0.2 0.3Diff

Diff. from League − Detroit

−0.5 0.0 0.5 1.0Diff

Diff. from League − Tampa Bay

Devan Becker University of Western Ontario 15 / 20

Page 19: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!Results

Variance at Every Location

0.08 0.10 0.12SD

SD − Detroit

0.15 0.20 0.25SD

SD − Tampa Bay

Devan Becker University of Western Ontario 16 / 20

Page 20: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!Results

All Results - Shiny App

Devan Becker University of Western Ontario 17 / 20

Page 21: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!Results

Limitations

• Differences from league are often minor

• One dense cluster means small clusters estimated everywhere

• Needs a lot of data• Can’t just look at one team’s goals

Devan Becker University of Western Ontario 18 / 20

Page 22: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!Results

Final Notes

Conclusions• This method can indicate the manifested strategy• Variance and cluster size indicate a teams consistency

• Careful interpretation

Future Work• Different play types (e.g. first shot after possession)• Statistical comparison of teams• Spatially varying range parameter• All the things that the audience suggests

Devan Becker University of Western Ontario 19 / 20

Page 23: Hockey in Space!statsportsconsulting.com/main/wp-content/uploads/... · Devan Becker University of Western Ontario 1/20. Hockey in Space! Introduction Introduction Devan Becker University

Hockey in Space!Results

Acknowledgments

Thank you to my supervisors: Doug Woolford, Charmaine Dean,and W. John Braun

Thanks for funding:

Thanks for listening! Any further questions: [email protected]

Devan Becker University of Western Ontario 20 / 20