Site icon R-bloggers

Cluster NHL Teams Based on 2012/13 Regular Season Performance

[This article was first published on Data Twirling » R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Since tonight kicks off Game 1 of the Stanley Cup Finals, I thought it would be fun to do a very quick and dirty cluster analysis of the league based on regular season performance.

Tonight, the Chicago Blackhawks square off against my hometown team, the Boston Bruins.  Even though it was a lockout-shortened season, the Blackhawks started off by playing 24 consecutive games without a loss.  Given this incredible start, I was eager to see how statistically similar the Bruins were relative to their opponent and other teams they faced in the playoffs.

The process is as follows:

Of course, all of this will be completed in my language of choice, R.

The image above shows 3 dendrograms using 3 different methods.

I will let you draw your own conclusions, but I find it interesting that:

Just in case you are trying to learn R, here is the code.

To leave a comment for the author, please follow the link and comment on their blog: Data Twirling » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.