




















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!





















January 20, 2004
Does the addition of one particular variable of interest add significantly to the prediction of y acheived by the other independent variables already in the model?
yi = β 0 + xi 1 β 1 + · · · + xipβp + i
Does the addition of some group of independent variables of interest add significantly to the prediction of y obtained through other independent variables already in the model?
yi = β 0 + xi 1 β 1 + · · · + xi,p− 1 βp− 1 + xipβp + i
The ANOVA table for
yi = β 0 + xi 1 β1 + xi 2 β2 + · · · + xipβp + i
is often provided in the output from statistical software as
Source of Sums of squares Degrees of F variation freedom Regression x 1 1 x. 2 |x 1 1 .. xp|xp− 1 , xp− 2 , · · · , x 1 1 Error SSE n − (p + 1) Total SST O n − 1
where SSR = SSR(x 1 ) + SSR(x 2 |x 1 ) + · · · + SSR(xp|xp− 1 , xp− 2 ,... , x 1 ) and has p degrees of freedom.
H 0 : β 1 = β 2 = · · · = βp = 0 H 1 : βj 6 = 0 for at least one j, j = 1,... , p
Rejection of H 0 implies that at least one of the regressors, x 1 , x 2 ,... , xp, contributes significantly to the model.
We will use a generalization of the F-test in simple linear regression to test this hypothesis.
yi = β 0 + weightiβ 1 + heightiβ 2 + i
anova(lmwtht) Analysis of Variance Table
Response: DIABP Df Sum Sq Mean Sq F value Pr(>F) WEIGHT 1 1289 1289 10.2240 0.001475 ** HEIGHT 1 120 120 0.9498 0. Residuals 495 62426 126
Signif. codes: 0 ‘’ 0.001 ‘’ 0.01 ‘’ 0.05 ‘.’ 0.1 ‘ ’ 1
F 0 =
We reject the null hypothesis at α =. 05 and conclude that at least one of β 1 or β 2 is not equal to 0.
The overall F statistic is also available from the output of summary().
summary(lmwtht)
Call: lm(formula = DIABP ~ WEIGHT + HEIGHT, data = chs)
Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 55.65777 8.91267 6.245 9.14e-10 *** WEIGHT 0.04140 0.01723 2.403 0.0166 * HEIGHT 0.05820 0.05972 0.975 0.
Signif. codes: 0 ‘’ 0.001 ‘’ 0.01 ‘’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 11.23 on 495 degrees of freedom Multiple R-Squared: 0.02208, Adjusted R-squared: 0.
F-statistic: 5.587 on 2 and 495 DF, p-value: 0.
yi = β 0 + xi 1 β 1 + · · · + xijβj + · · · + xipβp + i H 0 : βj = 0 H 1 : βj 6 = 0
As in simple linear regression, under the null hypothesis
t 0 =
βˆj se ˆ ( βˆj)
∼ tn−p− 1.
We reject H 0 if |t 0 | > tn−p− 1 , 1 −α/ 2.
This is a partial test because βˆj depends on all of the other predictors xi, i 6 = j that are in the model. Thus, this is a test of the contribution of xj given the other predictors in the model.
yi = β 0 + weightiβ 1 + heightiβ 2 + i
H 0 : β 2 = 0 vs H 1 : β 2 6 = 0, given that weight is in the model.
From the ANOVA table, σˆ^2 = 126. 11.
C = (X′X)−^1 =
t 0 = 0. 05820 /
Therefore, we fail to reject the null hypothesis.
Determine the contribution of a predictor or group of predictors to SSR given that the other regressors are in the model using the extra-sums-of-squares method.
Consider the regression model with p predictors
y = Xβ + .
We would like to determine if some subset of r < p predictors contributes significantly to the regression model.
Partition the vector of regression coefficients as
β =
β^1 β^2
where β^1 is (p + 1 − r) × 1 and β^2 is r × 1. We want to test the hypothesis H 0 : β^2 = 0 H 1 : β^2 6 = 0
Rewrite the model as
y = Xβ + = X^1 β^1 + X^2 β^2 + , (1)
where X = [X^1 |X^2 ].
and
SSR(X^1 ) = βˆ^1 X^1
′ y (p+1-r degrees of freedom).
The regression sums of squares due to X^2 when X^1 is already in the model is
SSR(X^2 |X^1 ) = SSR(X) − SSR(X^1 )
with r degrees of freedom. This is also known as the extra sum of squares due to X^2.
SSR(X^2 |X^1 ) is independent of M SE. We can test H 0 : β^2 = 0 with the statistic
SSR(X^2 |X^1 )/r M SE
∼ Fr,n−p− 1.