Skip to main content
Back

Heteroskedasticity and Autocorrelation Consistent (HAC) Standard Errors in Regression Analysis

Study Guide - Smart Notes

Tailored notes based on your materials, expanded with key definitions, examples, and context.

Regression Analysis

Heteroskedasticity and Autocorrelation Consistent (HAC) Standard Errors

In econometric analysis, especially with time series data, it is crucial to account for both heteroskedasticity (non-constant variance of errors) and autocorrelation (correlation of error terms across time). HAC standard errors provide a robust method for estimating the variance of regression coefficients when these issues are present.

  • Heteroskedasticity: Occurs when the variance of the error term ut is not constant across observations.

  • Autocorrelation: Occurs when the error terms are correlated across time, i.e., Cov(ut, us) ≠ 0 for t ≠ s.

  • HAC Standard Errors: These are standard errors that are robust to both heteroskedasticity and autocorrelation, ensuring valid inference in time series regressions.

OLS Estimator and Variance in the Presence of HAC

Consider the simple linear regression model with a single regressor:

  • Model:

  • OLS estimator for (from SW Appendix 4.3):

  • Where

Variance of the OLS Estimator

The variance of the OLS estimator depends on the properties of the error terms:

  • General formula for variance:

  • Expanded for general T:

  • For i.i.d. (independent and identically distributed) cross-sectional data, for :

  • This is the standard cross-sectional result.

Time Series Data: The Need for HAC

In time series data, error terms may be autocorrelated, so in general. For example, with T = 2:

  • Where

  • Let , so variance is

  • If (i.i.d. case), , recovering the usual formula.

  • If , the variance is not given by the usual formula.

General Formula for HAC Variance (Any T)

For general T, the variance formula incorporates autocorrelation:

So,

Where

  • is the autocorrelation at lag j.

Implications and Applications

  • Conventional heteroskedasticity-robust OLS standard errors are incorrect when ut is serially correlated.

  • The OLS standard errors are off by the factor fT.

  • It is necessary to use the augmented HAC standard error formula for valid inference in time series regressions.

Summary Table: Comparison of Standard Error Formulas

Data Type

Variance Formula

Assumptions

Cross-sectional (i.i.d.)

No autocorrelation, possibly heteroskedastic

Time Series (HAC)

Allows for autocorrelation and heteroskedasticity

Example Application

  • Suppose you are estimating the effect of an economic variable Xt on Yt using quarterly data. If the error terms are autocorrelated (e.g., due to business cycles), using conventional OLS standard errors will underestimate the true variability of your estimator. HAC standard errors correct for this, providing more reliable confidence intervals and hypothesis tests.

Pearson Logo

Study Prep