Autocorrelation, the correlation of a signal with a delayed copy of itself, is a fundamental concept in time series analysis. Understanding its presence and structure is critical for building reliable statistical models, particularly in regression and forecasting. When residuals from a model exhibit autocorrelation, the standard errors of the estimates become biased, leading to misleading hypothesis tests and confidence intervals. Consequently, diagnosing and testing for autocorrelation is not merely a statistical formality but a necessary step to ensure the validity of inference.
Why Autocorrelation Matters in Regression
In the context of linear regression, the classical assumption is that the error terms are independently distributed. This independence implies that the error observed at one point in time provides no information about the error at another point. When this assumption is violated and errors are correlated across time, the model is said to suffer from autocorrelation, often referred to as serial correlation. This issue is prevalent in fields such as econometrics, finance, and environmental science, where data is collected sequentially. Ignoring autocorrelation results in inefficient estimates and an underestimation of the true uncertainty, which can lead to Type I errors where significant effects are falsely identified.
The Durbin-Watson Test
The most commonly used specific test for autocorrelation is the Durbin-Watson test. This test statistic is designed to detect the presence of first-order autocorrelation, where the current error term is correlated with the previous one. The statistic ranges in value from 0 to 4, with a value of 2 indicating no autocorrelation. Values significantly less than 2 suggest positive autocorrelation, while values significantly greater than 2 suggest negative autocorrelation. While widely implemented in statistical software, the test has limitations, notably its inability to handle lagged dependent variables as regressors and its ambiguity in providing exact p-values for certain ranges.
Interpreting the Results
Interpreting the Durbin-Watson statistic requires consulting critical values tables that depend on the number of observations and the number of predictors in the model. If the statistic falls between the lower and upper critical values, the test is inconclusive, necessitating the use of alternative methods. For higher-order autocorrelation, where the error depends on errors from multiple previous periods, the Durbin-Watson test is generally inappropriate. Researchers must instead rely on more flexible approaches that can handle complex correlation structures beyond the immediate past value.
Alternative Testing Methodologies
When the Durbin-Watson test is insufficient, the Breusch-Godfrey test, also known as the Lagrange Multiplier (LM) test, provides a robust alternative. Unlike the Durbin-Watson test, the Breusch-Godfrey test is valid in the presence of lagged dependent variables and can detect higher-order autocorrelation. The test involves regressing the residuals from the original model on the original regressors and lagged residuals. The significance of the lagged residuals in this auxiliary regression indicates the presence of autocorrelation, making it a versatile tool for more complex time series models.
Visual Diagnostics and Complementary Tools
Formal hypothesis tests should always be complemented by visual diagnostic tools. A time series plot of the residuals can reveal obvious patterns or trends that suggest autocorrelation. More importantly, the Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF) plots are indispensable. The ACF measures the correlation between the series and its lags, while the PACF measures the correlation between the series and a specific lag, excluding the effects of shorter lags. Significant spikes in these plots at specific lags provide a clear graphical indication of the order and nature of the autocorrelation present.