29.08.2020 Views

Shumway Stoffer Time_Series_Analysis_and_Its_Applications__With_R_Examples 3rd edition (1)

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

36 1 Characteristics of Time Series

represent positions on a 64 × 36 spatial grid set out on an agricultural field.

The value of the temperature measured at row s 1 and column s 2 , is denoted

by xs = x s1,s2 . We can note from the two-dimensional plot that a distinct

change occurs in the character of the two-dimensional surface starting at

about row 40, where the oscillations along the row axis become fairly stable

and periodic. For example, averaging over the 36 columns, we may compute

an average value for each s 1 as in Figure 1.16. It is clear that the noise

present in the first part of the two-dimensional series is nicely averaged out,

and we see a clear and consistent temperature signal.

To generate Figures 1.15 and 1.16 in R, use the following commands:

1 persp(1:64, 1:36, soiltemp, phi=30, theta=30, scale=FALSE, expand=4,

ticktype="detailed", xlab="rows", ylab="cols",

zlab="temperature")

2 plot.ts(rowMeans(soiltemp), xlab="row", ylab="Average Temperature")

The autocovariance function of a stationary multidimensional process, xs,

can be defined as a function of the multidimensional lag vector, say, h =

(h 1 , h 2 , . . . , h r ) ′ , as

where

γ(h) = E[(x s+h − µ)(x s − µ)], (1.48)

µ = E(xs) (1.49)

does not depend on the spatial coordinate s. For the two dimensional temperature

process, (1.48) becomes

γ(h 1 , h 2 ) = E[(x s1+h 1,s 2+h 2

− µ)(x s1,s 2

− µ)], (1.50)

which is a function of lag, both in the row (h 1 ) and column (h 2 ) directions.

The multidimensional sample autocovariance function is defined as

̂γ(h) = (S 1 S 2 · · · S r ) ∑ ∑

−1 · · · ∑

(x s+h − ¯x)(x s − ¯x), (1.51)

s 1 s 2 s r

where s = (s 1 , s 2 , . . . , s r ) ′ and the range of summation for each argument is

1 ≤ s i ≤ S i −h i , for i = 1, . . . , r. The mean is computed over the r-dimensional

array, that is,

¯x = (S 1 S 2 · · · S r ) ∑ ∑

−1 · · · ∑

x s1,s 2,··· ,s r

, (1.52)

s 1 s 2 s r

where the arguments s i are summed over 1 ≤ s i ≤ S i . The multidimensional

sample autocorrelation function follows, as usual, by taking the scaled ratio

̂ρ(h) = ̂γ(h)

̂γ(0) . (1.53)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!