- Introduced by
- Stephen Goldfeld & Richard Quandt
- Year
- 1965
- Type
- F-ratio test for heteroskedasticity
- Family
- Heteroskedasticity
What does it do?
The Goldfeld-Quandt test, introduced by Stephen Goldfeld and Richard Quandt in 1965, is a classical diagnostic procedure for detecting heteroskedasticity in OLS regression.
It operates by sorting observations according to a variable suspected of driving variance, omitting a central block, fitting separate regressions on the two tail sub-samples, and comparing their residual variances via an F-ratio. The test is particularly well-suited to situations where the error variance is believed to increase or decrease monotonically with an observed regressor.
The intuition behind the method
The core idea is that if the error variance is constant, two sub-samples taken from opposite ends of an ordering variable should yield similar residual variances. If the observations are sorted in ascending order of that variable, a markedly larger residual variance in the high-end sub-sample than in the low-end sub-sample suggests that the errors grow with it. The procedure fits OLS separately to each tail and compares the two residual variances with an F-ratio, which turns a heteroskedasticity question into a familiar ratio test.
History
Stephen Goldfeld and Richard Quandt published the test in 1965 in the Journal of the American Statistical Association, under the title 'Some tests for homoscedasticity'. The paper presented two tests: the parametric F-ratio test described on this page, and a nonparametric test based on the number of peaks in the ordered sequence of unsigned residuals. The Breusch-Pagan and White tests, which do not require a pre-specified ordering variable, were developed later and are commonly taught alongside the Goldfeld-Quandt test.
When to use it
The Goldfeld-Quandt test is most appropriate when a researcher suspects that error variance changes monotonically with a single identifiable variable, such as firm size, income, or time. It requires the analyst to pre-specify the ordering variable and the omitted fraction before examining the data; post-hoc choice of these parameters inflates the actual rejection rate. The test assumes that OLS residuals from each sub-sample are independently and normally distributed under the null. With very small samples, degrees of freedom in each sub-regression may be insufficient for reliable inference. When heteroskedasticity depends on multiple variables or takes a non-monotone form, the Breusch-Pagan or White test is preferable.
Limitations and considerations
- Requires the analyst to specify the ordering variable in advance, introducing subjectivity and potential specification error
- Sensitive to the choice of the omitted central fraction; different fractions can yield different conclusions
- Has low power against non-monotone or complex forms of heteroskedasticity not linked to a single ordered variable
- Assumes normally distributed errors within each sub-sample; departures from normality can distort the F-ratio
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Simple to implement, since each step uses ordinary least squares on a sub-sample and is available in any standard statistical package
- Under normally distributed errors the F reference distribution holds exactly in finite samples, unlike the asymptotic chi-squared reference used by some later tests; this exactness depends on the normality assumption listed under limitations
- Transparent: the result rests on a single comparison of two residual variance estimates from the two tails
- Power is concentrated against variance patterns that move monotonically with the chosen ordering variable, so the test is efficient when that variable is correctly identified
Applications
- Cross-sectional wage equations where residual variance may increase with employer size or income
- Consumption function estimation where saving variance is hypothesized to rise with household income
- Production function analysis in agricultural or industrial economics with heterogeneous firm sizes
- Time-series regressions where calendar time is the ordering variable and the error variance is suspected to change monotonically across the sample
- Health economics expenditure regressions where variance in spending correlates with patient age or severity
How it works
How it works
Observations are ordered by the suspected variance-driving variable, and a central block is omitted. Here c is the omitted fraction of the n observations, so each tail contains (1 − c)n/2 observations. Omitting one-third of the sample (c = 1/3) is a common convention rather than a requirement, and the fraction should be fixed before the data are examined. Omitting the centre leaves two tails of roughly equal size, so the low-variance and high-variance ends contrast more sharply than they would if the centre were kept.
Formula
\text{Sort observations by the suspected variance-driving variable } x_i \text{ and omit a central fraction } c \text{ of the } n \text{ observations (commonly } c = \tfrac{1}{3}\text{), yielding two sub-samples of size } n_1 = n_2 = \tfrac{(1-c)\,n}{2}Ordinary least squares is fitted separately to each of the two tails, using the same set of regressors in both. Fitting the tails separately means each residual sum of squares reflects only the variability within that tail.
Formula
\text{Fit OLS separately on each sub-sample: } \hat{\boldsymbol{\beta}}_1 = (\mathbf{X}_1^\top \mathbf{X}_1)^{-1}\mathbf{X}_1^\top \mathbf{y}_1 \text{ and } \hat{\boldsymbol{\beta}}_2 = (\mathbf{X}_2^\top \mathbf{X}_2)^{-1}\mathbf{X}_2^\top \mathbf{y}_2The residual sum of squares from each sub-regression is divided by its residual degrees of freedom, n_j minus k, to give an estimate of the error variance in that tail.
Formula
\hat{\sigma}_j^2 = \frac{\mathbf{e}_j^\top \mathbf{e}_j}{n_j - k}, \quad j = 1, 2, \quad \text{where } \mathbf{e}_j = \mathbf{y}_j - \mathbf{X}_j \hat{\boldsymbol{\beta}}_jThe F-ratio is the variance estimate from sub-sample 2 divided by the variance estimate from sub-sample 1, as defined in the formula. Under the null hypothesis of equal variances it follows an F distribution with n_2 minus k and n_1 minus k degrees of freedom. The default alternative, as implemented for gqtest() in the lmtest package, is one-sided and tests for increasing variance in sub-sample 2 (H1: σ2² > σ1²). H0 is then rejected when F exceeds the upper critical value F(1 − α; n_2 − k, n_1 − k). For a two-sided alternative (H1: σ2² ≠ σ1²), H0 is rejected when F exceeds F(1 − α/2; n_2 − k, n_1 − k) or falls below F(α/2; n_2 − k, n_1 − k). State which alternative was used when reporting results. As a worked example, a two-sided test comparing a metropolitan and a rural wage equation, with 213 and 84 observations and K = 3 parameters in each regression, uses the critical values F(0.975, 210, 81) = 1.4615 and F(0.025, 210, 81) = 0.7049. The statistic GQ = 2.6033 exceeds the upper value, so the null hypothesis of equal error variances is rejected.
Formula
F = \frac{\hat{\sigma}_2^2}{\hat{\sigma}_1^2} \sim F(n_2 - k,\; n_1 - k) \quad \text{under } H_0: \sigma_1^2 = \sigma_2^2Common pitfalls
- Selecting the ordering variable or the omitted fraction after inspecting residuals inflates the Type I error rate and makes the reported p-values invalid
- Using an ordering variable that also affects the conditional mean can make a rejection reflect functional-form misspecification rather than changing error variance, because the two sub-sample fits then differ in their systematic part
- Interpreting a non-significant result as proof of homoskedasticity ignores the test's limited power against alternative forms of heteroskedasticity
- Forgetting to use the same set of regressors in both sub-samples produces non-comparable residual variances and an invalid F statistic
Frequently asked questions
How should I choose the fraction of observations to omit from the centre?
The procedure described on this page omits a central block. Omitting one-third of the sample is a common convention, not a rule. The fraction should be fixed before inspecting residuals, because choosing it after looking at the data invalidates the F-distribution reference. Results can differ across fractions, so it is prudent to report how sensitive the conclusion is to this choice.
Can the Goldfeld-Quandt test detect heteroskedasticity that is not monotone in any single variable?
No. The test is designed for monotone heteroskedasticity linked to a pre-chosen ordering variable. Non-monotone patterns, heteroskedasticity driven by multiple variables, or complex error structures are better diagnosed with the White test or the Breusch-Pagan test, which do not require a single ordering variable.
What corrective action should follow a significant Goldfeld-Quandt result?
A significant result indicates heteroskedastic errors, which can make conventional OLS standard errors unreliable. Common remedies include weighted least squares with inverse-variance weights and heteroskedasticity-consistent standard errors of the kind associated with White. A variance-stabilising transformation of the dependent variable is an option only when the variance function is known and the transformation is justified.
Related methods
Sources
Goldfeld, S. M., & Quandt, R. E. (1965). Some tests for homoscedasticity. Journal of the American Statistical Association, 60(310), 539–547.
Open DOI referencePrinciples of Econometrics, 5th Edition, p. 385