7.1 The cost of leaving regressors out, and of putting them in
Partition the full model as \[ \mathbf {y} = \mathbf {X}_1\boldsymbol \beta _1 + \mathbf {X}_2\boldsymbol \beta _2 + \boldsymbol \varepsilon , \] where \(\mathbf {X}_1\) (\(n \times p\), including the column of ones) holds the regressors to be kept and \(\mathbf {X}_2\) (\(n \times r\)) the regressors to be deleted. Assume the full model is correct and satisfies A1–A3. Let \(\mathbf {H}_1\) be the hat matrix of \(\mathbf {X}_1\), and write
- \(\hat {\boldsymbol \beta }_1\), \(\hat {\boldsymbol \beta }_2\) for the least-squares estimates in the full model;
- \(\hat {\boldsymbol \beta }_1^* = (\mathbf {X}_1^\top \mathbf {X}_1)^{-1}\mathbf {X}_1^\top \mathbf {y}\) for the estimate of \(\boldsymbol \beta _1\) from the subset model, which ignores \(\mathbf {X}_2\);
- \(\mathbf {A} = (\mathbf {X}_1^\top \mathbf {X}_1)^{-1}\mathbf {X}_1^\top \mathbf {X}_2\), the \(p \times r\) alias matrix, whose column \(j\) holds the coefficients from regressing column \(j\) of \(\mathbf {X}_2\) on \(\mathbf {X}_1\).
- (i)
- \(\hat {\boldsymbol \beta }_1^* = \hat {\boldsymbol \beta }_1 + \mathbf {A}\hat {\boldsymbol \beta }_2\);
- (ii)
- \(\hat {\boldsymbol \beta }_2 = \bigl (\mathbf {X}_2^\top (\mathbf {I} - \mathbf {H}_1)\mathbf {X}_2\bigr )^{-1}\mathbf {X}_2^\top (\mathbf {I} - \mathbf {H}_1)\mathbf {y}\);
- (iii)
- \(\hat {\boldsymbol \beta }_1^*\) and \(\hat {\boldsymbol \beta }_2\) are uncorrelated.
Proof. The normal equations of the full model, split into the rows belonging to \(\mathbf {X}_1\) and to \(\mathbf {X}_2\), are \begin {align*} \mathbf {X}_1^\top \mathbf {X}_1\hat {\boldsymbol \beta }_1 + \mathbf {X}_1^\top \mathbf {X}_2\hat {\boldsymbol \beta }_2 &= \mathbf {X}_1^\top \mathbf {y} , \\ \mathbf {X}_2^\top \mathbf {X}_1\hat {\boldsymbol \beta }_1 + \mathbf {X}_2^\top \mathbf {X}_2\hat {\boldsymbol \beta }_2 &= \mathbf {X}_2^\top \mathbf {y} . \end {align*}
(i) Multiply the first by \((\mathbf {X}_1^\top \mathbf {X}_1)^{-1}\): \(\hat {\boldsymbol \beta }_1 + \mathbf {A}\hat {\boldsymbol \beta }_2 = \hat {\boldsymbol \beta }_1^*\).
(ii) Substitute \(\hat {\boldsymbol \beta }_1 = \hat {\boldsymbol \beta }_1^* - \mathbf {A}\hat {\boldsymbol \beta }_2\) in the second. Since \(\mathbf {X}_1\hat {\boldsymbol \beta }_1^* = \mathbf {H}_1\mathbf {y}\) and \(\mathbf {X}_1\mathbf {A} = \mathbf {H}_1\mathbf {X}_2\), \[ \mathbf {X}_2^\top \mathbf {H}_1\mathbf {y} - \mathbf {X}_2^\top \mathbf {H}_1\mathbf {X}_2\hat {\boldsymbol \beta }_2 + \mathbf {X}_2^\top \mathbf {X}_2\hat {\boldsymbol \beta }_2 = \mathbf {X}_2^\top \mathbf {y} , \] that is, \(\mathbf {X}_2^\top (\mathbf {I} - \mathbf {H}_1)\mathbf {X}_2\,\hat {\boldsymbol \beta }_2 = \mathbf {X}_2^\top (\mathbf {I} - \mathbf {H}_1)\mathbf {y}\). The matrix on the left is invertible because \(\mathbf {X}\) has full column rank (the argument is that of Theorem 3.3.1, applied to \((\mathbf {I} - \mathbf {H}_1)\mathbf {X}_2\)).
(iii) By Lemma 3.1.3, the covariance of \((\mathbf {X}_1^\top \mathbf {X}_1)^{-1}\mathbf {X}_1^\top \mathbf {y}\) with \(\mathbf {M}\mathbf {X}_2^\top (\mathbf {I} - \mathbf {H}_1)\mathbf {y}\), where \(\mathbf {M}\) is the inverse in (ii), is \(\sigma ^2(\mathbf {X}_1^\top \mathbf {X}_1)^{-1}\mathbf {X}_1^\top (\mathbf {I} - \mathbf {H}_1)\mathbf {X}_2\mathbf {M} = \mathbf {0}\), because \(\mathbf {X}_1^\top (\mathbf {I} - \mathbf {H}_1) = \bigl ((\mathbf {I} - \mathbf {H}_1)\mathbf {X}_1\bigr )^\top = \mathbf {0}\). □
Part (ii) is the matrix form of the added-variable theorem (Theorem 3.11.4), which was the case \(r = 1\).
Theorem 7.1.2 (Underfitting and overfitting). Suppose the full model is correct. Then
- (i)
- \(E(\hat {\boldsymbol \beta }_1^*) = \boldsymbol \beta _1 + \mathbf {A}\boldsymbol \beta _2\), so the subset estimate is biased unless \(\boldsymbol \beta _2 = \mathbf {0}\) or \(\mathbf {A} = \mathbf {0}\);
- (ii)
- \(\operatorname {Var}(\hat {\boldsymbol \beta }_1) = \operatorname {Var}(\hat {\boldsymbol \beta }_1^*) + \mathbf {A}\operatorname {Var}(\hat {\boldsymbol \beta }_2)\mathbf {A}^\top \); in particular each \(\operatorname {Var}(\hat \beta _{1j}) \ge \operatorname {Var}(\hat \beta ^*_{1j})\);
- (iii)
- the residual mean square of the subset model has \[ E\bigl (MS_{\mathrm {Res}}(p)\bigr ) = \sigma ^2 + \frac {\boldsymbol \beta _2^\top \mathbf {X}_2^\top (\mathbf {I} - \mathbf {H}_1)\mathbf {X}_2\boldsymbol \beta _2}{n - p} \;\ge \; \sigma ^2 ; \]
- (iv)
- the mean square error matrix of \(\hat {\boldsymbol \beta }_1^*\), \(E\bigl [(\hat {\boldsymbol \beta }_1^* - \boldsymbol \beta _1)(\hat {\boldsymbol \beta }_1^* - \boldsymbol \beta _1)^\top \bigr ]\), equals \(\operatorname {Var}(\hat {\boldsymbol \beta }_1) - \mathbf {A}\bigl [\operatorname {Var}(\hat {\boldsymbol \beta }_2) - \boldsymbol \beta _2\boldsymbol \beta _2^\top \bigr ]\mathbf {A}^\top \).
Proof. (i) \(E(\mathbf {y}) = \mathbf {X}_1\boldsymbol \beta _1 + \mathbf {X}_2\boldsymbol \beta _2\), so \(E(\hat {\boldsymbol \beta }_1^*) = (\mathbf {X}_1^\top \mathbf {X}_1)^{-1}\mathbf {X}_1^\top (\mathbf {X}_1\boldsymbol \beta _1 + \mathbf {X}_2\boldsymbol \beta _2) = \boldsymbol \beta _1 + \mathbf {A}\boldsymbol \beta _2\).
(ii) By Lemma 7.1.1(i), \(\hat {\boldsymbol \beta }_1 = \hat {\boldsymbol \beta }_1^* - \mathbf {A}\hat {\boldsymbol \beta }_2\), a difference of uncorrelated vectors by part (iii) of the lemma, so the variances add. The diagonal entries of \(\mathbf {A}\operatorname {Var}(\hat {\boldsymbol \beta }_2)\mathbf {A}^\top \) are variances of linear combinations of \(\hat {\boldsymbol \beta }_2\), and so are \(\ge 0\).
(iii) Write \(\boldsymbol \mu = \mathbf {X}_1\boldsymbol \beta _1 + \mathbf {X}_2\boldsymbol \beta _2\). \(SS_{\mathrm {Res}}(p) = \mathbf {y}^\top (\mathbf {I} - \mathbf {H}_1)\mathbf {y}\), and by Lemma 3.1.4 \begin {align*} E\bigl (SS_{\mathrm {Res}}(p)\bigr ) &= \sigma ^2\operatorname {tr}(\mathbf {I} - \mathbf {H}_1) + \boldsymbol \mu ^\top (\mathbf {I} - \mathbf {H}_1)\boldsymbol \mu \\ &= (n - p)\sigma ^2 + \boldsymbol \beta _2^\top \mathbf {X}_2^\top (\mathbf {I} - \mathbf {H}_1)\mathbf {X}_2\boldsymbol \beta _2 , \end {align*}
since \((\mathbf {I} - \mathbf {H}_1)\mathbf {X}_1 = \mathbf {0}\). The quadratic form is \(\|(\mathbf {I} - \mathbf {H}_1)\mathbf {X}_2\boldsymbol \beta _2\|^2 \ge 0\).
(iv) The mean square error matrix is the variance plus the bias times its transpose: \(\operatorname {Var}(\hat {\boldsymbol \beta }_1^*) + \mathbf {A}\boldsymbol \beta _2\boldsymbol \beta _2^\top \mathbf {A}^\top \). Substitute \(\operatorname {Var}(\hat {\boldsymbol \beta }_1^*) = \operatorname {Var}(\hat {\boldsymbol \beta }_1) - \mathbf {A}\operatorname {Var}(\hat {\boldsymbol \beta }_2)\mathbf {A}^\top \) from (ii). □
The theorem says three things.
- Underfitting biases. Deleting regressors that matter biases the remaining coefficients, through the alias matrix: the kept regressors take credit for the omitted ones in proportion to their correlation with them. It also biases \(MS_{\mathrm {Res}}\) upwards, so the subset model looks noisier than the truth.
- Overfitting inflates variance. If \(\boldsymbol \beta _2 = \mathbf {0}\), the subset model is correct and unbiased, and part (ii) shows that carrying the useless regressors along only increases the variances of the others.
- The trade-off. By (iv), deleting \(\mathbf {X}_2\) reduces the mean square error of the estimates of \(\boldsymbol \beta _1\) whenever \(\operatorname {Var}(\hat {\boldsymbol \beta }_2) - \boldsymbol \beta _2\boldsymbol \beta _2^\top \) is positive semi-definite. For a single deleted regressor this says \(\beta _2^2 \le \operatorname {Var}(\hat \beta _2)\): it pays to drop a regressor whose true coefficient is smaller than the standard error with which it could be estimated. A biased model can be the more accurate one.
Example 7.1.3. A survey of twelve farms recorded the maize yield \(y\) (bags per hectare), the fertiliser applied \(x_1\) (bags per hectare), the labour input \(x_2\) (person-days per hectare, in tens) and the distance \(x_3\) from the farm to the nearest market (km):
| Farm | \(x_1\) | \(x_2\) | \(x_3\) | \(y\) | Farm | \(x_1\) | \(x_2\) | \(x_3\) | \(y\) |
| 1 | 7 | 6 | 4 | 29 | 7 | 7 | 4 | 7 | 24 |
| 2 | 1 | 2 | 4 | 9 | 8 | 5 | 2 | 8 | 18 |
| 3 | 2 | 2 | 6 | 11 | 9 | 1 | 2 | 7 | 13 |
| 4 | 2 | 1 | 5 | 13 | 10 | 1 | 2 | 3 | 8 |
| 5 | 2 | 5 | 2 | 17 | 11 | 3 | 6 | 3 | 19 |
| 6 | 7 | 8 | 6 | 29 | 12 | 4 | 5 | 6 | 22 |
The correlations are \(r_{12} = 0.65\), \(r_{13} = 0.37\), \(r_{23} = -0.21\), and with \(y\): \(0.93\), \(0.83\) and \(0.20\). Compare the fits of \(y\) on \(x_1\) alone, on \(x_1\) and \(x_2\), and on all three.
Solution. By the methods of Section 3 (with the matrices given at the end of this solution):
| Model | \(\hat \beta _1\) (se) | \(\hat \beta _2\) (se) | \(\hat \beta _3\) (se) |
| \(x_1\) | 2.754 (0.355) | ||
| \(x_1, x_2\) | 1.982 (0.289) | 1.303 (0.316) | |
| \(x_1, x_2, x_3\) | 1.801 (0.407) | 1.480 (0.424) | 0.268 (0.410) |
Underfitting. Leaving out labour raises the fertiliser coefficient from \(1.98\) to \(2.75\). The alias matrix explains it: regressing \(x_2\) on \(x_1\) gives slope \(38.5/65 = 0.592\), and by Lemma 7.1.1(i), \[ \hat \beta _1^* = \hat \beta _1 + 0.592\,\hat \beta _2 = 1.982 + 0.592 \times 1.303 = 2.754 . \] Farms that use more fertiliser also tend to put in more labour, and with labour omitted, fertiliser is credited with part of its effect. The residual mean square rises from \(3.15\) to \(8.17\).
Overfitting. Adding the distance to market, whose coefficient is small and far from significant (\(t = 0.65\)), raises the standard error of \(\hat \beta _1\) from \(0.289\) to \(0.407\) and of \(\hat \beta _2\) from \(0.316\) to \(0.424\): distance is mildly correlated with the other two, and carrying it along costs precision for nothing.
For the record, for the model in \(x_1, x_2\), \[ \mathbf {X}^\top \mathbf {X} = \begin {bmatrix} 12 & 42 & 45 \\ 42 & 212 & 196 \\ 45 & 196 & 223 \end {bmatrix} , \qquad \mathbf {X}^\top \mathbf {y} = \begin {bmatrix} 212 \\ 921 \\ 942 \end {bmatrix} , \] with \(\det (\mathbf {X}^\top \mathbf {X}) = 24528\), and the fit is \(\hat y = 5.843 + 1.982x_1 + 1.303x_2\).
Questions on this section
Stuck on something here? Ask below and it stays attached to this topic.