



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Question #1:
(a)
(i) The overall F -test is:
M Sr (X 1 ) M SRes(X 1 )
Since p − value = P (T S > 6 .39) = 0. 0146 < α = 0.05, we reject H 0 : β 1 = 0 versus H 1 : β 1 6 = 0. Therefore X 1 alone is useful to predict Y.
(ii) The overall F -test is:
M Sr (X 2 ) M SRes(X 2 )
Since p − value = P (T S > 0 .59) = 0. 4458 > α = 0.05, we fail to reject H 0 : β 2 = 0 versus H 1 : β 2 6 = 0. Therefore X 2 alone is not useful to predict Y.
(iii) The overall F -test is:
M Sr (X 1 , X 2 ) M SRes(X 1 , X 2 )
Since p−value = P (T S > 6 .24) = 0. 0038 < α = 0.05, we reject H 0 : β 1 = β 2 = 0 versus H 1 : β 1 6 = 0 or β 2 6 = 0. Therefore, at least one of X 1 or X 2 (or both) is useful to predict Y.
Based on the above results, X 1 is useful to predict Y. X 2 alone is not important. After entering X 1 in the model, X 2 may or may not be useful to predict Y. We should find variable-added-in order tests when X 1 added first, to find about the importance of X 2 after entering X 1. This is discussed in the next part.
(b) Using the computer output on page 6, we can find sum of squares and mean of squares. The F -value and its p-value are correct for X 2 |X 1 , but the F -value and its p-value are not the right ones for the model that include only X 1. We can use the ANOVA table in part (a) when Y regressed on X 1 alone.
Source df Type I SS Mean of squares F -value p-value X 1 1 1535.856965 1535.856965 6.39 0.
X 2 |X 1 1 1218.014394 1218.014394 5.52 0.
Error 50 11037.29845 220.
Total 52 13791.
(c) Using the computer output on page 6, we can find sum of squares and mean of squares. The F -value and its p-value are correct for X 1 |X 2 , but the F -value and its p-value are not the right ones for the model that include only X 2. We can use the ANOVA table in part (a) when Y regressed on X 2 alone.
Source df Type I SS Mean of squares F -value p-value X 2 1 157.847334 157.847332 0.59 0.
X 1 |X 2 1 2596.024025 2596.024025 11.76 0.
Error 50 11037.29845 220.
Total 52 13791.
(d) Based on the computer output on page 6 or page 8, We can find the ANOVA table for variable-added-last. Since the full model and the largest model are the same, the F -values and their p-values are correct.
Source df Type I SS Mean of squares F -value p-value X 1 |X 2 1 2596.024025 2596.024025 11.76 0.
X 2 |X 1 1 1218.014394 1218.014394 5.52 0.
Error 50 11037.29845 220.
Total 52 13791.
(e) Based on parts (a) and (c), X 2 is not useful alone to predict Y. Based on parts (b) and (d), X 2 is useful to predict Y if X 1 is already in the model. Therefore the order that we inter variables in the model is important and we might get different results.
(f ) In part (a) we found that X 1 alone is useful to predict Y , but X 2 alone is not useful to predict Y. In part (b), we found that adding X 2 in the model
r^2 Y X 2 |X 3 =
SSRes(X 3 )
r Y X^22 |X 3 explains that when X 2 is added in the model containing X 3 , the error sum of square (SSE (X 3 ) is reduced by 31.41%.
r^2 Y X 1 |X 2 ,X 3 =
SSRes(X 2 , X 3 )
r Y X^21 |X 2 ,X 3 implies that the error sum of squares for the model containing both
X 2 and X 3 is only reduced by another 9.465% when X 1 is added to the model.
R^2 implies that 77.897% of variation in Y explained by the model containing all three variables X 1 , X 2 , and X 3.
(b) The test statistic for testing H 0 : ρY X 2 |X 3 = 0 is
M SRes(X 2 , X 3 )
M SRes(X 2 , X 3 )
Since 7. 326 > F 0. 05 , 1 , 16 = 4.49, we reject H 0. Therefore, adding X 2 when X 3 is already in the model improves predicting Y.
(c) Let Full Model : Y = β 0 + β 1 X 1 + β 2 X 2 + β 3 X 3 + E Reduced Model : Y = β 0 + β 3 X 3 + E
The test statistic is:
M SRes(X 1 , X 2 , X 3 )
Since 4. 577 > F 0. 05 , 2 , 15 = 3.68, we reject H 0. Therefore, adding X 1 and X 2 when X 3 is already in the model improves predicting Y. (Note that this does not imply that both X 1 and X 2 are important. As we will see in part (e), when X 2 and X 3 are in the model, adding X 1 does not improve predicting Y significantly.)
(d)For comparing
Full Model : Y = β 0 + β 1 X 1 + β 2 X 2 + β 3 X 3 + E
Reduced Model : Y = β 0 + β 1 X 1 + E
The test statistic is:
T S =
M SRes(X 1 , X 2 , X 3 )
If the value of the test statistic is greater than F 0. 05 , 2 , 15 = 3.68, we reject H 0. We cannot compare the above two models, since we cannot find SSR(X 1 ).
(e) Yes, we can. The test statistic for testing H 0 : ρY X 1 |X 2 ,X 3 = 0 versus H 1 : ρY X 1 |X 2 ,X 3 6 = 0 is:
M SRes(X 1 , X 2 , X 3 )
M SRes(X 1 , X 2 , X 3 )
=
Since 1. 568 < F 0. 05 , 1 , 15 = 4.54, we fail to reject H 0. Therefore, adding X 1 when X 2 and X 3 are already in the model, does not improve predicting Y significantly.
(f ) Using part (a), we have
|rY X 3 | =
Hence, there is a high correlation between Y and X 3. This implies that X 3 should be entered in the model. In part (b), we concluded that adding X 2 will improve predicting Y when X 3 is already in the model. In part (e), we concluded that adding X 1 when X 2 and X 3 are already in the model, does not improve predicting Y significantly. Therefore, the most appropriate model is the model that include X 2 and X 3 , i.e.
Yˆ = βˆ 0 + βˆ 2 X 2 + βˆ 3 X 3.
Question #3:
(a) By comparing rY X 1 , rY X 2 and rY X 3 , it is clear that X 1 has the largest correlation with Y. Hence, it has the largest r^2. Therefore, X 1 explains the largest proportion of the total variation in Y.
(b)
rY X 2 |X 1 =
rY X 2 − rY X 1 rX 2 X 1 √ 1 − r^2 Y X 1
1 − r^2 X 2 X 1
to the model. In part (c), we fail to reject H 0 : ρY X 3 |X 1 ,X 2 = 0. Hence, X 3 is relatively unimportant to predict Y when X 1 and X 2 are in the model. (Note that although X 3 alone has a large correlation with Y , rY X 3 = 0.7420, after entering X 1 and X 2 , entering X 3 in the model does not improve predicting Y significantly.
(d)
r Y^2 (X 2 ,X 3 )|X 1 =
SSRes(X 1 )
The test statistic for testing H 0 : ρY (X 2 ,X 3 )|X 1 = 0 is
M SRes(X 1 , X 2 , X 3 )
Since 9. 371 > F 0 .05 2, 28 = 3.34, we reject H 0 : ρY (X 2 ,X 3 )|X 1 = 0 versus H 1 : ρY (X 2 ,X 3 )|X 1 6 = 0. Therefore, adding X 2 or X 3 (or both) when X 1 is already in the model is useful to predict Y. In part (d) we found that adding X 2 when X 1 is in the model improves predicting Y. Therefore, we are expecting that adding X 2 and X 3 in the model when X 1 is already in the model will also improves predicting Y , but we know that X 3 does not improve predicting Y if X 1 and X 2 are already in the model. Hence, the result in this part does not alter our decision in part (d).