Docsity

hydrology fttrtrttrtr, Essays (university) of Hydrology

Toggle sidebar
bg1
1
Chapter 4 Models for
Stationary Time Series
This chapter discusses the basic concepts of a broad class of parametric time series
models—the autoregressive-moving average models (ARMA). These models have
assumed great importance in modeling real-world processes.
4.1 General Linear Processes
We will always let {Zt} denote the observed time series. From here on we will also let
{at} represent an unobserved white noise series, that is, a sequence of identically
distributed, zero-mean, independent random variables. For much of our work, the
assumption of independence could be replaced by the weaker assumption that the {at}
are uncorrelated random variables, but we will not pursue that slight generality.
A general linear process, {Zt}, is one that can be represented as a weighted linear
combination of present and past white noise terms:
(4.1.1)
If the right-hand side of this expression is truly an infinite series, then certain conditions
must be placed on the ψ-weights for the right-hand side to be mathematically
meaningful. For our purposes, it suffices to assume that
(4.1.2)
We should also note that since {at} is unobservable, there is no loss in the generality of
Equation (4.1.2) if we assume that the coefficient on a1 is 1, effectively, ψ0=1.
An important nontrivial example to which we will return often is the case where the ψ’s
form an exponentially decaying sequence:
where φ is a number between −1 and +1. Then
For this example
Ztatψ1at1– ψ2at2– …
+++=
ψi
2∞<
i1=
∞
∑
ψjφj
=
Ztatφat1– φ2at2– …
++ +=
EZ
t
() Ea
tφat1– φ2at2– …
++ +()=
0=
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20

Partial preview of the text

Download hydrology fttrtrttrtr and more Essays (university) Hydrology in PDF only on Docsity!

Chapter 4 Models for

Stationary Time Series

This chapter discusses the basic concepts of a broad class of parametric time series models—the autoregressive-moving average models (ARMA). These models have assumed great importance in modeling real-world processes.

4.1 General Linear Processes

We will always let { Zt } denote the observed time series. From here on we will also let

{ a (^) t } represent an unobserved white noise series, that is, a sequence of identically

distributed, zero-mean, independent random variables. For much of our work, the assumption of independence could be replaced by the weaker assumption that the { a (^) t }

are uncorrelated random variables, but we will not pursue that slight generality.

A general linear process , { Zt }, is one that can be represented as a weighted linear combination of present and past white noise terms:

(4.1.1)

If the right-hand side of this expression is truly an infinite series, then certain conditions must be placed on the ψ-weights for the right-hand side to be mathematically meaningful. For our purposes, it suffices to assume that

We should also note that since { at } is unobservable, there is no loss in the generality of Equation (4.1.2) if we assume that the coefficient on a 1 is 1, effectively, ψ 0 = 1.

An important nontrivial example to which we will return often is the case where the ψ’s form an exponentially decaying sequence:

where φ is a number between −1 and +1. Then

For this example

Z (^) t = a (^) t + ψ 1 a (^) t – 1 + ψ 2 a (^) t – 2 +…

ψ i^2 <∞ i = 1

∞

ψ j =φ j

Z (^) t = a (^) t + φ a (^) t (^) – 1 + φ^2 a (^) t (^) – 2 +…

E Z ( (^) t ) = E a ( (^) t + φ a (^) t – 1 + φ^2 a (^) t – 2 +…)

= 0

Chapter 4 Models for Stationary Time Series

so that { Zt } has constant mean of zero. Also,

Furthermore,

Thus

In a similar manner we can find

and thus

(4.1.3)

It is important to note that the process defined in this way is stationary—the autocovariance structure depends only on lagged time and not on absolute time. For a

general linear process, , calculations similar to those

done above yield the following results:

with ψ 0 = 1. A process with a nonzero mean μ may be obtained by adding μ to the right-hand side of Equation (4.1.4). Since the mean does not affect the covariance

Var Z ( (^) t ) = Var a ( (^) t + φ a (^) t – 1 + φ^2 a (^) t – 2 +…)

= Var a ( (^) t ) + φ^2 Var a ( (^) t – 1 ) + φ^4 Var a ( (^) t – 2 ) +…

= σ a^2 ( 1 + φ^2 + φ^4 +…)

σ a^2 1 – φ^2

=--------------- (by summing a geometric series)

Cov Z ( (^) t , Z (^) t – 1 ) = Cov a ( (^) t + φ a (^) t – 1 + φ^2 a (^) t – 2 + …, a (^) t – 1 + φ a (^) t – 2 + φ^2 a (^) t – 3 +…)

= Cov (φ a (^) t – 1 , a (^) t – 1 ) + Cov ( φ^2 a (^) t – 2 ,φ a (^) t – 2 ) +…

= φσ a^2 + φ^3 σ a^2 + φ^5 σ a^2 +…

= φσ a^2 ( 1 + φ + φ^2 +…)

φσ a^2

1 – φ^2

=--------------- (again summing a geometric series)

Corr Z ( (^) t , Z (^) t – 1 )

φσ a^2

1 – φ^2

σ a^2

1 – φ^2

= --------------- =φ

Cov Z ( (^) t , Z (^) t – k )

φ k σ a^2 1 – φ^2

Corr Z ( (^) t , Z (^) t – k ) =φ k

Z (^) t = a (^) t + ψ 1 a (^) t – 1 + ψ 2 a (^) t – 2 +…

E Z ( (^) t ) = 0 γ k Cov Z ( (^) t , Z (^) t – k ) σ a^2 ψ i ψ i + k

i = 0

∞ = = (^) ∑ k ≥ 0

Chapter 4 Models for Stationary Time Series

Some numerical values for ρ 1 versus θ in Exhibit (4.1) help illustrate the possibilities. Note that the ρ 1 values for θ negative can be obtained by simply negating the value given

for the corresponding positive θ-value.

A calculus argument shows that the largest value that ρ 1 can attain is 0.5 when θ is − 1

and the smallest value is −0.5, which occurs when θ is +1. (See Exercise (4.3)) Exhibit (4.2) displays a graph of the lag 1 autocorrelation values for θ ranging from −1 to +1.

Exhibit 4.1 Lag 1 Autocorrelation for an MA(1) Process

θ 0.0 0. 0.1 −0. 0.2 −0. 0.3 −0. 0.4 −0. 0.5 −0. 0.6 −0. 0.7 −0. 0.8 −0. 0.9 −0. 1.0 −0.

E Z ( (^) t ) = 0

γ 0 = Var Z ( (^) t )

γ 1 =–θσ a^2

ρ 1 =(– θ) ⁄( 1 +θ^2 )

γ k = ρ k = 0 for k ≥ 2

ρ 1 =–θ ⁄( 1 +θ^2 )

4.2 Moving Average Processes

Exhibit 4.2 Lag 1 Autocorrelation of an MA(1) Process for Different θθθθ

Exercise (4.4) asks you to show that when any nonzero value of θ is replaced by 1/θ, the same value for ρ 1 is obtained. For example, ρ 1 is the same for θ = 0.5 as for θ = 1/0.

= 2. If we knew that an MA(1) process had ρ 1 = 0.4 we still could not tell the precise value of θ. We will return to this troublesome point when we discuss invertibility in Section 4.5 on page 26.

Exhibit (4.3) shows a time plot of a simulated MA(1) series with θ = −0.9 and normally distributed white noise. Recall from Exhibit (4.1) that ρ 1 = 0.4972 for this

model; thus there is moderately strong positive correlation at lag 1. This correlation is evident in the plot of the series since consecutive observations tend to be closely related. If an observation is above the mean level of the series then the next observation also tends to be above the mean. (A horizontal line at the theoretical mean of zero has been placed on the graph to help in this interpretation.) The plot is relatively smooth over time with only occasional large fluctuations.

-0.9 -0.6 -0.3 0.0 0.3 0.6 0.

-0.

-0.

θ

ρ 1

4.2 Moving Average Processes

Exhibit 4.5 Plot of Z(t) versus Z(t-2) for MA(1) Series in Exhibit (4.3)

A somewhat different series is shown in Exhibit (4.6). This is a simulated MA(1) series with θ = +0.9. Recall from Exhibit (4.1) that ρ 1 = −0.4972 for this model; thus there is

moderately strong negative correlation at lag 1. This correlation can be seen in the plot of the series since consecutive observations tend to be on opposite sides of the zero mean. If an observation is above the mean level of the series then the next observation tends to be below the mean. The plot is quite jagged over time—especially when compared to the plot in Exhibit (4.3).

Exhibit 4.6 Time Plot of an MA(1) Process with θθθθ = ++++ 0.

-3 -2 -1 0 1 2 3 4

0

1

2

3

4

Z(t-2)

Z(t)

20 40 60 80 100 120

0

1

2

3

4

Time

Z(t)

Chapter 4 Models for Stationary Time Series

The negative lag 1 autocorrelation is even more apparent in the lag plot of Exhibit (4.7).

Exhibit 4.7 Plot of Z(t) versus Z(t-1) for MA(1) Series in Exhibit (4.6)

The plot of Z (^) t versus Zt − 2 in Exhibit (4.8) displays the zero autocorrelation at lag 2 for this model.

Exhibit 4.8 Plot of Z(t) versus Z(t-2) for MA(1) Series in Exhibit (4.6)

MA(1) processes have no autocorrelation beyond lag 1 but by increasing the order of the process we can obtain higher order correlations.

The Second-Order Moving Average Process

Consider the moving average process of order two:

Here

,

-4 -3 -2 -1 0 1 2 3 4

0

1

2

3

4

Z(t-1)

Z(t)

-4 -3 -2 -1 0 1 2 3 4

0

1

2

3

4

Z(t-2)

Z(t)

Z (^) t = a (^) t – θ 1 a (^) t – 1 – θ 2 a (^) t – 2

γ 0 = Var Z ( (^) t ) = Var a ( (^) t – θ 1 a (^) t – 1 – θ 2 a (^) t – 2 ) =( 1 + θ 12 +θ 22 )σ a^2

Chapter 4 Models for Stationary Time Series

Exhibit 4.9 Time Plot of an MA(2) Process with θθθθ 1 = 1 and θθθθ 2 = −−−− 0.

The plot in Exhibit (4.10) reflects that negative autocorrelation quite dramatically.

Exhibit 4.10 Plot of Z(t) versus Z(t-1) for MA(2) Series in Exhibit (4.9)

The weak postive asutocorrelation at lag two is displayed in Exhibit (4.11).

20 40 60 80 100 120

-2.

-5.

Time

Z(t)

-5.0 -2.5 0.0 2.5 5.

-2.

-5.

Z(t-1)

Z(t)

4.2 Moving Average Processes

Exhibit 4.11 Plot of Z(t) versus Z(t-2) for MA(2) Series in Exhibit (4.9)

Finally, the lack of autocorrelation at lag three is apparent from the scatterplot in Exhibit (4.12).

Exhibit 4.12 Plot of Z(t) versus Z(t-3) for MA(2) Series in Exhibit (4.9)

The General MA(q) Process

For the general MA(q) process, , similar

calculations show that

(4.2.4)

and

-5.0 -2.5 0.0 2.5 5.

-2.

-5.

Z(t-2)

Z(t)

-5.0 -2.5 0.0 2.5 5.

-2.

-5.

Z(t-3)

Z(t)

Z (^) t = a (^) t – θ 1 a (^) t – 1 – θ 2 a (^) t – 2 – θ q a (^) t – q

γ 0 =( 1 + θ 12 + θ 22 + … +θ q^2 )σ a^2

ρ k

  • θ k + θ 1 θ k + 1 + θ 2 θ k + 2 + … +θ q – k θ q 1 + θ 12 + θ 22 + … +θ q^2

------------------------------------------------------------------------------------------------------- for k = 1, 2,..., q

 0 for k > q

4.3 Autoregressive Processes

and so

(4.3.4)

Setting k = 1, we get. With k = 2, we obtain

. Now it is easy to see that in general

and thus

(4.3.6)

Since , the magnitude of the autocorrelation function decreases exponentially as

the number of lags, k , increases. If , all correlations are positive; if , the lag 1 autocorrelation is negative (ρ 1 = φ) and the signs of successive autocorrelations

alternate from positive to negative with their magnitudes decreasing exponentially. Portions of the graphs of several autocorrelation functions are displayed in Exhibit (4.13)

γ k = φγ k – 1 for k = 1, 2, 3,...

γ 1 = φγ 0 =φσ a^2 ⁄( 1 – φ^2 )

γ 2 =φ^2 σ a^2 ⁄( 1 – φ^2 )

γ k φ k^

σ a^2

1 – φ^2

ρ k

γ k γ 0 = ----- = φ k for k = 1, 2, 3,...

φ < 1 0 < φ < 1 – 1 < φ < 0

Chapter 4 Models for Stationary Time Series

Exhibit 4.13 Autocorrelation Functions for Several AR(1) Models

Notice that for φ near , the exponential decay is quite slow (for example, (0.9) 6 =

0.53), but for smaller φ the decay is quite rapid (for example, (0.4)^6 = 0.00410). With φ

near , the strong correlation will extend over many lags and produce a relatively smooth series if φ is positive and a very jagged series if φ is negative.

Exhibit (4.14) displays the time plot of a simulated AR(1) process with φ = 0.9. Notice how infrequently the series crosses its zero—theoretical mean. There is a lot of inertia in the series—it hangs together remaining on the same side of the mean for extended periods. An observer might claim that the series has several trends. We know that, in fact, the theoretical mean is zero for all time points. The illusion of trends is due to the strong autocorrelation of neighboring values of the series.

1 2 3 4 5 6 7 8 9 101112

Lag

ρk

1 2 3 4 5 6 7 8 9 1011 12

Lag

ρk

1 2 3 4 5 6 7 8 9 10 11 12

-1.

-0.

Lag

ρk

φ = 0. φ = 0.

φ = −0.

Chapter 4 Models for Stationary Time Series

Exhibit 4.16 Plot of Z(t) versus Z(t-2) for AR(1) Series of Exhibit (4.14)

Finally, at lag three the autocorrelation is still quite high: ρ 3 = (0.9)^3 = 0.729. Exhibit

(4.17) confirms this for this particular series.

Exhibit 4.17 Plot of Z(t) versus Z(t-3) for AR(1) Series of Exhibit (4.14)

The General Linear Process Version of the AR(1) Model

The recursive definition of the AR(1) process given in Equation (4.3.2) is extremely useful for interpretation of the model. For other purposes it is convenient to express the AR(1) model as a general linear process as in Equation (4.1.1). The recursive definition is valid for all t. If we use this equation with t replaced by t −1, we get

. Substituting this into the original expression gives

-4 -3 -2 -1 0 1 2 3 4 5

0

1

2

3

4

5

Z(t-2)

Z(t)

-4 -3 -2 -1 0 1 2 3 4 5

0

1

2

3

4

5

Z(t-3)

Z(t)

Z (^) t – 1 =φ Z (^) t – 2 + a (^) t – 1

4.3 Autoregressive Processes

If we repeat this substitution into the past, say k −1 times, we get

(4.3.7)

Assuming and letting k increase without bound, it seems reasonable (this is almost a rigorous proof) that we should obtain the infinite series representation

(4.3.8)

This is in the form of the general linear process of Equation (4.1.1) with which

we already investigated in Section 4.1 on page 1. Note that this representation

reemphasizes the need for the restriction.

Stationarity of an AR(1) Process

It can be shown that, subject to the restriction that at be independent of Zt − 1 , Zt − 2 , Z (^) t − 3 , ...

and that , the solution of AR(1) defining recursion will be

stationary if, and only if,. The requirement is usually called the stationarity condition for the AR(1) process [See Box, Jenkins, and Reinsel (1994), p. 54, Nelson, 1973, p. 39, and Wei (1990), p. 32] even though more than stationarity is involved. See also Exercises (4.16), (4.18), and (4.25).

At this point we should note that the autocorrelation function for the AR(1) process has been derived in two different ways. The first method used the general linear process representation leading up to Equation (4.1.3). The second method used the defining

recursion and the development of Equations (4.3.4), (4.3.5), and

(4.3.6). A third derivation is obtained by multiplying both sides of Equation (4.3.7) by Z (^) t − k , taking expected values of both sides, and using the fact that a (^) t , a (^) t − 1 , at − 2 , ..., a (^) t −( k −1)

are independent of Zt − k. The second method should be especially noted since it will

generalize nicely to higher-order processes.

The Second-Order Autoregressive Process

Now consider the series satisfying

(4.3.9)

where, as usual, we assume that a (^) t is independent of Z (^) t − 1 , Zt − 2 , Zt − 3 , .... To discuss

stationarity we introduce the AR characteristic polynomial

and the corresponding AR characteristic equation

Z (^) t =φ φ( Z (^) t – 2 + a (^) t – 1 ) + a (^) t

= a (^) t + φ a (^) t – 1 +φ^2 Z (^) t – 2

Z (^) t = a (^) t + φ a (^) t – 1 + φ^2 a (^) t – 2 + … + φ k^ –^1 a (^) t – k + 1 +φ k^ Z (^) t – k

φ < 1

Z (^) t = a (^) t + φ a (^) t – 1 + φ^2 a (^) t – 2 + φ^3 a (^) t – 3 +…

ψ j =φ j

φ < 1

σ a^2 > 0 Z (^) t =φ Z (^) t (^) – 1 + a (^) t

φ < 1 φ < 1

Z (^) t =φ Z (^) t – 1 + a (^) t

Z (^) t =φ 1 Z (^) t – 1 + φ 2 Z (^) t – 2 + a (^) t

φ ( ) x = 1 – φ 1 x – φ 2 x^2

4.3 Autoregressive Processes

Exhibit 4.18 Stationarity Region for AR(2) Process Parameters

The Autocorrelation Function for the AR(2) Process

To derive the autocorrelation function for the AR(2) case, we take the defining recursive relationship of Equation (4.3.9), multiply both sides by Z (^) t − k , and take expectations. Assuming stationarity, zero means, and that a (^) t is independent of Z (^) t − k , we get

(4.3.12)

or, dividing through by γ 0 ,

(4.3.13)

Equations (4.3.12) and/or (4.3.13) are usually called the Yule-Walker equations —especially the set of two equations obtained for k = 1 and 2.

Setting k = 1 and using ρ 0 = 1 and ρ (^) − 1 = ρ 1 , we get and so

Using the now known values for ρ 1 (and ρ 0 ), Equation (4.3.13) can be used with k = 2 to

obtain

Successive values of ρ k may be easily calculated numerically from the recursive

relationship of Equation (4.3.13).

Although Equation (4.3.13) is very efficient for calculating autocorrelation values numerically from given values of φ 1 and φ 2 , for other purposes it is desirable to have a more explicit formula for ρ k. The form of the explicit solution depends critically on the

-2 -1 0 1 2

1

0

real roots

complex roots

φ 12 + 4 φ 2 = 0

φ 1

φ 2

γ k = φ 1 γ k – 1 +φ 2 γ k – 2 for k = 1, 2, 3, ...

ρ k = φ 1 ρ k – 1 +φ 2 ρ k – 2 for k = 1, 2, 3, ...

ρ 1 =φ 1 +φ 2 ρ 1

ρ 1

φ 1 1 – φ 2

ρ 2 =φ 1 ρ 1 +φ 2 ρ 0

φ 2 ( 1 – φ 2 ) +φ 12 1 – φ 2

Chapter 4 Models for Stationary Time Series

roots of the characteristic equation. Denoting the reciprocals of

these roots by G 1 and G 2 , it is shown in Appendix A that

For the case , it can be shown that we have

If the roots are complex, that is, if , then ρ k may be rewritten as

(4.3.17)

where , and Θ and Φ are defined by , and

.

For completeness we note that if the roots are equal, ( ), then we have

A good discussion of the derivations of these formulas can be found in Fuller (19XX, Sections XX)

The specific details of these formulas are of little importance to us. We need only note that the autocorrelation function can assume a wide variety of shapes. In all cases, the magnitude of ρ k dies out exponentially fast as the lag k increases. In the case of complex

roots, ρ k displays a damped sine wave behavior with damping factor R , ,

frequency Θ, and phase Φ. Illustrations of the possible shapes are given in Exhibit (4.19).

1 – φ 1 x – φ 2 x^2 = 0

G 1

φ 1 – φ 12 + 4 φ 2 2 = -------------------------------------- and G 2

φ 1 + φ 12 + 4 φ 2 2

G 1 ≠ G 2

ρ k

( 1 – G 22 ) G 1^ k^ +^1 – ( 1 – G 12 ) G 2^ k^ +^1 ( G 1 – G 2 ) ( 1 + G 1 G 2 )

= -------------------------------------------------------------------------------- for k = 0, 1, 2, ...

φ 12 + 4 φ 2 < 0

ρ k R k^ sin(^ Θ k^ +Φ) sin( Φ)

= ------------------------------- for k = 0, 1, 2, ...

R = – φ 2 cos ( Θ)=φ 1 ⁄( 2 – φ 2 )

tan ( Φ )=[ ( 1 – φ 2 ) ⁄( 1 +φ 2 )]

φ 12 + 4 φ 2 = 0

ρ k 1

1 + φ 2 1 – φ 2 +--------------- k  

  φ 1 2

 ------^

k = for k = 0, 1, 2,...

0 ≤ R < 1