Professional Documents
Culture Documents
Peter Craigmile
Time series analysis
Stationarity, Weakly stationary processes
Example: Malindi coral
What is spectral analysis?
Example: The harmonic process
A discussion about notation and frequencies
Herglotzs and Bochners theorem
So what does the spectrum measure?
Existence of the spectral density function
Changing the sampling interval, and aliasing
The SDF of a white noise process
Linear time-invariant filtering of stationary processes
Example SDFs for different ARMA processes
Approximation theorems involving spectral densities
1
Stationarity
We will still try to keep our models as simple as possible by
assuming stationarity.
Stationarity means that some characteristic of the distribution of a time series process does not depend on the
time, only the displacement in time.
If you shift the time series process, that characteristic of
the distribution will not change.
While most time series data are not stationary,
there are ways to either remove or model the non-stationary
parts (the components that depend on time).
so that we are only left with a stationary component.
for all s, t T .
1800
1850
1900
1950
2000
Partial ACF
ACF
Year
10
15
20
Lag
10
15
20
Lag
L
X
l=1
Assume that {fl } are sorted in increasing order, and that {Al }
and {Bl } are a sequence of (mutually) uncorrelated mean zero
RVs with var(Al ) = var(Bl ) = l2 for each l.
It can be shown that {Xt} is a stationary mean zero process,
with autocovariance function (ACVF)
X (h) =
L
X
l2 cos(2fl h).
l=1
L
X
l2.
l=1
L
X
[Cl cos(2fl t + l )] .
l=1
Xt =
Dl ei2fl t.
l=L
L
X
Sl ei2fl h,
l=L
1
is called the Nyquist frequency.
2
10
Herglotzs theorem
(The spectrum is the Fourier transform of the ACVF)
A real-valued function () defined on the integers is nonnegative definite if and only if
Z 1/2
(h) =
ei2f hdS (I)(f ),
1/2
11
R 1/2
1/2 e
i2f h
12
we let h = 0 to get
Z
1/2
var(Xt) = X (0) =
dS (I)(f ).
1/2
Thus we can think of the increments of the spectrum as decomposing the variance of a time series into a collection
of pieces, each of which can be associated with a different
frequency f .
Different stationary time series models have different decompositions by frequency.
Before we look at some examples let us discuss some further
properties of the spectrum.
13
with
S(f ) =
ei2f h(h).
hZ
14
15
SX (f ) =
hZ
with
Z
X (h) =
ei2f h SX (f ) df.
16
Aliasing: sinusoids
An example of two aliased sinusoids:
1.0
Delta = 1, f = 1/16
0.5
0.0
1.0 0.5
20
30
10
40
50
60
1.0
Delta = 1, f = 1/16 + 1
0.5
0.0
10
1.0 0.5
20
30
40
17
50
60
Aliasing, in general
Let {Xt} be a stationary process, observed with sampling
interval . If the ACVF is absolutely summable, then
SX (f ) = SX (f + k/),
for all k Z.
18
ei2f hZ (h)
h=
= 1 . Z (0)
= 2.
The SDF of white noise is a constant function.
Indeed, this is why it is called white noise.
The SDF (and hence variance) of a WN process is an equal
mix of all frequencies (colors).
1.0
0.8
0.6
SDF
1.2
1.4
WN(0, 1) process
0.0
0.1
0.2
0.3
frequency
19
0.4
0.5
aj Xtj ,
j=
X
X
aj ak X (j k + h).
j= k=
20
aj ei2f j .
j=
21
X
X
j= k=
X
X
j= k=
Z 1/2
i2f h
aj ak X (j k + h)
Z
aj ak
1/2
SX (f )
1/2
1/2
aj ei2f j
j=
X
k=
1/2
1/2
1/2
Z
=
1/2
22
ak ei2f k df
aj Ztj ,
j=
where
aj =
1, j = 0;
, j = 1;
0, otherwise.
X
A(f ) =
aj ei2f j = 1 + ei2f .
j=
p
X
j=1
j Xtj =
q
X
k=1
e
SZ (f ).
k
j
j=1
k=1
Thus
P
1 + q k ei2f k 2
k=1
SX (f ) = 2
2 ,
P
p
1 j=1 j ei2f j
This is often called the rational SDF.
24
|f | < 1/2.
5
4
0
SDF
3
0
SDF
AR(1) process
1 = 0.6
6
AR(1) process
0.1
0.2
0.3
0.4
0.5
0.0
0.1
0.2
0.3
0.4
frequency
frequency
AR(2) process
= (0.75, 0.5)
0.5
AR(4) process
15000
SDF
5000
1
0
SDF
0.0
0.0
0.1
0.2
0.3
0.4
0.5
frequency
0.0
0.1
0.2
0.3
frequency
25
0.4
0.5
such that
|SY (f ) SX (f )| < ,
26
References
D. R. Brillinger. Time Series: Data Analysis and Theory. Holt, New York, NY, 1981.
P. J. Brockwell and R. A. Davis. Time Series. Theory and Methods (Second Edition).
Springer-Verlag, New York, 1991.
J. Cole, R. Dunbar, T. McClanahan, and N. Muthiga. Tropical pacific forcing of decadal
variability in the western indian ocean over the past two centuries. Science, 287:617
619, 2000. URL http://www.sciencemag.org/content/287/5453/617.
D. Percival and A. Walden. Spectral Analysis for Physical Applications. Cambridge
University Press, Cambridge, 1993.
M. B. Priestley. Spectral Analysis and Time Series. (Vol. 1): Univariate Series. Academic
Press, London, UK, 1981a.
M. B. Priestley. Spectral Analysis and Time Series. (Vol. 2): Multivariate Series, Prediction and Control. Academic Press, London, UK, 1981b.
27