Correcting for Serial Correlation
There are two routes to valid inference under serial correlation. The modern default is Newey-West (HAC) standard errors, which leave the OLS coefficients untouched and simply compute standard errors robust to both autocorrelation and heteroskedasticity up to a chosen lag. The classical route is feasible GLS, implemented as Cochrane-Orcutt or Prais-Winsten, which estimates , quasi-differences the data, and re-estimates to gain efficiency when the AR(1) model is correct. FGLS can be more efficient but relies on strict exogeneity and a correctly specified error process, so Newey-West is the safer, lower-assumption fix in applied work.
Why it matters
Newey-West takes one line. Trust the estimates, fix the uncertainty. It widens the standard errors to account for errors that move in runs, much as robust standard errors handle heteroskedasticity, and you choose how many lags of autocorrelation to allow for. FGLS instead tries to transform away the autocorrelation by quasi-differencing, which can buy efficiency but only if you have modeled the error dynamics correctly.
Formulas
Worked examples
Your time-series regression has serially correlated errors and you want trustworthy standard errors without changing the model.
Use HAC standard errors: `newey y x, lag(4)`. The coefficients match OLS, but the standard errors are now robust to serial correlation up to four lags (and to heteroskedasticity). Increase `lag()` if autocorrelation is more persistent.
You prefer the classical efficiency gain and believe the AR(1) error model is appropriate.
Run feasible GLS with `prais y x`. Prais-Winsten estimates rho, quasi-differences the data, and retains the first observation, unlike Cochrane-Orcutt which drops it. This can be more efficient than OLS when the AR(1) assumption holds.
Common mistakes
- ✗Newey-West changes the regression coefficients. It leaves the OLS estimates unchanged and only adjusts the standard errors.
- ✗FGLS is always better than robust standard errors. FGLS gains efficiency only if the error model is correct and strict exogeneity holds; otherwise Newey-West is safer.
- ✗Newey-West requires choosing the true lag length exactly. You pick a truncation lag; rules of thumb guide the choice, and results are usually not sensitive to small changes.
- ✗Cochrane-Orcutt and Prais-Winsten are identical. They differ in the first observation: Prais-Winsten keeps it via a special transformation, Cochrane-Orcutt drops it.
Revision bullets
- •Newey-West (HAC) standard errors are the modern default fix
- •HAC keeps OLS coefficients, fixing only the standard errors
- •FGLS (Cochrane-Orcutt / Prais-Winsten) quasi-differences for efficiency
- •Prais-Winsten keeps the first observation; Cochrane-Orcutt drops it
- •Stata: `newey y x, lag(4)` for HAC, `prais y x` for FGLS
Quick check
Newey-West standard errors differ from ordinary OLS standard errors in that they:
The main difference between Cochrane-Orcutt and Prais-Winsten estimation is:
Connected topics
Sources
- Wooldridge (2019), §12.3 and §12.5Wooldridge, Jeffrey M. Introductory Econometrics: A Modern Approach. 7th ed. Cengage, 2019.Covers FGLS (Cochrane-Orcutt, Prais-Winsten) and serial-correlation-robust (Newey-West) standard errors.
- Newey & West (1987)Newey, W.K., and K.D. West. A Simple, Positive Semi-Definite, Heteroskedasticity and Autocorrelation Consistent Covariance Matrix. Econometrica 55 (1987): 703-708.Original derivation of the HAC standard errors implemented by Stata’s newey command.