ECON 3209 · Week 12, Lecture 3 · Kerala Agricultural University
Autumn 2026
By the end of this lecture, you will be able to:
statsmodelsHC3 is a popular heteroscedasticity-robust correction, especially in moderate samples.
It leaves \(\hat\beta\) unchanged but recomputes the covariance matrix.
In practice, robust SEs are often the safest first remedy when you do not trust the homoskedasticity assumption.
If \(Var(\varepsilon_i|X_i) \propto h_i\), use weights proportional to \(1/h_i\).
\[\min_{\beta} \sum_{i=1}^n w_i (Y_i - X_i'\beta)^2\]
with larger weights on observations having smaller error variance.
WLS is most useful when variance grows in a known way, such as: - variance proportional to farm size - sampling design weights - grouped data with known precision differences
If the variance model is wrong, WLS can mislead.
Robust SEs fix the standard errors. WLS changes the estimation problem itself.
✅ Robust standard errors leave OLS coefficients unchanged but repair inference under heteroscedasticity.
✅ HC3 is a useful default robust covariance choice in moderate samples.
✅ WLS reweights observations and can improve efficiency when the variance model is credible.
✅ Comparing OLS, robust OLS, and WLS reveals whether heteroscedasticity matters in practice.
✅ Method choice should follow the empirical goal and how much you know about the variance pattern.
Week 13 — Dummy Variables
We will cover: - binary and categorical predictors - interaction terms - structural breaks - dummy-variable coding in Python
ECON 3209 — Kerala Agricultural University