NHL Stanley Cup Playoff predictions with R
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
.gitignore
LICENSE
Makefile
README.md
model.Rmd
model.html
predict.Rmd
predict.html
process.Rmd
process.html
scrape.Rmd
scrape.html

README.md

NHL Stanley Cup Playoff Predictions

This repository contains a set of scripts to make machine learning predictions for the Stanley Cup Playoffs. There is an associated blog post here. The process is split to five separate R Markdown documents for:

  1. Scrape raw data
  2. Process data
  3. Train models
  4. Make predictions

A Makefile is also included to compile all four documents. And if one of the source files is modified, to repeat only the affected parts of the analysis.

In principle one can reproduce the entire analysis simply by running make. However, please note that by default the data scraping will take more than 3.5 days to complete, and more feasible options are listed in the scraping document.