JOHN SCOTT AND… OTHERS: THE 2016 NHL ALL-STAR GAME
Annika Balk
MTH412
“NHLSTATS” Data Set in R
Points of Players From the 2016 NHL All-Star Game
Buffalo Native Patrick Kane
Buffalo Native Patrick Kane
2016 All-Star MVP John Scott
This is John Scott
Amassing only 1 point and playing only 11 games Scott made it to the game and won every fan over.
Question Posed: Is the observed difference in points between the Eastern and Western Conference Statistically Significant?
H0: µE= µW
HA: µE< µW
Question Posed: Is the observed difference in points between the Eastern and Western Conference Statistically Significant?
H0: µE= µW
HA: µE< µW
To see if John Scott impacted this question I resampled the data with and without him by removing his data point in my R “NHLSTATS” dataset.
First I subset the data into East and West
Atlpt <- POINTS[DIVISION == "Atlantic"]
Metpt <- POINTS[DIVISION =="Metropolitan"]
pte <- sum(Atlpt, Metpt)
meaneast <- pte/18
Observed mean of Eastern Conference:
57.5
Pacpt <- POINTS[DIVISION == "Pacific"]
Cenpt <- POINTS[DIVISION == "Central"]
ptw <- sum(Pacpt, Cenpt)
meanwest <- ptw/18
Observed mean of Western Conference:
63.94
So our observed test statistic of (meanwest- meaneast) is 6.44
First I subset the data into East and West
Atlpt <- POINTS[DIVISION == "Atlantic"]
Metpt <- POINTS[DIVISION =="Metropolitan"]
pte <- sum(Atlpt, Metpt)
meaneast <- pte/18
Observed mean of Eastern Conference:
57.5
Pacpt <- POINTS[DIVISION == "Pacific"]
Cenpt <- POINTS[DIVISION == "Central"]
ptw <- sum(Pacpt, Cenpt)
meanwest <- ptw/18
Observed mean of Western Conference:
63.94
So our observed test statistic of (meanwest- meaneast) is 6.44
But is this by random chance?
In R for Resample…
Fail to reject
Question Posed: Is the observed difference in points between the Eastern and Western Conference Statistically Significant?
H0: µE= µW
HA: µE< µW
Now John Scott has been removed
Subset data without Scott
Atlpt <- POINTS[DIVISION == "Atlantic"]
Metpt <- POINTS[DIVISION =="Metropolitan"]
pte <- sum(Atlpt, Metpt)
meaneast <- pte/18
Observed mean of Eastern Conference:
57.5
Pacpt <- POINTS[DIVISION == "Pacific"]
Cenpt <- POINTS[DIVISION == "Central"]
ptw <- sum(Pacpt, Cenpt)
meanwest <- ptw/17
Observed mean of Western Conference:
67.65
So our observed test statistic of (meanwest- meaneast) is 10.15
*To remove Scott in R:
NHLWOJS <- NHLSTATS[-32,]
attach(NHLWOJS)
Subset data without Scott
Atlpt <- POINTS[DIVISION == "Atlantic"]
Metpt <- POINTS[DIVISION =="Metropolitan"]
pte <- sum(Atlpt, Metpt)
meaneast <- pte/18
Observed mean of Eastern Conference:
57.5
Pacpt <- POINTS[DIVISION == "Pacific"]
Cenpt <- POINTS[DIVISION == "Central"]
ptw <- sum(Pacpt, Cenpt)
meanwest <- ptw/17
Observed mean of Western Conference:
67.65
So our observed test statistic of (meanwest- meaneast) is 10.15
But is this by random chance?
In R for Resample…
Conclusions
Bootstrap of Mean Points John Scott included
95% Confidence Interval Of Points
Bootstrap CI
Theory Calculation CI
Theory matched the bootstrap sample!
*John Scott included in both calculations
THANK YOU!