– Spectral Analysis of ST414 Time Series Data Lecture 3

advertisement
ST414 – Spectral Analysis of
Time Series Data
Lecture 3
11 February 2014
Last Time
• Introduced the periodogram
• Introduced the spectral density function
• Derived the spectral density function for
time series models
2
Today’s Objectives
• Resume discussion on the periodogram
• The smoothed periodogram
• Asymptotic considerations
3
The Periodogram
The Discrete Fourier transform:
𝑗
𝑑
= 𝑇 −1/2
𝑇
𝑇
=𝑇
−1/2
𝑑=1
𝑇
𝑑=1
𝑗
𝑋 𝑑 exp −2πœ‹π‘–π‘‘
𝑇
𝑗
𝑋 𝑑 cos 2πœ‹π‘‘
𝑇
𝑇
−𝑖
𝑑=1
𝑗
𝑋 𝑑 sin 2πœ‹π‘‘
𝑇
4
The Periodogram
The periodogram:
𝐼 πœ”π‘— = 𝑑 πœ”π‘—
2
5
The Spectral Density
Let
β„Žπœ–π’ |𝛾
β„Ž | < ∞. Then
𝑓 πœ” =
𝛾 β„Ž exp(−𝑖2πœ‹πœ”β„Ž)
β„Žπœ–π’
is called the spectral density function.
Moreover,
1/2
𝛾 β„Ž =
exp 𝑖2πœ‹πœ”β„Ž 𝑓 πœ” π‘‘πœ”
−1/2
6
White Noise
Let X(t) be white noise with variance 𝜎 2 .
What is 𝛾 β„Ž ?
𝜎 2 if β„Ž = 0
𝛾 β„Ž =
0 if β„Ž > 0
What is 𝑓 πœ” ?
𝑓 πœ” = 𝜎2
7
MA(1)
𝑋 𝑑 = 𝑍 𝑑 + πœƒπ‘(𝑑 − 1)
𝑍 𝑑 is white noise (0, 𝜎 2 )
𝜎 2 1 + πœƒ 2 if β„Ž = 0
𝛾 β„Ž =
𝜎 2 πœƒ if |β„Ž| = 1
0 if β„Ž > 1
2
2
𝑓 πœ” = 𝜎 πœƒ + 2πœƒ cos 2πœ‹πœ” + 1
8
AR(1)
𝑋 𝑑 = πœ™π‘‹ 𝑑 − 1 + 𝑍 𝑑
𝑍 𝑑 is white noise (0, 𝜎 2 )
𝜎 2πœ™β„Ž
γ β„Ž =
1 − πœ™2
𝜎2
𝑓 πœ” = 2
πœ™ − 2πœ™ cos 2πœ‹πœ” + 1
9
AR(1)
10
AR(1) Periodogram
11
AR(1) Periodogram (Averaged)
12
AR(1)
13
AR(1) Periodogram
14
AR(1) Periodogram (Averaged)
15
AR(1), T = 512
16
AR(1), T = 2048
17
AR(1), T = 8192
18
The Periodogram
The periodogram is an (asymptotically)
unbiased estimator, but it is not consistent.
19
Asymptotic Distribution of the
Periodogram
Let X(1), …, X(T) be Gaussian white noise
with variance 𝜎 2 , and let
𝑇
𝑋𝑐 (πœ”π‘— ) = 𝑇 −1/2
𝑋 𝑑 cos 2πœ‹π‘‘πœ”π‘—
𝑑=1
𝑇
𝑋𝑠 (πœ”π‘— ) = 𝑇 −1/2
𝑋 𝑑 sin 2πœ‹π‘‘πœ”π‘—
𝑑=1
20
Asymptotic Distribution of the
Periodogram
Verify that
𝐸 𝑋𝑐 πœ”π‘—
= 𝐸 𝑋𝑠 πœ”π‘—
=0
and
π‘‰π‘Žπ‘Ÿ 𝑋𝑐 πœ”π‘—
= π‘‰π‘Žπ‘Ÿ 𝑋𝑠 πœ”π‘—
= 𝜎 2 /2
21
Asymptotic Distribution of the
Periodogram
πΆπ‘œπ‘£ 𝑋𝑐 πœ”π‘— , 𝑋𝑠 πœ”π‘—
=0
πΆπ‘œπ‘£ 𝑋𝑐 πœ”π‘— , 𝑋𝑐 πœ”π‘˜
=0
πΆπ‘œπ‘£ 𝑋𝑠 πœ”π‘— , 𝑋𝑠 πœ”π‘˜
=0
πΆπ‘œπ‘£ 𝑋𝑐 πœ”π‘— , 𝑋𝑠 πœ”π‘˜
=0
for any 𝑗 ≠ π‘˜.
22
Asymptotic Distribution of the
Periodogram
2(𝑋𝑐 2 πœ”π‘— + 𝑋𝑠 2 πœ”π‘— ) 2𝐼 πœ”π‘—
2
=
~πœ’
2
2
𝜎
𝑓(πœ”π‘— )
This holds under more general conditions
(e.g., linearity, rapidly decaying
autocovariance function)
23
The Smoothed Periodogram
Idea: borrow information from neighbouring
frequencies.
24
The Smoothed Periodogram
𝑓 πœ”π‘—
1
=
2𝑀 + 1
𝑀
π‘˜=−𝑀
π‘˜
𝐼(πœ”π‘— + )
𝑇
25
The Smoothed Periodogram
Under appropriate conditions,
2(2𝑀 + 1)𝑓 πœ”π‘—
~πœ’ 2 2(2𝑀 + 1)
𝑓(πœ”π‘— )
26
The Smoothed Periodogram
27
The Smoothed Periodogram
28
The Smoothed Periodogram
29
The Smoothed Periodogram
30
The Smoothed Periodogram
Recall
2(2𝑀 + 1)𝑓 πœ”π‘—
~πœ’ 2 2(2𝑀 + 1)
𝑓(πœ”π‘— )
and so
π‘‰π‘Žπ‘Ÿ(𝑓 πœ”π‘— ) ≈ 𝑓 2 (πœ”π‘— )/(2𝑀 + 1)
31
The Smoothed Periodogram
Asymptotic framework for consistency:
1) 𝑇 → ∞
2) 𝑀 = 𝑀 𝑇 → ∞
3) 𝑀 𝑇 /𝑇 → 0
32
The Smoothed Periodogram
33
The Smoothed Periodogram
34
The Smoothed Periodogram
35
The Smoothed Periodogram
More generally,
𝑀
𝑓 πœ”π‘— =
π‘˜=−𝑀
where
β„Žπ‘˜ ≥ 0,
|π‘˜|≤𝑀 β„Žπ‘˜
π‘˜
β„Žπ‘˜ 𝐼(πœ”π‘— + ) ,
𝑇
= 1, and β„Žπ‘˜ = β„Ž−π‘˜
36
The Smoothed Periodogram
Asymptotic framework for consistency:
1) 𝑇 → ∞
2) 𝑀 = 𝑀 𝑇 → ∞
3) 𝑀 𝑇 /𝑇 → 0
4)
2
𝑀
π‘˜=−𝑀 β„Žπ‘˜
→0
37
The Smoothed Periodogram
𝐸 𝑓 πœ”π‘—
→ 𝑓 πœ”π‘—
0 if πœ” ≠ πœ†
πΆπ‘œπ‘£ 𝑓 πœ” , 𝑓 πœ†
→
−1
𝑀
β„Žπ‘˜ 2
𝑓 2 πœ” if πœ” = πœ† ≠ 0, 0.5
π‘˜=−𝑀
38
The Smoothed Periodogram
39
The Smoothed Periodogram
40
Download