Time Series Analysis ARIMA Final RaychellSantosEmbile
Time Series Analysis ARIMA Final RaychellSantosEmbile
Time Series Analysis ARIMA Final RaychellSantosEmbile
E
T
A
R
G
E
T
N
I
E
V
I
S
S
E
R
G
E
R
O
T
AU
)
A
M
I
R
A
(
E
G
A
R
E
V
A
G
N
I
V
MO
NTOS-EMBILE
SA
PRESENTED BY: RAYCHELL
ARIMA Model
Building Process
ACFs-PACFs Table
Process
ACFs
PACFs
ARIMA (0,0,0)
No significant lags
No significant lags
ARIMA (0,1,0)
ARIMA (1,0,0)
t >0
ARIMA (1,0,0)
t < 0
ARIMA (0,0,1)
t >0
ARIMA (0,0,1)
t < 0
ACF
(
i
)
The Q-statistic is,
Q n(n 2)
n i
k
i 1 to k
when the ACFs are from a white noise series this statistic is chi-square
distributed with k-p-q degrees of freedom, where p and q are the number of
AR and MA coefficients of the model, Thus, we see that Q is proportional to
the sum of the ACFs through lag k, where typically k is selected to be two
seasonal cycles or in general about 20 when two seasonal cycles is much
different than 20.
Autoregressive Process
ARIMA(1,0,0)
Autoregression is an extension of simple linear regression (it is a
simple linear relationship between and )
where
and
Autoregressive Process
ARIMA(1,0,0)
Example:
Figure
206
204
202
sales_dairy
200
198
196
194
192
190
1
10
20
30
40
50
Index
60
70
80
90
100
Autoregressive Process
ARIMA(1,0,0)
0.80
1.0
0.72
0.8
0.64
Partial Autocorrelation
0.56
Autocorrelation
0.48
0.40
0.32
0.24
0.16
0.08
0.00
-0.08
-0.16
-0.24
0.6
0.4
0.2
0.0
-0.2
-0.4
-0.6
-0.8
-0.32
-1.0
-0.40
10
12
14
Lag
16
18
20
22
24
10
12
14
Lag
16
18
20
22
24
Autoregressive Process
ARIMA(1,0,0)
Example:
Versus Order
206
(response is sales_dairy)
Variable
sales_dairy
FITS1
204
5.0
202
2.5
Residual
Data
200
198
196
194
0.0
-2.5
192
-5.0
190
1
10
20
30
40
50
60
70
80
90
100
Index
10
20
30
40
50
60
70
80
90
Observation Order
100
Autoregressive Process
ARIMA(1,0,0)
Example:
The ACFs and PACFs of
ACF of Residuals for sales_dairy
1.0
1.0
0.8
0.8
0.6
0.6
Partial Autocorrelation
Autocorrelation
residuals
0.4
0.2
0.0
-0.2
-0.4
-0.6
0.4
0.2
0.0
-0.2
-0.4
-0.6
-0.8
-0.8
-1.0
-1.0
2
10
12
14
Lag
16
18
20
22
24
10
12
14
16
18
20
22
24
Lag
Autoregressive Process
ARIMA(1,0,0)
Example:
Coef
0.7539
49.0086
199.121
SE Coef
0.0668
0.1923
0.781
T
11.29
254.83
P
0.000
0.000
12
12.4
10
0.257
24
26.5
22
0.231
36
36.9
34
0.335
48
53.9
46
0.197
49.0086 0.7539Y t 1 et
Autoregressive Process
ARIMA(p,0,0)
Autocorrelation
0.6
1
9
daily_stock_prices
1
8
1
7
1
6
0.4
0.2
0.0
-0.2
-0.4
-0.6
1
5
-0.8
1
4
-1
.0
1
3
1
0
1
2
1
4
1
6
1
8
20
22
24
Lag
1
2
1
1
1
0
1
0
20
30
40
50
60
70
80
90
1
00
Index
1
.0
0.8
Partial Autocorrelation
0.6
0.4
0.2
0.0
-0.2
-0.4
-0.6
-0.8
-1
.0
2
1
0
1
2
1
4
Lag
1
6
1
8
20
22
24
1
.5
0.6
Autocorrelation
first_diff
1
.0
0.5
0.0
0.4
0.2
0.0
-0.2
-0.4
-0.6
-0.8
-0.5
-1
.0
2
-1
.0
1
0
1
2
1
4
1
6
1
8
20
22
24
Lag
1
1
0
20
30
40
50
60
70
80
90
1
00
Index
Partial Autocorrelation
0.6
0.4
0.2
0.0
-0.2
-0.4
-0.6
-0.8
-1
.0
2
1
0
1
2
1
4
Lag
1
6
1
8
20
22
24
weekly
20.0
17.5
15.0
fad
12.5
10.0
7.5
5.0
10
20
30
40
50
Index
60
70
80
90
100
0.8
0.8
Partial Autocorrelation
1.0
Autocorrelation
0.6
0.4
0.2
0.0
-0.2
-0.4
-0.6
0.6
0.4
0.2
0.0
-0.2
-0.4
-0.6
-0.8
-0.8
-1.0
-1.0
10
12
14
Lag
16
18
20
22
24
10
12
14
Lag
16
18
20
22
24
0.8
0.6
Autocorrelation
first_diff_fad
0.4
0.2
0.0
-0.2
-0.4
-0.6
-0.8
-1
-1.0
2
10
12
-2
14
16
18
20
22
24
Lag
-3
1
1
0
20
30
40
50
60
70
80
90
1
00
Index
1
.0
0.8
Partial Autocorrelation
0.6
0.4
0.2
0.0
-0.2
-0.4
-0.6
-0.8
-1
.0
2
1
0
1
2
1
4
Lag
1
6
1
8
20
22
24
Coef
0.3955
SE Coef
0.0930
T
4.25
P
0.000
than 0.05
Lag
Chi-Square
DF
P-Value
12
8.3
11
0.684
24
18.0
23
0.760
36
28.5
35
0.773
48
35.1
47
0.901
Y Y
USIND
400
300
200
100
27
54
81
108
135
Index
162
189
216
243
270
USIND
400
300
200
100
27
54
81
108
135
Index
162
189
216
243
270
ARIMA(0,1,0) model
Autocorrelation Function for USIND
1.0
1.0
0.8
0.8
0.6
0.6
Partial Autocorrelation
Autocorrelation
0.4
0.2
0.0
-0.2
-0.4
-0.6
0.4
0.2
0.0
-0.2
-0.4
-0.6
-0.8
-0.8
-1.0
-1.0
10
15
20
25
30
Lag
35
40
45
50
55
60
10
15
20
25
30
35
40
45
50
55
Lag
The ACFs and PACFs graph are somewhat the same with random walk model. The ACFs
linearly decline at lag 1 with many lags significant while the PACFs shows single significant
peak at lag 1.
60
usind_diff1
20
10
0
-10
-20
-30
-40
-50
1
27
54
81
108
135
Index
162
189
216
243
270
As shown in the correlogram above, all ACFs except lag 1 are insignificant (single significant
peak at lag 1) and the PACFs have alternating exponential decline starting with a positive.
The single positive spike in the ACFs is indicative of a moving average model MA(1). In
addition, the first alternating spikes of the PACFs confim an MA(1) model.
The
anticiipated
1
MA(1) model will have a negative
.
Coef
-0.3256
0.005621
0.005621
SE Coef
0.0578
0.002886
0.002886
T
-5.63
1.95
P
0.000
0.053
12
6.9
10
0.736
24
16.8
22
0.777
36
25.4
34
0.855
48
33.7
46
0.911
Inferences:
1. The first-order MA coefficient
is
1
statistically significantly different
than zero, with p-value < 0.05.
2. The Q-statistic is indicative of
white noise residual.
The patternless ACFs and PACFs appear to be those of white noise series.
Mean
Std. Dev
Min
Max
Stationarity
Level
Variance
White
Noise
Yt
271
188.02
107.26
73.00
452.60
No
No
No
Yt - Yt-1
270
1.309
7.718
-41.80
40.00
Yes
No
No
ln (Yt)
271
5.0951
0.5151
4.2905
6.1150
No
Yes
No
270
0.00565
0.03752
-0.13428 0.11021
Yes
Yes
No
ARIMA(0,1,1)1,1
270
0.00006
0.0357
-0.1162
Yes
Yes
Yes
0.1092
e e
ln(Y ) e e
ln(Y ) + 0.005621 + 0.3256e
ln(Y t ) ln(Y t 1)
ln(Y t )
ln(Y t )
t 1
t 1
t 1
t 1
t
t 1
Coefficient
Std. Error
t-Statis tic
Prob.
C
MA(1)
SIGMASQ
0.005621
0.324384
0.001271
0.003000
0.052560
8.63E-05
1.873819
6.171738
14.72464
0.0620
0.0000
0.0000
R-squared
Adjusted R-squared
S.E. of regression
Sum squared resid
Log likelihood
F-statistic
Prob(F-s tatistic)
0.093437
0.086646
0.035857
0.343288
516.9581
13.75950
0.000002
Inverted MA Roots
-.32
0.005650
0.037519
-3.807097
-3.767115
-3.791042
2.002421
-3.71
-3.72
-3.73
-3.74
-3.75
(0,0)
(2,2)
-3.76
(2,1)
-3.77703...
-3.76545...
-3.76443...
-3.76443...
-3.76353...
-3.75661...
-3.75172...
-3.74409...
-3.69243...
-3.70
(1,2)
-3.75317...
-3.74159...
-3.73261...
-3.73261...
-3.73171...
-3.71683...
-3.71194...
-3.69636...
-3.67652...
HQ
(2,0)
-3.79304...
-3.78146...
-3.78578...
-3.78578...
-3.78488...
-3.78329...
-3.77840...
-3.77612...
-3.70310...
BIC*
(1,1)
516.958097...
515.388780...
516.974096...
516.973954...
516.852077...
517.636657...
516.974160...
517.664274...
503.770881...
-3.69
(0,2)
(0,1)
(1,0)
(0,2)
(1,1)
(2,0)
(1,2)
(2,1)
(2,2)
(0,0)
AIC
-3.68
(1,0)
LogL
-3.67
(0,1)
Model
Schwarz Criteria
2
t
n 1
2
t
n 1
361.969
99
= 1.91213
Coefficient
Std. Error
t-Statistic
Prob.
C
AR(1)
SIGMASQ
199.1172
0.746485
3.623663
0.760346
0.070736
0.545074
261.8770
10.55313
6.648017
0.0000
0.0000
0.0000
R-squared
Adjusted R-squared
S.E. of regression
Sum squared resid
Log likelihood
F-statistic
Prob(F-statistic)
Inverted AR Roots
0.564192
0.555206
1.932805
362.3663
-206.6755
62.78757
0.000000
.75
199.0239
2.898069
4.193510
4.271665
4.225140
1.759122
(3,2)
(4,1)
(1,4)
(3,4)
(2,4)
(0,2)
(3,3)
(0,4)
(4,0)
(2,3)
(2,2)
(3,1)
(1,3)
4.26
(0,3)
4.225140
4.218787
4.232889
4.222271
4.230272
4.245388
4.263882
4.251637
4.252488
4.252515
4.244560
4.260225
4.273982
4.243348
4.310126
4.252822
4.248629
4.282030
4.282944
4.283221
4.264799
4.374361
4.277712
4.313175
5.017003
(3,0)
4.271665
4.280820
4.294922
4.299812
4.307813
4.322928
4.341422
4.344686
4.345537
4.345564
4.353117
4.353274
4.367030
4.367413
4.372158
4.376887
4.388202
4.390586
4.391501
4.391778
4.404372
4.420885
4.432793
4.437240
5.048020
HQ
(1,2)
4.193510
4.176613
4.190715
4.169553
4.177555
4.192670
4.211164
4.188375
4.189227
4.189253
4.170755
4.196963
4.210720
4.158999
4.267952
4.168473
4.153737
4.208225
4.209139
4.209416
4.169906
4.342730
4.172276
4.228826
4.995916
BIC*
(2,1)
-206.675482
-204.830635
-205.535751
-203.477668
-203.877725
-204.633490
-205.558198
-203.418775
-203.461340
-203.462675
-201.537758
-203.848173
-204.536006
-199.949951
-209.397577
-200.423652
-198.686835
-203.411225
-203.456960
-203.470794
-199.495316
-214.136502
-198.613806
-203.441295
-247.795808
4.40
AIC
(2,0)
(1,0)
(1,1)
(2,0)
(2,1)
(1,2)
(3,0)
(0,3)
(1,3)
(3,1)
(2,2)
(2,3)
(4,0)
(0,4)
(3,3)
(0,2)
(2,4)
(3,4)
(1,4)
(4,1)
(3,2)
(4,3)
(0,1)
(4,4)
(4,2)
(0,0)
LogL
(1,1)
Model
(1,0)
(3,2)
(4,1)
(1,4)
(3,4)
(2,4)
(0,2)
(3,3)
(0,4)
(4,0)
(2,3)
(2,2)
(3,1)
(1,3)
4.26
(0,3)
4.225140
4.218787
4.232889
4.222271
4.230272
4.245388
4.263882
4.251637
4.252488
4.252515
4.244560
4.260225
4.273982
4.243348
4.310126
4.252822
4.248629
4.282030
4.282944
4.283221
4.264799
4.374361
4.277712
4.313175
5.017003
(3,0)
4.271665
4.280820
4.294922
4.299812
4.307813
4.322928
4.341422
4.344686
4.345537
4.345564
4.353117
4.353274
4.367030
4.367413
4.372158
4.376887
4.388202
4.390586
4.391501
4.391778
4.404372
4.420885
4.432793
4.437240
5.048020
HQ
(1,2)
4.193510
4.176613
4.190715
4.169553
4.177555
4.192670
4.211164
4.188375
4.189227
4.189253
4.170755
4.196963
4.210720
4.158999
4.267952
4.168473
4.153737
4.208225
4.209139
4.209416
4.169906
4.342730
4.172276
4.228826
4.995916
BIC*
(2,1)
-206.675482
-204.830635
-205.535751
-203.477668
-203.877725
-204.633490
-205.558198
-203.418775
-203.461340
-203.462675
-201.537758
-203.848173
-204.536006
-199.949951
-209.397577
-200.423652
-198.686835
-203.411225
-203.456960
-203.470794
-199.495316
-214.136502
-198.613806
-203.441295
-247.795808
4.40
AIC
(2,0)
(1,0)
(1,1)
(2,0)
(2,1)
(1,2)
(3,0)
(0,3)
(1,3)
(3,1)
(2,2)
(2,3)
(4,0)
(0,4)
(3,3)
(0,2)
(2,4)
(3,4)
(1,4)
(4,1)
(3,2)
(4,3)
(0,1)
(4,4)
(4,2)
(0,0)
LogL
(1,1)
Model
(1,0)
q C T
P D Q
P D Q
Description
ARIMA (1,0,0)
ARIMA (0,0,1)
ARIMA (0,1,0)
ARIMA (0,1,0)1
ARIMA(0,1,0)121
ARIMA(1,0,0)4
ARIMA(1,0,0)1(0,1,0)12
THANK
YOU!!!