Download Homework Solution for Chapter 6 - Applied Regression Analysis | STAT 645 and more Assignments Statistics in PDF only on Docsity!
STAT 645 HOMEWORK SOLUTION FOR CHPATER 6 SPRING 2006
Problem 6.
(a) X=
1 X41 X41X
1 X31 X31X
1 X21 X21X
1 X11 X11X
2
1
0
(b) X= ,
1 X41 X
1 X31 X
1 X21 X
1 X11 X
2
1
0
Problem 6.
(a) The correlation matrix is
Y X 1 X 2
Y
100 80 60
5.0 7.5 10.
X
60 80 100
4 3 2
X
2 3 4
Matrix Plot of Y, X1, X
(b)
Regression Analysis: Y versus X1, X
The regression equation is
Y = 37.7 + 4.42 X1 + 4.38 X
Predictor Coef SE Coef T P Constant 37.650 2.996 12.57 0. X1 4.4250 0.3011 14.70 0. X2 4.3750 0.6733 6.50 0.
S = 2.69330 R-Sq = 95.2% R-Sq(adj) = 94.5%
b 1 =4.4250 means the change in the mean response per unit increase in X 1 (moisture
content) while X 2 (sweetness) is held constant.
(c)
RESI
Boxplot of RESI
This box plot shows that the residuals are symmetrically distributed around 0 and are
located between -2 and 2.
(d) Following are the residual plots against various variables.
X
Residual
Residuals Versus X2 (response is Y)
X1X
Residual
Residuals Versus X1X2 (response is Y)
The above residual plots show the residuals are well distributed around 0.
Residual
Percent
99 95 90 (^8070) (^6050) (^4030) 20 10 5 1
Normal Probability Plot of the Residuals (response is Y)
The above normal probability plot shows that the residuals has a normal distribution.
(e) H 0 : γ 1 = γ 2 = 0 vs Ha: at least one of γ 1 and γ 2 is not 0.
SSE=94.3, SSR=72.41, so XBP^2=(SSR/2)/(SSE/n)^2=1.04< χ^2 (0.99, 2)=9.
so we conclude H 0 , i.e. the error variance is constant.
(f) H 0 : E{Y}= β 0 + β 1 X 1 + β 2 X 2
Ha: E{Y} ≠ β 0 + β 1 X 1 + β 2 X 2
From MINITAB, we have
Analysis of Variance
Source DF SS MS F P Regression 2 1872.70 936.35 129.08 0. Residual Error 13 94.30 7. Lack of Fit 5 37.30 7.46 1.05 0. Pure Error 8 57.00 7. Total 15 1967.
c=42=8, p=3, F=1.05<F(0.99;5,8)=6.63, so we conclude H0.
Problem 6.
Problem 6.
Since β 2 is known to be 4, the new model is Y’i=Yi-4Xi2= β 0 + β 1 Xi1+ β 3 Xi3+ ε i.
Problem 6.
(a) Following are the step-and-leaf plots for each predictor variable
Stem-and-Leaf Display: Age
Stem-and-leaf of Age N = 113 Leaf Unit = 1.
LO 38, 42
3 4 3 8 4 45555 10 4 77 21 4 88899999999 42 5 000000001111111111111 (24) 5 222222222222233333333333 47 5 4444444444455555 31 5 666666666666677777 13 5 8889999 6 6 01 4 6 23 2 6 4
HI 65
Stem-and-Leaf Display: risk
Stem-and-leaf of risk N = 113 Leaf Unit = 0.
LO 13, 13, 14
6 1 678 10 2 0013 20 2 5677899999
HI 76, 77, 78
Stem-and-Leaf Display: bed
Stem-and-leaf of bed N = 113 Leaf Unit = 10
1 0 2 27 0 55666777777888899999999999 42 1 000011112333344 (23) 1 55566666777888899999999 48 2 123344 42 2 5667789999 32 3 0001112 25 3 5568 21 4 24 19 4 6788 15 5 034 12 5 6799 8 6 02
HI 64, 75, 76, 83, 83, 83
Stem-and-Leaf Display: service
Stem-and-leaf of service N = 113 Leaf Unit = 1. 1 0 5 3 1 14 5 1 77
length
(^0 ) 15 10 800 400 0
bed
risk
10 15 20
80 40 (^0) 2.0 4.5 7.
service
Matrix Plot of length, bed, risk, service
Y X 1 X 2 X 3
We see from the above correlation plots Y has higher linear correlation with “number
of beds” in model II than with “age” in model I.
(c)
For model I, Y=1.39 + 0.0837 X 1 + 0.658 X 2 + 0.0217 X 3
For model I, Y=6.47 + 0.00302 X 1 + 0.648 X 2 - 0.0093 X 3
Regression Analysis: length versus Age, risk, service
The regression equation is length = 1.39 + 0.0837 Age + 0.658 risk + 0.0217 service
Predictor Coef SE Coef T P Constant 1.386 1.866 0.74 0. Age 0.08371 0.03325 2.52 0. risk 0.6584 0.1214 5.43 0. service 0.02174 0.01071 2.03 0.
S = 1.56840 R-Sq = 34.5% R-Sq(adj) = 32.7%
Regression Analysis: length versus bed, risk, service
The regression equation is length = 6.47 + 0.00302 bed + 0.648 risk - 0.0093 service
Predictor Coef SE Coef T P Constant 6.4674 0.6152 10.51 0. bed 0.003018 0.001272 2.37 0. risk 0.6477 0.1219 5.31 0. service -0.00929 0.01652 -0.56 0.
S = 1.57322 R-Sq = 34.1% R-Sq(adj) = 32.3%
(d)
For model I, R^2=0.345, for model I, R^2=0.341, model I is a little bit better than
model II in terms of this measure.
(e) For model I, the plots are:
Fitted Value
Residual
Residuals Versus the Fitted Values (response is length)
service
Residual
Residuals Versus service (response is length)
X1X
Residual
Residuals Versus X1X2 (response is length)
X1X
Residual
Residuals Versus X1X3 (response is length)
X2X
Residual
Residuals Versus X2X3 (response is length)
bed
Residual
Residuals Versus bed (response is length)
risk
Residual
Residuals Versus risk (response is length)
service
Residual
Residuals Versus service (response is length)
X1X
Residual
Residuals Versus X1X2 (response is length)
Residual
Percent
99 (^9590) (^8070) (^6050) (^4030) (^2010) 5 1
Normal Probability Plot of the Residuals (response is length)