








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









Stationary Stochastic Processes
The behavior of a
stochastic process
, or simply a
process
z ( t ) on a
domain
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
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
In (discrete time) time series analysis,
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
For
m
= 1 with a stationary process,
p ( z t ) =
p ( z ) is the same for
all
t
. Its
mean
and
variance
are
μ
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
A process is a
Gaussian process
if its restrictions (
z t 1 (^) ,... , z
t m
(^) )
A processfollow normal distributions.
z t
on
is
weakly stationary
of second order if
z t ] =
z 0 ] =
μ
cov[
z t , z
t
h ] = cov[
z 0 , z
h ] =
γ h ,
for all
t, h
. 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
Let
a t
be independent with
a t ] = 0 and
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
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
z t ] = 0 and
γ 0
=
σ a 2 (1 +
θ 2 ) , γ 1 = σ
a 2 ( − θ ) , γ k
k >
Spring 2021
Stationary Stochastic Processes
Observing
z 1 ,... , z
N
(^) , one estimates
μ = E [ z t
] using
¯z
=
z t /N
(^) , with the variance
var[¯
z ] =
1
N
(^2)
∑
γ t − s = γ 0
N
N
(^) −
1
Nk
ρ k ] .
Assuming
∑ k | ρ k | < ∞
, it can be shown that as
var[¯
z ] → γ 0 (
ρ k ) ,
which yields the “large sample” variance (
γ 0 /N
ρ k ) .
Compare with the familiar
i.i.d.
result var[¯
z ] =
σ
2 /N
(^) , the effective
sample size becomes
ρ k )
due to autocorrelation.
The factor
ρ k )
is 1 for white noise, (1 +
φ ) / (
φ
) for
AR(1), and (
θ ) 2 / (1 +
θ 2 ) for MA(1).
Spring 2021
Stationary Stochastic Processes
To estimate
γ k , one uses the
sample covariance function
c k
=
N 1
N
(^) −
k
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
c k ] ≈ γ k −
Nk
γ k
−
N 1
γ 0 ( 1 + 2
ρ v ) = γ k + O ( N
(^) −
1 ),
and that
E [ r k ] ≈ ρ k −
Nk
ρ k
−
N 1
ρ v ) = ρ k + O ( N
(^) −
1 ),
so
c k
and
r k
are asymptotically unbiased estimates of
γ k
and
ρ k .
Spring 2021
Stationary Stochastic Processes
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
(^). The estimated variances for
r k
are (
(^) ) for
ci.type="white"
(white noise model, with
ρ v
= 0,
v >
0), or (
k −
1
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
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 / 2
− 1 / 2 ∣ ∣ f (^) ( x ) ∣∣ 2 dx <
∞
, one has the
Fourier series expansion
,
f (^) ( x ) =
∑
−∞
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
∑
−∞
| 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
∑
z t e − i 2
πtv/N
,^
v
= 1
,... , N
(^) ,
and the inverse DFT is given by
z t =
1
√ N
∑
ζ v (^) e i 2 πtv/N
,^
t = 1
,... , N
(^).
Spring 2021
Stationary Stochastic Processes
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
Consider
z t
=
a 1 cos 2
πλt
a 2
sin 2
πλt
, where
a 1 , a
2
∼
, σ
2 ).
One has
z t ] = 0 and
cov[
z t , z
s ] =
σ
2 { cos 2
πλt
cos 2
πλs
πλt
(^) sin 2
πλs
σ
2
cos 2
πλ
| t − s | ,
so
z t
is stationary with
ρ k
= cos 2
πλk
. The spectral distribution
ω
) 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