Heteroscedasticity Test Calculator

Run Breusch-Pagan and White tests quickly together. Inspect residual spread, variance ratios, and significance estimates. Download clean summaries for analysis notes, reviews, and sharing.

Input Data and Settings
Typical values: 0.10, 0.05, 0.01
Higher values separate groups more strongly.
Controls the variance-driver proxy in the auxiliary model.
Use two-sided mode when direction is unknown.
Accepted separators: comma, space, tab, or semicolon. Optional header row is allowed.
Example Data Table

This sample intentionally has wider residual spread at larger X values, which helps demonstrate heteroscedasticity tests.

#XYComment
112.2Small early variance
224.1Close to trend
335.8Low spread
448.5Moderate deviation
559.4Lower than local trend
6613.7Spread rising
7712.9Spread rising
8818.6Larger positive error
9917.1Larger negative error
101023.8Higher variance zone
111120.9Higher variance zone
121229.0Higher variance zone
Formula Used
Main OLS model: yᵢ = a + b·xᵢ + eᵢ
Breusch-Pagan: Regress eᵢ² on an auxiliary predictor (X or fitted values). LM = n·R², with χ² degrees of freedom equal to auxiliary predictors.
White test (single regressor version): Regress eᵢ² on [1, X, X²]. LM = n·R², compared to a χ² distribution with 2 degrees of freedom.
Goldfeld-Quandt: Sort by X, remove a middle block, fit two regressions, then compare group error variances using F = MSEupper / MSElower (or larger/smaller in two-sided mode).

Interpretation: a small p-value suggests the residual variance changes across observations, indicating heteroscedasticity.

How to Use This Calculator
  1. Paste paired X and Y data into the input box. One row per observation.
  2. Set the significance level (alpha), usually 0.05.
  3. Choose the Breusch-Pagan auxiliary predictor (X or fitted values).
  4. Set the Goldfeld-Quandt omitted middle percentage and test mode.
  5. Click Run Heteroscedasticity Tests to generate results above the form.
  6. Review test statistics, p-values, and observation diagnostics.
  7. Use the CSV or PDF buttons to save a report copy.

Tip: If one test is borderline, compare all three tests together and inspect residual magnitudes before deciding whether to use robust standard errors or model transformations.

Data Patterns and Variance Behavior

Heteroscedasticity occurs when residual variance changes across observations rather than staying constant. In applied modeling, this often appears when larger predictor values produce wider prediction errors. This calculator converts that visual suspicion into measurable evidence. Users paste paired X and Y data, run the tests, and review p-values, fitted values, residuals, and residual squares together. The combined output helps confirm whether ordinary least squares assumptions remain reliable before formal reporting decisions are finalized.

Breusch-Pagan Test Interpretation

The Breusch-Pagan test checks whether squared residuals are explained by a selected variance driver. This calculator lets users choose X values or fitted values for the auxiliary regression. It computes the LM statistic as sample size multiplied by auxiliary R-squared. A low p-value suggests changing variance, while a higher p-value supports homoscedasticity. The result is practical for routine diagnostics, especially when analysts expect a smooth variance relationship across ordered observations in production datasets.

White Test for Flexible Variance Structure

The White test extends variance detection by using X and X squared in the auxiliary regression. That extra flexibility helps identify curved or irregular variance patterns that simpler checks may miss. The calculator reports the White LM statistic and p-value beside Breusch-Pagan and Goldfeld-Quandt outputs for direct comparison. Because the auxiliary model uses more terms, analysts should ensure enough observations are available and interpret findings alongside the residual table and fitted-value behavior.

Goldfeld-Quandt Split Sample Analysis

Goldfeld-Quandt testing is useful when observations can be ordered by predictor scale. The calculator sorts rows by X, omits a configurable middle percentage, and fits separate regressions to lower and upper groups. It compares mean squared errors using an F statistic. One-sided mode targets increasing variance, while two-sided mode checks any major difference. This split-sample approach is effective for growth, size, pricing, or exposure data with clear ordering and widening dispersion risks.

Practical Actions After Detection

When heteroscedasticity is detected, the model is not automatically invalid. Analysts should confirm data quality, inspect outliers, and compare all three tests before changing methods. Common remedies include robust standard errors, weighted least squares, logarithmic transformations, or segmented models. This calculator supports that workflow with formulas, example data, observation diagnostics, and downloadable reports. It improves documentation quality and helps teams make consistent, variance-aware decisions during regression review and communication clearly.

FAQs

1) What does a low p-value mean here?

A low p-value suggests residual variance is not constant across observations. In other words, the model likely shows heteroscedasticity, and ordinary standard errors may be unreliable for inference.

2) Which test should I trust most?

Use all three together. Breusch-Pagan is efficient for smooth variance patterns, White is broader, and Goldfeld-Quandt is useful when variance changes with ordered predictor scale.

3) How many observations are recommended?

At least eight observations are required for basic use, but more data improves stability. White and split-sample testing especially benefit from larger samples and clearer variance structure.

4) Can I use fitted values in Breusch-Pagan?

Yes. This calculator allows X or fitted values as the auxiliary predictor. Fitted values can be useful when variance appears linked to expected output magnitude.

5) What should I do after detection?

Consider robust standard errors, weighted least squares, transformations, or a revised model form. Always review residual diagnostics and data quality before selecting a correction method.

6) Does heteroscedasticity change coefficients?

OLS coefficients can remain unbiased under common conditions, but inference is affected. The main issue is distorted standard errors, confidence intervals, and significance testing.

Related Calculators

Linear Regression CalculatorMultiple Regression CalculatorLogistic Regression CalculatorSimple Regression CalculatorPower Regression CalculatorLogarithmic Regression CalculatorR Squared CalculatorAdjusted R SquaredSlope Intercept CalculatorCorrelation Coefficient Calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.