ALSMStudentsolnsbookv1 Solution
ALSMStudentsolnsbookv1 Solution
ALSMStudentsolnsbookv1 Solution
Multiple Regression
“What is the predicted mileage for a 4000 lb. design, and what characteristics
of the design are crucial?”
“How much does my 200 pound brother owe me for gas for carrying him
3,000 miles to California?” (Oops, it’s urban mileage in example)
– Fitted slope of stock returns on market estimate the beta for the stock.
– Huge collinearity (correlation between VW and S&P is 0.993), so almost
no unique variation in either one given that other is in model.
– Either taken separately is a good predictor, but show weak effects
when used together.
– “Squished” leverage plots... little unique variation in either predictor
available to explain the variation in the response. (p 144)
Next Time
Categorical predictors…
Categorical predictors allow us to compare regression models for different
groups, judging if the models for the different groups are comparable.
Statistics 102 Multiple Regression
Spring, 2000 -6-
Lack of Fit
Parameter Estimates
Term Estimate Std Error t Ratio Prob>|t|
Intercept 9.4323 2.0545 4.59 <.0001
Weight(lb) 0.0136 0.0007 18.94 <.0001
Analysis of Variance
Source DF Sum of Squares Mean Square F Ratio
Model 1 6426.44 6426.44 358.6195
Error 110 1971.19 17.92 Prob>F
C Total 111 8397.64 <.0001
Lack of Fit
Parameter Estimates
Term Estimate Std Error t Ratio Prob>|t|
Intercept 11.6843 1.7270 6.77 <.0001
Weight(lb) 0.0089 0.0009 10.11 <.0001
Horsepower 0.0884 0.0123 7.21 <.0001
Analysis of Variance
Source DF Sum of Squares Mean Square F Ratio
Model 2 7062.59 3531.30 288.3143
Error 109 1335.04 12.25 Prob>F
C Total 111 8397.64 <.0001
Statistics 102 Multiple Regression
Spring, 2000 -7-
250
200
Horsepower
150
100
50
1500 2000 2500 3000 3500 4000
Weight(lb)
σ 1
SE(slope estimate for Xj) ≈ √n SD(Adjusted X )
j
σ √VIFj
= √n SD(X )
j
= √VIFj ∗ (SE if no collinearity)
Term Estimate Std Error t Ratio Prob>|t| VIF
Intercept 11.6843 1.72704 6.77 <.0001 0.000
Weight(lb) 0.0089 0.00088 10.11 <.0001 2.202
Horsepower 0.0884 0.01226 7.21 <.0001 2.202
10
10
5 5
Residual
0 0
-5 -5
30 40 50 60 70
GP1000M City Predicted
Statistics 102 Multiple Regression
Spring, 2000 -8-
Correlations
Variable VW SP500 WALMART Sequence Number
VW 1.000 0.993 0.696 -0.036
SP500 0.993 1.000 0.682 0.002
WALMART 0.696 0.682 1.000 -0.055
Sequence Number -0.036 0.002 -0.055 1.000
Scatterplot Matrix
0.10 VW
-0.00
-0.10
-0.20
0.10 SP500
-0.00
-0.10
-0.20
WALMART
0.2
-0.0
-0.2
120
Sequence Number
90
60
30
10
Parameter Estimates
Term Estimate Std Error t Ratio Prob>|t| VIF
Intercept 0.024 0.006 4.02 0.0001 0
SP500 1.244 0.123 10.10 <.0001 1
Parameter Estimates
Term Estimate Std Error t Ratio Prob>|t| VIF
Intercept 0.015 0.007 2.13 0.0356 0.000
SP500 -1.258 1.041 -1.21 0.2294 74.297
VW 2.458 1.016 2.42 0.0171 74.297
Statistics 102 Multiple Regression
Spring, 2000 -9-
SP500
0.3
0.2
0.1
WALMART -0.0
-0.1
-0.2
-0.3
-0.20 -0.10 -0.00 .10 .15
SP500 Leverage
VW
0.3
0.2
0.1
WALMART
-0.0
-0.1
-0.2
-0.3
-0.20 -0.10 -0.00 .10 .15
VW Leverage