Professional Documents
Culture Documents
Luk echura
c.h.: Thursday 14:30-16:00
Content - Lectures
1. Introduction to forecasting
2. Time series properties; Trend function - forecast;
ARIMA models - forecast
3. Low costs method
4. Econometric models - specific to general modelling;
5. General to specific modelling ADL models
6. Price forecasts application of ADL models
7. VAR models
8. Co-integration analysis, VECM models
9. Leading indicators
Content - seminars
1. Project, Dataset, Trend function
2. ARIMA model
3. ADL model
4. VAR model; Evaluation of forecasts
Literature
The day. That this date will be a Thursday is not a forecast but
merely a designation of a name to a date according to a widely
accepted method of designating such names, known as the
Gregorian calendar. However, an assumption is being made that
the same calendar will be in use in 2015.
.
Time series forecasts
Varialbe x
t
, where t=1,,n
x
t
is a sequence of stochastic values, as well as
x
n+h
Variable x
t
might be characterized in
terms of probability theory
DF, PDF;
E(x), variance
Information sets (I
n
):
I
n
: x
n-j
, j>=0
I
n
: x
n-j
, y
n-j
, z
n-j
, etc., j>=0
Misspecification
Under-parameterization
Over-parameterization
Information sets:
Information sets:
Numerical data
C(e) = Ae
2
Subjective method
Objective method
Time series models
Time series
Visual analysis
Figure
Basic characteristics/statistics
(differences of different order, mean,
variance, distribution, etc.)
Time series model -
approaches
Trend
Seasonality
ARIMA models
I(1)
Y
t
= u
t
u
t
are identically distributed error terms, serially uncorrelated.
They represents the impact of unexpected factors on share
price e.g. Information about the financial situation of company.
y
t+1
= u
t+1
+ au
t
Where u
t+1
represents the impact of the new
information in time t+1. And au
t
expresses the
impact of the information from the previous day.
Expressing y
t
as a function of its
several previous observations.
Autoregressive moving average model -
ARMA
I(d)
4. step estimation
5. step verification
ACF
AIC, SIC
4. step estimation
AR OLS
Autocorrelation
Ex-post forecast
6. step application - forecasting
MA(1) model
AR(1) model
ARMA(1,1) model
Method with low costs
+
+
+ +
t t t t
t t t t
t t t t t
S x x S
T x x T
T x S x x
12 , +
+ +
h t t t h t
S hT x f
Which method to use?
ARIMA
Stepwise AR model
EWMA model
Time
Money
Data set
General to specific modelling
t t t
x y y +
+ 1 1 1
t t t
x y y +
+ + 2 1 2 2
I I I
I
i
i
I
i
i
I
i
i
+ + + + +
1 2
3
1
2
0
1
...
Long-run multiplier of ADL model
+ + +
+
Model ADL(1,1)
1
=
1
= 0
Static regression
0
=
1
= 0
AR(1) model.
1
=
0
= 0
1
= 1,
0
=
1
1
= 0
DL(1) model
1
= 0
0
= 0
1
=
1
1
1 = (
0
+
1
)
Model, where
1
1 = (
0
+
1
), is a little bit more
difficult to derive. To get the model we must express
ADL(1,1) model in first differences with error-correction
mechanism. That is, we must from both sides of
ADL(1,1) model subtract y
t-1
and add and subtract
0
x
t-1
to
the right side of the model. Then the relation can be
simplified to:
t t t t t
u x x y y + + + +
1 1 0 0 1 1
) ( ) 1 (
This equation contains error-correction mechanism of the
type (y
t-1
x
t-1
), if the following condition is satisfied:
1
1 = (
0
+
1
).
1
=
1
0
E(u
t
|y
t-1
, , y
t-n
, x
1t
, x
1t-1
, , x
1t-p
, ., x
kt
, x
kt-1
, ,
x
kt-p
) = 0;
(b) (y
t
, x
1t
, , x
kt
) a (y
t-j
, x
1t-j
, , x
kt-j
) are
independent with j large enough;
x
1t
, , x
kt
and y
t
have zero and finite first four
moments;
no perfect multicolinearity.
ADL (n,p) model lag length choice
F-test
Maximum of adjusted R
2
n
q
n
SSR
AIC
2
ln +
,
_
) ln( ln n
n
q
n
SSR
BIC +
,
_
F-test
Granger causality
Test of Granger causality
Statistics of Granger causality F-test
Forecasting with ADL (n,p) model
Short-run forecast
f
n,1
or
t+1
= b
0
+ b
1
y
t
+ c
1
x
t
f
n,1
or
t+1
= b
0
+ b
1
y
t
+ b
2
y
t-1
++ b
n
y
t-n+1
+ c
11
x
1t
+
+ c
1p
x
1t-p+1
++ c
k1
x
kt
++ c
kp
x
kt-p+1
f
n,2
or
t+2
= b
0
+ b
1
t+1
+ b
2
y
t
++ b
n
y
t-n+2
+ c
10
x
1t+2
+ c
11
x
1t+1
++ c
1p
x
1t-p+2
++ c
k0
x
kt+2
+ c
k1
x
kt+1
+ + c
kp
x
kt-p+2
f
n,h
or
t+h
= b
0
+ b
1
t+h-1
+ b
2
y
t+h-2
++ b
n
y
t-n+h
+
c
10
x
1t+h
+ c
11
x
1t+h-1
++ c
1p
x
1t-p+h
++ c
k0
x
kt+h
+
c
k1
x
kt+h-1
+ + c
kp
x
kt-p+h
Forecast error
1 1 1 1 0 0 1 1 1
+ +
+ + +
[ ] [ ]
t t u t t
x c y b b y y E MSFE ) ( ) ( ) ( var ) (
1 1 1 1 0 0
2 2
1 1
+ + +
+ +
Interval forecast
1 1 1 + + +
t
t t t
y y SE table t y
Ex-post forecast
Q
SZt
= f(CZV
t-h
| MC
t-h
,); h = 1, , n
CZV
t
= f(Q
SZt
Q
DZt
)
Q
DZt
= f(MR
t-h
CZV
t-h
= 0| )
Pi
A P i
Q
P P
0
+
Ai
A
A
A
Ai A
Pi
P
P
p
Pi p
Q
Q
Q
P
kQ kP
Q
Q
Q
P
Q P
Ai
A
A
A
Ai A
Pi
P
P
p
Pi P
Q
Q
Q
P
kQ kP
Q
Q
Q
P
Q P
+
) 1 ( ) 1 (
PA
i
A
PP
i
p
e
kP
e
P
+ +
) 1 ( ) 1 (
PA
A
PP
p
e
kP
e
P
+ +
VAR model
Estimation
Orthogonalisation of residuals
where X
t
represent k variables of the model, i.e. for
two variables case:
.
1
]
1
t
t
t
x
x
X
2
1
+
1
]
1
1
]
1
+
1
]
1
1
]
1
1
]
1
t
t
t
t
t
t
t
t
u
u
y
x
d c
b a
y
x
d c
b a
y
x
2
1
2
2
2 2
2 2
1
1
1 1
1 1
12 2 1 22
2
2 11
2
1 2 1
) ( ; ) ( ; ) ( ; 0 ) ( ) (
t t t t t t
u u E u E u E u E u E
and we subtract the result from
the second equation.
1
]
1
+
1
]
1
1
]
1
+
1
]
1
1
]
1
1
]
1
t
t
t
t
t
t
t t
t
u
u
y
x
d c
b a
y
x
d c
b a
x y
x
2
1
2
2
2 2
2 2
1
1
1 1
1 1
) ( ; ) ( ; ) (
1 2 2 t t t s s s s s s
u u u b d d a c c
where
0 )) ( ) / ( ) (( )) ( ( ) (
12 12
2
1 11 12 2 1 1 2 1 2 1
t t t t t t t t
u E u u E u u u E u u E
The fact the residual are not correlated can be
proved:
Values of
ij
are not known usually
and must be estimated. The idea of
orthogonalisation is based on the
employment of the equations of the
model separately in the economic
analysis. In this case the economic
analysis investigates the impact of
unknown shock or orthogonal
innovation on the system.
Impulse-response function
1
]
1
1
]
1
1
]
1
1
]
1
i t
i t
i
i
t
t
u
u
d c
b a
y
x
2
1
1 1
1 1
0
1
0 1
11 12 1 2 2
/ ) (
a u u u
t t t
where
1
]
1
1
1
]
1
1
]
1
i t
i t
i i
i i
i
t
t
u
u
y
x
2
1
) (
22
) (
21
) (
12
) (
11
0
Interpretation of elements in I-R function
+
+
1
1 ,
'
>
+
+
+
s h for X
s h for X
X
h s kT
h s kT
h s kT
VAR model - example
Total observations: 127 Monthly Data From: 1995:01 To 2005:07
Usable observations: 113 (1996:03 to 2005:07) Degrees of Freedom: 105
Dependent variable: dCZV Dependent variable: dCPV
R
2
: 31,93 SEE: 3,2258 R
2
: 0,62 SEE: 0,4969
DW-test: 2,0629 SSR: 1092,6035 DW-test: 2,0752 SSR: 25,9261
Variable Coefficient p-value Variable Coefficient p-value
dCZV (1) 0,16025 0,1066 dCPV (1) 0,4388 0,0000
dCZV (2) -0,2094 0,2800 dCPV (2) 0,1854 0,0227
dCZV (12) -0,2741 0,0046 dCPV (12) -0,5397 0,0000
dCZV (13) -0,1641 0,1161 dCPV (13) 0,2800 0,0019
dCPV (1) 1,0272 0,0930 dCZV (1) 0,0312 0,0423
dCPV (2) 0,4898 0,3488 dCZV (2) 0,0146 0,3164
dCPV (12) -0,5021 0,3669 dCZV (12) 0,0315 0,0330
dCPV (13) 0,0990 0,8626 dCZV (13) 0,0011 0,9428
F-Test F-statistic p-value F-Test F-statistic p-value
dCZV 5,5941 0,0004 dCPV 29,6004 0,0000
dCPV 2,9671 0,0229 dCZV 2,7889 0,0301
Impulse-response analysis
Responses to Shock in dCZV
-1,500
-1,000
-0,500
0,000
0,500
1,000
1,500
2,000
2,500
3,000
3,500
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39
dCZV
dCPV
Responses to Shock in dCPV
-0,600
-0,400
-0,200
0,000
0,200
0,400
0,600
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39
dCZV
dCPV
Decomposition of Variance dCZV
Decomposition of Variance for Series dCZV
Step Std Error dCZV dCPV
1 3,10951078 100,000 0,000
2 3,21123003 97,880 2,120
3 3,26487070 95,574 4,426
4 3,27680712 94,916 5,084
5 3,29175028 94,679 5,321
6 3,29900310 94,479 5,521
7 3,30228036 94,334 5,660
8 3,30421762 94,253 5,747
9 3,30549764 94,210 5,790
10 3,30626983 94,183 5,817
11 3,30671348 94,167 5,833
12 3,30697610 94,157 5,843
13 3,43536280 94,239 5,761
14 3,57292139 93,073 6,927
15 3,60878770 91,261 8,739
16 3,62624759 90,402 9,598
17 3,64110516 90,010 9,990
18 3,65597919 89,721 10,279
Dekompozice of Variance for dCPV
Decomposition of Variance for Series dCPV
Step Std Error dCZV dCPV
1 0,4789928 9,679 90,324
2 0,54376337 16,417 83,583
3 0,59796144 21,141 78,859
4 0,62289722 22,173 77,827
5 0,63714616 22,498 77,502
6 0,64557739 22,776 77,224
7 0,65069735 22,971 77,029
8 0,65371211 23,074 76,926
9 0,65549074 23,129 76,871
10 0,65655163 23,163 76,837
11 0,65718664 23,184 76,816
12 0,65756557 23,196 76,804
13 0,69771656 20,758 79,242
14 0,70208071 20,754 79,246
15 0,71951277 21,811 78,189
16 0,73050160 22,182 77,818
17 0,73932358 22,177 77,823
18 0,74590017 22,236 77,764
Forecast
Prognza dCZV Prognza dCPV Prognza CZV Prognza CPV Chyba prognzy CZV Chyba prognzy CPV
-0,7008 -0,1025 88,299 97,897 3,201 0,103
2,8115 0,0310 94,312 98,031 -1,012 -0,331
1,5479 0,0856 94,848 97,786 -1,148 -0,386
-1,1313 0,3575 92,569 97,757 1,431 -0,557
0,5294 0,5901 94,529 97,790 0,271 -1,290
Cointegration analysis
process u
t
is a white noise, i.e. I(0),
process u
t
is stationary and autocorrelated
and is also I(0),
process u
t
is I(1).
1
1
where C
S
= 0 for s > p, X
t
is k x 1 vector of variables
integrated of order 1, i.e. I(1), u
1
, ,u
t
are nid (0,) and
is a matrix of lon-run relationship.
Construction of VECM
Estimation of VECM
Verification
Orthogonalisation of residuals