DFT for Time Series Flashcards
spectral density and autocovariance, spectral density of white noise, spectral density of AR(p)
Let Xo,…,Xn-1 be a time series
Xo^?
Xo^ = 1/√n Σ Xt e^(-2πi0t)
= 1/√n Σ Xt
= √n * Xt~
-sum from t=0 to t=n-1 and Xt~ is the sample mean
Let Xo,…,Xn-1 be a time series
Var(X)?
Var(X) = 1/n Σ |Xt|² -sum from t=0 to t=n-1 -by conservation of energy: Var(x) = 1/n Σ |Xj^|² -sum from j=0 to j=n-1 -by definition: Var(X) = 1/n Σ I(fj) ≈ ∫ I(fj) df -integral between 0 and 1 -so variance of X is the integral of the spectral density over all frequencies
Let Xo,…,Xn-1 be a time series
Variance contributed by range [a,b]?
1/n Σ I(fj) ≈ ∫ I(fj) df
- sum over fj in interval [a,b]
- integrate from a to b
- this quantifies the variance contributed by the frequency range [a,b]
Spectral Density in Terms of Sample Autocovariance
General Case
-if gk is the lag-k ample autocovariance of X then:
I(fj) = √n * gk
Spectral Density in Terms of Sample Autocovariance
Periodic X
I(fj) = go + 2Σgkcos(2πfj*k)
-sum k between 1 and n/2
-if n is even there is an additional term:
+ gn/2 * (-1)^j
Power Spectrum
- the spectral density I is an estimate for the power 𝐼(f) = γ0 + 2 Σ γk*cos(2πfk)
- sum from k= 1 to k=∞
White Noise
Spectral Density
-let Xt ~ N(0,σ²) i.i.d., then:
Xj^ = 1/√n Σ Xte^(-2πifj*t)
-this can be written as a sum of real and imaginary parts
-so Xj^ is (complex) normally distributed with:
E[Re(Xj^)] = 0
E[Im(Xj^)] = 0
White Noise
Var[Re(Xj^)]
Var[Re(Xj^)] = σ² if j is 0 or n/2 OR σ²/2 otherwise
White Noise
Var[Im(Xj^)]
Var[Im(Xj^)] = 0 if j=0 or n/2 OR σ²/2 otherwise
White Noise
Cov[Re(Xj^),Im(Xj^)]
Cov[Re(Xj^),Im(Xj^)] = 0
White Noise
Correlation
Xj^ and Xk^ are uncorrelated for j≠k
White Noise
E[I(fj)]
E[I(fj)] = σ²
AR(p)
DFT of Xt
Xj^ = εj^ / [1 - Σ αke^(-2πifj*k)]
-sum from k=1 to k=p
AR(p)
Spectral Density
I(fj) = |Xj^|²
= |εj^|² / |1 - Σ αke^(-2πifj*k)|²
-sum from k=1 to k=p
AR(p)
E[I(fj)]
E[I(fj)] = σε² / |1 - Σ αke^(-2πifj*k)|²
-sum from k=1 to k=p