• Over all stationary processes with that value of ρ ( h ) and σ 2 , the optimal mean squared error is maximized by the Gaussian process.. • Linear prediction needs only second order sta[r]
Trang 1Introduction to Time Series Analysis Lecture 3.
Peter Bartlett
1 Review: Autocovariance, linear processes
2 Sample autocorrelation function
3 ACF and prediction
4 Properties of the ACF
Trang 2Mean, Autocovariance, Stationarity
A time series {Xt} has mean function µt = E[Xt]
and autocovariance function
Trang 5Estimating the ACF: Sample ACF
Recall: Suppose that {Xt} is a stationary time series
Trang 6Estimating the ACF: Sample ACF
For observations x1, , xn of a time series,
the sample mean is x¯ = 1
Trang 7Estimating the ACF: Sample ACF
Sample autocovariance function:
≈ the sample covariance of (x1, xh+1), , (xn−h, xn), except that
• we normalize by n instead of n − h, and
• we subtract the full sample mean
Trang 8Sample ACF for white Gaussian (hence i.i.d.) noise
Trang 9AR(p) Decays to zero exponentially
Trang 10Sample ACF: Trend
Trang 11Sample ACF: Trend
Trang 12MA(q) Zero for |h| > q
AR(p) Decays to zero exponentially
Trang 13Sample ACF: Periodic
Trang 14Sample ACF: Periodic
Trang 15Sample ACF: Periodic
Trang 16MA(q) Zero for |h| > q
AR(p) Decays to zero exponentially
Trang 18Sample ACF: MA(1)
Trang 19MA(q) Zero for |h| > q
AR(p) Decays to zero exponentially
Trang 21Sample ACF: AR(1)
Trang 22Introduction to Time Series Analysis Lecture 3.
1 Sample autocorrelation function
2 ACF and prediction
3 Properties of the ACF
Trang 23ACF and prediction
Trang 24ACF of a MA(1) process
lag 1
−5 0 5
lag 2
−5 0 5
lag 3
Trang 25ACF and least squares prediction
Best least squares estimate of Y is EY :
Trang 26ACF and least squares prediction
Suppose that X = (X1, , Xn+h) is jointly Gaussian:
Then the joint distribution of (Xn, Xn+h) is
Trang 27ACF and least squares prediction
So for Gaussian and stationary {Xt}, the best estimate of Xn+h given
Trang 28ACF and least squares linear prediction
Consider a linear predictor of Xn+h given Xn = xn Assume first that
{Xt} is stationary with EXn = 0, and predict Xn+h with f(xn) = axn.The best linear predictor minimizes
Trang 29ACF and least squares linear prediction
Consider the following linear predictor of Xn+h given Xn = xn, when
Trang 30Least squares prediction of Xn+h given Xn
f(Xn) = µ + ρ(h)(Xn − µ)
E(f (Xn) − Xn+h)2 = σ2(1 − ρ(h)2)
• If {Xt} is stationary, f is the optimal linear predictor.
• If {Xt} is also Gaussian, f is the optimal predictor.
• Linear prediction is optimal for Gaussian time series
• Over all stationary processes with that value of ρ(h) and σ2, the optimalmean squared error is maximized by the Gaussian process
• Linear prediction needs only second order statistics
• Extends to longer histories, (Xn, Xn − 1, )
Trang 31Introduction to Time Series Analysis Lecture 3.
1 Sample autocorrelation function
2 ACF and prediction
3 Properties of the ACF
Trang 32Properties of the autocovariance function
For the autocovariance function γ of a stationary time series {Xt},
1 γ(0) ≥ 0, (variance is non-negative)
2 |γ(h)| ≤ γ(0), (from Cauchy-Schwarz)
3 γ(h) = γ(−h), (from stationarity)
4 γ is positive semidefinite
Furthermore, any function γ : Z → R that satisfies (3) and (4) is the
autocovariance of some stationary time series
Trang 33Properties of the autocovariance function
A function f : Z → R is positive semidefinite if for all n, the matrix Fn,with entries (Fn)i,j = f (i − j), is positive semidefinite
A matrix Fn ∈ Rn×n is positive semidefinite if, for all vectors a ∈ Rn,
a′F a ≥ 0
To see that γ is psd, consider the variance of (X1, , Xn)a
Trang 34Properties of the autocovariance function
For the autocovariance function γ of a stationary time series {Xt},
1 γ(0) ≥ 0,
2 |γ(h)| ≤ γ(0),
3 γ(h) = γ(−h),
4 γ is positive semidefinite
Furthermore, any function γ : Z → R that satisfies (3) and (4) is the
autocovariance of some stationary time series (in particular, a Gaussianprocess)
e.g.: (1) and (2) follow from (4)
Trang 35Introduction to Time Series Analysis Lecture 3.
1 Sample autocorrelation function
2 ACF and prediction
3 Properties of the ACF