– Spectral Analysis of ST414 Time Series Data Lecture 5

advertisement
ST414 – Spectral Analysis of
Time Series Data
Lecture 5
17 February 2014
Last Time
• Estimating the AR parameters
– Yule-Walker Equations
– Conditional MLE
• The AR spectrum
2
Today’s Objectives
•
•
•
•
Introduction to bivariate processes
The cross-covariance function
The cross-spectrum
Coherence analysis
3
Bivariate Time Series
4
Bivariate Time Series
5
Preliminaries
The cross-covariance function between
X(t) and Y(t) is
π›Ύπ‘‹π‘Œ 𝑠, 𝑑 = πΆπ‘œπ‘£(𝑋 𝑠 , π‘Œ 𝑑 )
The cross-correlation function between
X(t) and Y(t) is
π›Ύπ‘‹π‘Œ 𝑠, 𝑑
πœŒπ‘‹π‘Œ 𝑠, 𝑑 =
𝛾𝑋 𝑠, 𝑠 π›Ύπ‘Œ 𝑑, 𝑑
6
Preliminaries
The bivariate time series (X(t),Y(t))T is
weakly stationary if each of X(t) and Y(t)
are weakly stationary and the crosscovariance function depends on only the lag,
i.e., π›Ύπ‘‹π‘Œ 𝑠, 𝑑 = π›Ύπ‘‹π‘Œ ( 𝑠 − 𝑑 ). Note that
π›Ύπ‘‹π‘Œ β„Ž = π›Ύπ‘Œπ‘‹ (−β„Ž).
7
Preliminaries
The covariance matrix of a weakly
stationary bivariate time series (X(t),Y(t))T is
𝛾𝑋 β„Ž
Γ(β„Ž) =
π›Ύπ‘Œπ‘‹ β„Ž
π›Ύπ‘‹π‘Œ β„Ž
π›Ύπ‘Œ β„Ž
8
Example
9
Bivariate White Noise
Z(t) is a bivariate white noise process (0,Σ) if
it has mean the zero vector and 2x2
covariance matrix 𝑍 𝑑 𝑍 𝑑 ′ = Σ (assumed to
be nonsingular) and 𝑍 𝑑 𝑍 𝑠 ′ = 0 for s ≠ 𝑑.
10
The VAR(p) process
The VAR(p) model for a bivariate time series
X(t) is
𝑝
𝑋 𝑑 =
Φπ‘˜ 𝑋(𝑑 − π‘˜) + 𝑍 𝑑 ,
π‘˜=1
where the Φπ‘˜′ s are 2x2 fixed matrices and
Z(t) is bivariate white noise.
11
Preliminaries
A bivariate process X(t) is a linear process
if it has the representation
∞
𝑿 𝑑 =
π‘ͺ𝑗 𝒁(𝑑 − 𝑗),
𝑗=−∞
for all t, where Z(t) is bivariate white noise
and {π‘ͺ𝑗 } is a sequence of matrices whose
components are absolutely summable.
12
Example
Let X(t) be weakly stationary with
autocovariance function 𝛾𝑋 (β„Ž), and suppose
π‘Œ 𝑑 = 𝐴𝑋 𝑑 − 𝑙 + 𝑍(𝑑), where Z(t) is white
noise (0, 𝜎 2 ) independent of X(t). What is
π›Ύπ‘Œ β„Ž and π›Ύπ‘Œπ‘‹ β„Ž ?
π›Ύπ‘Œ β„Ž = 𝐴2 𝛾𝑋 β„Ž + 𝛾𝑍 (β„Ž)
π›Ύπ‘Œπ‘‹ β„Ž = 𝐴𝛾𝑋 (β„Ž − 𝑙)
13
The Cross-spectrum
Let π›Ύπ‘‹π‘Œ (β„Ž) be the (absolutely summable) crosscovariance function between X(t) and Y(t).
Then the cross-spectrum is
π‘“π‘‹π‘Œ πœ” =
π›Ύπ‘‹π‘Œ β„Ž exp −𝑖2πœ‹πœ”β„Ž
β„Žπœ–π’
Moreover,
0.5
π›Ύπ‘‹π‘Œ β„Ž =
π‘“π‘‹π‘Œ πœ” exp 𝑖2πœ‹πœ”β„Ž π‘‘πœ”
−0.5
14
The Spectral Density Matrix
The spectral density matrix of a bivariate
process (X(t),Y(t))T is
𝑓𝑋 πœ”
𝒇(πœ”) =
π‘“π‘Œπ‘‹ πœ”
π‘“π‘‹π‘Œ πœ”
π‘“π‘Œ πœ”
Note that π‘“π‘‹π‘Œ πœ” = π‘“π‘Œπ‘‹ πœ” .
15
The Spectral Density Matrix
If each element of Γ(β„Ž) is absolutely
summable, then
𝒇 πœ” =
Γ(β„Ž) exp(−𝑖2πœ‹πœ”β„Ž)
β„Žπœ–π’
and
1/2
Γ β„Ž =
exp 𝑖2πœ‹πœ”β„Ž 𝒇 πœ” π‘‘πœ”
−1/2
16
Coherence
The squared coherence between X(t) and
Y(t) is
2
|𝑓
πœ”
|
π‘‹π‘Œ
2
πœŒπ‘‹π‘Œ πœ” =
𝑓𝑋 πœ” π‘“π‘Œ πœ”
17
Example
Let X(t) be weakly stationary with
autocovariance function 𝛾𝑋 (β„Ž), and suppose
π‘Œ 𝑑 = 𝐴𝑋 𝑑 − 𝑙 + 𝑍(𝑑), with Z(t)
independent of X(t). What is π‘“π‘Œπ‘‹ πœ” ? What
2
is πœŒπ‘Œπ‘‹
πœ” ?
18
Example
Let 𝑋1 𝑑 ~𝐴𝑅 1 with AR coefficient 0.9, and
let 𝑋2 𝑑 ~𝐴𝑅 1 with AR coefficient -0.9, and
𝑋1 𝑑 ⊥ 𝑋2 𝑑 .
For a scalar π‘Š with 0 ≤ π‘Š ≤ 1, define
π‘Œ1 𝑑
π‘Šπ‘‹1 𝑑 + 1 − π‘Š 𝑋2 𝑑
=
π‘Œ2 𝑑
𝑋1 𝑑
How does the squared coherence between
π‘Œ1 𝑑 and π‘Œ2 𝑑 as a function of frequency 19
behave with respect to π‘Š?
Example
20
Example
Let 𝑋1 𝑑 ~𝐴𝑅 1 with AR coefficient 0.9, and
let 𝑋2 𝑑 ~𝐴𝑅 1 with AR coefficient -0.9, and
𝑋1 𝑑 ⊥ 𝑋2 𝑑 .
For a scalar π‘Š with 0 ≤ π‘Š ≤ 1, define
π‘Œ1 𝑑
π‘Šπ‘‹1 𝑑 + 1 − π‘Š 𝑋2 𝑑
=
π‘Œ2 𝑑
0.5𝑋1 𝑑 + 0.5𝑋2 𝑑
How does the squared coherence between
π‘Œ1 𝑑 and π‘Œ2 𝑑 as a function of frequency 21
behave with respect to π‘Š?
Example
22
Nonparametric Estimation
Given a bivariate time series (𝑋1 t , 𝑋2 t )′,
construct the bivariate DFTs 𝑑 πœ”π‘— =
(𝑑𝑋1 πœ” , 𝑑𝑋2 πœ” )′, where
𝑇
𝑑𝑋𝑗 πœ”π‘— = 𝑇 −1/2
𝑋𝑗 𝑑 exp(−𝑖2πœ‹πœ”π‘— 𝑑)
𝑑=1
23
Nonparametric Estimation
The periodogram matrix is
𝑰 πœ”π‘— = 𝑑 πœ”π‘— 𝑑 πœ”π‘—
∗
24
Nonparametric Estimation
The smoothed periodogram matrix is
𝒇 πœ”π‘—
1
=
2𝑀 + 1
𝑀
π‘˜=−𝑀
π‘˜
𝑰(πœ”π‘— + )
𝑇
25
Nonparametric Estimation
More generally,
𝑀
𝒇 πœ”π‘— =
π‘˜=−𝑀
where
β„Žπ‘˜ ≥ 0,
|π‘˜|≤𝑀 β„Žπ‘˜
π‘˜
β„Žπ‘˜ 𝑰(πœ”π‘— + )
𝑇
= 1, and β„Žπ‘˜ = β„Ž−π‘˜
26
Nonparametric Estimation
From here, an estimate of the squared
coherence is
2
πœŒπ‘‹π‘Œ
πœ” =
|π‘“π‘‹π‘Œ πœ” |2
𝑓𝑋 πœ” π‘“π‘Œ πœ”
27
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, Σ).
28
Nonparametric Estimation
𝐸 𝒇 πœ”
πΆπ‘œπ‘£ π‘“π‘π‘ž πœ” , π‘“π‘Ÿπ‘  πœ†
2
𝑀
β„Ž
π‘˜=−𝑀 π‘˜
→ 𝑓
π‘π‘Ÿ
→𝒇 πœ”
0 if πœ” ≠ πœ†
πœ” π‘“π‘ π‘ž πœ” if πœ” = πœ† ≠ 0, 0.5
29
Nonparametric Estimation
|πœŒπ‘‹π‘Œ πœ” |
2
𝑀
β„Ž
π‘˜=−𝑀 π‘˜
~𝐴𝑁( πœŒπ‘‹π‘Œ πœ” , 1 − πœŒπ‘‹π‘Œ πœ”
π‘‘π‘Žπ‘›β„Ž−1 ( πœŒπ‘‹π‘Œ πœ” )
2
𝑀
β„Ž
π‘˜=−𝑀 π‘˜
2
/2)
~𝐴𝑁(π‘‘π‘Žπ‘›β„Ž−1 ( πœŒπ‘‹π‘Œ πœ” ), 1/2)
30
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)
31
Example
32
Example
33
Example
34
Example
35
Example
36
Example
37
Example
38
Example
39
Example
40
Example
−2.682 βˆ™ 2πœ‹
−4.173 βˆ™ 2πœ‹
41
Download