Homework #1 Solution
Use the data below to calculate the requested regression results by hand y x1 x2 x3
107 1 1 1 75.8 9 3 -1 66.6 9 3 -3 70.4 1 -1 -3 59.5 9 -3 3
105 1 -1 3 94.6 1 1 -1 81.5 1 -1 -1
88 1 1 -3 96.4 9 3 3 29.2 9 -3 -3
46 9 -3 -1 107.2 1 1 3 58.9 9 -3 1 97.9 1 -1 1 79.7 9 3 1
1) Estimate the parameters of a regression model that relates x1, x2, and x3 to y. y=0 +11 +22 +33 +
We need to estimate 0, 1, 2, and 3.
1 =(XX) XY
16 80 0 0
80 656 0 0 XX = 0 0 80 0
0 0 0 80
656/4096 80/4096 0 0
80/4096 16/4096 0 0 (XX)1 = 0 01/800
0 0 01/80
1263.7
5360.5 XY = 416.7
387.3
1 =(XX) XY=5.2088
tobs =
1
=
3.7422 =14.41 17.26 * (16 / 4096)
97.6922 3.7422
4.8413
So 0 =97.6922, 1 =-3.7422, 2 =5.2088, 3 =4.8413
2) Test for the significance of the regression model using the analysis of variance. Interpret the test at the 5% significance level. What is your conclusion?
ANAVA Table
Source
SS
df
MS
F
Regression
(y)2
SSR = XY
n
=107439.11-(1263.7)2/16 =7630.51
dfR=k =3
MSR=SSR/dfR =2543.50
Fobs=MSR/MSE =147.36
Error
SSE = YY XY
=107646.17-107439.11 =207.06
dfE=n-k-1 =12
MSE=SSE/dfE =17.26
Total
SST=SSR+SSE =7837.57
dfT=n-1 =15
F-test:
H0:j =0,j=1,.3
H1: j = 0,for some j
Here, we get Fobs=147.36> F0.05,3,12=3.49. Therefore, we reject H0, that is to say, at least
one of the variables x1, x2 , x3 does contribute significantly to the model.
3) Test for the significance of the individual the coefficients using t tests. Interpret the
tests at the 5% significance level. What are your conclusions? t-test for x1
H0: 1 = 0 H1: 1 = 0
( Var
1
)
|tobs|=14.41> t0.025,12=2.179 ( = 0.05)
So we reject H0. That is to say, x1 does contribute significantly to the model.
t-test for x2 H0: 2 =0
H1: 2 = 0
2
2
H1: 3 = 0
tobs = 3 =
t-test for x3 H0: 3 =0
4.8413 =10.42 17.26*(1/80)
= 5.2088
( 17.26*(1/80)
tobs =
So we reject H0. That is to say, x2 does contribute significantly to the model.
=11.21 |tobs|=11.21> t0.025,12=2.179 ( = 0.05 )
Var
)
Var ( )
3
|tobs|=10.42> t0.025,12=2.179 ( = 0.05)
So we reject H0. That is to say, x3 does contribute significantly to the model.
From the above three t-test, we know none of the variables x1, x2, x3 can be deleted from the model.
Reviews
There are no reviews yet.