Giter VIP home page Giter VIP logo

big-data-cup-2022's Introduction

Pass Analysis in Olympic Women's Ice Hockey

Published by Alon Harell(@picagrad), Robyn Ritchie (@ritchi12), and Phil Shreeves (@pshreeves)
Repository containing data and code for our submission to the 2022 Big-Data-Cup at the 2022 Ottawa Hockey Analytics Conference (#OTTHAC22).
See our full submission on https://arxiv.org/pdf/2205.13678.pdf.

Pass Analysis

All examples and plots here are taken from the following play:
Full Pass - No Metrics
We divide the ice into triplets of time an location based on our puck motion model:
All time-location triplets
Next, we calculate rink control at all triplets:
Rink Control

From here we begin using our probabilistic passing model to create some more specific metrics such as:
Scoring Probability and Location Value
Conditional Location Value and Best Case Pass Value
Location Pass Value and Expected Pass Value

Using these, we go over the entire dataset to produce our summary metrics:
Passer Decision Making
Overall Passer Performance

Requirements

For reading the data we use a jupyter notebook on python. Some basic requirements (older version will likely work just as well):

  • Python3 : 3.9.7
  • Pandas: 1.4.2
  • Numpy: 1.22.3
  • IPython: 8.2.0
  • ipykernel: 6.12.1

The R code is self contained and will install all necessary packages if run in RStudio version 4.2.0

Usage

Main files

Data_Clean.ipynb contains all of the data reading and filtering, as well as calculations of speed and angle, and saves a JSON file to be opened by the R code.
BDC_2022_inR.Rmd allows loading, analyzing, and producing the majority of plots for any one specific play.
BDC_PassModel.Rmd contains the code analyzing each play at multiple passing speeds, for the entire dataset.

Auxiliary Code

hockey_pipeline.R contains the majority of our models and auxilliary functions.
interactive_plot.R contains auxilliary code for plotting our summary statistics.

big-data-cup-2022's People

Contributors

ritchi12 avatar picagrad avatar bigdatacup avatar

Stargazers

FzForecast avatar Tim Keller avatar Benjamin Howell avatar Saiem Gilani avatar Edd Webster avatar Matthew Barlowe avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mcbarlowe herbsi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.