Chapter 3
Chapter 3
Tim Ederer
Mini 2, 2024
Tepper Business School
Introduction
1 / 16
Reminder: Variance of OLS Estimator
2 / 16
Reminder: Homoskedasticity and IID
3 / 16
Heteroskedasticity
Heteroskedasticity: Definition
Examples
• Volatility in earnings increases with education: Var(εi |xi ) = γ1 + γ2 educi
• House price variance is higher in neighborhood A vs neighborhood B
4 / 16
Heteroskedasticity: Visualisation
Under HOMOSKEDASTICITY, plotting residuals ε̂i against xi should look like this
• Variance of residuals should not depend on xi
5 / 16
Heteroskedasticity: Visualisation
Under heteroskedasticity, plotting residuals ε̂i against xi could look like this
• Variance of residuals is increasing with xi in this case
7 / 16
Heteroskedasticity: Consequences
8 / 16
Illustration in R
0
Consider model yi = β1 + β2 xi + εi with β =
1
• We assume that xi ∼ N (0, 1) and εi |xi ∼ N (0, σi2 )
• Set σi = 1 + 0.5xi + 0.1xi2
Results
• It contains 1 only for 88% of the samples
• Confidence intervals are smaller than what they should be because of bias in std errors!
9 / 16
Testing for the Presence of Heteroskedasticity
10 / 16
Heteroskedasticity Robust Variance Estimators
11 / 16
Summary
But more importantly you can change your estimator for Var(β̂|X )!
• HC estimator is unbiased under homoskedasticity AND heteroskedasticity
• It can be computed at 0 cost in any statistical software
• There is no excuse for not using it next time you run a regression!
12 / 16
Cluster Sampling
Relaxing IID
13 / 16
Cluster Sampling
Focus on case where you sample groups (or clusters) instead of individuals
• Example: you sample households or villages instead of individuals
• Independence across clusters but dependence within clusters
• Cov(εi , εj |X ) = σij ̸= 0 for i and j in the same cluster c = 1, ..., C
14 / 16
Consequences
15 / 16
Summary
Important issues arise when HOMOSKEDASTICITY and IID are not satisfied
• Estimator of Var(β̂|X ) is biased
• Inference procedure breaks down: confidence intervals are wrong, tests are unreliable
16 / 16