Docsity

Stationary Stochastic Processes and Their Analysis, Exercises of Stochastic Processes

Toggle sidebar
bg1
STAT 520 Stationary Stochastic Processes 1
✬
✫
✩
✪
Stationary Stochastic Process
The behavior of a stochastic process, or simply a process,z(t) on a
domain Tis characterized by the probability distributions of its
finite dimensional restrictions z(t1),...,z(tm),
pz(t1),...,z(tm),
for all t1,...,tm∈ T .
A process is (strictly) stationary if
pz(t1),...,z(tm)=pz(t1+h),...,z(tm+h),
for all t1,...,tm, h ∈ T .
In (discrete time) time series analysis, Tis the integer lattice, so ti
and hwill be integers. We will write z(t) as zt.
C. Gu Spring 2021
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Stationary Stochastic Processes and Their Analysis and more Exercises Stochastic Processes in PDF only on Docsity!

Stationary Stochastic Processes

Stationary Stochastic Process

The behavior of a

stochastic process

, or simply a

process

z ( t ) on a

domain

T

is characterized by the probability distributions of its

finite dimensional restrictions

( z ( t 1 )

,... , z

( t m ) ) ,

p ( z ( t 1 )

,... , z

( t m ) ) ,

for all

t 1 ,... , t

m

∈ T

A process is (strictly) stationary if

p ( z ( t 1 )

,... , z

( t m ) ) = p ( z ( t 1 + h )

,... , z

( t m + h ) ) ,

for all

t 1 ,... , t

m

, h

∈ T

In (discrete time) time series analysis,

T

is the integer lattice, so

t i

and

h

will be integers. We will write

z ( t ) as

z t .

Spring 2021

Stationary Stochastic Processes

Moments of Stationary Process

For

m

= 1 with a stationary process,

p ( z t ) =

p ( z ) is the same for

all

t

. Its

mean

and

variance

are

μ

E

[

z t ] =

zp

z ) dz,

σ 2 = E [ ( z t − μ ) 2 ] = ∫ ( z − μ ) 2 p ( z )

dz.

The

autocovariance

of the process at

lag

k

is

γ k

= cov[

z t , z

t

k ] =

E [ ( z t − μ

z t + k − μ ) ].

The

autocorrelation

of the process is

ρ k = E [ ( z t − μ

z t + k − μ ) ]

√ E [ ( z t − μ ) 2 ] E

[(

z t + k − μ ) 2 ] = γ k

γ 0 ,

where

γ 0 = σ 2.

Spring 2021

Stationary Stochastic Processes

Weak Stationarity, Gaussian Process

A process is a

Gaussian process

if its restrictions (

z t 1 (^) ,... , z

t m

(^) )

A processfollow normal distributions.

z t

on

T

is

weakly stationary

of second order if

E

[

z t ] =

E

[

z 0 ] =

μ

cov[

z t , z

t

h ] = cov[

z 0 , z

h ] =

γ h ,

for all

t, h

∈ T

. A Gaussian process that is weakly stationary of

For second order is also strictly stationary.

z t

stationary, the linear function with coefficients

l 1 ,... , l

n ,

L t = l 1 z t + l 2 z t − 1 +

  • l n z t − n

is stationary. These include

∇ z t = z t − z t − 1

and higher order

differences

d z t .

Spring 2021

Stationary Stochastic Processes

Examples: AR(1) and MA(1) Processes

Let

a t

be independent with

E

[

a t ] = 0 and

E

[

a t 2 (^) ] =

σ a 2

. The process

a t

is called a

white noise

process.

Suppose

z t

satisfies

z t

=

φz

t − 1 + a t

, a first order

autoregressive

(AR) process, with

φ | <

1 and

z t −

1

independent of

a t

. It is easy to

verify that

E

[

z t ] = 0 and

γ 0

=

σ a 2 / (

− φ 2 ) , ρ k =

φρ

k − 1 , ρ k = φ |

k | .

Let

z t = a t −

θa

t −

1 , a first order

moving average

(MA) process. It

is easy to verify that

E

[

z t ] = 0 and

γ 0

=

σ a 2 (1 +

θ 2 ) , γ 1 = σ

a 2 ( − θ ) , γ k

k >

Spring 2021

Stationary Stochastic Processes

Estimation of Mean

Observing

z 1 ,... , z

N

(^) , one estimates

μ = E [ z t

] using

¯z

=

t N

z t /N

(^) , with the variance

var[¯

z ] =

1

N

(^2)

∑

t N

s N

γ t − s = γ 0

N

[

N

(^) −

1

k

Nk

ρ k ] .

Assuming

∑ k | ρ k | < ∞

, it can be shown that as

N

N

var[¯

z ] → γ 0 (

k ∞

ρ k ) ,

which yields the “large sample” variance (

γ 0 /N

k ∞

ρ k ) .

Compare with the familiar

i.i.d.

result var[¯

z ] =

σ

2 /N

(^) , the effective

sample size becomes

N/

k ∞

ρ k )

due to autocorrelation.

The factor

k ∞

ρ k )

is 1 for white noise, (1 +

φ ) / (

φ

) for

AR(1), and (

θ ) 2 / (1 +

θ 2 ) for MA(1).

Spring 2021

Stationary Stochastic Processes

Estimation of Autocorrelation Function

To estimate

γ k , one uses the

sample covariance function

c k

=

N 1

N

(^) −

k

t

z t −

¯z )(

z t

k

−

¯z ).

To estimate

ρ k , one uses the

sample autocorrelation function

r k

=

c k /c

0 .

Both

c | t −

s |

and

r | t −

s |

are nonnegative definite.

It can be shown that

E

[

c k ] ≈ γ k −

Nk

γ k

−

N 1

γ 0 ( 1 + 2

v ∞

ρ v ) = γ k + O ( N

(^) −

1 ),

and that

E [ r k ] ≈ ρ k −

Nk

ρ k

−

N 1

v ∞

ρ v ) = ρ k + O ( N

(^) −

1 ),

so

c k

and

r k

are asymptotically unbiased estimates of

γ k

and

ρ k .

Spring 2021

Stationary Stochastic Processes

Sample ACF in R

The

acf

function in the R library

ts

can be used to calculate and

plot

c k

and

r k , with standard errors superimposed for

r k

. Part of

the arguments and default options are listed below.

acf(x,lag.max=NULL,type=c("cor","cov","partial"),

plot=TRUE,demean=TRUE,...)

plot.acf(acf.obj,ci=0.95,ci.col="blue",

ci.type=c("white","ma"),...)

The default

lag.max

is 10 log

10

N

(^). The estimated variances for

r k

are (

/N

(^) ) for

ci.type="white"

(white noise model, with

ρ v

= 0,

v >

0), or (

/N

k −

1

v

r k 2 ) for

ci.type="ma"

(MA(k-1)

model, with

ρ v

= 0,

v > k

The option

type="partial"

concerns partial autocorrelation, to be

discussed later.

Spring 2021

Stationary Stochastic Processes

Some Elementary Fourier Analysis

A complex number

a

ib

can be written as

Ae

iθ

=

A

(cos

(^) θ

i (^) sin

(^) θ ),

where

A

=

| a

ib

| = √ a 2 + b 2

, cos

θ

=

a/A

, and sin

(^) θ

=

b/A

.

| e iθ

|^ = 1.

For any

f (^) ( x ) on (

−

1 / 2 , (^1) /

  1. satisfying

∫

1 / 2

− 1 / 2 ∣ ∣ f (^) ( x ) ∣∣ 2 dx <

∞

, one has the

Fourier series expansion

,

f (^) ( x ) =

∑

v ∞

−∞

f v (^) e − i 2 πvx

,

where

f v = ∫ 1 / 2

− 1 / 2 f (^) ( x ) e i 2 πvx

dx

are the

Fourier coefficients

. The

Parseval’s identity

asserts that

∑

v ∞

−∞

| f v (^) | 2 = ∫ 1 / 2

− 1 / 2 ∣ ∣ f (^) ( x ) ∣∣ 2 dx

.

For vector (

z 1 ,... , z

N (^) ), the

discrete Fourier transform

(DFT) is given by

ζ v

=

1

√ N

∑

t N

z t e − i 2

πtv/N

,^

v

= 1

,... , N

(^) ,

and the inverse DFT is given by

z t =

1

√ N

∑

v N

ζ v (^) e i 2 πtv/N

,^

t = 1

,... , N

(^).

Spring 2021

Stationary Stochastic Processes

Examples of Spectral Density

For white noise,

f (^) ( ω

) = 1 is uniform.

For AR(1),

f (^) ( ω

) =

φ 2

φ

cos 2

πω

φ

2

(^). Plots are with

φ

For MA(1),

f (^) ( ω

) = 1

θ

cos 2

πω

θ 2

. Plots are with

θ

=

−0.

−0.

0.0 1.0 2.0 3.

AR(1) Spectrum

ω

f(ω)

−0.

−0.

0.0 0.5 1.0 1.5 2.

MA(1) Spectrum

ω

f(ω)

Spring 2021

Stationary Stochastic Processes

Continuous and Discrete Spectrum

Consider

z t

=

a 1 cos 2

πλt

a 2

sin 2

πλt

, where

a 1 , a

2

∼

N

, σ

2 ).

One has

E

[

z t ] = 0 and

cov[

z t , z

s ] =

σ

2 { cos 2

πλt

cos 2

πλs

  • sin 2

πλt

(^) sin 2

πλs

σ

2

cos 2

πλ

| t − s | ,

so

z t

is stationary with

ρ k

= cos 2

πλk

. The spectral distribution

F

ω

) is discrete with mass at

ω

λ .

have both deterministic and purely random components.should have a spectral density. In general, a stationary process maya sinusoidal deterministic process, thus a purely random processThe above example shows that a discrete spectrum corresponds to

Spring 2021