Robust Generalized Least Squares (Robust GLS)

Econometrics
Introduced by
Aitken (GLS theory, 1936); White (robust covariance, 1980)
Year
1936 / 1980
Type
Robust linear regression
Family
Econometrics / time series

What does it do?

Robust GLS combines Generalized Least Squares (GLS) coefficient estimation with a sandwich covariance estimator that does not depend on the error covariance being correctly specified.

It is used when residuals are non-spherical, for example through heteroscedasticity, and the researcher is not confident in the exact form of that covariance structure. The variance estimator described on this page corrects for heteroscedasticity only; serial-correlation-robust (HAC) inference would need an additional term that accounts for dependence across observations.

The intuition behind the method

Classical GLS weights observations according to an error covariance matrix Omega, which yields efficient coefficients when errors have unequal variances or are correlated. The classical GLS covariance formula, however, is only correct if Omega is correctly specified. Robust GLS keeps the GLS weighting for the coefficient estimates and replaces the classical covariance formula with a sandwich form built from squared residuals. Sandwich estimators of this type originate in White's (1980) heteroskedasticity-consistent estimator for OLS and are designed to remain valid under heteroscedasticity of unknown form. Extending that result to GLS-weighted estimates is a separate step. The method does not make a poor choice of Omega harmless for efficiency, and it does not address bias from endogeneity or omitted variables.

History

The GLS framework rests on Aitken's work on estimation under a general error covariance matrix. Halbert White (1980) derived a heteroskedasticity-consistent covariance matrix estimator that gives valid inference without a fully specified error structure in linear regression. Extending such sandwich inference to serial correlation requires HAC estimators, which are not covered on this page.

When to use it

Use Robust GLS when residuals show heteroscedasticity (for example, as flagged by Breusch-Pagan or White tests) and the exact error variance structure is uncertain. The aim is GLS weighting for efficiency without letting inference rest entirely on that structure. Typical settings include macroeconomic time series, financial returns, and cross-country or pooled data, where non-spherical errors and model uncertainty often occur together. Serial correlation is not covered by the variance estimator on this page; if it is present, HAC inference is required. Do not use it when errors are plausibly spherical, since OLS is then sufficient and simpler. Avoid it in small samples, where sandwich estimators rely on large-sample approximations and can understate uncertainty; cluster-robust or bootstrap inference may be preferable there.

Limitations and considerations

  • Depends on a preliminary estimate of Omega; a poor estimate reduces the efficiency gain over OLS even though the variance formula is robust.
  • Sandwich standard errors are large-sample approximations; in small samples they can understate uncertainty and lead to over-rejection of null hypotheses.
  • Adds modelling choices (the covariance structure and how Omega is estimated) that plain OLS avoids, so results are more sensitive to researcher decisions.
  • When errors are spherical there is no efficiency gain over OLS, and the robust variance may be less precise than the classical one.
  • Computationally heavier than OLS, particularly when Omega is estimated iteratively.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Addresses non-spherical errors, including heteroscedasticity and serial correlation through the structure of Omega, while keeping the GLS weighting that gives efficiency gains over OLS when Omega is reasonably specified.
  • The sandwich variance is designed to remain valid under heteroscedasticity of unknown form, so inference does not depend entirely on the assumed Omega. White (1980) established this property for the heteroskedasticity-consistent covariance estimator in linear regression; its application to GLS-weighted estimates is a separate step that needs its own justification.
  • Comparing the robust and classical GLS standard errors shows how much the covariance assumption affects each coefficient's uncertainty.
  • Applies to cross-sectional, time-series, and pooled data where the error structure is complex but partly characterised.

Applications

  • Macroeconomic time-series models with heteroscedastic and autocorrelated errors, such as inflation or growth equations.
  • Cross-country regressions where error variances differ systematically across economies of different size or development.
  • Finance applications modelling asset returns where residual variance clustering violates OLS assumptions.
  • Pooled cross-section and time-series data with group-specific error variances not fully captured by panel fixed effects.
  • Policy evaluation models with a complex error structure that the researcher cannot fully specify in advance.
  • Environmental and health econometrics with residuals that depend across observations, where a HAC-type correction is considered; the dependence structure should be justified for the data.

How it works

How it works

1

The outcome y is modelled as a linear function of X plus an error term whose covariance is sigma squared times Omega, a non-scalar matrix that allows unequal variances and correlation across observations.

Formula
y = X\beta + \varepsilon, \quad \mathrm{Var}(\varepsilon) = \sigma^2 \Omega
2

Pre-multiplying the data by the inverse square root of Omega turns the problem into one with spherical errors, which ordinary least squares can then solve. In practice Omega is estimated from the data.

Formula
\Omega^{-1/2}y = \Omega^{-1/2}X\beta + \Omega^{-1/2}\varepsilon
3

When Omega is known, this estimator is the best linear unbiased estimator (BLUE). When Omega is estimated from the data, the same formula gives feasible GLS (FGLS), which is not guaranteed to be BLUE.

Formula
\hat{\beta}_{\mathrm{GLS}} = (X^{\top}\Omega^{-1}X)^{-1}X^{\top}\Omega^{-1}y
4

Instead of the classical GLS covariance, which assumes Omega is correctly specified, the variance is estimated with a sandwich: a bread given by the inverse of the Omega-weighted cross-product of the regressors, and a meat built from squared residuals, with the Omega weighting applied consistently on both sides.

5

Hypothesis tests on beta use the robust standard errors. Individual coefficients are tested with t-type statistics (estimate divided by its robust standard error), and joint restrictions with Wald-type statistics. The degrees of freedom for the t-type statistics depend on the convention used by the software. Because the sandwich is a large-sample approximation, these tests are reliable only when the sample is large enough for the approximation to hold, and the residuals used in the meat term are reasonable. No fixed minimum sample size is given here; in small samples, results should be checked against alternatives such as bootstrap inference. When robust and classical GLS standard errors differ noticeably for a coefficient, the covariance assumption matters for that coefficient, and the reason should be investigated before the result is reported.

Common pitfalls

  • Treating feasible GLS as if it were true GLS. Once Omega is estimated, the coefficients are no longer guaranteed to be BLUE, and the estimation error in Omega adds uncertainty that the sandwich only partly captures.
  • Stopping at the fitted model without residual diagnostics. If the GLS-transformed residuals still show heteroscedasticity or serial correlation, the estimate of Omega was poor, and robust standard errors alone do not repair the coefficients.
  • Using it in small samples without acknowledging that the sandwich is an asymptotic approximation.
  • Confusing robust GLS with M-estimation. M-estimation downweights outliers through the loss function, whereas robust GLS adjusts the coefficient weighting and the variance estimator for the error covariance; the two address different problems.
  • Expecting robust standard errors to correct bias. They correct inference but not coefficient bias from endogeneity or omitted variables, which call for instrumental variables or panel fixed effects.
  • Reporting robust standard errors on a GLS fit without comment. Applied econometrics texts question whether this practice is prudent, because the robust correction is applied to an already reweighted fit. Compare the robust GLS standard errors with classical GLS and robust OLS standard errors, and check how the specification of Omega affects the conclusions.

Frequently asked questions

What is the difference between Robust GLS and Feasible GLS?

Feasible GLS (FGLS) estimates Omega from the data and plugs it into the GLS formula, and it typically reports classical standard errors that assume Omega was correctly specified. Robust GLS replaces those standard errors with a sandwich covariance matrix, so inference is less dependent on the estimated Omega being exactly right.

Does Robust GLS fix endogeneity or omitted-variable bias?

No. Robust GLS corrects for non-spherical errors and makes inference less dependent on the covariance specification, but it does not remove bias from endogenous regressors or omitted variables. Instrumental variables or panel fixed effects are needed for those problems.

When should I prefer Robust OLS over Robust GLS?

If residuals show heteroscedasticity but no meaningful autocorrelation, and you have no reliable prior information about the error covariance shape, Robust OLS (OLS with White standard errors) is simpler. OLS remains unbiased under exogeneity regardless of Omega, but it is less efficient than GLS when Omega is known. A poorly estimated Omega in FGLS can reduce the efficiency gain and weaken inference. Robust GLS is preferred when the error structure is partly known and the efficiency gain from GLS weighting matters.

How do I estimate the error covariance matrix Omega in practice?

Common approaches include: (1) fitting OLS first and using squared residuals to estimate heteroscedasticity weights; (2) assuming a parametric form such as AR(1) errors and estimating the autocorrelation coefficient; or (3) using a nonparametric HAC kernel estimator. The choice should be guided by residual diagnostics from an initial OLS fit.

Is Robust GLS available in standard statistical software?

Many statistical packages offer GLS estimation, and some offer sandwich or HAC covariance options. Check the documentation to confirm that the robust correction is applied to the GLS fit, with the Omega weighting, rather than to an OLS fit, and report which option you used.

Related methods

Sources

  1. Greene, W. H. (2012). Econometric Analysis (7th ed.). Pearson. Chapter 9: The Generalized Regression Model and Heteroscedasticity.

    ISBN: 978-0131395381
  2. White, H. (1980). A Heteroskedasticity-Consistent Covariance Matrix Estimator and a Direct Test for Heteroskedasticity. Econometrica, 48(4), 817-838.

    Open DOI reference