Recipe
Testing for heteroskedasticity
Steps
- Run OLS to get residuals u^i.
- Square the residuals: u^i2.
- Regress u^i2 on your regressors (Breusch–Pagan) or on regressors plus their squares and cross-products (White).
- Compute nR2 from this auxiliary regression.
- Compare to χ2 with k degrees of freedom (number of regressors in the auxiliary regression, excluding the constant).
- Reject H0 of homoskedasticity if nR2>χk,0.052.
Common pitfalls
- Forgetting that White's test is more general — it also picks up specification errors, not just heteroskedasticity.
- Reporting non-robust standard errors after rejecting the null.