Enter Values
Test Formulas
Test Results
χ² Distribution
Formula Breakdown
Model Assumptions
- H0: Var(u|X1,...,Xk) = σ² (homoskedasticity — constant error variance)
- Linear regression model with zero conditional mean: E(u|X) = 0
- BP test assumes normally distributed errors (sensitive to non-normality)
- White test does not require normality — more general, but a significant result can reflect heteroskedasticity and/or model misspecification
- Robust SEs are valid under heteroskedasticity but require large samples; the entered robust SE is assumed to be HC1 from your regression output
- Both k and q exclude the intercept; the auxiliary R² must come from a regression that includes an intercept
- This is a cross-sectional OLS diagnostic calculator
For educational purposes. Not financial advice. Econometric assumptions simplified for educational use.
Interpretation Guide
| Result | Condition | Action |
|---|---|---|
| Reject H0 | p-value < α | Use robust SEs or WLS |
| Fail to reject H0 | p-value ≥ α | OLS inference valid |
| SE Ratio > 1.2 | Robust SE >> OLS SE | OLS understates uncertainty for this coefficient |
| SE Ratio 0.8–1.2 | SEs broadly similar | Little practical difference |
Understanding Heteroskedasticity Testing
What is Heteroskedasticity?
Heteroskedasticity occurs when the variance of regression errors is not constant across observations — formally, Var(u|X) changes with X. In a scatter of residuals against fitted values, heteroskedasticity often appears as a fan or cone shape, where the spread of residuals widens (or narrows) as the fitted values increase.
H1: Var(u|X1,...,Xk) ≠ σ² (non-constant variance)
Under E(u|X) = 0, heteroskedasticity does not bias coefficients — only standard errors
Consequences of Heteroskedasticity
- Coefficients remain unbiased — OLS estimates are still unbiased and consistent under E(u|X) = 0, regardless of heteroskedasticity
- Standard errors are biased — OLS standard errors computed under homoskedasticity are incorrect, leading to unreliable t-tests, F-tests, and confidence intervals
- OLS is no longer efficient — OLS is not the minimum-variance linear unbiased estimator (violates the Gauss-Markov theorem)
BP Test vs. White Test
Breusch-Pagan Test
Tests whether error variance depends linearly on the regressors. Assumes normally distributed errors. Uses k degrees of freedom. Best when you suspect variance increases with specific X variables.
White Test
More general — tests for any pattern in error variance using levels, squares, and cross-products. Does not require normality. Uses q degrees of freedom. Note: rejection can reflect model misspecification, not just heteroskedasticity.
Robust Standard Errors
When heteroskedasticity is detected, two main remedies exist:
- Robust (HC1) standard errors — Adjust the variance-covariance matrix to account for heteroskedasticity. Valid inference without modeling the variance function. The HC1 correction multiplies by n/(n-k-1) for small-sample adjustment. This calculator compares user-entered OLS and robust SEs.
- Weighted Least Squares (WLS) — More efficient if you correctly specify how variance depends on X. Riskier if the variance function is misspecified.
Frequently Asked Questions
Disclaimer
This calculator is for educational purposes only and provides heteroskedasticity diagnostics for cross-sectional OLS regression. It uses summary statistics (R², standard errors) rather than raw data. Actual regression analysis involves additional considerations including functional form, omitted variables, and sample selection. This tool should not be used as the sole basis for econometric decisions.