Testing for Heteroskedasticity: Breusch-Pagan and White
The Breusch-Pagan and White tests both ask whether the error variance depends on the regressors, and both work by running an auxiliary regression of the squared OLS residuals on a set of explanatory terms. Breusch-Pagan regresses on the original regressors; the White test adds their squares and cross products, so it also catches variance that depends on nonlinear combinations. The null is homoskedasticity ( constant variance); a small p-value rejects it. In Stata, `estat hettest` runs Breusch-Pagan and `estat imtest, white` runs the White test, both issued right after `regress`.
Why it matters
If the spread of the errors really is constant, then nothing about the regressors should help you predict how big a residual is. So square the residuals, which turns spread into a level you can model, and regress them on the variables. If those variables explain a meaningful chunk of the squared residuals, the spread is moving with and you have heteroskedasticity. Breusch-Pagan looks for a straight-line link to the regressors; the White test casts a wider net by also including squares and interactions, at the price of using up more degrees of freedom.
Formulas
Worked examples
After a housing price regression you want to test formally whether the error variance is constant, using both the Breusch-Pagan and White tests.
Run `regress price lotsize sqrft bdrms`, then `estat hettest` for Breusch-Pagan and `estat imtest, white` for White. Each returns a chi-squared statistic and a p-value testing of homoskedasticity. If `estat hettest` reports a p-value below 0.05, you reject constant variance and should move to robust SEs (or WLS). The White test, having more terms, may reject when Breusch-Pagan does not if the variance depends on squares or interactions.
Common mistakes
- ✗The null hypothesis is heteroskedasticity, so a small p-value means the errors are fine. It is the reverse. is homoskedasticity, so a small p-value rejects constant variance and signals heteroskedasticity.
- ✗The tests regress the residuals themselves on the regressors. They regress the squared residuals , because squaring converts the unobserved spread into a level the auxiliary regression can model.
- ✗The White test is uniformly better than Breusch-Pagan. It is more general because it includes squares and cross products, but it uses many more degrees of freedom, which can cost power in small samples; the two answer slightly different questions.
- ✗Failing to reject means heteroskedasticity is definitely absent. A non-rejection is only weak evidence; with a small sample the test may simply lack power. Many practitioners report robust SEs regardless of the test outcome.
Revision bullets
- •Both tests use an auxiliary regression of on explanatory terms
- •Breusch-Pagan: on the regressors; White: also squares and cross products
- • is homoskedasticity; small p-value rejects it
- •Statistics: joint or from the auxiliary fit
- •Stata: `estat hettest` (Breusch-Pagan), `estat imtest, white` (White)
Quick check
In both the Breusch-Pagan and White tests, the null hypothesis is:
What is the dependent variable in the auxiliary regression for these tests?
How does the White test differ from the Breusch-Pagan test?
Connected topics
Sources
- Wooldridge (2019), §8.3Wooldridge, Jeffrey M. Introductory Econometrics: A Modern Approach, 7th ed., Section 8.3, Testing for Heteroskedasticity. Cengage, 2019.Presents the Breusch-Pagan and White tests as auxiliary regressions of the squared residuals, with the F and LM forms of the statistic.
- Breusch, T. S., and A. R. Pagan. A Simple Test for Heteroscedasticity and Random Coefficient Variation. Econometrica 47(5): 1287-1294, 1979.Original Breusch-Pagan test based on regressing squared residuals on the explanatory variables.