12_04_2 - Example 1: > > > > > > > > set.seed(1) y1 <-...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Example 1 : > set.seed(1) > y1 <- arima.sim(n=100, model=list(ma=-0.8)) > > par(mfrow=c(3,1)) > > ts.plot(y1) > acf(y1) > pacf(y1) ACF ( 0 ) = 1, ACF ( 1 ) is “big”, ACF is “small” after lag 1. PACF exponentially “dies out”. This behavior is consistent with MA ( 1 ) = ARMA ( 0, 1 ).
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Example 2 : > set.seed(1) > y2 <- arima.sim(n=100, model=list(ar=c(0.5,0.3))) > > ts.plot(y2) > acf(y2) > pacf(y2) PACF ( 1 ) and PACF ( 2 ) are “big”, PACF is “small” after lag 2. ACF exponentially “dies out” after lag 2. This behavior is consistent with AR ( 2 ) = ARMA ( 2, 0 ).
Background image of page 2
Example 3 : > set.seed(1) > y3 <- arima.sim(n=100, model=list(ma=c(0.4,-0.3))) > > ts.plot(y3) > acf(y3) > pacf(y3) ACF ( 0 ) = 1, ACF ( 1 ) and ACF ( 2 ) “big” (barely), ACF is “small” after lag 2. PACF exponentially “dies out”. This behavior is consistent with MA ( 2 ) = ARMA ( 0, 2 ).
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Example 4 : > set.seed(1) > y4 <- arima.sim(n=100, model=list(ar=c(0.7,-0.4),ma=0.6)) > > ts.plot(y4)
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/29/2010 for the course STAT stat 420 taught by Professor Stepanov during the Spring '07 term at University of Illinois at Urbana–Champaign.

Page1 / 6

12_04_2 - Example 1: > > > > > > > > set.seed(1) y1 <-...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online