The full academy launches January 2027. Join the waitlist for the $179 founding price.
Waldbauer Academy of Economics

Courses › Statistics and Econometrics

Second and third year · Module 12 of 15

Time series and forecasting

Trends and seasonality, autocorrelation, autoregressive models, random walks and spurious regression, and how to judge a forecast.

By Maximus S. Waldbauer · About 3 hours, including the problem set and quiz.

Much economic data comes as time series: monthly unemployment, quarterly GDP, weekly sales, daily exchange rates. Time series bring two things cross-sections don’t have. Observations are ordered, and this period is usually related to the last one. That dependence is useful for forecasting, but it breaks the independence assumption behind ordinary standard errors and, at its most extreme, makes regressions between unrelated series look highly significant.

This module covers the features of time series (trends, seasonality, autocorrelation), autoregressive models and how fast shocks fade, random walks and spurious regression, regression with time series data, and how to build and judge forecasts.

By the end of this module you will be able to

What this module covers

  1. Features of time series data
  2. Autoregressive models
  3. Stationarity, random walks and spurious regression
  4. Regression with time series data
  5. Forecasting
  6. Problem set with step-by-step solutions
  7. Module quiz

Lesson 12.1 Free lesson

Features of time series data

A time series records one variable at regular intervals: Y₁, Y₂, …, YT. The notation changes from i to t, and a few new operations become routine:

Three common features

Dealing with seasonality

Statistical agencies publish seasonally adjusted series that remove the usual seasonal pattern, so that a monthly change reflects something other than the calendar. Another common approach is to compare with the same month a year earlier: Statistics Canada’s headline inflation, 3.1% in October 2026, is the 12-month change in the Consumer Price Index, which compares October with October and so needs no seasonal adjustment. In your own regressions, seasonal dummies (Module 10) do the job: one dummy per month or quarter, leaving one out.

Worked example: Reading a monthly series

A café’s monthly sales (in $1,000s) for January to June are 42, 40, 45, 48, 55, 61.

First differences: −2, 5, 3, 7, 6. Approximate growth rates: ln(40/42) = −4.9%, ln(45/40) = 11.8%, and so on.

Is the café booming, or is this just spring? Without last year’s data for the same months, you can’t tell trend from season. Comparing with June of last year, or estimating with month dummies over several years, separates the two.

Common mistake

Comparing a seasonally unadjusted month with the previous month and calling it a trend. December retail sales beat November’s every year; that tells you about Christmas, not about the economy.

Key ideas

  • Lags, first differences and log differences (growth rates) are the basic time series operations.
  • Many series have trends, seasonal patterns and autocorrelation.
  • Use seasonally adjusted data, year-over-year changes or seasonal dummies to handle seasonality.
  • Autocorrelation means the past helps predict the present.

Practice questions: Time series and forecasting

Try these, then open each answer to check your work.

  1. 1.The first difference of a series is:
    1. Yt − Yt−1
    2. Yt/Yt−1
    3. Yt−1
    4. ln Yt
    Show answer

    Answer: A. It is the change from the previous period.

  2. 2.An AR(1) has β₀ = 2 and β₁ = 0.6. Its long-run mean is:
    1. 1.2
    2. 2
    3. 3.33
    4. 5
    Show answer

    Answer: D. 2/(1 − 0.6) = 5.

  3. 3.In an AR(1) with β₁ = 0.5, how much of a shock remains after 3 periods?
    1. 12.5%
    2. 25%
    3. 50%
    4. 150%
    Show answer

    Answer: A. 0.5³ = 0.125.

Problems with step-by-step solutions

  1. 4.Quarterly sales are 200, 210, 205, 230. Compute the first differences and the approximate quarterly growth rates using logs.
    Show step-by-step solution
    1. Differences: 10, −5, 25.
    2. Log growth: ln(210/200) = 4.9%; ln(205/210) = −2.4%; ln(230/205) = 11.5%.
  2. 5.A store compares this December’s sales with November’s and finds a 40% rise. Why might that be misleading? Suggest two better comparisons.
    Show step-by-step solution
    1. December sales rise every year because of holiday shopping: the jump is mainly seasonal.
    2. Better: compare with last December (a year-over-year change), or use seasonally adjusted sales.

Get the full module

The complete module adds every lesson, interactive graphs, a full problem set with step-by-step solutions, and a quiz. The academy opens in January 2027: join the waitlist for the founding price (lifetime access for $179).

Join the waitlist Try a full module free

More practice: free practice questions for this course.