Tutorials › Regression Analysis (Undergraduate) › Standard Errors in Multiple Regression

Standard Errors and Confidence Intervals · Tutorial 204 of 991

Standard Errors in Multiple Regression

See how residual noise and a predictor’s remaining independent variation determine the estimated sampling uncertainty of its multiple-regression coefficient.

Beginner 11 min read

What You'll Learn

  • Define a multiple-regression coefficient standard error and distinguish it from residual standard deviation.
  • Identify the residual degrees of freedom needed to estimate the error variance.
  • Explain why a predictor’s variation after accounting for other predictors determines its coefficient’s precision.
  • Calculate a coefficient standard error from residual sums of squares and residualized predictor variation.
  • Recognize how overlapping predictors and residual noise affect standard errors.

Why a Multiple-Regression Coefficient Has a Standard Error

A multiple-regression coefficient describes the association between one predictor and the response while the other included predictors are held fixed. Its estimate varies from sample to sample, even when the underlying relationship is unchanged. The standard error estimates the standard deviation of that sampling variation.

In simple regression, the precision of a slope depends in part on how much the predictor varies. In multiple regression, the relevant variation is more specific: it is the part of the predictor that cannot be explained by the other predictors in the model. If two predictors largely move together, there may be little information in the data to distinguish their separate associations with the response.

Model and Definition

Consider a multiple linear regression with \(p\) predictors and \(n\) observations:

$$ Y_i=\beta_0+\beta_1x_{i1}+\cdots+\beta_px_{ip}+\varepsilon_i,\qquad i=1,\ldots,n. $$

Here, \(Y_i\) is the response for observation \(i\), \(x_{ij}\) is its value of predictor \(j\), \(\beta_0\) is the intercept, and \(\beta_j\) is the population coefficient for predictor \(j\). The fitted coefficient is \(b_j\). For the conventional standard error, assume the conditional mean is correctly represented by this linear model, the errors have mean zero and common variance \(\sigma^2\), and errors from different observations are uncorrelated. The predictor values are treated as fixed for the calculation. Normal errors are not needed for the variance formula itself.

Definition: The conventional estimated standard error of \(b_j\) is an estimate of the sampling standard deviation of that coefficient, conditional on the included predictor values. It reflects both the estimated error variance and how much unique variation predictor \(j\) has after the other included predictors are accounted for.

To state the formula, first regress predictor \(j\) on the other predictors and an intercept. For each observation, subtract the value predicted by that auxiliary regression from the observed \(x_{ij}\). Call this difference \(q_{ij}\). These differences are the residualized predictor values; their sum of squares, \(\sum_{i=1}^n q_{ij}^2\), measures the predictor’s remaining variation. It is sometimes called its partial sum of squares in this context.

Let \(SSE\) be the sum of squared residuals from the response regression. With \(p\) predictors, the residual degrees of freedom are \(n-p-1\). If the design matrix has full column rank and \(n>p+1\), the error variance estimate is \(s^2=SSE/(n-p-1)\), and the conventional coefficient standard error is:

$$ SE(b_j)=\frac{s}{\sqrt{\sum_{i=1}^n q_{ij}^2}} =\sqrt{\frac{SSE/(n-p-1)}{\sum_{i=1}^n q_{ij}^2}}. $$

Full column rank means that no included predictor is an exact linear combination of the other predictors and the intercept. In particular, \(\sum q_{ij}^2\) must be positive for the coefficient to be separately estimable. The condition \(n>p+1\) provides positive residual degrees of freedom so that \(s^2\) can be estimated. If \(n=p+1\), this conventional estimate and standard error are unavailable.

Why the Formula Has These Two Parts

The formula separates two sources of uncertainty. The numerator \(s\) measures the typical unexplained response variation around the fitted regression. The denominator measures the predictor’s usable information after the other included predictors are taken into account. More unexplained variation tends to make coefficient estimates less stable; more unique predictor variation tends to make them more stable.

A short derivation makes the role of residualized predictor variation precise. Let \(Z\) contain the intercept column and all predictors except predictor \(j\), and let \(x_j\) be the column of observed values for predictor \(j\). Define \(q_j\) as the residual vector from regressing \(x_j\) on \(Z\). In matrix notation, when \(Z\) has full column rank,

$$ q_j=\left[I-Z(Z^\mathsf{T}Z)^{-1}Z^\mathsf{T}\right]x_j. $$

The bracketed matrix removes the part explained by \(Z\), so \(q_j\) is orthogonal to every column of \(Z\). This means the multiple-regression estimate for predictor \(j\) is the slope obtained by relating the part of the response left after accounting for \(Z\) to \(q_j\). Equivalently, substituting the model into that slope gives:

$$ b_j=\frac{q_j^\mathsf{T}Y}{q_j^\mathsf{T}q_j} =\beta_j+\frac{q_j^\mathsf{T}\varepsilon}{q_j^\mathsf{T}q_j}. $$

The equality follows because \(q_j\) is orthogonal to the intercept and the other predictors, while \(q_j^\mathsf{T}x_j=q_j^\mathsf{T}q_j\). With uncorrelated errors of common variance \(\sigma^2\), the variance of \(q_j^\mathsf{T}\varepsilon\), conditional on the predictor values, is \(\sigma^2q_j^\mathsf{T}q_j\). Therefore:

$$ \operatorname{Var}(b_j\mid X) =\frac{\sigma^2q_j^\mathsf{T}q_j}{(q_j^\mathsf{T}q_j)^2} =\frac{\sigma^2}{\sum_{i=1}^n q_{ij}^2}. $$

Replacing the unknown \(\sigma^2\) with \(s^2\) gives the conventional estimated standard error. This derivation explains why raw predictor spread alone is not enough: only the spread that remains after adjustment for the other included predictors appears in the denominator.

Worked Example: Calculating a Standard Error

Suppose a hypothetical study models quiz score, in points, using study hours and prior test score. There are \(n=10\) observations and \(p=2\) predictors. For study hours, the residuals from regressing hours on prior test score and an intercept are \(-4,-2,-2,0,0,0,0,2,2,4\) hours. The response regression has \(SSE=84\) points squared. Assume the linear model’s mean and error-variance conditions hold, and that the predictors have full column rank.

The residual degrees of freedom are \(10-2-1=7\), which is positive. The sum of squared residualized study hours is:

$$ \sum_{i=1}^{10}q_{i,\text{hours}}^2 =(-4)^2+(-2)^2+(-2)^2+0^2+0^2+0^2+0^2+2^2+2^2+4^2 =48\text{ hours}^2. $$

The estimated error variance and its square root are:

$$ s^2=\frac{84}{7}=12\text{ points}^2,\qquad s=\sqrt{12}\approx3.464\text{ points}. $$

Thus, the standard error of the study-hours coefficient is:

$$ SE(b_{\text{hours}}) =\sqrt{\frac{12}{48}} =\sqrt{0.25} =0.5000\text{ points per study hour}. $$

This value estimates the sampling standard deviation of the fitted study-hours coefficient under the stated model conditions and predictor values. It is not the typical distance of individual quiz scores from the regression line; \(s\), not \(SE(b_{\text{hours}})\), measures that residual scale.

Worked Example: When Predictors Overlap

Consider another hypothetical regression with the same response, sample size, and number of predictors. Suppose the residualized study-hours values are now \(-2,-1,-1,0,0,0,0,1,1,2\) hours, while \(SSE\) remains 84 points squared. Assume again that the linear model conditions hold and the design has full column rank. There are still \(10-2-1=7\) residual degrees of freedom.

The predictor has less unique variation:

$$ \sum_{i=1}^{10}q_{i,\text{hours}}^2 =(-2)^2+(-1)^2+(-1)^2+0^2+0^2+0^2+0^2+1^2+1^2+2^2 =12\text{ hours}^2. $$

Since \(SSE/df=84/7=12\) points squared, the coefficient standard error is:

$$ SE(b_{\text{hours}}) =\sqrt{\frac{12}{12}} =1.000\text{ points per study hour}. $$

The standard error is twice the one in the first example, even though the residual variability and sample size are unchanged. The difference is the smaller amount of study-hours variation left after accounting for prior test score. This can happen when predictors overlap strongly. It does not mean that study hours have no association with quiz score; it means the estimate of their separate adjusted association is less precise under this design.

Worked Example: More Residual Noise

Return to a hypothetical model with \(n=10\), \(p=2\), and residualized study-hours sum of squares \(48\text{ hours}^2\). Suppose now that the response regression has \(SSE=168\text{ points}^2\), rather than 84. Assume the same stated model conditions and full column rank. The residual degrees of freedom remain \(7\), so:

$$ s^2=\frac{168}{7}=24\text{ points}^2,\qquad SE(b_{\text{hours}}) =\sqrt{\frac{24}{48}} =\sqrt{0.5} \approx0.7071\text{ points per study hour}. $$

Compared with the first example, the estimated error variance has doubled while the unique predictor variation is unchanged. The standard error has increased by a factor of \(\sqrt{2}\), not by a factor of 2, because standard errors are on the square-root scale. This illustrates the separate contribution of residual noise to coefficient uncertainty.

What the Standard Error Tells You—and What It Does Not

A coefficient’s standard error is expressed in the same units as that coefficient. If the response is in points and the predictor is in hours, the standard error is in points per hour. It describes estimated sampling variability, not the coefficient’s size and not the amount of unexplained variation in the response.

The two components in the formula are useful for understanding practical differences between coefficients. A predictor may have a large raw range but little variation that is distinct from the other predictors. Its coefficient can then have a relatively large standard error. Conversely, substantial unique variation can improve precision, provided the residual variability and other conditions are comparable. No single predictor’s standard error should be interpreted without considering which other predictors are included: changing the adjustment set can change the residualized predictor values and the fitted residuals.

The formula is a model-based calculation. The assumptions about the error mean, common variance, and lack of correlation are not proved by the formula, and summary quantities such as \(SSE\) and residualized predictor values cannot verify them by themselves. In an actual analysis, the model specification and residual behavior need to be considered. If the conventional assumptions are seriously inappropriate, the conventional standard error may not describe the estimator’s sampling variability well.

Common Mistake

Common mistake: “The predictor has a wide range, so its coefficient must have a small standard error.” The correction is to consider its unique variation after accounting for the other included predictors. A predictor may vary widely overall but contribute little independent information if it closely tracks another predictor. Also check that \(n>p+1\); with no residual degrees of freedom, the usual estimate \(s^2=SSE/(n-p-1)\) and conventional standard error cannot be calculated.
Key takeaway: Under the conventional multiple linear regression conditions, \(SE(b_j)=s/\sqrt{\sum q_{ij}^2}\). Greater residual variability increases the standard error; greater predictor variation remaining after adjustment for the other included predictors decreases it.

Check Your Understanding

Answer each question using the standard error formula and its interpretation.

  1. A model has 12 observations and 3 predictors. What are its residual degrees of freedom, and is that enough for a conventional estimate of \(s^2\)?
  2. In your own words, what does a residualized predictor value measure?
  3. If \(s^2=9\) response-units squared and a predictor’s residualized sum of squares is \(36\) predictor-units squared, calculate its coefficient standard error and state its units.
  4. Two models have the same sample size and estimated error variance. One has a smaller residualized sum of squares for a predictor. Which model has the larger standard error for that coefficient, and why?
  5. Why is a coefficient standard error not the same quantity as the residual standard deviation \(s\)?