Docsity

Estimation of Correlation and Vector-Valued and Multidimensional Series (§1.6, 1.7) - Prof, Assignments of Statistics

Partial preview of the text

Download Estimation of Correlation and Vector-Valued and Multidimensional Series (§1.6, 1.7) - Prof and more Assignments Statistics in PDF only on Docsity!

STA 6857—Estimation of Correlation & Vector-Valued and

Multidimensional Series (§1.6, 1.7)

Outline

(^1) Announcements

(^2) Estimation of Correlation (§1.6)

(^3) Vector-Valued and Multidimensional Series

4 Homework 2a

Announcements

TA office hours are 3-4pm today.

We will end a little early today to individually go over your questions

on the homework.

Outline

(^1) Announcements

(^2) Estimation of Correlation (§1.6)

(^3) Vector-Valued and Multidimensional Series

4 Homework 2a

Estimation of the Autocovariance Function and the ACF

Estimation of the autocovariance function γ(h)?

The sample autocovariance function.

ˆγ(h) =

n

∑^ n−h

t= 1

(xt+h − ¯x)(xt − ¯x)

Compare γˆ(h) with γ(h):

γ(h) = E [(xt+h − μ) (xt − μ)]

Estimation of the ACF?

The sample ACF.

ρ ˆ(h) =

γˆ(h)

γˆ( 0 )

Properties of the Sample ACF

Estimation of γˆ(h) and ρˆ(h) for large h (h close to n) is inaccurate since it

is only based on n − h data.

The ACF of WN is 0 for h > 0, so the sample ACF is a useful for

discerning whether a series is WN or not.

The auto-covariance and auto-correlation functions are even, so we define

γ ˆ(−h) = ˆγ(h) and ρˆ(−h) = ˆρ(h).

An Alternative Autocovariance Estimator – “Unbiased

Version”

γ ˆ(h) =

n − h

∑^ n−h

t= 1

(xt+h − ¯x)(xt − ¯x)

gam<-function(s){

  • t<-1:(length(x)-abs(s))

  • sum((x[t]-mean(x))*(x[t+abs(s)]-mean(x)))/(length(x)-abs(s))}

rho<-function(s){gam(s)/gam(0)}

rho_values<-double(100)

for(t in 0:99){rho_values[t+1]<-rho(t)}

plot(rho_values)

Linear Time Series

Definition (Linear Time Series)

A time series is said to be linear if it has the representation

xt = μ +

∑^ ∞

j=−∞

ψjwt−j

where wt ∼ IID( 0 , σ

2 )

The book only assumes wt ∼ WN( 0 , σ

2 ), and requires IID-ness when

necessary (like Appendix A.3).

Many standard time series models like the AR(p), MA(q), and ARMA(p, q)

models are linear time series models.

The bilinear, ARCH, and GARCH models are nonlinear time series

models.

Sample Cross-Covariance and CCF Functions

Definition (Sample Cross-Covariance Function)

γ ˆxy(h) =

n

n∑−h

t= 1

(xt+h − ¯x)(yt − ¯y)

Definition (Sample CCF)

ρ ˆxy(h) =

ˆγxy(h) √ ˆγx( 0 )ˆγy( 0 )

Large Sample Distribution of the ACF

Theorem (Asymptotic Distribution of Linear WN)

If xt and yt are independent linear time series, then

n (ˆρxy(h) − ρxy(h)) =

n ρˆ(h) −→ N ( 0 , 1 )

if at least one of the processes is white noise.

So in particular, the standard deviation of ρˆxy(h) is approximately √^1 n

R Example

soi = ts(scan("mydata/soi.dat"), start=1950, frequency=12)

rec = ts(scan("mydata/recruit.dat"), start=1950, frequency=12)

Read 453 items

par(mfrow=c(3,1))

acf(soi, 50)

acf(rec, 50)

ccf(soi, rec, 50)

Outline

(^1) Announcements

(^2) Estimation of Correlation (§1.6)

(^3) Vector-Valued and Multidimensional Series

4 Homework 2a

Mean and Auto-covariance of a Vector-Valued Time Series

The mean of xt is

μ = E(xt) =

E(xt 1 )

E(xt 2 )

. . .

E(xtp)

μ 1

μ 2

. . .

μp

and the autocovariance matrix is

Γ(h) = E

[

(xt+h − μ)(xt − μ)

′

]

Note that Γ(h) = (γij(h)) where

γij(h) = E [(xt+h,i − μi)(xtj − uj)]

Estimation with Vector-Valued Time Series

The mean is estimated by the sample mean given by

μ ˆ = ¯x =

n

∑^ n

t= 1

xt.

The sample autocovariance matrix is given by

ˆΓ(h) =

n

n∑−h

t= 1

(xt+h − ¯x)(xt − ¯x)

′