Courses › Statistics and Econometrics
Time series and forecasting
Trends and seasonality, autocorrelation, autoregressive models, random walks and spurious regression, and how to judge a forecast.
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
- Describe trends, seasonality and autocorrelation, and use lags, differences and growth rates.
- Estimate and interpret an AR(1) model, including its long-run mean and the half-life of shocks.
- Explain stationarity, random walks and why regressing one trending series on another can be spurious.
- Use distributed lags and HAC standard errors, and interpret Granger causality correctly.
- Build forecasts with intervals and evaluate them out of sample against simple benchmarks.
What this module covers
- Features of time series data
- Autoregressive models
- Stationarity, random walks and spurious regression
- Regression with time series data
- Forecasting
- Problem set with step-by-step solutions
- 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:
- The first lag Yt−1 is last period’s value; the j-th lag is Yt−j.
- The first difference ΔYt = Yt − Yt−1 is the change from last period.
- The growth rate is approximately Δln Yt (Module 1). Multiply by 4 for quarterly data or 12 for monthly to annualize roughly.
Three common features
- Trend: a long-run tendency to rise or fall (real GDP, prices, population).
- Seasonality: a pattern that repeats every year (retail sales in December, ice cream in July, construction hiring in spring, unemployment among students in summer).
- Autocorrelation (serial correlation): this period’s value is correlated with past values. The first autocorrelation is the correlation between Yt and Yt−1.
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.The first difference of a series is:
- Yt − Yt−1
- Yt/Yt−1
- Yt−1
- ln Yt
Show answer
Answer: A. It is the change from the previous period.
- 2.An AR(1) has β₀ = 2 and β₁ = 0.6. Its long-run mean is:
- 1.2
- 2
- 3.33
- 5
Show answer
Answer: D. 2/(1 − 0.6) = 5.
- 3.In an AR(1) with β₁ = 0.5, how much of a shock remains after 3 periods?
- 12.5%
- 25%
- 50%
- 150%
Show answer
Answer: A. 0.5³ = 0.125.
Problems with step-by-step solutions
- 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
- Differences: 10, −5, 25.
- Log growth: ln(210/200) = 4.9%; ln(205/210) = −2.4%; ln(230/205) = 11.5%.
- 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
- December sales rise every year because of holiday shopping: the jump is mainly seasonal.
- 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.