Skip to content
Simple Regressionintermediate

Variance of the OLS Estimators

Adding the homoskedasticity assumption SLR.5, Var(ux)=σ2\mathrm{Var}(u \mid x) = \sigma^2 (the error variance is constant across xx), gives the sampling variance of the slope as Var(β^1)=σ2(xixˉ)2\mathrm{Var}(\hat{\beta}_1) = \frac{\sigma^2}{\sum (x_i - \bar{x})^2}. The variance shrinks with a smaller error variance σ2\sigma^2 and with more spread in xx, and it inflates when σ2\sigma^2 is large or xx barely varies. Because σ2\sigma^2 is unknown, it is estimated by σ^2=SSR/(n2)\hat{\sigma}^2 = SSR / (n - 2), whose square root σ^\hat{\sigma} is the standard error of the regression, and the reported standard error of β^1\hat{\beta}_1 is the square root of the estimated variance.

Why it matters

How precise the slope is depends on three things, the noise in yy, the spread of xx, and the sample size. A noisier outcome (large σ2\sigma^2) makes the slope harder to pin down. A wider spread of xx acts like a longer lever, anchoring the line more firmly, so more variation in xx lowers the variance. More data points in the denominator help too. Standard errors translate this variance into the everyday measure of how much you should trust the coefficient.

Formulas

Variance of the slope (under SLR.5)
Var(β^1)=σ2i=1n(xixˉ)2\mathrm{Var}(\hat{\beta}_1) = \frac{\sigma^2}{\sum_{i=1}^{n} (x_i - \bar{x})^2}
Holds under SLR.1 to SLR.5. Falls as σ2\sigma^2 falls or as the total variation in xx rises.
Estimated error variance
σ^2=SSRn2=u^i2n2\hat{\sigma}^2 = \frac{SSR}{n - 2} = \frac{\sum \hat{u}_i^2}{n - 2}
Unbiased estimator of σ2\sigma^2. The divisor n2n - 2 corrects for the two parameters β^0\hat{\beta}_0 and β^1\hat{\beta}_1 already estimated. Its square root σ^\hat{\sigma} is the standard error of the regression.
Standard error of the slope
se(β^1)=σ^(xixˉ)2\mathrm{se}(\hat{\beta}_1) = \frac{\hat{\sigma}}{\sqrt{\sum (x_i - \bar{x})^2}}
The square root of the estimated variance. This is the number Stata reports next to the coefficient.

Worked examples

Scenario

After `regress wage educ`, Stata reports a coefficient on `educ` of 0.54 with a standard error of 0.05, and a "Root MSE" of 3.4.

Solution

The standard error 0.05 is Var(β^1)\sqrt{\mathrm{Var}(\hat{\beta}_1)}, computed as σ^\hat{\sigma} divided by the square root of the total variation in `educ`. The Root MSE 3.4 is σ^\hat{\sigma}, the standard error of the regression, estimating the standard deviation of uu. If education had been less spread out in the sample, the denominator would shrink and the standard error would rise, making the slope less precise.

NoteStata labels σ^\hat{\sigma} as "Root MSE" in the regression header.

Common mistakes

  • The standard error of the regression σ^\hat{\sigma} is the same as the standard error of β^1\hat{\beta}_1. σ^\hat{\sigma} estimates the spread of the errors around the line. The standard error of β^1\hat{\beta}_1 measures the precision of the slope estimate and equals σ^\hat{\sigma} divided by (xixˉ)2\sqrt{\sum (x_i - \bar{x})^2}.
  • The variance formula σ2/(xixˉ)2\sigma^2 / \sum (x_i - \bar{x})^2 holds without homoskedasticity. It relies on SLR.5, Var(ux)=σ2\mathrm{Var}(u \mid x) = \sigma^2. Under heteroskedasticity this formula is wrong and robust standard errors are needed instead.
  • More variation in xx makes estimates worse. The opposite is true. Greater spread in xx enlarges the denominator (xixˉ)2\sum (x_i - \bar{x})^2 and lowers Var(β^1)\mathrm{Var}(\hat{\beta}_1), so the slope is estimated more precisely.
  • Homoskedasticity is needed for OLS to be unbiased. Unbiasedness needs only SLR.1 to SLR.4. SLR.5 is required for the simple variance formula and for OLS to be the best linear unbiased estimator, not for unbiasedness itself.

Revision bullets

  • SLR.5 homoskedasticity: Var(ux)=σ2\mathrm{Var}(u \mid x) = \sigma^2, constant error variance
  • Var(β^1)=σ2(xixˉ)2\mathrm{Var}(\hat{\beta}_1) = \frac{\sigma^2}{\sum (x_i - \bar{x})^2}
  • Variance falls with smaller σ2\sigma^2, more spread in xx, larger nn
  • σ^2=SSR/(n2)\hat{\sigma}^2 = SSR/(n-2); σ^\hat{\sigma} is the standard error of the regression (Root MSE)
  • se(β^1)=σ^/(xixˉ)2\mathrm{se}(\hat{\beta}_1) = \hat{\sigma} / \sqrt{\sum (x_i - \bar{x})^2}, reported by Stata

Quick check

Under SLR.1 to SLR.5, the variance of the OLS slope decreases when:

What does the assumption of homoskedasticity, SLR.5, state?

Connected topics

Sources

  1. Wooldridge (2019), Ch. 2.5
    Wooldridge, Jeffrey M. Introductory Econometrics: A Modern Approach. 7th ed. Cengage Learning, 2019. ISBN 978-1-337-55886-0.
    Section 2.5 adds the homoskedasticity assumption SLR.5 and derives the sampling variance of the OLS estimators and the standard error of the regression.
  2. Wooldridge (2019), §2.5 (Theorem 2.2)
    Wooldridge, Jeffrey M. Introductory Econometrics: A Modern Approach. 7th ed. Cengage Learning, 2019.
    Theorem 2.2 gives Var(β^1)=σ2/(xixˉ)2\mathrm{Var}(\hat{\beta}_1) = \sigma^2 / \sum (x_i - \bar{x})^2 and the unbiased estimator σ^2=SSR/(n2)\hat{\sigma}^2 = SSR/(n-2).
How to cite this page
Dr. Phil's Quant Lab. (2026). Variance of the OLS Estimators. Derivatives Atlas. https://phucnguyenvan.com/concept/efm-ols-variance