The full academy launches January 2027. Join the waitlist for the $179 founding price.
Waldbauer Academy of Economics

Courses › Statistics and Econometrics

Second and third year · Module 7 of 15

Inference in regression

The OLS assumptions, the sampling distribution of the slope, standard errors, t-tests and confidence intervals for coefficients, and heteroskedasticity-robust standard errors.

By Maximus S. Waldbauer · About 3 hours, including the problem set and quiz.

Module 6 fitted a line to one sample. A different sample of days, households or cities would give a somewhat different line. This module asks how much the estimated slope would bounce around, and what that means for the conclusions you can draw from it.

You will meet the assumptions under which OLS works, the sampling distribution and standard error of the slope, t-tests and confidence intervals for regression coefficients, how to read a regression table, what heteroskedasticity is and why economists routinely use robust standard errors, and the difference between predicting an average and predicting a single outcome.

By the end of this module you will be able to

What this module covers

  1. The least squares assumptions
  2. The standard error of the slope
  3. t-tests and confidence intervals for coefficients
  4. Heteroskedasticity and robust standard errors
  5. Prediction, and a checklist for reading regressions
  6. Problem set with step-by-step solutions
  7. Module quiz

Lesson 7.1 Free lesson

The least squares assumptions

For OLS to estimate β₁ well and for its standard errors to mean something, three assumptions do the heavy lifting:

Under these three assumptions, OLS is unbiased and consistent, and in large samples β̂₁ is approximately normally distributed around β₁, by the same central limit theorem logic as for a sample mean. β̂₁ is, after all, a weighted average of the Y values.

An optional fourth: homoskedasticity

The error is homoskedastic if its variance is the same at every value of X, and heteroskedastic if it isn’t. Homoskedasticity is not needed for unbiasedness or consistency. It matters only for which standard error formula is right (Lesson 4). Under homoskedasticity plus the three assumptions, the Gauss–Markov theorem says OLS has the smallest variance among all linear unbiased estimators: it is BLUE, the best linear unbiased estimator.

AssumptionIf it failsCovered in
E(u | X) = 0β̂₁ is biased and doesn’t measure X’s effectModules 8 and 13–15
i.i.d. samplingStandard errors are wrong (usually too small)Modules 12 and 14
No large outliersEstimates can be driven by a few pointsModule 6
Homoskedasticity (optional)Conventional SEs are wrong; use robust SEsLesson 4

Common mistake

Thinking OLS requires the errors to be normally distributed. In large samples it doesn’t: the CLT makes β̂₁ approximately normal anyway. Normal errors only matter for exact small-sample t-distributions.

Key ideas

  • The key assumption is E(u | X) = 0: other influences on Y are unrelated to X.
  • With i.i.d. sampling and no large outliers, OLS is unbiased, consistent and approximately normal in large samples.
  • Homoskedasticity is optional; it affects which standard errors are right, not whether β̂₁ is unbiased.
  • Under homoskedasticity OLS is BLUE (Gauss–Markov).

Practice questions: Inference in regression

Try these, then open each answer to check your work.

  1. 1.Which least squares assumption is needed for β̂₁ to be unbiased for the effect of X?
    1. Homoskedastic errors
    2. E(u | X) = 0
    3. Normally distributed errors
    4. A high R²
    Show answer

    Answer: B. Conditional mean zero errors make OLS unbiased; homoskedasticity and normality are not needed.

  2. 2.SER = 6 and Σ(X − X̄)² = 900. SE(β̂₁) is:
    1. 0.0067
    2. 0.2
    3. 0.67
    4. 5
    Show answer

    Answer: B. 6/√900 = 6/30 = 0.2.

  3. 3.Which change would NOT make the slope estimate more precise?
    1. A larger sample
    2. Less noise in the outcome
    3. Less variation in X
    4. More variation in X
    Show answer

    Answer: C. Less variation in X raises the standard error.

Problems with step-by-step solutions

  1. 4.For each situation, say which least squares assumption is most at risk: (a) a regression of monthly city unemployment on monthly interest rates; (b) a regression of test scores on class size where principals put weaker students in smaller classes; (c) a data set of household wealth that includes three billionaires.
    Show step-by-step solution
    1. (a) Independence: monthly observations follow each other, so errors are likely correlated over time.
    2. (b) E(u | X) = 0: student ability (in u) is related to class size (X).
    3. (c) No large outliers: a few extreme values could dominate the fit.
  2. 5.A regression has SER = 12 and Σ(X − X̄)² = 400. Find SE(β̂₁).
    Show step-by-step solution
    1. SE = 12/√400 = 12/20 = 0.6.

Get the full module

The complete module adds every lesson, interactive graphs, a full problem set with step-by-step solutions, and a quiz. The academy opens in January 2027: join the waitlist for the founding price (lifetime access for $179).

Join the waitlist Try a full module free

More practice: free practice questions for this course.