Simple Visualizations
13 Oct 2021Simple Visualizations
Question 1
Produce a histogram or barplot of shot types over all teams in a season of your choosing. Overlay the number of goals overtop the number of shots. What appears to be the most dangerous type of shot? The most common type of shot?
The most commom type of shot during the season 2016-2017 is the wrist shot with about 4100 goals and 42k saved shots (so about 46k shots in total).
The most dangerous type of shot for this season in terms of success rate is the deflected one with 211 goals over 884 saved shots.
However, the shot type which resulted in the most number of goals is again the wrist shot with 4096 goals.
Question 2
What is the relationship between the distance a shot was taken and the chance it was a goal? Produce a figure for each season between 2018-19 to 2020-21 to answer this. Has there been much change over the past three seasons?
We decided to bin the distance in order to switch from continuous to discrete data. There 90 bins in total so the distance interval of each is about 2 feet.
The plots below show the successs rate for each bin. For a particular bin, the success rate corresponds to the number of goals from this distance range divided by the total number of shots from there.
We decided to not show the bins but only the line fitting the y value of each bin for more readability.