Back to the on-screen lesson ·

Serial correlation and forecasting

Autocorrelated errors leave OLS unbiased but its standard errors wrong; the same persistence powers AR forecasts that head to a long-run mean and are judged by RMSE.

Paper packet. Every task here also exists on screen, where it is checked automatically; answers written on paper are not assessed by Nydus. When you are back at a device, enter your answers there.

1. What you will learn

By the end of this lesson you will be able to forecast from an AR(1) model one and two steps ahead, find its long-run mean, measure forecast accuracy, and diagnose serial correlation.

2. What you already have

From the last lesson you know how to read trends and lags in time series. From the heteroskedasticity lesson you know that when an error assumption fails, OLS coefficients can remain unbiased while their standard errors go wrong, and that robust standard errors fix inference.

Time series bring one more error problem and one new task. The problem: errors in adjacent periods are usually related. The task: forecasting, which uses exactly that persistence to predict what comes next. This lesson treats both, and ends the course where much applied economics begins — with a forecast that has an honest measure of its accuracy.

3. Terms to use precisely

TermWhat it means
Serial correlationCorrelation between a series' values, or a regression's errors, in different periods.
AutoregressionA regression of a series on its own past values; AR(1) uses one lag.
Persistence$\rho$ in an AR(1): how much of this period's value carries into the next.
Long-run mean$\mu = c/(1 - \rho)$: the level an AR(1) returns to when $\vert \rho\vert < 1$.
Forecast errorThe actual value minus the forecast made for it.
RMSERoot mean squared forecast error: the typical size of a miss, in the series' units.
HAC standard errorsStandard errors robust to heteroskedasticity and autocorrelation, such as Newey-West.

4. Persistence breaks standard errors and enables forecasts

Serial correlation. In a time-series regression $y_t = \beta_0 + \beta_1 x_t + u_t$, the errors often follow $u_t = \rho u_{t-1} + e_t$: a good quarter tends to be followed by another. If the regressors are strictly exogenous, OLS is still unbiased. But the usual standard errors assume the errors are independent. With positive $\rho$ the errors form runs, the data contain less independent information than their count suggests, and the usual standard errors are too small. HAC (Newey-West) standard errors correct them, much as robust errors corrected heteroskedasticity.

The Durbin-Watson statistic tests for first-order serial correlation in the residuals: $DW \approx 2(1 - \hat\rho)$, so values near $2$ mean little correlation and values near $0$ mean strong positive correlation.

Forecasting. Persistence is also what makes the future predictable. An AR(1) model $y_t = c + \rho y_{t-1} + e_t$ gives forecasts

$$\hat y_{T+1} = c + \rho y_T, \qquad \hat y_{T+2} = c + \rho \hat y_{T+1}, \qquad \hat y_{T+h} \to \mu = \frac{c}{1 - \rho}.$$

Each step closes a fraction $1 - \rho$ of the gap between the forecast and the long-run mean. Forecast accuracy is judged out of sample, by the root mean squared error of past forecasts.

Another way: action

Plot a regression's residuals in time order. If they run in long stretches above and below zero rather than bouncing randomly, they are positively serially correlated.

Another way: steps

  1. Plot residuals in time order and compute Durbin-Watson.
  2. Use HAC standard errors if residuals are autocorrelated.
  3. For forecasting, fit an AR model and forecast one step at a time.
  4. Find the long-run mean the forecasts approach.
  5. Evaluate forecasts on data the model did not see, by RMSE.

5. Why serial correlation understates uncertainty

Suppose the errors are strongly positively correlated: once the series is above the fitted line, it stays above for many periods. Ten years of monthly data then contain not $120$ independent pieces of information but something closer to a handful of long swings. The usual formula treats each month as independent and so overstates how much the data pin down the slope.

The result is standard errors that are too small, t statistics that are too large, and confidence intervals that are too narrow. Economists therefore report HAC standard errors for time-series regressions as a matter of course. The coefficient does not change; only the inference does, just as with heteroskedasticity.

A more serious problem arises when a lagged dependent variable is a regressor and the errors are serially correlated: then $y_{t-1}$ is correlated with $u_t$, and OLS is biased. Adding enough lags to make the remaining errors uncorrelated is the usual remedy.

6. Why forecasts approach the long-run mean

In an AR(1) with $|\rho| < 1$, a series above its mean is pulled back toward it: each period, only a fraction $\rho$ of the deviation survives. Forecasting further ahead applies that shrinkage repeatedly, so the $h$-step forecast's deviation from the mean is $\rho^h$ times today's. As $h$ grows, $\rho^h$ shrinks to zero and the forecast approaches $\mu = c/(1 - \rho)$.

Persistence decides how fast. With $\rho = 0.25$, three-quarters of any deviation vanishes each period and forecasts reach the mean almost at once. With $\rho = 0.9$, only a tenth vanishes each period, so a high unemployment rate is forecast to stay high for years. Series with $\rho = 1$ — random walks — never return to any mean, and their best forecast is simply today's value.

7. Judging forecasts

A model that fits past data closely can still forecast badly, because it may have fitted noise. The honest test uses forecasts made with information available at the time: fit the model on data up to a date, forecast the next period, record the error, move forward one period, and repeat. The root mean squared forecast error of those out-of-sample forecasts measures typical accuracy in the series' own units.

Comparing RMSEs is how forecasters choose between models. A simple AR(1) often beats an elaborate model with many regressors out of sample, because the elaborate one chases noise. A useful benchmark is the naive forecast that next period equals this period; a model that cannot beat it is not worth its complexity.

Forecast uncertainty also grows with the horizon, because shocks accumulate. A careful forecast reports a band, not just a point, and the band widens the further out it goes. A forecast of next quarter's inflation might carry a band of half a percentage point; a forecast two years out, several points. Presenting only the center of a distant forecast gives it an authority the data cannot support, and readers deserve to see how much could plausibly differ.

8. Forecasting is not causal inference

Much of this course has been about causal questions: what would happen if $x$ changed. Forecasting asks a different question — what will happen, given everything known now — and uses different standards. A variable that predicts well need not cause anything; a forecast model needs no exclusion restriction and no parallel trends.

The distinction matters in practice. Rising stock prices may forecast recessions poorly while umbrella sales forecast rain well; neither says anything about what would happen if the variable were changed by policy. Economists sometimes speak of Granger causality, meaning that past values of $x$ improve forecasts of $y$. It is a statement about prediction, not about the effect of an intervention, and confusing the two is a common error in reading time-series results.

9. Where the course ends, and what comes next

This lesson closes a sequence that began with a single question: what would happen if one thing changed and nothing else did? Every tool since has been an answer to part of it. Regression summarizes conditional means; its standard errors measure sampling uncertainty; controls, instruments, panels, differences-in-differences and discontinuities each remove a particular kind of selection bias under a particular assumption; time-series methods handle data that arrive in order.

The habits matter more than any single formula. State the question first, and say whether it is descriptive, predictive or causal. Name the comparison the method makes and the assumption that makes it credible. Check what can be checked — balance, pre-trends, first-stage strength, sorting at a cutoff — and argue what cannot. Report estimates with their intervals and their scope, and let the reader see the alternatives you considered.

From here, further study branches: more flexible models for nonlinear and limited outcomes, methods for many regressors, synthetic controls and modern difference-in-differences, structural models that combine economic theory with estimation, and machine learning for prediction. Each builds on the ideas of this course, and each is judged by the same standard: does it answer the question that was asked, and would a skeptic be persuaded?

10. Working a forecast, step by step

Forecast quarterly inflation in percent for the model ŷ = 2 + 0.5 y, starting from a latest value of 6 percent. The forecasts are 5, 4.5, 4.25 and 4.125 percent, each halfway from the last to 4 percent. They close in on the long-run mean 2 / (1 − 0.5) = 4, the dashed line, and never cross it.
Forecast quarterly inflation in percent for the model ŷ = 2 + 0.5 y, starting from a latest value of 6 percent. The forecasts are 5, 4.5, 4.25 and 4.125 percent, each halfway from the last to 4 percent. They close in on the long-run mean 2 / (1 − 0.5) = 4, the dashed line, and never cross it.

The figure plots these forecasts closing in on the long-run mean.

Quarterly inflation follows $\hat y_t = 2 + 0.5 y_{t-1}$, and the latest value is $6$ percent.

  1. One step. $2 + 0.5 \times 6 = 5$.
  2. Two steps. $2 + 0.5 \times 5 = 4.5$.
  3. Long-run mean. $2/(1 - 0.5) = 4$.
  4. Pattern. The gap to the mean halves each quarter: $2$, $1$, $0.5$.
  5. Uncertainty. Report a band that widens with the horizon; judge the model by its past out-of-sample RMSE.

11. How to check a time-series answer

Three checks.

  1. Did multi-step forecasts use earlier forecasts? The two-step forecast plugs in $\hat y_{T+1}$, not $y_T$.
  2. Do forecasts move toward the long-run mean? If they move away, $\rho$ or $c$ has been misread.
  3. Is RMSE the root of the mean of squares? Not the mean of absolute errors, and not the mean squared error itself.

For regressions, check the residuals in time order and use HAC standard errors when they are autocorrelated.

12. In the world: forecasting unemployment

Every month the Bureau of Labor Statistics reports the unemployment rate, and forecasters at the Federal Reserve, state agencies and banks predict where it is heading. The rate is highly persistent: an AR(1) fitted to monthly US data gives $\rho$ near $0.97$, so a rate that jumps in a recession is forecast to fall only slowly.

Take a stylized model $\hat u_t = 0.15 + 0.97\,u_{t-1}$, with a long-run mean of $0.15/0.03 = 5$ percent. If unemployment is $8$ percent, next month's forecast is $0.15 + 0.97 \times 8 = 7.91$ percent, and the gap to $5$ shrinks by only three percent each month. Forecasting a return to normal takes years, which matches the slow recoveries after the 1981 and 2008 recessions.

Forecasters judge such models by their out-of-sample RMSE and routinely find that simple autoregressions are hard to beat a few months ahead. Around turning points — the start of a recession — every model misses badly, which is why forecasts come with widening bands. Knowing how wrong a forecast has typically been is as important as the forecast itself. The Federal Reserve publishes its own projections with ranges for exactly this reason, so readers can see how wide the uncertainty really is.

13. Serial correlation does not bias the slope by itself

The most common mistake is to think autocorrelated errors make OLS coefficients wrong. With strictly exogenous regressors they remain unbiased; the usual standard errors are what fail.

A second mistake is forecasting two steps ahead by plugging in today's value twice. The two-step forecast uses the one-step forecast as its input.

A third is judging a forecasting model by in-sample fit. Only forecasts made without seeing the outcome show how the model will perform.

14. A one-step forecast

  1. Write the model.

    $\hat y_t = 3 + 0.4 y_{t-1}$

    An AR(1).

  2. Read the latest value.

    $y_T = 10$

    This period.

  3. Multiply by the persistence.

    $0.4 \times 10 = 4$

    Carried-over part.

  4. Add the constant.

    $3 + 4 = 7$

    Next period's forecast.

  5. Compare with the mean.

    $\mu = 3 \div 0.6 = 5$

    The forecast moved toward it.

15. Reading Durbin-Watson

  1. Read the statistic.

    $DW = 0.6$

    From regression output.

  2. Use the approximation.

    $DW \approx 2(1 - \hat\rho)$

    Links DW to residual correlation.

  3. Halve the statistic.

    $0.6 \div 2 = 0.3$

    One step of the algebra.

  4. Subtract from one.

    $\hat\rho = 1 - 0.3 = 0.7$

    Strong positive correlation.

  5. Draw the consequence.

    $\text{usual SEs too small}$

    Errors run in streaks.

  6. Apply the fix.

    $\text{use Newey-West SEs}$

    Coefficients unchanged.

16. Forecast accuracy by RMSE

  1. List the forecast errors.

    $0, 3, -4, 0$

    Four quarters.

  2. Square each error.

    $0, 9, 16, 0$

    Big misses count most.

  3. Add the squares.

    $25$

    Sum of squared errors.

  4. Divide by the count.

    $25 \div 4 = 6.25$

    Mean squared error.

  5. Take the square root.

    $\sqrt{6.25} = 2.5$

    RMSE in the series' units.

  6. Compare with a benchmark.

    $\text{naive RMSE} = 3$

    The model beats no-change.

  7. Decide which model to keep.

    $\text{keep the model}$

    It forecasts better out of sample.

17. Your turn: AR(1) with c = 1, ρ = 0.8 and latest value 10.

  1. Forecast one step.

    $1 + 0.8 \times 10 = 9$

    Next period.

  2. Forecast two steps.

    $1 + 0.8 \times 9 = 8.2$

    Uses the first forecast.

  3. Your turn: work this step out. Its working is at the end of the packet.

    Find the long-run mean.

18. Guided practice

Monthly sales (thousands of units) follow $\hat y_t = 4 + 0.4\,y_{t-1}$. This month's sales were $30$ thousand. What is next month's forecast?

Answer: thousand units

19. Guided practice

Complete the worked solution: a regression's Durbin-Watson statistic is $1.6$. Find half the statistic, the implied first-order residual autocorrelation, and that autocorrelation's distance from zero.

  1. Divide the statistic by two.

    $DW \div 2 =$ a

    From DW ≈ 2(1 − ρ̂).

  2. Subtract from one.

    $\hat\rho = 1 - DW/2 =$ b

    The residual autocorrelation.

  3. Take its absolute value.

    $|\hat\rho| =$ c

    Near zero: little serial correlation; near one: strong.

20. Guided practice

An AR(1) model is $\hat y_t = 1 + 0.8\,y_{t-1}$ and the latest value is $10$. Fill in the one-step forecast and the long-run mean.

One-step forecast: f1. Long-run mean: mu.

21. Practice

A model's forecast errors over four quarters were $1, -2, -2, 4$. Fill in the sum of squared errors, the mean squared forecast error and the root mean squared error.

value
sum of squared errors
mean squared error
root mean squared error

22. Practice

The residuals of a regression of monthly sales on advertising are strongly positively autocorrelated. Match each claim to a verdict.

truefalse
The slope is unbiased if advertising is strictly exogenous.
The usual standard errors are reliable.
Newey-West standard errors give valid large-sample tests.
A Durbin-Watson statistic near 0.6 signals the problem.

23. Practice

A quarterly inflation series follows the estimated AR(1) model $\hat y_t = 1 + 0.75\,y_{t-1}$. The latest observation is $y_T = 8$ percent. What is the forecast for two quarters ahead?

Answer: percent

24. Somewhere new

A state labor agency models its monthly unemployment rate as $\hat u_t = 2 + 0.6\,u_{t-1}$ (percent). Last month's rate was $7.8$ percent. What is this month's forecast?

Answer: percent

25. Lesson test

Lesson test: one question per skill, one attempt each, no hints. Your answers are checked when you submit.

26. Test question

A model's forecast errors over four quarters were $3, -3, 3, -3$. Fill in the sum of squared errors, the mean squared forecast error and the root mean squared error.

value
sum of squared errors
mean squared error
root mean squared error

27. What you can do now

You can forecast and check a time-series regression. Explain to someone why autocorrelated errors make the usual standard errors too small.

Working for the steps left to you

17. Your turn: AR(1) with c = 1, ρ = 0.8 and latest value 10., step 3

$1 \div 0.2 = 5$

Where forecasts head.