taking a model to the computer martin ellison university of warwick and cepr bank of england,...

24
Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Upload: ursula-sims

Post on 13-Jan-2016

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Taking a modelto the computer

Martin Ellison

University of Warwick and CEPR

Bank of England, December 2005

Page 2: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Firms

Baseline DSGE model

Households

Monetaryauthority

ttt vi ˆˆ

11

1)1

(')('t

tt

itCUE

tCU

)ˆˆ(

)1)(1(ˆ 1

tttt Ex

Page 3: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Households

Two simplifying assumptions:

CRRA utility function

1)(

1t

t

CCU tt CCU )('

tt YC No capital

Page 4: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Dynamic IS curve

11 1

1

t

tttt

iYEY

Non-linear relationship

Difficult for the computer to handle

We need a simpler expression

Page 5: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Log-linear approximation

Begin by taking logarithms of dynamic IS curve

11 1

1lnlnln

t

tttt

iYEY

Problem is last term on right hand side

Page 6: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Properties of logarithms

...432

)1ln(432

zzz

zz 11 z

)1ln()()1(ln zEzEzE

11

11 1

1ln

1

1ln

t

ttt

t

ttt

iYE

iYE

Taylor series expansion of logarithmic function

To a first order (linear) approximation

Applied to dynamic IS curve

Page 7: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Log-linearisation

)1ln()1ln(lnlnln 11 tttttt EiYEY

ln)1ln(lnlnln iYY

))1(ln()1ln()ln(ln)ln(ln 11 tttttt EiYYEYY

Log-linear expansion of dynamic IS curve

Steady-state values (more later)

(1) – (2)

(1)

(2)

Page 8: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Deviations from steady state

What is YYt lnln ?

tttt

t ZZ

ZZ

Z

Z

Z

ZZZ ˆ1lnlnln

In case of output, is output gap, YYt lnln tx̂

percentage deviation of Zt from steady state Z

Page 9: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Log-linearised IS curve

)ˆˆ(ˆˆ 11

1

tttttt EixEx 1ˆˆ ttt Ei

1ˆ tt xE

tx̂

Slope = -σ

Page 10: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Advanced log-linearisation

The dynamic IS curve was relatively easy to log-linearise

For more complicated equations, need to apply following formula

)(),(

),()(

),(

),(),(ln),(ln ,, yy

yxf

yxfxx

yxf

yxfyxfyxf yxyyxx

Page 11: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Firms

Previously solved for firm behaviour directly in log-linearised form. Original model is in Walsh (chapter 5).

Page 12: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Aggregate price level

Original equation Log-linearised version

11

11 )1( titt ppp 1ˆˆ)1(ˆ titt ppp

Page 13: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Optimal price setting

Original equation Log-linearised version

0

1

1

0

*1

1

i t

itit

iit

i t

itit

iit

t

it

PP

CE

PP

pCE

P

P it

1* ˆˆ)1(ˆ itttit pEpp

Page 14: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Myopic price

Original equation Log-linearised version

ttt mcpp

1*

ttt cmpp ˆˆˆ *

Page 15: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Marginal cost

Original equation Log-linearised version

tt

t mcP

W

tt wcm ˆˆ

Page 16: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Wages

Original equation Log-linearised version

tt

t

t

t

NC

C

N

P

W

t

tt xw ˆ1

ˆ

Page 17: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Monetary authority

ttt vi ˆˆWe assumed

ttt vii lnlnlnln 1Equivalent to

Very similar to linear rule if it small

Page 18: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Firms

Log-linearised DSGE model

Households

Monetaryauthority

ttt vi ˆˆ

)ˆˆ(ˆˆ 11

1

tttttt EixEx )ˆˆ()1)(1(

ˆ 1

tttt Ex

Page 19: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Assume for monetary authority

From household

Steady state

Need to return to original equations to calculate steady-state

01

i

0

1

1

iYY

Page 20: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Steady state calculation

From firm

1

*

1

1

Y

P

Wmc

PPP i

Page 21: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Full DSGE model

)1)(1(

ˆˆ

ˆˆˆ

)ˆˆ(ˆˆ

1

11

1

ttt

tttt

tttttt

vi

xE

EixEx

Page 22: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Alternative representation

tttt

ttttttt

xE

vxExE

ˆˆˆ

ˆˆˆˆ

1

111

11

tt

t

tt

tt vx

E

xE

ˆ

1

ˆ

0

1 11

1

11

Page 23: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

State-space form

10110 tttt vBXAXEA

Generalised state-space form

Models of this form (generalised linear rational expectations models) can be solved relatively easily by computer

Page 24: Taking a model to the computer Martin Ellison University of Warwick and CEPR Bank of England, December 2005

Next steps

Derive a solution for log-linearised models

Blanchard-Kahn technique