STAT 101
M10 · L03
Module 10

Forecasting

From models to predictions. Point forecasts, interval forecasts, accuracy metrics, exponential smoothing, and Prophet.

01 / 13
STAT 101
M10 · L03
Two Types

Point vs. Interval

  • Point forecast — single best guess; simple but incomplete
  • Interval forecast — range quantifying uncertainty; essential for decisions
Key insight
A point forecast without an interval is an incomplete forecast
02 / 13
STAT 101
M10 · L03
Uncertainty

Prediction Intervals

Forecast uncertainty grows with horizon. For a random walk, intervals fan out as √h.

h-step interval
\hat{X}_{t+h} \pm z_{\alpha/2}\,\sigma_h
03 / 13
STAT 101
M10 · L03
Accuracy

Error Metrics

MAE
Average |error|
RMSE
Penalises large
MAPE
% scale-free

Measured on a held-out test set the model never saw.

04 / 13
STAT 101
M10 · L03
Exp. Smoothing 1

Simple SES

Assign exponentially decreasing weights to past observations. One parameter α — equivalent to ARIMA(0,1,1).

SES update
S_t = \alpha Y_t + (1-\alpha)S_{t-1}
05 / 13
STAT 101
M10 · L03
Exp. Smoothing 2 & 3

Holt & Holt–Winters

  • Holt: adds trend component (β); no seasonality
  • Holt–Winters additive: constant seasonal variation (γ)
  • Holt–Winters multiplicative: growing seasonal swings
06 / 13
STAT 101
M10 · L03
Meta / Facebook — 2017

Prophet

Decomposes into trend + seasonality + holidays. Handles missing data and outliers automatically; minimal tuning.

Trend: piecewise linear / logistic growth
Seasonality: Fourier series (yearly / weekly / daily)
Holidays: user-supplied event indicators
07 / 13
STAT 101
M10 · L03
Cross-Validation

Walk-Forward CV

Standard k-fold CV leaks the future. Instead, train up to t, evaluate on t+1…t+h, then advance.

Rule
Never shuffle time series data for cross-validation
08 / 13
STAT 101
M10 · L03
Window Choice

Expanding vs. Rolling

Expanding
Grows each step; uses all history
Rolling
Fixed size; adapts to drift
09 / 13
STAT 101
M10 · L03
Combining Models

Ensemble Forecasting

Combining multiple forecasts almost always outperforms any single model. Equal-weight averaging is a strong baseline.

M4 Competition (2018)
Hybrid statistical–ML ensembles won across 100,000 series
10 / 13
STAT 101
M10 · L03
Practical Guide

Choosing a Method

  • Short series, no seasonality → SES or ARIMA(0,1,1)
  • Trend present → Holt’s linear
  • Trend + seasonality → Holt–Winters or SARIMA
  • Business series, holidays → Prophet
  • Best accuracy → Ensemble of the above
11 / 13
STAT 101
Knowledge Check

Check what stuck

Four questions from this lesson. Answer to see why — the explanation appears whether you were right or wrong. Nothing is scored or saved.

Question 1 of 0
Score 0/0

12 / 13
STAT 101
Summary
Recap

What you learned

Forecasting requires prediction intervals, proper hold-out evaluation, walk-forward CV, and combining methods. No single model always wins.

Module Complete
Module 10 Done — Time Series Analysis ✓
13 / 13