– Spectral Analysis of ST414 Time Series Data Lecture 6

advertisement
ST414 – Spectral Analysis of
Time Series Data
Lecture 6
18 February 2014
Last Time
•
•
•
•
Introduction to bivariate processes
The cross-covariance function
The cross-spectrum
Coherence analysis
2
Today’s Objectives
•
•
•
•
Asymptotics for the spectral density matrix
Estimating VAR parameters
Causality
The VAR spectral density matrix
3
Nonparametric Estimation
Given a bivariate time series (𝑋1 t , 𝑋2 t )′,
construct the bivariate DFTs 𝑑 πœ”π‘— =
(𝑑𝑋1 πœ” , 𝑑𝑋2 πœ” )′, where
𝑇
𝑑𝑋𝑗 πœ”π‘— = 𝑇 −1/2
𝑋𝑗 𝑑 exp(−𝑖2πœ‹πœ”π‘— 𝑑)
𝑑=1
4
Nonparametric Estimation
The periodogram matrix is
𝑰 πœ”π‘— = 𝑑 πœ”π‘— 𝑑 πœ”π‘—
∗
5
Nonparametric Estimation
The smoothed periodogram matrix is
𝒇 πœ”π‘—
1
=
2𝑀 + 1
𝑀
π‘˜=−𝑀
π‘˜
𝑰(πœ”π‘— + )
𝑇
6
Nonparametric Estimation
More generally,
𝑀
𝒇 πœ”π‘— =
π‘˜=−𝑀
where
β„Žπ‘˜ ≥ 0,
|π‘˜|≤𝑀 β„Žπ‘˜
π‘˜
β„Žπ‘˜ 𝑰(πœ”π‘— + )
𝑇
= 1, and β„Žπ‘˜ = β„Ž−π‘˜
7
Nonparametric Estimation
From here, an estimate of the squared
coherence is
2
πœŒπ‘‹π‘Œ
πœ” =
|π‘“π‘‹π‘Œ πœ” |2
𝑓𝑋 πœ” π‘“π‘Œ πœ”
8
Nonparametric Estimation
Let Z(t) be bivariate Gaussian white noise
(0, Σ), Σ non-singular, and let 𝑰(πœ”) be the
periodogram matrix of Z(t). Then as 𝑇 → ∞,
𝑰(πœ”) converges in distribution to a random
matrix π‘Œπ‘Œ ∗ , where π‘Œ~𝑁 𝐢 (0, Σ).
9
Nonparametric Estimation
𝐸 𝒇 πœ”
πΆπ‘œπ‘£ π‘“π‘π‘ž πœ” , π‘“π‘Ÿπ‘  πœ†
2
𝑀
β„Ž
π‘˜=−𝑀 π‘˜
→ 𝑓
π‘π‘Ÿ
→𝒇 πœ”
0 if πœ” ≠ πœ†
πœ” π‘“π‘ π‘ž πœ” if πœ” = πœ† ≠ 0, 0.5
10
Nonparametric Estimation
|πœŒπ‘‹π‘Œ πœ” |
2
𝑀
β„Ž
π‘˜=−𝑀 π‘˜
~𝐴𝑁( πœŒπ‘‹π‘Œ πœ” , 1 − πœŒπ‘‹π‘Œ πœ”
π‘‘π‘Žπ‘›β„Ž−1 ( πœŒπ‘‹π‘Œ πœ” )
2
𝑀
β„Ž
π‘˜=−𝑀 π‘˜
2
/2)
~𝐴𝑁(π‘‘π‘Žπ‘›β„Ž−1 ( πœŒπ‘‹π‘Œ πœ” ), 1/2)
11
Nonparametric Estimation
Alternatively, if we use a uniform kernel for
2
smoothing, under 𝐻0 : πœŒπ‘‹π‘Œ
πœ” = 0, we have
2
πœŒπ‘‹π‘Œ
πœ”
𝐹=
2𝑀
2
1 − πœŒπ‘‹π‘Œ
πœ”
𝐹~𝐹(2, 2 2𝑀 + 1 − 2)
12
SOI Example
13
SOI Example
14
Sales Example
15
Sales Example
16
Sales Example
17
Sales Example
18
Sales Example
19
Sales Example
20
Sales Example
21
Sales Example
22
Sales Example
−2.682 βˆ™ 2πœ‹
−4.173 βˆ™ 2πœ‹
23
Least Squares Estimation
Consider the K-variate VAR(p) model:
𝑋 𝑑 = Φ1 𝑋 𝑑 − 1 + β‹― Φ𝑝 𝑋 𝑑 − 𝑝 + 𝑍 𝑑
Assume “presamples”
𝑋 0 , 𝑋 −1 , … , 𝑋 −𝑝 + 1
are available.
24
Least Squares Estimation
Rewrite as
𝑋 = π΅π‘Œ + 𝑍.
The least squares estimator is
𝐡 = π‘‹π‘Œ′ π‘Œπ‘Œ ′ −1
Moreover,
𝛴 = 𝑇 −1 (𝑋 − π΅π‘Œ)(𝑋 − π΅π‘Œ)′
25
Causality
If Y(t) can be predicted more efficiently if the
past values of the process X(t) is taken into
account, then X(t) Granger-causes Y(t).
If Y(t+1) can be predicted more efficiently if
X(t+1) is taken into account, then X(t)
instantaneously-causes Y(t).
26
Causality
𝑋(𝑑)
=
π‘Œ(𝑑)
𝑝
π‘˜=1
πœ™11,π‘˜ πœ™12,π‘˜
πœ™21,π‘˜ πœ™22,π‘˜
𝑋(𝑑 − π‘˜)
𝑍1 (𝑑)
+
π‘Œ(𝑑 − π‘˜)
𝑍2 (𝑑)
X(t) does not Granger-cause Y(t) if πœ™21,π‘˜ = 0 for
all k.
27
Causality
𝜎11 𝜎12
𝛴= 𝜎 𝜎
21 22
Y(t) does not instantaneously-cause X(t) if
𝜎21 = 𝜎12 = 0.
28
The VAR Spectrum
Recall the spectral density for an AR(p) is
𝜎2
𝑓 πœ” =
,
2
|Φ(exp −𝑖2πœ‹πœ” )|
where
𝑝
πœ™π‘— 𝑧 𝑗
Φ π‘§ =1−
𝑗=1
29
The VAR Spectrum
The spectral density matrix for a VAR(p) is
𝑓 πœ” = Φ(exp −𝑖2πœ‹πœ” )−1 Σ[Φ(exp −𝑖2πœ‹πœ” )∗ ]−1 ,
where
𝑝
Φ𝑗 𝑧 𝑗
Φ π‘§ = 𝐼𝑑 −
𝑗=1
30
Sales Example
VAR(2) for Sales/Lead data:
0.280 − 0.730
Φ1 =
0.028 − 0.516
0.205 − 2.177
Φ2 =
−0.011 − 0.153
1.431 − 0.022
Σ=
−0.022
0.077
31
Sales Example
Causality tests:
𝐻0 : Sales does not Granger-cause Lead
p = 0.2669
𝐻0 : Lead does not Granger-cause Sales
p = 1.806 x 10-8
𝐻0 : No instantaneous causality
p = 0.4221
32
Sales Example
33
Sales Example
34
Sales Example
35
Download