Docsity

Forecasting: Predicting Future Values Based on Past Data - Prof. Peter Bloomfield, Study notes of Descriptive statistics

Toggle sidebar
bg1
Forecasting
•General problem: predict xn+mgiven xn, xn−1,...,x1.
•General solution: the (conditional) distribution of xn+mgiven
xn, xn−1,...,x1.
•In particular, the conditional mean is the best predictor (i.e.
minimum mean squared error).
•Special case: if {xt}is Gaussian, the conditional distribution
is also Gaussian, with a conditional mean that is a linear
function of xn, xn−1,...,x1and a conditional variance that
does not depend on xn, xn−1,...,x1.
1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Forecasting: Predicting Future Values Based on Past Data - Prof. Peter Bloomfield and more Study notes Descriptive statistics in PDF only on Docsity!

Forecasting

  • General problem: predict xn+m given xn, xn− 1 ,... , x 1.
  • General solution: the (conditional) distribution of xn+m given xn, xn− 1 ,... , x 1.
  • In particular, the conditional mean is the best predictor (i.e. minimum mean squared error).
  • Special case: if {xt} is Gaussian, the conditional distribution is also Gaussian, with a conditional mean that is a linear function of xn, xn− 1 ,... , x 1 and a conditional variance that does not depend on xn, xn− 1 ,... , x 1.

Linear Forecasting

  • What if xt is not Gaussian?
  • Use the best linear predictor: xnn+m.
  • Not the best possible predictor, but computable.

One-step Prediction for an ARMA Model

  • The easy way: suppose we can write xn+1 = some linear combination of xn, xn− 1 ,... , x 1 + something uncorrelated with xn, xn− 1 ,... , x 1.
  • Then the first part is the best linear predictor, and the second part is the prediction error.
  • E.g. AR(p), p ≤ n: xn+1 = φ ︸ 1 xn + φ 2 xn− 1 +︷︷ · · · + φpxn+1−p︸ first part
  • w︸ n︷︷+1 ︸ second part

General ARMA case

  • Now

xn+1 =φ 1 xn + φ 2 xn− 1 + · · · + φpxn+1−p

  • θ 1 wn + θ 2 wn− 1 + · · · + θqwn+1−q
  • wn+1.
  • First part on the right hand side is a linear combination of xn, xn− 1 ,... , x 1.
  • Last part, wn+1, is uncorrelated with xn, xn− 1 ,... , x 1.

Multi-step Prediction

  • The easy way: build on one-step prediction. E.g. two-step:

xn+2 =φ 1 xn+1 + φ 2 xn + · · · + φpxn+2−p

  • θ 1 wn+1 + θ 2 wn + · · · + θqwn+2−q
  • wn+2.
  • Replace xn+1 by xnn+1 + wn+1:

xn+2 =φ 1 xnn+1 + φ 2 xn + · · · + φpxn+2−p

  • θ 2 wn + · · · + θqwn+2−q
  • wn+2 + (φ 1 + θ 1 ) wn+1.
  • The first two parts are again (approximately) linear combi- nations of xn, xn− 1 ,... , x 1 , and the last is uncorrelated with xn, xn− 1 ,... , x 1. So xnn+2 =φ 1 xnn+1 + φ 2 xn + · · · + φpxn+2−p + θ 2 wn + · · · + θqwn+2−q and the prediction error is xn+2 − xnn+2 = wn+2 + (φ 1 + θ 1 ) wn+1.
  • Note that the mean squared prediction error is

σ^2 w

[ 1 + (φ 1 + θ 1 )^2

] ≥ σ w^2. Mean squared prediction error increases as we predict further into the future.

  • The “autocorrelation test for residuals” is borderline, largely because of residual autocorrelations at lags 12, 24,....
  • Spectrum analysis shows that these are caused by seasonal means, which can be removed: proc arima program and output.