Monday, 22 September 2014

Year to Year Repeatability of New Goalie Stats

For as long as people have been analyzing hockey, goalies in particular have been difficult to analyze. Based on what information has been available to the masses up until now, it has been extremely difficult to get an accurate read on a goalie's abilities until they see a large amount of action. Metrics in evaluating goalie performance to date have ranged from awful (wins and GAA) to informative but unpredictable (SV%). However, a new hockey statistics site called War-On-Ice has released data that has been able to further break down a goalies SV% into more detailed categories depending on the shot location data provided by the NHL. Their four new stats (and one more classic stat) are as follows:
  • Low Save Percentage
  • Medium Save Percentage
  • High Save Percentage 
  • Adjusted Save Percentage
  • UnAdjusted Save Percentage (technically not new since it's just basic SV%)
While these new metrics are definitely very descriptive and informative I really wanted to test the predictive value in goalie projections. That is, if a goalie posted a .900 SV% in a certain category last year, what should we expect them to get next year?
Save Percentage Zones via war-on-ice.com
The picturing above shows the zone breakdown for each of these stats:
  • Blue = high percentage shots (SvPctHigh)
  • Red = medium percentage shots (SvPctMedium)
  • Yellow = low-percentage shots (SvPctLow)
Here is the breakdown of how these stats matched up versus one another from one season to the next. (Regression line in red)


Well, that wasn't very informative. We see very little correlation from one season to next regardless if you're treating every shot as equal (Unadjusted SV%) or break each shot down by it's general degree of difficulty (Low, Med, High SV%). I had high hopes for Adjusted Save% too (especially after I first ran these numbers and found some interesting results before realizing I had completely screwed up my data, idiot).

Adjusted Save% is still quite interesting in my eyes as explained in the War-On-Ice Glossary:
AdjustedSvPct: The weighted average of Low, Medium and High Save Percentages, as weighted by the league average frequency of each shot type. Compare to statistical benchmarking -- correcting a simple random sample for known stratification issues.
And from one of the creators, A.C. Thomas:
Here's a table with the results (we want RSQ to be close to 100% and p-value to be less than 0.05):


Type Count Shots Faced AdjustedRSQ RSQ p-value
UnAdjusted 99 >1500 1.72% 0.70% 0.196
Adjusted 99 >750 0.11% 1.14% 0.294
Low 77 >500 2.02% 3.31% 0.1134
Med 80 >300 -0.14% 1.13% 0.3482
High 103 >200 7.81% 8.71% 0.00247

**The Count column is simply the number of observances for each type of Save%. Shots faced is the arbitrary number of shots I made as a cut off point. Ex. For a goalie's LowSvPct to be counted, they would have to have faced more than 200 shots from the designated Low area of the ice in back-to-back years. This happened 77 times between 2008 and 2014 or an average of ~15 goalies per pair of years. Also, these stats are just even-strength (5v5).

The best results here were clearly for SvPctHigh, which is for shots directly in front of the next (in the slot). While the correlation is still small, it seems better than most results we see when it comes to goalie metrics. So maybe there is a little something to a goalies ability to defend a likely scoring chance.

Obviously, when using this method you observe some survivor bias as goalies who see lots of action in back-to-back years will tend to be of the higher caliber to begin which can result in some bias. Maybe I will revisit this later and try to simply weight goalies based on their shots faced instead of simply ignoring those below an arbitrary threshold. Until then, it seems like goalies will remain one of hockey's greatest enigmas. 

Thursday, 21 August 2014

Drafting Strategies - Reaches vs. Fallers



Yes, I am aware this isn't the timeliest of articles but please bear with me. If you have ever watched any televised professional sports draft you will probably have noticed that there are always players who seem to be "reaches" or players who seem to "fall" on draft day. What makes a player a "reach"? A reach would be a player like Derrick Pouliot in the 2012 NHL Entry Draft. Pouliot was ranked 17th in TSN's Rankings but the Pittsburgh Penguins stepped to the podium and selected him with their 8th pick. That's a fairly substantial jump. Opposite of that, we have the fallers. What is a faller? Look no further than Teavo Teravainen from that very same draft. Ranked 7th heading into the draft, Teavo had to wait til the 18th pick before he was snatched up by the Chicago Blackhawks (all TSN Rankings used in this article can be found here).

What I am attempting to do here is try and find if one strategy is really more effective than the other. Should you trust your gut and draft the guy that you know everyone has ranked lower than this spot? Should you be genuinely tempted to grab that player that everyone seems to be passing on? At the end of the day I expect each team to stick with their guns and draft the play highest on their own list. But maybe it wouldn't hurt however for teams look at what other people think and ask themselves "Are we way off on this?"

Let's pretend for a second that it's the 2005 NHL Entry Draft and you're the San Jose Sharks with the 8th overall pick. You're really high on this winger from the WHL named Devin Setoguchi which is great and all except he is ranked 26th overall (in hindsight you can do a lot worse with a first round pick than Setoguchi but this example still works). But you take a second to look at some other rankings and notice TSN has this Slovenian centre by the name of Anze Kopitar ranked 5th overall, interesting. In the end the Sharks stuck to their gut and drafted Setoguchi, leaving Kopitar to be snatched by the Kings at 11th overall and well the rest is history. This exercise was to help dive into that decision making process and see if history can teach us anything:
The x-axis of this histogram ranges from reaches to fallers (left to right) and gives us a good idea of team drafting patterns. Team's aren't afraid to take slight reaches (as seem by the highest column slightly to the left of 0) but aren't as eager to pick up players who seem to being falling as noted by the more spread out pattern to the right of the 0. If you aren't really up to speed with histograms, learn more here.
This looks at total games played by each player picked in the 1st round between 2004-2009 excluding goaltenders. Nothing really new to see here other than of course how many "sure things" never end up cracking the NHL.

Multiple R-squared:  0.0663 - 6.63%
Adjusted R-squared:  0.06057 - 6.06%
p-value: 0.0008414

So the correlation isn't the strongest here (shown by the R^2 value) which I would have guessed just based on looking at the scatter plot. Interesting though, is the p-value being significantly less than 0.05 (you can brush up on p-values here). Essentially what we can differ from these results is that there isn't a strong correlation (shown with the low R^2), ex. just because you fall X spots doesn't mean you'll play Y amount of NHL games. There is however, some significance between a player who is a faller and one that is a reach.

Of course using simply GP as a measure of a successful draft pick is hardly fair when you simply consider that a player drafted in 2004 will by default have a higher chance of playing more games than a player drafted in 2009. So another method I used to tackle this issue is by dividing the players into separate bins based on the difference between where they were ranked and where they were selected (explained below the table).

Bins Count Average GP % Success Avg Diff
Fallers 1-20% 33 88.64 27.27% 17.42
21-40% 33 250.73 66.67% 4.76
41-60% 33 315.30 81.82% 0.79
61-80% 33 286.82 78.79% -0.70
Reaches 81-100% 33 173.94 57.58% -2.00
Fallers > 5 46 117.91 45.45% 14.39
> 0 and < 5 41 131.83 96.97% 2.34
0 27 348.00 69.70% 0.00
> -5 and < 0 39 222.59 78.79% -2.38
Reaches < -5 12 179.00 21.21% -9.92

  • Bins - I grouped the players based on how high or low they were taken relative to their TSN Ranking
    • 1-20% bin holds the 33 biggest fallers, while the 81%-100% bin holds the 33 biggest reaches
    • The 2nd set of bins holds players based on an arbitrary cutoff point I came up with, ex.  >5 contains the 46 players who were taken at least 6 spots below their TSN Ranking
  • Count - How many players qualify for each bin
  • Average GP - Average NHL Games Played by the players in that bin
  • % Success - # of players to play at least 100 NHL Games in that bin / Total players in that bin
  • Avg Diff - Average difference between where the player was ranked and where they were drafted; + means faller while - means a reach.
Some quick observations of the chart, the high % Success of slight fallers in the "> 0 and < 5" bin are probably due to players like Seth Jones, who was ranked 2nd but taken 4th so while technically he fell in the draft everyone is pretty sure a player of that caliber will become a successful NHL player. Reaches of 5 spots of more seem to have very suspect returns, with only 1 out of every 5 players turning into successful NHL players, same as the 33 largest fallers who had a 1 in 4 success rate.

I think if anything, what this exercise has can help show is that maybe consensus rules above all. Thinking of being bold and grabbing the dark horse no one else is even considering? Maybe there is a legitimate reason most aren't considering them. See that hot shot prospect seemingly passed on by every other squad? Maybe there is a reason for that too. All that said, it doesn't mean you shouldn't be afraid to stick with your guts. There are guys who fell 6 spots and turned out pretty great (Kopitar, Zajac). Similarly, there are also guys who would be considered reaches who have turned out pretty well themselves (Karlsonn, Eberle, Couture). There is no golden rule when it comes to drafting but each piece of the puzzle can only help make the picture that much clearer. 

Reach me at on Twitter @DTMAboutHeart or email me at DTMAboutHeart@gmail.com

Monday, 26 May 2014

NHL Entry Draft - Drafting Goalies in the Late Rounds

With the NHL Entry Draft right around the corner its always great to speculate and ponder the upcoming prospects. I've recently stumbled upon two draft related posts that got me interested in thinking about how we evaluate these up and comers (check out this awesome post that pits the Vancouver Canucks scouting department versus a potato and this post that looks at the high success of offensive defencemen).

I am slowly growing my database of NHL Draft data (if someone reading this has their own database of prospect stats and wouldn't mind sharing, please contact me). I decided to look at goalies selections in the NHL draft, mostly because I haven't seen much done on the subject.

Below is a chart I created of goalies drafted between 1997 and 2006 (I chose this time frame in hopes to keep the sample relatively modern while still giving them ample time to crack an NHL roster).

I define success as the goalie having played at least 100 NHL games as of the end of the 2014 season. The tier's section sorts the goalies by what round they were drafted:
  • Top - Rounds 1-3
  • Middle - Rounds 4-6 (pre-lockout) Rounds 4-5 (post-lockout)
  • Bottom - Rounds 7-9 (pre-lockout) Rounds 6-7 (post-lockout)

I highlighted the most striking observation in that chart. (Sorry if the formatting is confusing).

TierLeaguePlayersSuccessBustsSuccess Rate
TopTotal85275831.76%
CHL44143031.82%
Not CHL41132831.71%
MiddleTotal10110919.90%
CHL4654110.87%
Not CHL555509.09%
BottomTotal959869.47%
CHL340340.00%
Not CHL6195214.75%
Total2814623516.37%

No goalie who played their draft eligible season in the CHL (OHL, WHL, QMJHL) between 1997 and 2006 and was drafted in the later rounds of the draft has ever managed to play 100 NHL games.

The 2 Non-CHL goalies were Brian Elliott (Ajax-OPJHL) and Scott Clemmensen (Des Moines).

The other 7 were all Europeans: Henrik Lundqvist, Pasi Nurminen, Cristobal Huet, Martin Gerber, Fredrik Norrena, Jaroslav Halak, Pekka Rinne.

Why is this the case? I really don't know. Maybe all of the CHL prospects are so highly scouted and scrutinized it's harder to steal a future contributor in the later rounds. If I am running a draft table however, I am definitely leaning towards taking a European goalie with those late round picks. 

If you have any theories let me know, I will be looking into more NHL draft material in the upcoming weeks.

Wednesday, 7 May 2014

Lucky vs. Good Matrix

In any NHL season, there is considerable amount of luck involved that is played out on the ice and therefore becomes translated to the standings. The concept of luck in sports is a tricky one for most casual fans to fully grasp. Most people accept that luck plays a real role in the outcomes of games but what forms that luck comes in and how prevalent it is can be widely debated. Hockey is a game involving so many dynamic elements all occurring simultaneously, when it is put so eloquently by Brendan Shanahan it isn't too hard imagine why some aspects can be out of an individual's direct control:
But we need to put all this together while moving at high speeds on a cold and slippery surface while 5 other guys use clubs to try and kill us, oh yeah did I mention that this whole time we're standing on blades 1/8 of an inch thick? Is ice hockey hard? 
Sometimes the bounces will cancel each other out in the long run, sometimes they don't. Yes, playing an 82 game season helps even out the ups and downs, but not always. Too many fans still get suckered into starring at the standings and thinking that a teams point totals are a good indicator of how strong that team is. With this matrix I have created you, hopefully you can gain an idea of what teams were for real this past season and which were mere illusions.

***
If you aren't interested in the methodology just skip to the next set of asterisks.

The skill portion of this matrix is fairly straight forward. I chose 5on5 Close FF% as a proxy for possession for fairly obvious reasons, mainly due to how closely it trends towards actually possession numbers. For those of you who may not be aware, controlling possession has been shown to be not only a very repeatable and consistent skill but also a very good predictor of future success.

The luck aspect of this matrix is much more open for variation and discussion. Using Rob Vollman's Team Luck calculator I was able to come up with a value based on five different luck attributes. Each of these attributes was able to be rated on a range of 1-5 (1 meaning irrelevant and 5 being extremely important). The actual luck score that each team received is an arbitrary number essentially but is good for being able to compare teams on the same scale. Here are each of the attributes and how I weighted each of them:

PDO 4/5 - PDO is the sum of a team's SV% and SH%. We know that PDO tends to trend towards 100 therefore we can conclude that any team with a PDO>100 is more likely to be riding an unsustainable hot streak and a team with PDO<100 should start to see the puck bouncing their way soon enough. This is probably the most widely accepted form of luck in the current NHL and was weighted highly accordingly.

Special Teams Index (STI) 2/5 - STI, like PDO is a combination stat in which you sum a teams PP% and their PK%. The same methodology of regressing towards a score of a 100 applies as with PDO. I rated this slightly less because while I believe there are some hot and cold streaks with regards to special teams, some teams via either coaching systems or player availability can maintain some outlier percentages.

Cap Hit of Injured Player (CHIP) 3/5 - CHIP is a metric provided by Springing Malik, which essentially helps us quantify the amount a team has been hurt by injuries during the season. It accounts for the how many games were missed by a player based and uses that player's Cap Hit to determine the value of that player to their team. It isn't a perfect metric for quantifying how detrimental each injury is to a team but it's still pretty good, therefore it gets a middle of the road ranking.

Post-Regulation Record 4/5 - The shootout and 5 minutes of OT have been shown to essentially be nothing more than a flip of a coin. While there is some skill in play via differentiating certain players and goalies the eventual outcome of these situations involves a ton of luck.

Record in One-goal Games 3/5 - It has been shown that winning games by only one goal isn't a very good indicator of a teams ability and that teams who have been lucky enough to come out on top in these tight games did so mainly due to the bounces going their way.


***

Legend

Quadrants Playoffs
Good and Lucky 9/10
Good and Unlucky 3/7
Bad and Lucky 4/5
Bad and Unlucky 0/8

X-Axis: 5on5 Close FF% (Fenwick for percentage) - Farther to the right = Better team
Y-Axis: Calculated Luck Score - Closer to the top = Lucky



Some thoughts on the results:

  • Good and Lucky - The only team from this section not to make the playoffs was the Yotes who in reality were just barely a positive possession team with very low levels of luck anyways so it isn't crazy to see them not in the playoff picture.
  • Good and Unlucky - The Devils are probably the most interesting team in this subsection. Despite sterling possession numbers they were unable to overcome some of the worst bounces in the league this season. Another observation, the Red Wings snuck into the playoffs while the Canucks couldn't despite their equal unluckiness and Canucks better position might be more due to finding themselves in a much more difficult conference.
  • Bad and Lucky - I was definitely surprised to see 80% of the teams in this category sneaking into the playoffs. Colorado had an absurdly lucky season which makes up for their defects. The Wild, Canadiens and Flyers were not too bad possession so they aren't too much of a stretch. The Leafs were just awful despite having the 5th best luck overall.
  • Bad and Unlucky - Bad teams with no bounces going their way, tough to have much success with a formula like that. 

Saturday, 19 April 2014

NHL Goaltending - Best Friend or Worst Enemy

“Goaltending is 75 percent of your hockey team, unless you don't have it. Then it's 100 percent.” – Harry Neale

Goaltending can make or break a hockey team. Every season there will be a handful of men between the pipes dragging their teams into the playoffs and typically just as many who will will cost their teams an invite to the big dance.

For those of you who are unaware, goalies can be wildly inconsistent. A goalies SV% tends to vary quite largely from year-to-year. Even better evaluators of true talent such as ESSV% or RoadSV% will rise and fall from year to year.

Ottawa Senators are possibly the most recent poster boy for the reality of goaltending inconsistency. The Senators have seen their goalies SV% plummet from an absurd .935 to a below-average .908. How could this happen? Did Anderson and Lehner suddenly forget how to play goalie? Probably not. What probably did happen however was a brutal form of regression. Essentially, Anderson and Lehner's stats came hurling back to earth. So how good are they really then? Are they .935% goalies? Probably not. Are they .908? Probably not that either. The answer most likely lies somewhere in the middle. 

In this analysis, I hope to show what the league would have looked like this year had some goalies not played as amazing as they did (ex. Varlamov) or not as poorly as they did (ex. Dubnyk). 

The method for my research came from the idea posted by Phil Birnbaum:

Roughly speaking, that means you can expect 25% of a goalie's difference from the mean to be repeated next year. Put another way, you have to regress the goalie 75% towards the mean.

Yes, that's not as much as you'd expect. By that calculation, if the average save percentage is .904, and goalie X comes in one season at .924, you'd expect next year he'd be at .909 -- one quarter of the distance between .904 and .924.
The basics of what I did was look at every NHL goalie who had faced about 900 shots (or about 35 games played), and regressed their save percentage 75% towards the mean. The reason I chose to do this and not just set everyone at league average is because I believe this is a better reflection of what a team should realistically expect from them their individual goalie.

I then calculated how many more goals you would expect a goalie to either surrender or save for the given season. Finally, I gave a team 1 point for every 3 more goals saved and vice-versa.

Here are my results...


TeamOfficial PointsGoalie Regression Points+/- PTSOriginal League StandingsRegressed League Standings+/- Standings
WINNIPEG8489522175
EDMONTON6771428280
OTTAWA8890219154
NY ISLANDERS7981226242
FLORIDA6668229290
DETROIT9394114122
NEW JERSEY8889119172
NASHVILLE8889119172
ANAHEIM1161171211
SAN JOSE1111121431
CALGARY7778127270
NY RANGERS9696012102
WASHINGTON9090017152
LOS ANGELES1001000981
PHOENIX8989018171
BOSTON1171170110
MINNESOTA9897-11192
PITTSBURGH109108-1651
CHICAGO107106-1761
VANCOUVER8382-124231
ST LOUIS111110-1440
PHILADELPHIA9493-11314-1
DALLAS9189-21617-1
BUFFALO5249-330300
TORONTO8481-32224-2
CAROLINA8380-32426-2
COLUMBUS9389-41417-3
TAMPA BAY10196-5810-2
MONTREAL10094-6912-3
COLORADO112105-737-4

As you can see, Varlamov and Price both had huge season for Colorado and Montreal respectively. These new league standings have Montreal sliding down to a wildcard spot and Colorado sliding down to 3rd in the Central. While Winnipeg once again suffered a severe case of Pavelectricity keep them out of a potential 4 way tie for the final wildcard spot in the West.

The results show what I think many would agree with, some teams benefited highly from their goalies while others really suffered. While this helps us more or less neutralize the effects of a particularly strong or weak season by a particular goalie it doesn't totally level the playing field, keeping individuality live and well.


***Notes***
  • I only chose goalies fitting my 900 shots or about 35 games played just to eliminate as many small sample sizes as possible
  • I didn't run this regression for Henrik Lundqvist and Tuukka Rask, simply based on the fact that these two have yet to post non-elite numbers so I felt it unfair to hurt either of them on the basis that we shouldn't expect much regression at all
  • Minnesota didn't have any goalies who fit my minimum requirement therefore I simply ran the regression for their team average