Imagine trying to predict the daily sales at a popular coffee shop. You build a model that includes the price of coffee, the local weather, and maybe a “day of the week” variable. You run your regression and get what looks like a great result. But there’s a hidden problem: today’s sales aren’t just influenced by today’s weather; they’re also incredibly similar to *yesterday’s* sales. This “memory” in your data, where the error in one period is correlated with the error in the previous period, is called autocorrelation.

When this happens, the trusty method of Ordinary Least Squares (OLS) starts to get things wrong. While your estimated coefficients (the ‘betas’) are still unbiased, the standard errors associated with them are not. They are typically understated, making your t-statistics look larger than they should. The result? You might confidently declare that “weather” is a highly significant predictor of coffee sales when, in reality, its effect is much less certain. Your model’s R-squared will likely be inflated, and your Durbin-Watson statistic will flash a warning sign. This is a serious problem for anyone who wants to make reliable inferences. Fortunately, econometrics provides a toolkit of “remedial measures” to fix this. Let’s explore the most important ones, from the theoretically perfect to the pragmatically powerful.

Table of Contents

The ‘gold standard’ solution: Generalized Least Squares (GLS)

When we find autocorrelation, our OLS model has violated one of the key Gauss-Markov assumptions: that the error terms are uncorrelated. Because of this, OLS is no longer the BLUE-the Best Linear Unbiased Estimator. It’s still “linear” and “unbiased,” but it’s no longer “best,” meaning another estimator exists that is also unbiased but has a smaller variance. That “best” estimator is Generalized Least Squares (GLS).

In simple terms, GLS is a method that accounts for the known structure of the errors to produce estimates that are, once again, BLUE. It’s like giving OLS a new set of instructions that says, “Hey, pay attention to the fact that the errors are linked, and adjust your calculations accordingly.”

But how do we actually *do* GLS? We don’t just click a “GLS” button. Instead, we perform a clever transformation on our data so that running *OLS* on the *transformed data* is equivalent to running GLS on the original data. This brilliant workaround is most commonly known as quasi-first differencing.

Bringing GLS to life: The quasi-first difference transformation

Let’s assume our errors follow the simplest and most common pattern: a first-order autoregressive scheme, or AR(1). This means an error today is a fraction of yesterday’s error, plus a new, random shock.

Our original model is:
Yt = ฮฒ0 + ฮฒ1Xt + ut

And the error structure is:
ut = ฯut-1 + ฮตt

Here, ฯ (rho) is the autocorrelation coefficient (a value between -1 and 1), and ฮตt is a new, “well-behaved” error term that meets all the classical assumptions. The whole problem lies with ut, not ฮตt.

The GLS procedure, in this case, is to “filter out” the problematic part of the error. We do this by using quasi-first differencing. The ‘quasi’ part is because we subtract rho times the previous value, not the full previous value.

Here is the logic:

  1. Take the original equation at time t:
    Yt = ฮฒ0 + ฮฒ1Xt + ut
  2. Take the same equation at time t-1 and multiply it by ฯ:
    ฯYt-1 = ฯฮฒ0 + ฯฮฒ1Xt-1 + ฯut-1
  3. Subtract the second equation from the first:
    (Yt - ฯYt-1) = (ฮฒ0 - ฯฮฒ0) + (ฮฒ1Xt - ฯฮฒ1Xt-1) + (ut - ฯut-1)

This looks messy, but let’s simplify. Let’s define our new, transformed variables:

  • Yt* = (Yt - ฯYt-1)
  • Xt* = (Xt - ฯฮฒ1Xt-1)
  • ฮฒ0* = (ฮฒ0 - ฯฮฒ0), or ฮฒ0(1-ฯ)

And what about the error term? Based on our AR(1) definition, (ut - ฯut-1) is just ฮตt.

So, our new, transformed model is:
Yt* = ฮฒ0* + ฮฒ1Xt* + ฮตt

This new equation is now free of autocorrelation! Its error term, ฮตt, is well-behaved. If we now run OLS on this transformed model, our estimates for ฮฒ0* and ฮฒ1 will be efficient and our standard errors will be correct. This transformation is the heart of the GLS procedure, and it produces BLUE estimators. Of course, in practice, we don’t know the true `ฯ`, so we have to estimate it first (often by running the original OLS regression and calculating `ฯ` from its residuals), a process known as Feasible Generalized Least Squares (FGLS).

Don’t lose that first observation: The Prais-Winsten transformation

The quasi-difference method is brilliant, but it has one annoying side effect. Look at the transformed variable: Yt* = (Yt - ฯYt-1). To calculate this, you need the *previous* period’s value. But what about the very first observation in your dataset (at t=1)? It has no t=0 to subtract from.

The simplest solution, known as the Cochrane-Orcutt procedure, is to just drop the first observation and run the regression from t=2 to your final data point, T. If you have a massive dataset (say, 10,000 observations), losing one point is no big deal.

But what if you only have 30 observations? Or 20? Losing one data point means losing a significant chunk of your statistical power. This is a real problem in macroeconomics, where data might only be available annually.

This is where the Prais-Winsten transformation comes in. Conceived by Sigbert Prais and Christopher Winsten in 1954, it’s a modification that cleverly “rescues” that first observation. It recognizes that the first observation isn’t part of the `t-1` differencing scheme and needs its own special transformation to be comparable to the others.

While the other observations (from t=2 to T) are transformed using the quasi-difference, the first observation (at t=1) is transformed by multiplying it by โˆš(1-ฯยฒ):

  • Y1* = Y1 * โˆš(1-ฯยฒ)
  • X1* = X1 * โˆš(1-ฯยฒ)
  • ฮฒ0,1* = ฮฒ0 * โˆš(1-ฯยฒ)

The statistical reasoning is that the variance of the first error u1 (assuming a stationary process) is ฯƒยฒ/(1-ฯยฒ), while the variance of the subsequent transformed errors ฮตt is just ฯƒยฒ. This transformation scales the first observation so that its error variance matches all the others. By applying this specific fix to the first data point and the quasi-difference to the rest, the Prais-Winsten method allows the GLS procedure to use the full sample, preserving precious data and increasing efficiency, especially in smaller datasets.

When the past is everything: First-differencing for unit roots

We’ve been assuming ฯ is a fraction, like 0.7 or 0.9. But what happens if the autocorrelation is *so* strong that ฯ is essentially equal to +1? This is a very special and common case in economics, known as a “unit root.”

If ฯ = 1, our error structure ut = ฯut-1 + ฮตt becomes ut = ut-1 + ฮตt. This is a “random walk.” It means the error today is just yesterday’s error *plus* a new random shock. The memory isn’t just strong; it’s permanent. The influence of a shock never fades away.

Many economic time series, like stock prices or GDP, behave this way. They are “non-stationary”-they don’t revert to a mean and their variance isn’t constant. Running OLS in this situation is disastrous and can lead to “spurious regression,” where you find a statistically significant relationship between two variables that are, in reality, totally unrelated.

So what’s the remedy? Let’s look back at our quasi-difference transformation:
Yt* = (Yt - ฯYt-1)

If we set ฯ = 1, the transformation becomes:
Yt* = (Yt - Yt-1)

This is simply first-differencing. We are no longer looking at the *level* of Y, but the *change* in Y from one period to the next (often written as ฮ”Yt). When we suspect a unit root, the most effective remedial measure is to transform all our variables by taking their first difference and running the regression on these new, differenced variables:

ฮ”Yt = ฮฒ1ฮ”Xt + ฮตt

This transformation is often enough to make the variables stationary and remove the autocorrelation, making our OLS estimates valid again. A key clue that you might need to do this is a Durbin-Watson statistic that is very small (e.g., under 1.0), which indicates strong positive autocorrelation, a hallmark of a unit root.

The modern, pragmatic fix: Newey-West HAC standard errors

The solutions we’ve discussed-GLS, Prais-Winsten, and First-Differencing-are powerful, but they all share a common assumption: that we, the researchers, correctly identified the *exact* form of the problem. GLS, for example, works perfectly *if* the problem is a pure AR(1) process. But what if it’s a more complex AR(2) process? Or a moving average (MA) process? What if we have both autocorrelation *and* heteroscedasticity (non-constant error variance) at the same time?

In the real world, data is rarely so clean. This is where the Newey-West method provides an incredibly useful and robust solution. This approach has a fundamentally different philosophy.

Instead of trying to “fix” the model by transforming the data, the Newey-West method says: “Let’s just run our original OLS regression. We know that in large samples, the OLS coefficients are still consistent (they get arbitrarily close to the true values as sample size increases). The *only* thing that’s wrong is our standard errors. So, let’s just invent a new formula to calculate the standard errors that is ‘robust’ to the problem.”

That’s exactly what it does. The Newey-West estimator provides Heteroscedasticity-and-Autocorrelation-Consistent (HAC) standard errors. It’s a complex formula that adjusts the standard errors to be reliable *even if* both autocorrelation and heteroscedasticity are present, and even if we don’t know their exact form.

This method doesn’t change your ฮฒ coefficients at all. It just corrects the “margin of error” around them. This has become the standard approach in much of modern applied econometrics, especially when working with large time-series datasets where “messy” errors are the norm, not the exception. The key caveat is that this is a large-sample solution; its statistical properties are only guaranteed when you have plenty of data. In a small sample, a correctly-specified GLS model is still theoretically more efficient.

Ultimately, dealing with autocorrelation is a core skill in econometrics. The key is to first diagnose the problem (using tools like the Durbin-Watson test or correlograms) and then choose the remedy that best fits the situation: the elegant GLS/Prais-Winsten for pure cases, first-differencing for unit roots, or the robust Newey-West HAC errors for the complex, real-world problems that large datasets often present.

What do you think? In your own field or studies, which do you think is a more common problem: “pure” autocorrelation (where GLS is perfect) or a “messy” combination of autocorrelation and heteroscedasticity (where Newey-West is needed)? And why do you think it’s so important for economists to get standard errors right, even if the coefficient estimates themselves are unbiased?

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

References
  1. https://www.statlect.com/fundamentals-of-statistics/generalized-least-squares
  2. https://en.wikipedia.org/wiki/Prais%E2%80%93Winsten_estimation
  3. https://www.investopedia.com/terms/d/durbin-watson-statistic.asp
  4. https://en.wikipedia.org/wiki/Newey%E2%80%93West_estimator

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Introductory Econometric Methods

1 Introduction to Econometrics

  1. Nature of Econometrics
  2. Specification of an Econometric Model
  3. Data Generation Process
  4. Functional Forms
  5. Software Packages for Econometric Analysis

2 Review of Statistical Foundations of Econometrics

  1. Statistical Inference
  2. Asymptotic Properties of an Estimator
  3. Hypothesis Testing
  4. Estimation Methods

3 Review of Matrix Algebra

  1. Basic Notations
  2. Multiplication of Matrices
  3. Determinant and Trace of a Matrix
  4. Inverse of a Matrix
  5. Rank of a Matrix
  6. Partitioned Matrices
  7. Eigenvalue and Eigenvector
  8. Certain Special Matrices
  9. Kronecker Product and Vec-operator
  10. Matrix Differentiation

4 Estimation of Two-variable Regression Model

  1. Estimation of Bivariate Models
  2. Standard Error of the Estimators
  3. Properties of the OLS Estimators
  4. Goodness of Fit
  5. Testing of Hypothesis
  6. Forecasting

5 Residual Analysis

  1. Introduction
  2. Issues in Estimation
  3. Analysis of Residuals
  4. Outliers
  5. Visual Detection of Heteroscedasticity
  6. Visual Detection of Autocorrelation
  7. Test for Normality
  8. Certain Special Cases
  9. Limitations of Regression Analysis

6 Estimation of Multiple Regression Models

  1. Specification of the Model
  2. OLS Method of Estimation
  3. Properties of OLS Estimators
  4. Best Linear Unbiased Estimator (BLUE)

7 Evaluation of Multiple Regression Models

  1. Coefficient of Determination
  2. Hypothesis Testing
  3. Testing Linear Restrictions

8 Model Specification Issues

  1. Possible Problems in Specification
  2. Inclusion of Variables in a Model
  3. Specification Error Test
  4. Model Selection Criteria
  5. Caution about Model Selection Criteria

9 Autocorrelation

  1. What is Autocorrelation?
  2. Consequences of Autocorrelation
  3. Detection of Autocorrelation
  4. Remedial Measures
  5. Methods of Estimating ฯ

10 Multicollinearity

  1. Concept of Multicollinearity
  2. Consequences of Multicollinearity
  3. Detection of Multicollinearity
  4. Remedial Measures for Multicollinearity

11 Heteroscedasticity

  1. Concept of Heteroscedasticity
  2. Consequences of Heteroscedasticity
  3. Detection of Heteroscedasticity
  4. Remedial Measures

12 Errors in Variables

  1. Introduction
  2. Consequences of Errors in Variables
  3. Instrumental Variables Method
  4. Test of Measurement Errors
  5. Inverse Regression

13 Stochastic Regressors

  1. Endogeneity Problem
  2. Instrumental Variable Estimator
  3. Two-Stage Least Squares Estimator

14 Qualitative Independent Variables in OLS Models

  1. Chow Test for Structural Stability
  2. The Nature of Dummy Variables
  3. Use of More than One Qualitative Variable
  4. Testing for Structural Stability through Dummy Variables
  5. Use of Dummy Variables in Seasonal Analysis
  6. Pooling Cross Section and Time Series Data

15 Qualitative Dependent Variables in OLS Models

  1. Introduction
  2. Linear Probability Model
  3. Logit Model
  4. Probit Model
  5. Joint Significance in Qualitative Response Regression Models
  6. Goodness-of-Fit in Logit and Probit Models
  7. Choice between Logit and Probit Models

16 Introduction to Simultaneous Equations Models

  1. Some Examples of Simultaneous Equations Models
  2. Endogenous Variables and Exogenous Variables
  3. Simultaneity Bias
  4. Structural Form and Reduced Form
  5. Concept of Identification
  6. Identification Conditions