dealing with trends in dsge models

39
Dealing with trends in DSGE models ESRI Conference, Tokyo, November 14, 2008 Michel Juillard (Bank of France and CEPREMAP)

Upload: others

Post on 08-Dec-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Dealing with trends in DSGE modelsESRI Conference, Tokyo, November 14, 2008

Michel Juillard (Bank of France and CEPREMAP)

Introduction

I Traditionally, separation betweenI short term, fluctuation analysisI long term, growth models

I In practice,I write business cycle model without trendsI estimate on detrended data

Alternative procedure

I include growth in the model, i.e. neoā€“classical growthmodel,

I estimate on original data, in level or in growth rates.

Difficulties:I solution methods using a perturbation approach imply a

local approximation around a deterministic steady state.I estimating a model with stochastic trends and data in level

require a special initialization of the Kalman filter.

Solutions:I local approximations can only be used with balanced

growth modelsI for estimation in level use a diffuse initialization for the

Kalman filter (Durbin and Koopman)

Outline

I Stationarizing balanced growth modelsI Diffuse Kalman filter

Balanced growth

I In absence of shocks, variables grow at a constant ratesI Real production variables grow at the rate of technical

progressI Employment grows at the rate of demographic growthI Nominal variables grow like money supplyI Prices grow like the ratio of money supply over technical

progressI Hours, interest rates, inflation are stationary (unless

inflation target follows a stochastic trend)I Different sectors may have different rates of technical

change (Edge, Laubach, Williams; Ireland and Schuh)

Stationarizing the model

I local approximation (perturbation approach) requires aconstant deterministic steady state

I stationarized variables are divided by their correspondingtrend

I balanced growth models are invariant to this change ofvariable

I the trends themselves (deterministic or stochastic) can bemodeled as logā€“linear processes

log dt = log dtāˆ’1 + g

log st = log stāˆ’1 + g + et

I (logā€“)linear processes donā€™t need to be locallyapproximated!

I this procedure is equivalent to take a local approximationaround the balanced growth path.

Standard CIA model

Nason and Cogley (1994), Schorfheide (2000)I Three agents:

I householdsI firmsI financial intermediaries

I Decisions are made after the current period surprisechange in money growth and technology.

Firm

The firm chooses desired capital, Kt , labour demand, Nt ,dividends Ft and loans Lt

max{Kt ,Nt ,Ft}

āˆž

t=0

E0

[āˆžāˆ‘

t=0

Ī²t Ft

Ct+1Pt+1

]

s.t.

Ft ā‰¤ Lt + Pt Yt āˆ’ Kt + (1 āˆ’ Ī“)Ktāˆ’1 āˆ’ Wt Nt āˆ’ RF ,tLt

Wt Nt ā‰¤ Lt

Yt = K Ī±

tāˆ’1 (At Nt)1āˆ’Ī±

where Yt is output, At , technical change index, Pt , the priceindex, Wt , the wage rate, and RF ,t , the gross interest rate onloans.

Financial Intermediary

The following maximisation problem:

max{Bt ,Lt ,Dt}

āˆž

t=0

E0

[āˆžāˆ‘

t=0

Ī²t Bt

Ct+1Pt+1

]

s.t.

Bt = Dt + RF ,tLt āˆ’ RH,tDt āˆ’ Lt + Mt āˆ’ Mtāˆ’1

Lt ā‰¤ Mt āˆ’ Mtāˆ’1 + Dt

where Bt is dividends from the financial intermediaries, Dt , thedeposits, and RH,t is the gross deposit interest rate.

Household

The household chooses consumption Ct , hours worked Ht , and(non-negative) deposits Dt so that

max{Ct ,Ht ,Mt ,Dt}

āˆž

t=0

E0

[āˆžāˆ‘

t=0

Ī²t [(1 āˆ’ Ļˆ) log Ct + Ļˆ log(1 āˆ’ Ht)]

]

s.t.

PtCt ā‰¤ Mtāˆ’1 āˆ’ Dt + WtHt

Dt ā‰„ 0

Mt = Mtāˆ’1 āˆ’ Dt + WtHt āˆ’ PtCt + RH,tDt + Ft + Bt

Market clearing conditions

I Labor marketHt = Nt

I Money marketPtCt = Mt

I Goods market

Ct + (Kt āˆ’ (1 āˆ’ Ī“)Ktāˆ’1) = (1 + eGt)KĪ±tāˆ’1(AtNt)

1āˆ’Ī±

Shock processes

Technology:

gAt =At

Atāˆ’1

log gAt = Ī³ + ĪµAt

Demand shock:

eGt

Money:

gMt =Mt

Mtāˆ’1

log gMt = (1 āˆ’ Ļ) log gM? + Ļ log gMtāˆ’1 + ĪµM t

Optimality conditions

Et

{Pt

Ct+1Pt+1

}= Ī²Et

{Pt+1Ī±K Ī±āˆ’1

t (At+1Nt+1)1āˆ’Ī± + 1 āˆ’ Ī“

Ct+2Pt+2

}

Ļˆ

1 āˆ’ Ļˆ

CtPt

1 āˆ’ Nt= Wt

1CtPt

= Ī²Et

{Rt

Ct+1Pt+1

}

Rt =Pt(1 āˆ’ Ī±)K Ī±

tāˆ’1A1āˆ’Ī±t Nāˆ’Ī±

t

Wt

Other equilibrium conditions

Wt =Lt

Nt

Lt = Mt āˆ’ Mtāˆ’1 + Dt

PtCt = Mt

Ct + (Kt āˆ’ (1 āˆ’ Ī“)Ktāˆ’1) = (1 āˆ’ eGt)KĪ±tāˆ’1(AtNt)

1āˆ’Ī±

gAt =At

Atāˆ’1

log gAt = Ī³ + ĪµAt

gM t =Mt

Mtāˆ’1

log gM t = (1 āˆ’ Ļ) log gM? + Ļ log gM tāˆ’1 + ĪµM t

Stationarized model

In order for a local approximation to make sense, the modelvariables must fluctuate in the neighborhood of the steadystate. It is therefor necessary to stationarize the model, beforecomputing the local approximation of the solution.

I Kt , Ct , are detrended by the productivity At ,

I Pt is detrended by Mtāˆ’1/At

I Wt , Lt , and Dt are detrended by Mtāˆ’1.I Rt and Nt are stationary

First-order conditions

Euler equation:

Et

{Pt

Mtāˆ’1At

Ct+1At+1Pt+1Mt

At+1

}

= Ī²Et

{Pt+1

Mt

At+1

Ī±(

KtAt

)Ī±āˆ’1(At+1Nt+1)

1āˆ’Ī± + 1 āˆ’ Ī“

Ct+2At+2Pt+2Mt+1At+2

}

after simplification

Et

{Pt

Ct+1Pt+1gMt

}= Ī²Et

{Pt+1

Ī±gAāˆ’Ī±t+1K Ī±āˆ’1

t N1āˆ’Ī±t+1 + 1āˆ’Ī“

gAt+1

Ct+2Pt+2gM t+1

}

First-order conditions (continued)Firmā€™s borrowing constraint:

WtMtāˆ’1 =LtMtāˆ’1

Nt

after simplification

Wt =Lt

Nt

Intertemporal labor market optimality condition:

Ļˆ

1 āˆ’ Ļˆ

CtAt PtMtāˆ’1

At

1 āˆ’ Nt= WtMtāˆ’1

after simplification

Ļˆ

1 āˆ’ Ļˆ

Ct Pt

1 āˆ’ Nt= Wt

First order conditions (continued)Equilibrium interest rate:

Rt =(1 āˆ’ Ī±)Pt

Mtāˆ’1At

(Ktāˆ’1Atāˆ’1

)Ī±āˆ’1(AtNt)

āˆ’Ī±

WtMtāˆ’1

after simplification

Rt =(1 āˆ’ Ī±)PtgA

āˆ’Ī±t K Ī±āˆ’1

tāˆ’1 Nāˆ’Ī±t

Wt

Credit market optimality condition:

1

CtAt PtMtāˆ’1

At

= Ī²Et

{Rt

Ct+1At+1Pt+1Mt

At+1

}

after simplification

1

Ct Pt

= Ī²Et

{Rt

gM tCt+1Pt+1

}

Other equilibrium conditions

Wt =Lt

Nt

Lt = gMt āˆ’ 1 + Dt

Pt Ct = gMt

Ct + Kt āˆ’ (1 āˆ’ Ī“)Ktāˆ’1

gAt= (1 āˆ’ eGt)

(Ktāˆ’1

gAt

)Ī±

N1āˆ’Ī±t

log gAt = Ī³ + ĪµAt

log gMt = (1 āˆ’ Ļ) log gM? + Ļ log gMtāˆ’1 + ĪµM t

Observed variables

Output

gY?t = log Yt āˆ’ log Ytāˆ’1 + gAt

log Y ?t = log Y ?

tāˆ’1 + gY t

Prices

gP?t = log Pt āˆ’ log Ptāˆ’1 + gMtāˆ’1 āˆ’ gAt

log P?t = log P?

tāˆ’1 + gpt

Difference with VAR analysis

I If the true model is a Vector Error Correction Model,estimating a VAR in first difference implies amispecificaton.

I This isnā€™t the case with structural modeling, because thevariables in level are among unobserved components.

Estimation strategy

I After (logā€“)linearization around the deterministic steadystate, the linear rational expectation model needs to besolved (AIM, Kind and Watson, Klein, Sims)

I The model can then be written in state space formI It is an unobserved component modelI Its likelihood is computed via the Kalman filterI These steps are common to Maximum Likelihood

estimation or a Bayesian approach

State space representation (I)

After solution of a first order approximation of a DSGE model,we obtain a linear dynamic model of the form

yt = y + gy ystāˆ’1 + guut

the vector ystāˆ’1 contains the endogenous state variables, the

predetermined variables among yt , with as many lags asrequired by the dynamic of the model.

State space representation (II)

The transition equation describes the dynamics of the statevariables:

y (1)t = g(1)

y y (1)tāˆ’1 + g(1)

u ut

where g(1)x and g(1)

u are the appropriate submatrices of gx andgu, respectively. y (1)

t is the union of the state variables yst ,

including all necessary lags, and y?t , the observed variables.

The g(1)y matrix can have eigenvalues equal to one.

Other variables

The variables that are neither predetermined nor observed,y (2)

t , play no role in the estimation of the parameters, and theirfiltered or smoothed values can be recovered from the filteredor smoothed values of y (1)

t thanks to the following relationship:

y (2)t = g(2)

x y (1)tāˆ’1 + g(2)

u ut

Measurement equation

We consider measurement equations of the type

y?t = y + My (1)

t + xt + Īµt

where M is the selection matrix that recovers y?t out of y (1)

t , xt

is a deterministic component1 and Īµt is a vector ofmeasurement errors.

1Currently, Dynare only accomodates linear trends

Variances

In addition, we have, the two following covariance matrices:

E(utuā€²

t

)= Q

E(ĪµtĪµ

ā€²t

)= H

Unit root processes

I find a natural representation in the state space formI the deterministic components of random walk with drift is

better included in the measurement equation

Initialization of the Kalman filter

I stationary variables: unconditional mean and varianceI nonstationary variables: initial point is an additional

parameter of the model (De Jong), arbitrary initial pointand infinite variance (Durbin and Koopman).

I Durbin and Koopman strategy: compute the limit of theKalman filter equations when initial variance tends towardinfinity.

I Problem with cointegrated models.

The Schur decomposition of the transition matrixIn the transition equation

y (1)t = g(1)

x y (1)tāˆ’1 + g(1)

u ut

we propose to perform a reordered real Schur decompositionon transition matrix gx :

g(1)x = W

[T11 T12

0 T22

]W ā€²

where T11 and T22 and quasi upperā€“triangular matrices and Wis an orthogonal matrix. The reordering is such that theabsolute value of the eigenvalues of T11 are all equal to 1 whilethe eigenvalues of T22 are all smaller than 1 in modulus. Whenthere are cointegrating relationships between the statevariables, there are obviously less unit roots in the system thanthe number of nonstationary variables in the model. Thedimension of T11 reflects this fact.

New state space formulation

It is then natural to rewrite the transition equation intransformed variables as

W ā€²y (1)t = TW ā€²y (1)

tāˆ’1 + W ā€²guut

and the measurement equation as

y?t = MW ā€²y (1)

t + Īµt

Note that in this formulation of the state space representation,only the state variables are transformed, structural shocks andmeasurement errors stay the same as in the originalformulation.

New notations

In what follows, we write the state space model as

yt = Zat + Īµt

at = Tatāˆ’1 + RĪ·t

E(ĪµtĪµ

ā€²t

)= H

E(Ī·tĪ·

ā€²t

)= Q

Equivalence in notation

yt = y?t

Z = MW

at = W ā€²y (1)

WTW ā€² = gx

R = W ā€²gu

Ī·t = ut

Diffuse initialization of the filter

The initial values for the state variables are a0 = 0. This is theunconditional mean of the stationary elements in at and has noeffects for the nonstationary ones.Following Durbin and Koopman, we set

P0 = Pāˆž0 + P?

0

=

[I 00 0

]+

[0 00 Ī£a

]

where I is an identity matrix of the same dimensions as T11. Itcorresponds to the diffuse prior on the initial values of thestochastic trends. Ī£a is the covariance matrix of the stationarypart of at .

Computation of Ī£a

Ī£a is the covariance matrix of at with dynamics

at = T12atāˆ’1 + RĪ·t

orĪ£a = T12Ī£aT ā€²

12 + RQRā€²

where R is the conforming submatrix of R. As T12 is alreadyquasi upperā€“triangular, it is only necessary to use part of theusual algorithm for the Lyapunov equation.

The diffuse step

While Pāˆžt is different from zero, the filter (and smoother) is in a

diffuse step. When t > d , the procedure falls back on standardrecursions.At t = 0

E(a1|0

)= P1|0 = Pāˆž

1|0 + P?1|0

Recursion

Fāˆžt = ZPāˆž

t|tāˆ’1Z ā€²

F ?

t = ZP?

t Z ā€² + H

Kāˆžt = TPāˆž

t|tāˆ’1Z ā€² (Fāˆžt )āˆ’1

K ?

t = T(

P?

t|tāˆ’1Z ā€² (Fāˆžt )

āˆ’1āˆ’ Pāˆž

t|tāˆ’1Z ā€² (Fāˆžt )

āˆ’1 F ?

t (Fāˆžt )

āˆ’1)

vt = yt āˆ’ Zat|tāˆ’1

at+1|t = Tat|tāˆ’1 + Kāˆžt vt

Pāˆžt+1|t = TPāˆž

t|tāˆ’1

(T ā€² āˆ’ Z ā€²Kāˆž

tā€²)

P?

t+1|t = āˆ’TPāˆžt|tāˆ’1Z ā€²K ?

tā€² + TP?

t|tāˆ’1

(T ā€² āˆ’ Z ā€²Kāˆž

tā€²)+ RQRā€²

where at|tāˆ’1 = Etāˆ’1at .

Logā€“likelihood

The logā€“likelihood is given by

āˆ’nT2

ln 2Ļ€ āˆ’12

Tāˆ‘

t=1

ln |Ft | āˆ’12

Tāˆ‘

t=1

v ā€²t F

āˆ’1t vt

Conclusion

I It is possible to specify growth trends in business cycle anddeal with them in a model consistent manner.

I More work is necessary to compare the advantages of thedifferent methods in practice.