The Yule Walker Equations for the AR Coefficients

The Yule Walker Equations for the AR Coefficients

Gidon Eshel

If you assume a given zero-mean discrete timeseries {xi}N1 is an AR process, you will naturally want to estimate the appropriate order p of the AR(p),

xi+1 = 1xi + 2xi-1 + ? ? ? + pxi-p+1 + i+1

(1)

and the corresponding coefficients {j}. There are (at least) 2 methods, and those are described in this section.

1 Direct Inversion

The first possibility is to form a set of direct inversions,

1.1 p = 1

With xi+1 = 1xi + i+1,

one can form the over-determined system

x2 x1

x3 ...

=

x2 ...

1

xN

xN -1

b

A

which can be readily solve using the usual least-squares estimator

^1 = AT A -1 AT b =

N -1 i=1

xixi+1

N -1 i=1

x2i

=

c1 co

=

r1

where ci and ri are the ith autocovariance and autocorrelation coefficients, respectively.

1

1.2 p = 2

With

xi+1 = 1xi + 2xi-1 + i+1,

start by forming the over-determined system

x3 x2

x4 ...

=

x3 ...

xN

xN -1

x1

x2 ...

1 2

.

xN -2

b

A

Unlike the previous p = 1 case, trying to express the solution

^ = AT A -1 AT b

analytically is not trivial. We start with

AT A

-1

=

x2 x1

x3 x2

??? ???

xN -1 xN -2

x2 x3 xN -1

x1 -1

x2

xN -2

=

N -1 i=2

x2i

N -1 i=2

xixi-1

N -1 i=2

xixi-1

-1

N -2 i=1

x2i

1

N -2 i=1

x2i

=

N -1 i=2

x2i

N -2 i=1

x2i

-

N -1 i=2

xixi-1

N -1 i=2

xixi-1

-

N -1 i=2

xixi-1

-

N -1 i=2

xixi-1

.

N -1 i=2

x2i

Next, let's use the fact that the timeseries is stationary, so that autocovariance

elements are a function of the lag only, not the exact time limits. In this case,

AT A

-1

=

c2o

1 - c21

co -c1

-c1 , co

AT A

-1

=

1 c2o(1 - r12)

co -c1

AT A

-1

=

1 co(1 - r12)

ro -r1

-c1 , co

-r1 . ro

2

Similarly,

x3

AT b

=

x2 x1

x3 x2

??? ???

xN -1 xN -2

x4 ...

=

xN

N i=3

xixi-1

N i=3

xixi-2,

which, exploiting again the stationarity of the timeseries, becomes

AT b

=

c1 c2

.

Combining the 2 expressions, we have

AT A

-1 AT b

=

1 co(1 -

r12)

ro -r1

-r1 c1

ro

c2

=

1

1 -

r12

1 -r1

-r1 1

r1 r2

.

Breaking this into individual components, we get

^1

=

r1 (1 - r2) 1 - r12

and

^2

=

r2 - r12 1 - r12

Of course it is possible to continue to explore p 3 cases in this fashion.

However, the algebra, while not fundamentally different from the p = 2 case,

quickly becomes quite nightmarish. For example, for p = 3,

co c1 c2

AT A

=

c1

co

c1

,

c2 c1 co

whose determinant, required for the inversion, is the cumbersome-looking

det

AT A

=

co

c2o

-

2c21

+

2 c21c2 co

-

c22

=

co

c2o + 2c21 (r2 - 1) - c22

,

which, on pre-multiplying by the remainder matrix, yields very long expressions. Fortunately, there is a better, easier way to obtain the AR coefficient for the

arbitrary p, the Yule-Walker Equations.

3

2 The Yule-Walker Equations

Consider the general AR(p) xi+1 = 1xi + 2xi-1 + ? ? ? + pxi-p+1 + i+1.

2.1 Lag 1

? multiply both sides of the model by xi,

p

xixi+1 = (jxixi-j+1) + xii+1,

j=1

where i and j are the time and term indices, respectively,

? take expectance,

p

xixi+1 = (j xixi-j+1 ) + xii+1

j=1

where the {j}s are kept outside the expectance operator because they are deterministic, rather than statistical, quantities.

? note that xii+1 = 0 because the shock (or random perturbation) of the

current time is unrelated to?and thus uncorrelated with?previous values of

the process,

p

xixi+1 = (j xixi-j+1 )

j=1

? divide through by (N -1), and use the evenness of the autocovariance, c-l = cl,

p

c1 = jcj-1

j=1

? divide through by co,

p

r1 = jrj-1.

j=1

4

2.2 Lag 2

? multiply by xi-1,

p

xi-1xi+1 = (jxi-1xi-j+1) + xi-1i+1,

j=1

? take expectance,

p

xi-1xi+1 = (j xi-1xi-j+1 ) + xi-1i+1

j=1

? eliminate the zero correlation forcing term

p

xi-1xi+1 = (j xi-1xi-j+1 )

j=1

? divide through by (N - 1), and use c-l = cl,

p

c2 = jcj-2

j=1

? divide through by co,

p

r2 = jrj-2.

j=1

2.3 Lag k

? multiply by xi-k-1,

p

xi-k+1xi+1 = (jxi-k+1xi-j+1) + xi-k+1i+1,

j=1

? take expectance,

p

xi-k+1xi+1 = (j xi-k+1xi-j+1 ) + xi-k+1i+1

j=1

? eliminate the zero correlation forcing term

p

xi-k+1xi+1 = (j xi-k+1xi-j+1 )

j=1

5

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download

To fulfill the demand for quickly locating and searching documents.

It is intelligent file search solution for home and business.

Literature Lottery

Related searches