a di Pavia
VAR
Vector autoregressions (VARs) were introduced into empirical
economics by C.Sims (1980), who demonstrated that VARs provide a
flexible and tractable framework for analyzing economic time series.
Identification issue: since these models dont dichotomize variables
into endogenous and exogenous, the exclusion restrictions used to
identify traditional simultaneous equations models make little sense.
A Vector Autoregression model (VAR) of order p is written as:
yt = c + 1 yt1 + . . . + p ytp + t
yt : (N 1)
i : (N N ) i, t : (N 1)
t=
E(t ) = 0 E(t ) =
0
t 6=
VAR(p)
c + t
(L)yt
c + t
with
(L) = [IN 1 L p Lp ]
(L) (N N ) matrix polynomial in L.
c
Eduardo Rossi
VAR(p) - Stationarity
(2)
(p)
ij ij L ij L2 . . . ij Lp
1 i=j
ij =
0 i 6= j
c
Eduardo Rossi
VAR(1)
yt = c + 1 yt1 + t
First equation:
(1)
(1)
(1)
c + 1 [c + 1 yt2 + t1 ] + t
c + 1 c + 21 yt2 + t + 1 t1
yt
...
yt
c + 1 c + . . . + k1
c + k1 ytk + t + 1 t1 + . . . + k1
tk+1
1
1
yt
E[yt ] =
k1
X
j1 c + k1 E[ytk ]
j=0
Stability of VAR(1)
Let 1 , 2 , . . . , N be the eigenvalues of 1 , the solutions to the
characteristic equation
|1 IN | = 0
then, if the eigenvalues are all distinct
1 = QMQ1
k1 = QMk Q1
Mk = diag(k1 , k2 , . . . , kN )
If |i | < 1, i = 1, . . . , N
k 0, k
If |i | 1, i then one or more elements of Mk are not vanishing,
and may be tending to .
c
Eduardo Rossi
VAR(p):
yt = 1 yt1 + . . . + p ytp + t
as a VAR(1) (Companion Form):
t = F t1 + vt
yt
y
t1
..
..
t =
(N
p
1)
.
.
t1
ytp+1
ytp
c
Eduardo Rossi
(N p 1)
IN
F=
0
.
..
. . . p1
...
IN
..
.
...
0
..
.
...
E[vt v ] =
0
c
Eduardo Rossi
IN
t=
t 6=
0
(N pN p)
..
.
Q=
vt =
0 ... 0
0
..
.
0 ... 0
..
..
.
.
0 ... 0
t
0
..
.
0
(N p1)
(N p N p)
Stability of VAR(p)
yt = 1 yt1 + . . . + p ytp + t
t = 1, . . . , T
c
Eduardo Rossi
Stability of VAR(p)
c
Eduardo Rossi
10
Stability of VAR(p)
c
Eduardo Rossi
11
Stability of VAR(p)
Three conditions are necessary for stationarity of the VAR(p) model:
Absence of mean shifts;
The vectors {t } are identically distributed, t;
Stability condition on F.
If the process is covariance stationary we can take the expectations of
both sides of
yt = c + 1 yt1 + . . . + p ytp + t
c + 1 + . . . + p
[IN 1 . . . p ]1 c
(1)1 c
c
Eduardo Rossi
12
Vector MA()
13
(s)
(s)
c
Eduardo Rossi
14
[IN + 1 L + 2 L2 + . . .][IN 1 L 2 L2 + . . . p Lp ] = IN
Setting the coefficient on L1 equal to the zero matrix,
1 1 = 0
on L2
2 = 1 1 + 2
In general for Ls
s = 1 s1 + . . . + p sp s = 1, 2, . . .
0 = I N , s = 0 s < 0
c
Eduardo Rossi
15
+ H1 Ht + 1 H1 Ht1 + . . .
+ J0 ut + J1 ut1 + J2 ut2 + . . .
Js s H1
c
Eduardo Rossi
16
c
Eduardo Rossi
17
c
Eduardo Rossi
18
yt = + t + 1 t1 + . . . + q tq
t V W N , j (N N ) matrix of MA coefficients j = 1, 2, . . . , q.
E(yt ) =
0
c
Eduardo Rossi
E[(yt )(yt ) ]
=
=
+ 1 1 + . . . + q q
19
+
.
.
.
+
j = 1, . . . , q
j
j+1
j+2
q
1
2
q1
j =
j + 1 j+1 + . . . + q+j q
j = 1, . . . , q
0
|j| > q
j
c
Eduardo Rossi
20
VAR(p) Autocovariances
Given:
j = E[(yt )(ytj ) ]
j = E[(yt )(yt+j ) ]
then
j
j
6=
E[(yt+j )(y(t+j)j ) ]
E[(yt+j )(yt ) ]
=
j
c
Eduardo Rossi
E[(yt )(yt+j ) ] = j
=
-
21
VAR(p) Autocovariances
Companion form:
t = F t1 + vt
= E[t t ]
= E
0
1
=
..
.
yt
yt1
[(yt ) . . . (ytp+1 ) ]
..
ytp+1
1
. . . p1
0
. . . p2
(N p N p)
..
p1
c
Eduardo Rossi
p2
. . . 0
22
VAR(p) Autocovariances
E[ t t ]
E[(Ft1 + vt )(Ft1 + vt ) ]
FE(t1 t1 )F + E(vt vt )
where FE(t1 vt ) = 0.
= FF + Q
vec() = vec(FF ) + vec(Q)
vec() = vec(FF ) + vec(Q)
vec()
=
=
(F F)vec() + vec(Q)
23
VAR(p) Autocovariances
c
Eduardo Rossi
24
yt = c + 1 yt1 + . . . + p ytp + t
(1)
t i.i.d.N (0, )
(T + p) observations. Conditioning on the first p observations we
estimate using the last T observations.
Conditional likelihood:
fYT ,YT 1 ,...,Y1 |Y0 ,...,Y1p (yT , . . . , y1 |y0 , . . . , y1p ; )
c
Eduardo Rossi
25
yt1
xt =
.. (N p + 1) 1
.
ytp
c 1
. . . p
c
Eduardo Rossi
(N (N p + 1))
26
c
Eduardo Rossi
27
T
Y
t=1
TN
T
1 X
1
L() =
log (2)+ log | |
(yt xt ) (yt xt )
2
2
2 t=1
c
Eduardo Rossi
28
b
=
yt xt
xt xt=1
t
t=1
b is:
The j -th row of
" T
#" T
#1
X
X
b = uj
uj
yt xt
xt xt
t=1
T t=1
c
Eduardo Rossi
29
i.i.d.(0, )
E[it jt lt mt ]
<
i, j, l, m
the roots of
|IN 1 z . . . p z p | = 0
Let K N p + 1, xt (1 K):
xt = [1 , yt , yt1
, . . . , ytp
]
bT)
b T = vec(
c
Eduardo Rossi
30
bT =
b 1,T
..
.
b N,T
b i,t =
xt xt
X
1
bT =
b
t b
t
T t
!1
X
t
xt yit
b i,T
b
it = yit xt
c
Eduardo Rossi
31
bT
p
b
T
d
T (b
T ) N (0, ( Q1 ))
d
T (b
i,T ) N (0, (i2 Q1 ))
i2 = E(2it )
1X 2 p 2
2
bi =
b
it i
T t
c
Eduardo Rossi
32
b i N i ,
bi2
!1
X
xt xt
t
d
1
T (Rb
T d) N 0, R Q
R
c
Eduardo Rossi
33
(m)
=
=
=
h
i1
1
bT Q
b
T (Rb
T d) R
R
(Rb
T d)
T
h
i1
1
b T (T Q
bT)
(Rb
T d) R
R
(Rb
T d)
!1 1
X
b
R (Rb
(Rb
T d) R T
xt xt
T d)
c
Eduardo Rossi
34