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