14.03.2014 Views

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 14 Performing Time Series Analysis 355<br />

Time Series Comm<strong>and</strong>s<br />

Time Series Comm<strong>and</strong>s<br />

Graph<br />

The platform red triangle menu has the options described in the following sections.<br />

The Time Series platform begins by showing a time series plot, like the one shown previously in<br />

Figure 14.2. The Graph comm<strong>and</strong> on the platform popup menu has a submenu of controls for the time<br />

series plot with the following comm<strong>and</strong>s.<br />

Time Series Graph<br />

hides or displays the time series graph.<br />

Show Points<br />

hides or displays the points in the time series graph.<br />

Connecting Lines<br />

hides or displays the lines connecting the points in the time series graph.<br />

Mean Line<br />

series.<br />

hides or displays a horizontal line in the time series graph that depicts the mean of the time<br />

Autocorrelation<br />

The Autocorrelation comm<strong>and</strong> alternately hides or displays the autocorrelation graph of the sample, often<br />

called the sample autocorrelation function. This graph describes the correlation between all the pairs of points<br />

in the time series with a given separation in time or lag. The autocorrelation for the kth lag is<br />

N<br />

c k<br />

1<br />

r k<br />

= ---- wherec k<br />

= ---<br />

c N ( y t<br />

– y) ( y t– k<br />

– y)<br />

0<br />

t = k + 1<br />

where y is the mean of the N nonmissing points in the time series. The bars graphically depict the<br />

autocorrelations.<br />

By definition, the first autocorrelation (lag 0) always has length 1. The curves show twice the large-lag<br />

st<strong>and</strong>ard error (± 2 st<strong>and</strong>ard errors), computed as<br />

k – 1<br />

1<br />

SE --- k<br />

N<br />

1 2 r 2 <br />

= + <br />

i <br />

i = 1 <br />

The autocorrelation plot for the Seriesg data is shown on the left in Figure 14.3. You can examine the<br />

autocorrelation <strong>and</strong> partial autocorrelations plots to determine whether the time series is stationary<br />

(meaning it has a fixed mean <strong>and</strong> st<strong>and</strong>ard deviation over time) <strong>and</strong> what model might be appropriate to fit<br />

the time series.<br />

In addition, the Ljung-Box Q <strong>and</strong> p-values are shown for each lag. The Q-statistic is used to test whether a<br />

group of autocorrelations is significantly different from zero or to test that the residuals from a model can be<br />

distinguished from white-noise.

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

Saved successfully!

Ooh no, something went wrong!