Fabrication of SOI RF circuitry and complete SOI motherboard
Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970...
Transcript of Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970...
![Page 1: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/1.jpg)
Lecture 7AR Models
Colin Rundel02/08/2017
1
![Page 2: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/2.jpg)
Lagged Predictors and CCFs
2
![Page 3: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/3.jpg)
Southern Oscillation Index & Recruitment
The Southern Oscillation Index (SOI) is an indicator of the development andintensity of El Niño (negative SOI) or La Niña (positive SOI) events in thePacific Ocean. These data also included the estimate of “recruitment”, whichindicate fish population sizes in the southern hemisphere.
## # A tibble: 453 × 3## date soi recruitment## <dbl> <dbl> <dbl>## 1 1950.000 0.377 68.63## 2 1950.083 0.246 68.63## 3 1950.167 0.311 68.63## 4 1950.250 0.104 68.63## 5 1950.333 -0.016 68.63## 6 1950.417 0.235 68.63## 7 1950.500 0.137 59.16## 8 1950.583 0.191 48.70## 9 1950.667 -0.016 47.54## 10 1950.750 0.290 50.91## # ... with 443 more rows
3
![Page 4: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/4.jpg)
Time series
soi
recruitment
1950 1960 1970 1980
0
25
50
75
100
−1.0
−0.5
0.0
0.5
1.0
date
Variables
recruitment
soi
4
![Page 5: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/5.jpg)
Relationship?
0
25
50
75
100
−1.0 −0.5 0.0 0.5 1.0
soi
recr
uitm
ent
5
![Page 6: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/6.jpg)
ACFs & PACFs
0 5 10 15 20 25 30 35
−0.
40.
00.
40.
8
Lag
AC
F
Series fish$soi
0 5 10 15 20 25 30 35
−0.
20.
20.
40.
6
Lag
Par
tial A
CF
Series fish$soi
0 5 10 15 20 25 30 35
−0.
20.
20.
61.
0
Lag
AC
F
Series fish$recruitment
0 5 10 15 20 25 30 35
−0.
40.
00.
40.
8
Lag
Par
tial A
CF
Series fish$recruitment
6
![Page 7: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/7.jpg)
Cross correlation function
−20 −10 0 10 20
−0.
6−
0.4
−0.
20.
00.
2
Lag
AC
F
fish$soi & fish$recruitment
7
![Page 8: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/8.jpg)
Cross correlation function - Scatter plots
0.025
−0.299
−0.565
0.011
−0.53
−0.481
−0.042
−0.602
−0.374
−0.146
−0.602
−0.27
soi(t−08) soi(t−09) soi(t−10) soi(t−11)
soi(t−04) soi(t−05) soi(t−06) soi(t−07)
soi(t−00) soi(t−01) soi(t−02) soi(t−03)
−1.0 −0.5 0.0 0.5 1.0 −1.0 −0.5 0.0 0.5 1.0 −1.0 −0.5 0.0 0.5 1.0 −1.0 −0.5 0.0 0.5 1.0
0
30
60
90
120
0
30
60
90
120
0
30
60
90
120
soi
recr
uitm
ent
8
![Page 9: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/9.jpg)
Model
#### Call:## lm(formula = recruitment ~ lag(soi, 5) + lag(soi, 6) + lag(soi,## 7) + lag(soi, 8), data = fish)#### Residuals:## Min 1Q Median 3Q Max## -72.409 -13.527 0.191 12.851 46.040#### Coefficients:## Estimate Std. Error t value Pr(>|t|)## (Intercept) 67.9438 0.9306 73.007 < 2e-16 ***## lag(soi, 5) -19.1502 2.9508 -6.490 2.32e-10 ***## lag(soi, 6) -15.6894 3.4334 -4.570 6.36e-06 ***## lag(soi, 7) -13.4041 3.4332 -3.904 0.000109 ***## lag(soi, 8) -23.1480 2.9530 -7.839 3.46e-14 ***## ---## Signif. codes: 0 ’***’ 0.001 ’**’ 0.01 ’*’ 0.05 ’.’ 0.1 ’ ’ 1#### Residual standard error: 18.93 on 440 degrees of freedom## (8 observations deleted due to missingness)## Multiple R-squared: 0.5539, Adjusted R-squared: 0.5498## F-statistic: 136.6 on 4 and 440 DF, p-value: < 2.2e-16 9
![Page 10: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/10.jpg)
Prediction
Model 3 − soi lags 5,6,7,8 (RMSE: 18.8)
Model 2 − soi lags 6,7 (RMSE: 20.8)
Model 1 − soi lag 6 (RMSE: 22.4)
1950 1960 1970 1980
0
25
50
75
100
125
0
25
50
75
100
125
0
25
50
75
100
125
date
recr
uitm
ent
10
![Page 11: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/11.jpg)
Residual ACF - Model 3
0 5 10 15 20 25
−0.
20.
00.
20.
40.
60.
81.
0
Lag
AC
F
Series residuals(model3)
0 5 10 15 20 25
−0.
20.
00.
20.
40.
60.
8
Lag
Par
tial A
CF
Series residuals(model3)
11
![Page 12: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/12.jpg)
Autoregessive model 1
#### Call:## lm(formula = recruitment ~ lag(recruitment, 1) + lag(recruitment,## 2) + lag(soi, 5) + lag(soi, 6) + lag(soi, 7) + lag(soi, 8),## data = fish)#### Residuals:## Min 1Q Median 3Q Max## -51.996 -2.892 0.103 3.117 28.579#### Coefficients:## Estimate Std. Error t value Pr(>|t|)## (Intercept) 10.25007 1.17081 8.755 < 2e-16 ***## lag(recruitment, 1) 1.25301 0.04312 29.061 < 2e-16 ***## lag(recruitment, 2) -0.39961 0.03998 -9.995 < 2e-16 ***## lag(soi, 5) -20.76309 1.09906 -18.892 < 2e-16 ***## lag(soi, 6) 9.71918 1.56265 6.220 1.16e-09 ***## lag(soi, 7) -1.01131 1.31912 -0.767 0.4437## lag(soi, 8) -2.29814 1.20730 -1.904 0.0576 .## ---## Signif. codes: 0 ’***’ 0.001 ’**’ 0.01 ’*’ 0.05 ’.’ 0.1 ’ ’ 1#### Residual standard error: 7.042 on 438 degrees of freedom## (8 observations deleted due to missingness)## Multiple R-squared: 0.9385, Adjusted R-squared: 0.9377## F-statistic: 1115 on 6 and 438 DF, p-value: < 2.2e-16
12
![Page 13: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/13.jpg)
Autoregessive model 2
#### Call:## lm(formula = recruitment ~ lag(recruitment, 1) + lag(recruitment,## 2) + lag(soi, 5) + lag(soi, 6), data = fish)#### Residuals:## Min 1Q Median 3Q Max## -53.786 -2.999 -0.035 3.031 27.669#### Coefficients:## Estimate Std. Error t value Pr(>|t|)## (Intercept) 8.78498 1.00171 8.770 < 2e-16 ***## lag(recruitment, 1) 1.24575 0.04314 28.879 < 2e-16 ***## lag(recruitment, 2) -0.37193 0.03846 -9.670 < 2e-16 ***## lag(soi, 5) -20.83776 1.10208 -18.908 < 2e-16 ***## lag(soi, 6) 8.55600 1.43146 5.977 4.68e-09 ***## ---## Signif. codes: 0 ’***’ 0.001 ’**’ 0.01 ’*’ 0.05 ’.’ 0.1 ’ ’ 1#### Residual standard error: 7.069 on 442 degrees of freedom## (6 observations deleted due to missingness)## Multiple R-squared: 0.9375, Adjusted R-squared: 0.937## F-statistic: 1658 on 4 and 442 DF, p-value: < 2.2e-16 13
![Page 14: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/14.jpg)
Prediction
Model 5 − AR(2); soi lags 5,6 (RMSE: 7.03)
Model 4 − AR(2); soi lags 5,6,7,8 (RMSE: 6.99)
Model 3 − soi lags 5,6,7,8 (RMSE: 18.82)
1950 1960 1970 1980
0
25
50
75
100
125
0
25
50
75
100
125
0
25
50
75
100
125
date
recr
uitm
ent
14
![Page 15: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/15.jpg)
Residual ACF - Model 5
0 5 10 15 20 25
−0.
20.
00.
20.
40.
60.
81.
0
Lag
AC
F
Series residuals(model5)
0 5 10 15 20 25
−0.
15−
0.10
−0.
050.
000.
050.
10
Lag
Par
tial A
CF
Series residuals(model5)
15
![Page 16: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/16.jpg)
Non-stationarity
16
![Page 17: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/17.jpg)
Non-stationary models
All happy families are alike; each unhappy family is unhappy inits own way. - Tolstoy, Anna Karenina
This applies to time series models as well, just replace happy family withstationary model.
A simple example of a non-stationary time series is a trend stationary model
yt = µt + wt
where µt denotes the trend and wt is a stationary process.
We’ve already been using this approach, since it is the same as estimatingµt via regression and then examining the residuals (wt = yt − mut) forstationarity.
17
![Page 18: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/18.jpg)
Non-stationary models
All happy families are alike; each unhappy family is unhappy inits own way. - Tolstoy, Anna Karenina
This applies to time series models as well, just replace happy family withstationary model.
A simple example of a non-stationary time series is a trend stationary model
yt = µt + wt
where µt denotes the trend and wt is a stationary process.
We’ve already been using this approach, since it is the same as estimatingµt via regression and then examining the residuals (wt = yt − mut) forstationarity.
17
![Page 19: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/19.jpg)
Non-stationary models
All happy families are alike; each unhappy family is unhappy inits own way. - Tolstoy, Anna Karenina
This applies to time series models as well, just replace happy family withstationary model.
A simple example of a non-stationary time series is a trend stationary model
yt = µt + wt
where µt denotes the trend and wt is a stationary process.
We’ve already been using this approach, since it is the same as estimatingµt via regression and then examining the residuals (wt = yt − mut) forstationarity.
17
![Page 20: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/20.jpg)
Linear trend model
Lets imagine a simple model where yt = δ + ϕt+ wt where δ and ϕ areconstants and wt ∼ N (0, σ2
w).
0
5
10
0 25 50 75 100
t
y
Linear trend
18
![Page 21: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/21.jpg)
Differencing
An alternative approach to what we have seen is to examine the differencesof your response variable, specifically yt − yt−1.
19
![Page 22: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/22.jpg)
Detrending vs Difference
−2
−1
0
1
2
3
0 25 50 75 100
t
resi
d
Detrended
−2
0
2
4
0 25 50 75 100
t
y_di
ff
Differenced
20
![Page 23: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/23.jpg)
Quadratic trend model
Lets imagine another simple model where yt = δ + ϕt+ γt2 + wt where δ,ϕ, and γ are constants and wt ∼ N (0, σ2
w).
0
5
10
0 25 50 75 100
t
y
Quadratic trend
21
![Page 24: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/24.jpg)
Detrending
−2
−1
0
1
2
0 25 50 75 100
t
resi
d
Detrended − Linear
−2
−1
0
1
2
0 25 50 75 100
t
resi
d
Detrended − Quadratic
22
![Page 25: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/25.jpg)
2nd order differencing
Let dt = yt − yt−1 be a first order difference then dt − dt−1 is a 2nd orderdifference.
23
![Page 26: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/26.jpg)
Differencing
−4
−2
0
2
0 25 50 75 100
t
y_di
ff
1st Difference
−6
−3
0
3
0 25 50 75 100
t
y_di
ff
2nd Difference
24
![Page 27: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/27.jpg)
Differencing - ACF
0 5 10 15 20
−0.
20.
41.
0
Lag
AC
F
Series qt$y
5 10 15 20
−0.
20.
40.
8
Lag
Par
tial A
CF
Series qt$y
0 5 10 15
−0.
40.
20.
8
Lag
AC
F
Series diff(qt$y)
5 10 15
−0.
4−
0.1
0.2
Lag
Par
tial A
CF
Series diff(qt$y)
0 5 10 15
−0.
50.
5
Lag
AC
F
Series diff(qt$y, differences = 2)
5 10 15
−0.
6−
0.2
0.2
Lag
Par
tial A
CF
Series diff(qt$y, differences = 2)
25
![Page 28: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/28.jpg)
AR Models
26
![Page 29: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/29.jpg)
AR(1)
Last time we mentioned a random walk with trend process whereyt = δ + yt−1 + wt. The AR(1) process is a slight variation of this where weadd a coefficient in front of the yt−1 term.
AR(1) : yt = δ + ϕ yt−1 + wt
−5
0
5
0 250 500 750 1000
t
y1
AR(1) w/ phi < 1
0
20
40
60
0 250 500 750 1000
t
y2
AR(1) w/ phi >= 1
27
![Page 30: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/30.jpg)
Stationarity
Lets rewrite the AR(1) without any autoregressive terms
28
![Page 31: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/31.jpg)
Differencing
Once again we can examine differences of the response variable yt − yt−1 toattempt to achieve stationarity,s
29
![Page 32: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/32.jpg)
Identifying AR(1) Processes
phi=−0.5 phi=−0.9
phi= 0 phi= 0.5 phi= 0.9
0 25 50 75 100 0 25 50 75 100
0 25 50 75 100
−5.0
−2.5
0.0
2.5
5.0
−5.0
−2.5
0.0
2.5
5.0
t
vals
30
![Page 33: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/33.jpg)
Identifying AR(1) Processes - ACFs
0 5 10 15 20
−0.
20.
20.
40.
60.
81.
0
Lag
AC
F
Series sims$‘phi= 0‘
0 5 10 15 20−
0.2
0.2
0.4
0.6
0.8
1.0
Lag
AC
F
Series sims$‘phi= 0.5‘
0 5 10 15 20
−0.
20.
20.
40.
60.
81.
0
Lag
AC
F
Series sims$‘phi= 0.9‘
0 5 10 15 20
−0.
50.
00.
51.
0
Lag
AC
F
Series sims$‘phi=−0.5‘
0 5 10 15 20
−0.
50.
00.
51.
0
Lag
AC
F
Series sims$‘phi=−0.9‘
31
![Page 34: Lecture 7 - AR Modelscr173/Sta444_Sp17/slides/Lec7.pdf · Timeseries soi recruitment 1950 1960 1970 1980 0 25 50 75 100-1.0-0.5 0.0 0.5 1.0 date Variables recruitment soi 4](https://reader035.fdocuments.us/reader035/viewer/2022071014/5fcd36d953d20860b70a9b0d/html5/thumbnails/34.jpg)
AR(p) models
We can easily generalize from an AR(1) to an AR(p) model by simply addingadditional autoregressive terms to the model.
AR(p) : yt = δ + ϕ1 yt−1 + ϕ2 yt−2 + · · · + ϕp yt−p + wt
= δ + wt +p∑i=1
ϕi yt−i
More on these next time.
32