Professional Documents
Culture Documents
CH 4.3 Error autocorrelation 2023
CH 4.3 Error autocorrelation 2023
Autocorrelation of errors
• This assumption tells us that the error term at time t is not
correlated with the error term at any other point of time.
Since the p-values of both versions of the test (F-test and Chi-
square test) are less than 0.05, we reject the null hypothesis of
no autocorrelation.
To get the plot of the partial autocorrelation function (PACF) at
various lags, click on View in the equation window, select
Residual Diagnostics and then Correlogram- Q-statistics…
Type 5 for Lag Specification and click on OK to view the PACF.
• We can see that the PACF at lag one extends beyond
the 95% upper confidence limit.
𝜀𝑡 = 𝜌𝜀𝑡−1 + 𝑢𝑡
Correcting for autocorrelation
First you need to save the OLS residuals using another name.
To do so, click on Genr, type the following and then click on OK:
residual=resid
Click on Quick and select Estimate Equation…
residual residual(-1)
Click on OK to get the results of the fitted model.
An estimate of ρ is 0.805.
To transform the dependent variable, click on Genr, type the
following and then click on OK:
We can see the partial correlation of the residuals at all lags lie
within the upper and lower confidence limits – an indication that
the autocorrelation structure has been properly dealt with.
The Breusch-Godfrey test results are shown below.