STA319 project
table describes Jazz team stats
| Result | mScore | sdScore | mFouls | sdFouls | mFG% | sdFG% | mSteals | sdSteals | m3Pt% | sd3Pt% |
|---|---|---|---|---|---|---|---|---|---|---|
| Losses | 109.1 | 10.0 | 18.6 | 3.5 | 44.4 | 5.0 | 6.6 | 2.2 | 34.0 | 7.4 |
| Wins | 122.6 | 11.2 | 20.2 | 4.3 | 50.2 | 3.3 | 7.4 | 3.6 | 39.8 | 6.5 |
Call:
lm(formula = team_score ~ . - team_winner - result, data = Jazz)
Residuals:
Min 1Q Median 3Q Max
-13.1403 -3.8188 -0.2667 4.6312 13.7763
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -25.66150 11.24290 -2.282 0.02546 *
field_goal_pct 1.20912 0.19690 6.141 4.23e-08 ***
free_throw_pct 0.21421 0.07273 2.945 0.00436 **
three_point_field_goal_pct 0.29988 0.12005 2.498 0.01481 *
total_rebounds 0.54691 0.09320 5.868 1.29e-07 ***
blocks -0.12825 0.32260 -0.398 0.69214
fouls 0.32531 0.20051 1.622 0.10915
technical_fouls 0.42196 1.06574 0.396 0.69334
assists 0.66042 0.21597 3.058 0.00314 **
team_turnovers 1.57303 0.85646 1.837 0.07045 .
steals 0.96985 0.28600 3.391 0.00114 **
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 6.265 on 71 degrees of freedom
Multiple R-squared: 0.7435, Adjusted R-squared: 0.7074
F-statistic: 20.59 on 10 and 71 DF, p-value: < 2.2e-16
Backward Elimination Method
---------------------------
Candidate Terms:
1. field_goal_pct
2. free_throw_pct
3. three_point_field_goal_pct
4. total_rebounds
5. blocks
6. fouls
7. technical_fouls
8. assists
9. team_turnovers
10. steals
Variables Removed:
=> technical_fouls
=> blocks
No more variables to be removed.
Stepwise Summary
---------------------------------------------------------------------------
Step Variable AIC SBC SBIC R2 Adj. R2
---------------------------------------------------------------------------
0 Full Model 545.843 574.724 NA 0.74354 0.70742
1 technical_fouls 544.024 570.498 NA 0.74298 0.71085
2 blocks 542.197 566.264 NA 0.74243 0.71421
---------------------------------------------------------------------------
Final Model Output
------------------
Model Summary
---------------------------------------------------------------
R 0.862 RMSE 5.843
R-Squared 0.742 MSE 34.137
Adj. R-Squared 0.714 Coef. Var 5.534
Pred R-Squared 0.670 AIC 542.197
MAE 4.861 SBC 566.264
---------------------------------------------------------------
RMSE: Root Mean Square Error
MSE: Mean Square Error
MAE: Mean Absolute Error
AIC: Akaike Information Criteria
SBC: Schwarz Bayesian Criteria
ANOVA
---------------------------------------------------------------------
Sum of
Squares DF Mean Square F Sig.
---------------------------------------------------------------------
Regression 8068.787 8 1008.598 26.303 0.0000
Residual 2799.225 73 38.346
Total 10868.012 81
---------------------------------------------------------------------
Parameter Estimates
---------------------------------------------------------------------------------------------------------
model Beta Std. Error Std. Beta t Sig lower upper
---------------------------------------------------------------------------------------------------------
(Intercept) -25.107 11.068 -2.269 0.026 -47.165 -3.049
field_goal_pct 1.195 0.193 0.542 6.195 0.000 0.810 1.579
free_throw_pct 0.211 0.072 0.187 2.948 0.004 0.068 0.354
three_point_field_goal_pct 0.300 0.118 0.195 2.543 0.013 0.065 0.535
total_rebounds 0.539 0.087 0.394 6.204 0.000 0.366 0.712
fouls 0.326 0.198 0.106 1.649 0.103 -0.068 0.721
assists 0.670 0.212 0.236 3.160 0.002 0.248 1.093
team_turnovers 1.506 0.837 0.113 1.800 0.076 -0.161 3.173
steals 0.985 0.281 0.217 3.507 0.001 0.425 1.545
---------------------------------------------------------------------------------------------------------
Call:
lm(formula = team_score ~ . - team_winner - result - team_turnovers -
blocks - technical_fouls, data = Jazz)
Residuals:
Min 1Q Median 3Q Max
-12.9391 -4.4041 -0.2158 5.0600 12.4716
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -21.80646 11.07869 -1.968 0.052777 .
field_goal_pct 1.11752 0.19086 5.855 1.22e-07 ***
free_throw_pct 0.18945 0.07169 2.642 0.010038 *
three_point_field_goal_pct 0.31544 0.11931 2.644 0.010000 **
total_rebounds 0.52227 0.08763 5.960 7.93e-08 ***
fouls 0.40477 0.19598 2.065 0.042394 *
assists 0.73086 0.21267 3.437 0.000970 ***
steals 1.01740 0.28445 3.577 0.000618 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 6.285 on 74 degrees of freedom
Multiple R-squared: 0.731, Adjusted R-squared: 0.7056
F-statistic: 28.73 on 7 and 74 DF, p-value: < 2.2e-16
field_goal_pct free_throw_pct total_rebounds
field_goal_pct 1.00000000 -0.14527372 -0.16198406
free_throw_pct -0.14527372 1.00000000 -0.06607550
total_rebounds -0.16198406 -0.06607550 1.00000000
three_point_field_goal_pct 0.61663541 -0.02303050 -0.16895413
fouls 0.09269093 0.20476224 0.01583254
assists 0.52394656 -0.20804510 0.08391416
steals -0.11496909 0.08394028 -0.18577972
three_point_field_goal_pct fouls assists
field_goal_pct 0.61663541 0.09269093 0.52394656
free_throw_pct -0.02303050 0.20476224 -0.20804510
total_rebounds -0.16895413 0.01583254 0.08391416
three_point_field_goal_pct 1.00000000 0.11617270 0.35787732
fouls 0.11617270 1.00000000 -0.11477107
assists 0.35787732 -0.11477107 1.00000000
steals -0.03713163 0.04510188 -0.19333309
steals
field_goal_pct -0.11496909
free_throw_pct 0.08394028
total_rebounds -0.18577972
three_point_field_goal_pct -0.03713163
fouls 0.04510188
assists -0.19333309
steals 1.00000000
field_goal_pct free_throw_pct
2.060507 1.102779
three_point_field_goal_pct total_rebounds
1.659556 1.130419
fouls assists
1.106422 1.546002
steals
1.078517
Call:
lm(formula = team_score ~ (field_goal_pct + free_throw_pct +
total_rebounds + three_point_field_goal_pct + fouls + assists +
steals)^2, data = Jazz)
Residuals:
Min 1Q Median 3Q Max
-11.2548 -3.2767 0.5786 2.5839 16.1451
Coefficients:
Estimate Std. Error t value
(Intercept) 9.725e+01 1.124e+02 0.866
field_goal_pct 2.038e+00 2.854e+00 0.714
free_throw_pct -1.304e+00 1.368e+00 -0.954
total_rebounds 1.907e+00 1.259e+00 1.514
three_point_field_goal_pct 1.779e+00 2.659e+00 0.669
fouls -7.710e-01 3.279e+00 -0.235
assists -8.722e+00 3.712e+00 -2.349
steals 1.221e+00 5.214e+00 0.234
field_goal_pct:free_throw_pct -3.003e-02 1.924e-02 -1.561
field_goal_pct:total_rebounds -6.470e-02 2.912e-02 -2.222
field_goal_pct:three_point_field_goal_pct -6.938e-03 2.765e-02 -0.251
field_goal_pct:fouls 9.146e-02 6.326e-02 1.446
field_goal_pct:assists 1.453e-01 6.300e-02 2.307
field_goal_pct:steals -1.647e-01 9.257e-02 -1.780
free_throw_pct:total_rebounds -5.651e-04 9.494e-03 -0.060
free_throw_pct:three_point_field_goal_pct 7.657e-03 1.397e-02 0.548
free_throw_pct:fouls 1.686e-03 3.156e-02 0.053
free_throw_pct:assists 9.376e-02 2.505e-02 3.743
free_throw_pct:steals 1.443e-02 3.820e-02 0.378
total_rebounds:three_point_field_goal_pct 6.809e-03 1.662e-02 0.410
total_rebounds:fouls 6.168e-02 3.638e-02 1.695
total_rebounds:assists 2.736e-02 2.304e-02 1.188
total_rebounds:steals -7.381e-02 4.579e-02 -1.612
three_point_field_goal_pct:fouls -1.683e-02 4.274e-02 -0.394
three_point_field_goal_pct:assists -7.892e-02 4.770e-02 -1.655
three_point_field_goal_pct:steals 5.018e-02 6.135e-02 0.818
fouls:assists -2.366e-01 7.856e-02 -3.012
fouls:steals 1.053e-01 8.590e-02 1.226
assists:steals 2.257e-01 1.032e-01 2.188
Pr(>|t|)
(Intercept) 0.390651
field_goal_pct 0.478267
free_throw_pct 0.344614
total_rebounds 0.135877
three_point_field_goal_pct 0.506359
fouls 0.815020
assists 0.022570 *
steals 0.815755
field_goal_pct:free_throw_pct 0.124581
field_goal_pct:total_rebounds 0.030587 *
field_goal_pct:three_point_field_goal_pct 0.802847
field_goal_pct:fouls 0.154135
field_goal_pct:assists 0.025005 *
field_goal_pct:steals 0.080869 .
free_throw_pct:total_rebounds 0.952762
free_throw_pct:three_point_field_goal_pct 0.585816
free_throw_pct:fouls 0.957609
free_throw_pct:assists 0.000449 ***
free_throw_pct:steals 0.707146
total_rebounds:three_point_field_goal_pct 0.683686
total_rebounds:fouls 0.095872 .
total_rebounds:assists 0.240287
total_rebounds:steals 0.112899
three_point_field_goal_pct:fouls 0.695337
three_point_field_goal_pct:assists 0.103934
three_point_field_goal_pct:steals 0.417016
fouls:assists 0.003967 **
fouls:steals 0.225752
assists:steals 0.033097 *
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 5.599 on 53 degrees of freedom
Multiple R-squared: 0.8471, Adjusted R-squared: 0.7664
F-statistic: 10.49 on 28 and 53 DF, p-value: 3.032e-13
Adjusted R squared is 0.7759365
team_score field_goal_pct free_throw_pct three_point_field_goal_pct
Min. : 86.0 Min. :32.00 Min. :48.00 Min. :17.00
1st Qu.:104.2 1st Qu.:42.00 1st Qu.:72.25 1st Qu.:30.25
Median :111.5 Median :46.00 Median :80.00 Median :35.00
Mean :111.9 Mean :45.65 Mean :77.44 Mean :35.22
3rd Qu.:119.8 3rd Qu.:50.00 3rd Qu.:84.00 3rd Qu.:40.00
Max. :141.0 Max. :56.00 Max. :95.00 Max. :56.00
total_rebounds blocks fouls technical_fouls
Min. :23.00 Min. : 0.00 Min. :11.00 Min. :0.0000
1st Qu.:39.25 1st Qu.: 3.00 1st Qu.:17.00 1st Qu.:0.0000
Median :45.00 Median : 4.00 Median :19.00 Median :0.0000
Mean :45.41 Mean : 4.39 Mean :18.89 Mean :0.4268
3rd Qu.:50.75 3rd Qu.: 6.00 3rd Qu.:20.00 3rd Qu.:1.0000
Max. :63.00 Max. :11.00 Max. :30.00 Max. :2.0000
assists team_turnovers steals team_winner
Min. :16.00 Min. :0.0000 Min. : 3.000 Mode :logical
1st Qu.:23.00 1st Qu.:0.0000 1st Qu.: 5.000 FALSE:65
Median :25.00 Median :1.0000 Median : 6.500 TRUE :17
Mean :25.52 Mean :0.7561 Mean : 6.768
3rd Qu.:28.75 3rd Qu.:1.0000 3rd Qu.: 8.000
Max. :35.00 Max. :3.0000 Max. :14.000
result
Length :82
N.unique : 2
N.blank : 0
Min.nchar: 4
Max.nchar: 6
median Jazz statistics: field_goal_pct=46, free_throw_pct=80, total_rebounds=45, three_point_field_goal_pct=35, fouls=19, assists=25, steals=6.5. The model predicts a total score of 106, with a 95% conf. int. of 103.05, 108.68