This is my STA319 project.
The table below describes the team stats for the
| result | mean_score | sd_score | mean_fouls | sd_fouls | mean_field_goal_pct | sd_field_goal_pct | mean_steals | sd_steals | mean_3pt | sd_3pt |
|---|---|---|---|---|---|---|---|---|---|---|
| losses | 106.8 | 9.7 | 18.7 | 3.9 | 44.4 | 4.6 | 8.7 | 2.3 | 32.9 | 6.9 |
| wins | 116.5 | 8.0 | 19.7 | 3.3 | 48.0 | 4.0 | 10.4 | 2.5 | 36.7 | 8.1 |
Call:
lm(formula = team_score ~ . - team_winner - result, data = sixers)
Residuals:
Min 1Q Median 3Q Max
-16.4686 -2.9953 0.2517 3.6705 18.2941
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -4.75036 12.68003 -0.375 0.709050
field_goal_pct 1.02658 0.21105 4.864 6.69e-06 ***
free_throw_pct 0.16300 0.07417 2.198 0.031238 *
total_rebounds 0.47895 0.12609 3.798 0.000304 ***
three_point_field_goal_pct 0.54888 0.12048 4.556 2.11e-05 ***
blocks 0.31114 0.33049 0.941 0.349655
fouls 0.31420 0.20962 1.499 0.138322
technical_fouls 0.73134 0.94679 0.772 0.442414
assists 0.23973 0.19817 1.210 0.230414
team_turnovers -0.58047 0.81505 -0.712 0.478678
steals 0.47443 0.33073 1.434 0.155820
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 6.534 on 71 degrees of freedom
Multiple R-squared: 0.6404, Adjusted R-squared: 0.5897
F-statistic: 12.64 on 10 and 71 DF, p-value: 2.653e-12
Backward Elimination Method
---------------------------
Candidate Terms:
1. field_goal_pct
2. free_throw_pct
3. total_rebounds
4. three_point_field_goal_pct
5. blocks
6. fouls
7. technical_fouls
8. assists
9. team_turnovers
10. steals
Variables Removed:
=> team_turnovers
=> blocks
=> technical_fouls
No more variables to be removed.
Stepwise Summary
---------------------------------------------------------------------------
Step Variable AIC SBC SBIC R2 Adj. R2
---------------------------------------------------------------------------
0 Full Model 552.732 581.613 NA 0.64038 0.58972
1 team_turnovers 551.316 577.790 NA 0.63781 0.59253
2 blocks 550.073 574.140 NA 0.63445 0.59439
3 technical_fouls 548.674 570.334 NA 0.63176 0.59693
---------------------------------------------------------------------------
Final Model Output
------------------
Model Summary
---------------------------------------------------------------
R 0.795 RMSE 6.153
R-Squared 0.632 MSE 37.855
Adj. R-Squared 0.597 Coef. Var 5.909
Pred R-Squared 0.536 AIC 548.674
MAE 4.662 SBC 570.334
---------------------------------------------------------------
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 5325.429 7 760.776 18.137 0.0000
Residual 3104.083 74 41.947
Total 8429.512 81
--------------------------------------------------------------------
Parameter Estimates
--------------------------------------------------------------------------------------------------------
model Beta Std. Error Std. Beta t Sig lower upper
--------------------------------------------------------------------------------------------------------
(Intercept) -2.595 12.433 -0.209 0.835 -27.369 22.178
field_goal_pct 0.962 0.203 0.445 4.750 0.000 0.559 1.366
free_throw_pct 0.160 0.073 0.162 2.193 0.031 0.015 0.306
total_rebounds 0.499 0.123 0.314 4.057 0.000 0.254 0.744
three_point_field_goal_pct 0.581 0.116 0.421 4.992 0.000 0.349 0.813
fouls 0.328 0.204 0.121 1.607 0.112 -0.079 0.735
assists 0.218 0.194 0.096 1.120 0.266 -0.170 0.605
steals 0.543 0.319 0.131 1.701 0.093 -0.093 1.179
--------------------------------------------------------------------------------------------------------
Call:
lm(formula = team_score ~ . - team_winner - result - team_turnovers -
blocks - technical_fouls, data = sixers)
Residuals:
Min 1Q Median 3Q Max
-16.3436 -3.4460 0.2687 3.7537 18.2155
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -2.5955 12.4329 -0.209 0.835210
field_goal_pct 0.9622 0.2026 4.750 9.74e-06 ***
free_throw_pct 0.1601 0.0730 2.193 0.031437 *
total_rebounds 0.4992 0.1230 4.057 0.000122 ***
three_point_field_goal_pct 0.5809 0.1164 4.992 3.85e-06 ***
fouls 0.3284 0.2043 1.607 0.112235
assists 0.2179 0.1945 1.120 0.266174
steals 0.5431 0.3192 1.701 0.093091 .
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 6.477 on 74 degrees of freedom
Multiple R-squared: 0.6318, Adjusted R-squared: 0.5969
F-statistic: 18.14 on 7 and 74 DF, p-value: 8.201e-14
field_goal_pct free_throw_pct total_rebounds
field_goal_pct 1.00000000 -0.140506449 -0.26831750
free_throw_pct -0.14050645 1.000000000 0.07771847
total_rebounds -0.26831750 0.077718472 1.00000000
three_point_field_goal_pct 0.53165078 -0.038171043 -0.25383651
fouls 0.06487871 0.030060386 -0.16519712
assists 0.45150371 -0.004481963 -0.19201763
steals 0.08426617 0.197643700 -0.20454905
three_point_field_goal_pct fouls assists
field_goal_pct 0.53165078 0.06487871 0.451503712
free_throw_pct -0.03817104 0.03006039 -0.004481963
total_rebounds -0.25383651 -0.16519712 -0.192017627
three_point_field_goal_pct 1.00000000 0.05961553 0.275855651
fouls 0.05961553 1.00000000 -0.214793191
assists 0.27585565 -0.21479319 1.000000000
steals 0.01800821 0.16811847 -0.147648669
steals
field_goal_pct 0.08426617
free_throw_pct 0.19764370
total_rebounds -0.20454905
three_point_field_goal_pct 0.01800821
fouls 0.16811847
assists -0.14764867
steals 1.00000000
field_goal_pct free_throw_pct
1.763391 1.101533
total_rebounds three_point_field_goal_pct
1.205945 1.432417
fouls assists
1.134311 1.467797
steals
1.184797
Call:
lm(formula = team_score ~ (field_goal_pct + free_throw_pct +
total_rebounds + three_point_field_goal_pct + fouls + assists +
steals)^2, data = sixers)
Residuals:
Min 1Q Median 3Q Max
-12.9049 -2.5308 0.1636 2.7800 16.1937
Coefficients:
Estimate Std. Error t value
(Intercept) 271.872882 191.911794 1.417
field_goal_pct 0.359545 3.731586 0.096
free_throw_pct -2.852491 1.518688 -1.878
total_rebounds -2.168552 2.368815 -0.915
three_point_field_goal_pct -3.763517 3.324843 -1.132
fouls 0.639200 3.226543 0.198
assists -0.905213 3.262534 -0.277
steals 2.269455 6.094402 0.372
field_goal_pct:free_throw_pct 0.047248 0.025325 1.866
field_goal_pct:total_rebounds -0.034071 0.042860 -0.795
field_goal_pct:three_point_field_goal_pct 0.047614 0.028957 1.644
field_goal_pct:fouls -0.148837 0.070471 -2.112
field_goal_pct:assists -0.011798 0.049654 -0.238
field_goal_pct:steals -0.058416 0.114396 -0.511
free_throw_pct:total_rebounds 0.021480 0.017418 1.233
free_throw_pct:three_point_field_goal_pct 0.003721 0.015596 0.239
free_throw_pct:fouls -0.023867 0.028249 -0.845
free_throw_pct:assists 0.016646 0.032672 0.509
free_throw_pct:steals -0.018705 0.048117 -0.389
total_rebounds:three_point_field_goal_pct 0.007007 0.026436 0.265
total_rebounds:fouls 0.093977 0.040146 2.341
total_rebounds:assists 0.007324 0.032780 0.223
total_rebounds:steals 0.031504 0.068522 0.460
three_point_field_goal_pct:fouls 0.041217 0.060399 0.682
three_point_field_goal_pct:assists -0.004178 0.044835 -0.093
three_point_field_goal_pct:steals 0.111150 0.066492 1.672
fouls:assists 0.097234 0.072836 1.335
fouls:steals 0.101934 0.103820 0.982
assists:steals -0.203960 0.098650 -2.068
Pr(>|t|)
(Intercept) 0.1624
field_goal_pct 0.9236
free_throw_pct 0.0659 .
total_rebounds 0.3641
three_point_field_goal_pct 0.2628
fouls 0.8437
assists 0.7825
steals 0.7111
field_goal_pct:free_throw_pct 0.0676 .
field_goal_pct:total_rebounds 0.4302
field_goal_pct:three_point_field_goal_pct 0.1060
field_goal_pct:fouls 0.0394 *
field_goal_pct:assists 0.8131
field_goal_pct:steals 0.6117
free_throw_pct:total_rebounds 0.2229
free_throw_pct:three_point_field_goal_pct 0.8124
free_throw_pct:fouls 0.4020
free_throw_pct:assists 0.6125
free_throw_pct:steals 0.6990
total_rebounds:three_point_field_goal_pct 0.7920
total_rebounds:fouls 0.0230 *
total_rebounds:assists 0.8241
total_rebounds:steals 0.6476
three_point_field_goal_pct:fouls 0.4980
three_point_field_goal_pct:assists 0.9261
three_point_field_goal_pct:steals 0.1005
fouls:assists 0.1876
fouls:steals 0.3306
assists:steals 0.0436 *
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 6.064 on 53 degrees of freedom
Multiple R-squared: 0.7688, Adjusted R-squared: 0.6466
F-statistic: 6.293 on 28 and 53 DF, p-value: 5.293e-09
Adjusted R squared is 0.6615732