Professional Documents
Culture Documents
Multivariate State Space Plus VAR
Multivariate State Space Plus VAR
Multivariate State Space Plus VAR
Department of Econometrics
VU University Amsterdam
Tinbergen Institute
2010
yt = µt + εt , εt ∼ N ID(0, Σε ),
µt+1 = µt + ηt , ηt ∼ N ID(0, Ση ).
yt = µt + εt , εt ∼ N ID(0, Σε ),
µt+1 = µt + ηt , ηt ∼ N ID(0, Ση ).
• First difference
∆yt = ηt−1 + ∆εt
is stationary;
• Reduced form: ∆yt is VMA(1) or VAR(∞);
yt = µt + εt , εt ∼ N ID(0, Σε ),
µt+1 = µt + ηt , ηt ∼ N ID(0, qΣε ),
yt = µt + εt , εt ∼ N ID(0, Σε ),
µt+1 = µt + ηt , ηt ∼ N ID(0, Ση ),
yt = µt + εt , εt ∼ N ID(0, Σε ),
µt+1 = µt + ηt , ηt ∼ N ID(0, AΣc A′ ),
yt = a + Aµct + εt ,
µct+1 = µct + ηtc , ηtc ∼ N ID(0, Σc ),
so that
µt = a + Aµct , ηt = Aηtc .
yt = µt + εt , εt ∼ N ID(0, Σε ),
µt+1 = µt + ηt , ηt ∼ N ID(0, AΣc A′ ),
notice that
• decomposition Ση = AΣc A′ is not unique;
• identification restrictions: Σc is diagonal, Choleski decomposition,
principal compoments (based on economic theory);
• more interesting interpretation can be obtained by factor rotations;
• can be interpreted as dynamic factor analysis, see later.
Multiple trends can also be decomposed into a one common factor and
multiple idiosyncratic factors:
yt = µt + εt , εt ∼ N ID(0, Σε ),
µt+1 = µt + ηt , ηt ∼ N ID(0, Ση ),
with common level (scalar) µct and ”independent” level µ∗it generated by
The Kalman filter is valid for the general multivariate state space
model.
Computationally it is not convenient when p becomes large, very
large.
Each step of the Kalman filter requires the inversion of the p × p
matrix Ft . This is no problem when p = 1 (univariate) but when
p > 20, say, it will slow down the Kalman filter considerably.
However, we can treat each element in the p × 1 observation vector yt
as a single realisation. In other words, we can "update" each
single element of yt within the Kalman filter.
The arguments are given in DK book §6.4.
The same applies to smoothing.
yt = µt + εt , εt ∼ N ID(0, Σε ),
µt+1 = µt + ηt , ηt ∼ N ID(0, Ση ),
vt = yt − ct − Zt at , at+1 = Tt at + Kt vt , t = 1, . . . , n.
yt = a + Aµ̃ct|t−1 + vt , vt ∼ N ID(0, F ),
where µ̃ct|t−1 and vt are obtained from KF applied to the CLL model.
Multivariate State Space Models – p. 14
VAR(∞) Representation
yt = [I − A(KA)−1 K]a
+ A[I − (I − KA)L]−1 KLyt + vt ,
Φ(L)yt = Φ(1)a + vt ,
Φ(L) = I − A[I − (I − KA)L]−1 KL.
Φ(1) = BC ′ = I − A(KA)−1 K,
yt = µt + γt + εt ,
14.25
14.20
14.15
14.10
14.05
14.00
13.95
13.90
0.02
14.2 0.01
0.00
14.0 HP trend −0.01
HP cycle
1985 1990 1995 2000 1985 1990 1995 2000
14.3
0.01
14.2
14.1
0.00
14.0
STAMP trend
13.9 −0.01 STAMP cycle
1985 1990 1995 2000 1985 1990 1995 2000
14.2 0.01
0.00
14.0
−0.01
AKR trend AKR cycle
1985 1990 1995 2000 1985 1990 1995 2000
yt = µt + ψt + εt
• Trend µt : ∆d µt = ηt ;
• Irregular εt : White Noise;
• Cycle ψt : AR(2) with complex roots as in Clark (1987) or with
stochastic trigonometric functions as in Harvey (1985,1989);
Trigonometric specification:
! " # ! !
ψt+1 cos λ sin λ ψt κt
+ = φ + ,
ψt+1 − sin λ cos λ ψt+ κ+
t
κt , κ+ 2
t ∼ N ID(0, σκ ).
14.3
0.02
14.2
14.1 0.00
14.0
13.9 −0.02
1985 1990 1995 2000 1985 1990 1995 2000
0.2
0.1 0.5
0.0 0.0
−20 −10 0 10 20 −20 −10 0 10 20
1.0 1.0
0.5 0.5
0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0
0.5
TREND
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
1.0
0.5
CYCLE
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
1.0
0.5
IRREGULAR
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
(m)
∆m µt+1 = ζt , ζt ∼ N ID(0, σζ2 ),
or
(j) (j) (j−1)
µt+1 = µt + µt , “j = m, m − 1, . . . , 1,
(0)
with µt = ηt as before.
(1)
For m = 2 we have IRW with βt = µt .
Higher value for m gives low-pass gain function with sharper cut-off
downwards at certain low frequency point.
Same principles can be applied to the cycle. The generalised kth order
(k)
cycle is given by ψt = ψt , where
! " # ! !
(j) (j) (j−1)
ψt+1 cos λ sin λ ψt ψt
+(j) = φ +(j) + +(j−1) ,
ψt+1 − sin λ cos λ ψt ψt
j = 1, . . . , k,
with ! !
(0)
ψt κt
+(0) = + .
ψt κt ‘m
14.3
0.02
14.2
14.1 0.00
14.0
13.9 −0.02
1985 1990 1995 2000 1985 1990 1995 2000
0.2
0.1 0.5
0.0 0.0
−20 −10 0 10 20 −20 −10 0 10 20
1.0 1.0
0.5 0.5
0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0
0.2
0.0
−0.2
estimated cycles
gdp (red) versus
cons confidence (blue)
−0.4
1980 1985 1990 1995
0.2
0.0
−0.2
estimated cycles
gdp (red) versus
shifted cons confidence (blue)
−0.4
1980 1985 1990 1995
• The cycle
cos(ξλ)ψt + sin(ξλ)ψt+ ,
is shifted ξ time periods to the right (when ξ > 0) or to the left
(when ξ < 0);
• Here, − 1 π < ξ0 λ < 1 π (shift is w.r.t. ψt );
2 2
• More details in Rünstler (EctJ, 2004) for idea of shifting cycles in
multivariate unobserved components time series model;
• Also some details in paper of Koopman and Azevedo (2003), see
http://staff.feweb.vu.nl/koopman).
Thus we have
(k)
• generalised individual trend µit ,
• generalised common cycle ψt(m) with possible shifts;
• irregular εit .
We therefore impose a unit common cycle loading and zero phase shift
on real GDP of the Euro area.
Time series 1986 – 2002:
* quarterly GDP
* industrial production
* unemployment (countercyclical, lagging)
* industrial confidence
* construction confidence
* retail trade confidence
* consumer confidence
* retail sales
* interest rate spread (leading)
14.20
14.15
14.10
14.05
14.00
13.95
13.90
14.2 0.003
14.1
0.002
14.0
0.001
GDP Euro Area Trend slope
13.9
0.01 0.0050
0.0025
0.00
0.0000
−0.0025
−0.01
−0.0050
Cycle irregular
Noteworthy features:
• GDP is quarterly, estimated components are monthly
• Euro area potential growth has declined after major recession of
1993 (before, growth was around 3.7% in annualised terms, after it
was 2.4%, falls within the 2.0 − 2.5 underlying the ECB monetary
policy)
• GDP cycle in line with common wisdom regarding Euro area
business cycle, ECB (2002)
• business cycle tracks the turning points well
• historical minimum value is observed in Aug 1993, falls in most
severe recession period of Euro area
• maximum value is in Jan 2001
0.010
0.005
0.000
−0.005
−0.010
−0.015
0.01
0.00
−0.01
−0.02
0.01
0.00
−0.01
−0.02
0.020
0.015
0.010
0.005
0.000
H−C
−0.005 A−K−R
C−F
−0.010
H−P
−0.015
0.02 0.01
0.01
0.00
0.00
−0.01
−0.01
−0.02
H−P C−F
1985 1990 1995 2000 1985 1990 1995 2000
0.01
0.01
0.00
0.00
−0.01
−0.01 A−K−R
H−C
1985 1990 1995 2000 1985 1990 1995 2000
and disturbances
εt ∼ N ID(0, Σε ) ζt ∼ N ID(0, Σζ ),
yt = Zαt + εt , αt+1 = Tt αt + Rt ηt ,
with
εt ∼ N ID(0, H) ηt ∼ N ID(0, Qt ).
Let’s adopt the state space representation.
yt = Zαt + εt , αt+1 = Tt αt + Rt ηt ,
et = E(αt |y1 , . . . ys ),
α V ar(αt |y1 , . . . ys ), s = t − 1, . . . , n,
α
bt = P yt , where P = (Z ′ H −1 Z)−1 Z ′ H −1 .
α
bt = αt + et ,
Model
yt = Zαt + εt , αt+1 = Tt αt + Rt ηt ,
for known system matrices.
Signal extraction for αt is carried out in two steps:
1. Cross-section step (GLS)
bt = (Z ′ H −1 Z)−1 Z ′ H −1 yt .
α
α
bt = αt + et , et ∼ N ID{0, (Z ′ H −1 Z)−1 }
It turns out that all inference can be based on this model for α
bt ,
including the evaluation of the likelihood function.
" # !
L
A ytL
A= , yt+ = ,
AH ytH
ytL = AL Zαt + eL
t , ytH = eH
t ,
! ( ! " #)
eL
t 0 ΣL 0 ΣL = AL HAL′ ,
∼ , , with
eH
t 0 0 ΣH ΣH = AH HAH′ .
LEMMA 1:
Matrix A satisfies these conditions if and only if
AL = CZ ′ H −1 ,
|A|2 = |H|−1 |AHA′ | = |H|−1 |AL HAL ′ ||AH HAH ′ | = |H|−1 |ΣL |.
yt = ψt + εt , εt ∼ N (0, Σε ),