Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
State space methods are used for a wide variety of time series
problems
They are important in and of themselves in economics (e.g.
trend-cycle decompositions, structural time series models, dealing
with missing observations, etc.)
Also time-varying parameter VARs (TVP-VARs) and stochastic
volatility are state space models
DSGE models are state space models (DYNARE popular Bayesian
code for estimation)
Advantage of state space models: well-developed set of MCMC
algorithms for doing Bayesian inference
yt = Zt β + ε
yt = Zt βt + εt
where
β t + 1 = β t + ut
This is a state space model.
In VAR assume εt to be i.i.d. N (0, Σ)
In empirical macroeconomics, this is often unrealistic.
Want to have var (εt ) = Σt
This also leads to state space models.
β t +1 j β t , Q N ( βt , Q )
Formally:
T
p βT jQ = ∏p βt j βt 1, Q
t =1
β1 jQ N (0, Q )
Or Carter and Kohn (1994) simply assume β0 has some prior that
researcher chooses
Σ 1
W S 1
,ν
1 1
Q W Q , νQ
where
ν = T +ν
T
S =S+ ∑ ( yt Wt δ Zt βt ) (yt Wt δ Zt βt )0
t =1
where
νQ = T + νQ
T
∑
0
Q=Q+ β t +1 βt β t +1 βt .
t =1
ht
yt = exp εt
2
ht + 1 = µ + φ ( ht µ) + η t
y t = ht + ε t
7
p ( εt ) ∑ q i fN εt jmi , vi2
i =1
εt jst = i N mi , vi2
Pr (st = i ) = qi
yt = εt
Σt = Dt
where Dt is a diagonal matrix with diagonal elements dit
dit has standard univariate stochastic volatility speci…cation
dit = exp (hit ) and
hi ,t +1 = µi + φi (hit µi ) + η it
Σt = L 1
Dt L 10
Lyt = Lεt
Σ t = Lt 1 Dt Lt 10
lt +1 = lt + ζ t
ζ t is i.i.d. N 0, Dζ and Dζ is a diagonal matrix.
Can transform model so that algorithm for Normal linear state space
model can draw lt
See Primiceri (2005) for details
Note: if Dζ is not diagonal have to be careful (no longer Normal state
space model)
Why TVP-VARs?
Example: U.S. monetary policy
was the high in‡ation and slow growth of the 1970s were due to bad
policy or bad luck?
Some have argued that the way the Fed reacted to in‡ation has
changed over time
After 1980, Fed became more aggressive in …ghting in‡ation pressures
than before
This is the “bad policy” story (change in the monetary policy
transmission mechanism)
This story depends on having VAR coe¢ cients di¤erent in the 1970s
than subsequently.
Begin by assuming Σt = Σ
Remember VAR notation: yt is M 1 vector, Zt is M k matrix
(de…ned so as to allow for a VAR with di¤erent lagged dependent and
exogenous variables in each equation).
TVP-VAR:
yt = Zt βt + εt
β t + 1 = β t + ut
εt is i.i.d. N (0, Σ) and ut is i.i.d. N (0, Q ).
εt and us are independent of one another for all s and t.