Solving a Dynamic Equilibrium Model, Exams of Stochastic Processes

A dynamic optimization problem related to a basic RBC model. It explains how to find a deterministic solution and a steady state solution. It also discusses linearization and policy functions. available code and an alternative Dynare. It concludes with steady state equations. useful for students studying macroeconomics, dynamic optimization, and DSGE models.

Typology: Exams

2022/2023

Uploaded on 03/14/2023

kaijiang
kaijiang 🇺🇸

4.5

(8)

280 documents

1 / 171

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Solving a Dynamic Equilibrium Model
Jes´us Fern´andez-Villaverde
University of Pennsylvania
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Solving a Dynamic Equilibrium Model and more Exams Stochastic Processes in PDF only on Docsity!

Solving a Dynamic Equilibrium Model

Jes´

us Fern´

andez-Villaverde

University of Pennsylvania

1

Basic RBC

•^

Social Planner’s problem:

max

E

∞X t=

t β

log

ct

ψ

log (

lt

ct

k

t+

αk t

ze t^ lt

− α^

δ

)^ k

,^ t

∀^

t >

zt

ρz

t−

1

ε

,^ t

εt

N

,^ σ

•^

This is a dynamic optimization problem.

2

Equilibrium ConditionsFrom the household problem+

firms’s problem+aggregate conditions:

(^1) ct

β

E

( t

ct

³^ 1 +

α

αk − 1 t^

(e

zt lt

− α^

δ

ψ

ct 1

lt

α

)^ k

α t^

(e

zt^ lt

−α

−l

1 t

ct

k

t+

k

α t^

(e

zt^ l)t

1 −

α^

δ

)^ k

t

zt

ρ

zt

− 1

ε

t

4

Finding a Deterministic Solution

•^

We search for the

fi

rst component of the solution.

•^

If^

σ^

,^ the equilibrium conditions are:

(^1) ct

β

ct

³^ 1 +

α

αk − 1 t^

(^1) l −α t

δ

´

ψ

ct 1

lt

α

)^ k

αl t^

− α t

ct

k

t+

k

αl t^

1 −

α t^

δ )^ k

t

5

Solving the Steady StateSolution:

k^

μ Ω

ϕ

μ

l^

ϕ k

c^

k

y^

αk

(^1) l −α

where

ϕ

³ 1 α

³^1 β

δ ´´

1 1 −

α^ ,

ϕ

1 −

α^

δ and

μ

(^1) ψ

α

)^ ϕ

− α.

7

Linearization I

•^

Loglinearization or linearization?

-^

Advantages and disadvantages

-^

We can linearize and perform later a change of variables.

8

Linearization IIIWe get:^ −

1 c^

(c

−t

c) =

E

( t

1 ( c^

ct

c

α

α

)^ β

y zk^

t+

α (α

β

y 2 k

(k

t+

k

α

α

)^ β

y kl

(l

t+

l)

)

1 c^

(c

−t

c) +

l)

(l

−t

l) = (

α

)^ z

+t

α k

kt

k

)^ −

α l

lt^

l)

(c

−t

c

kt

k

 

y μ^ (

α

)^ z

+t

α k

kt

k

(

− α) l

(l

−t

l)

δ

kt

k

 

zt

ρ

zt

− 1

ε

t

10

Rewriting the System IOr: α

ct

c

E

{t α

ct

c

α

z 2 t+

α

kt

k

α

lt+

l)

(c

−t

c

α

z 5

+t

α k

c^ (

kt

k

α

lt^

l)

(c

−t

c

kt

k

α

z 7

+t

α

kt

k

α

lt^

l)

zt

ρ

zt

− 1

ε

t

11

Rewriting the System IIIAfter some algebra the system is reduced to:

A

(k

t+

k

B

(k

−t

k

C

(l

−t

l) +

Dz

= 0t

E

(t

G

(k

t+

k

H

(k

−t

k

J

(l

t+

l) +

K

(l

−t

l) +

Lz

t+

Mz

) = 0t

E

zt t+

ρ

zt

13

Guess Policy FunctionsWe guess policy functions of the form (

kt

k

P

kt

k

Qz

t^ and

(l

−t

l) =

R

(k

−t

k

Sz

, plug them in and get:t

A

(P

kt

k

Qz

) +t

B

(k

−t

k

C

(R

(k

−t

k

Sz

) +t

Dz

= 0t

G

(P

kt

k

Qz

) +t

H

(k

−t

k

J

R

(P

kt

k

Qz

) +t

SNz

)t

K

(R

(k

−t

k

Sz

) + (t

LN

M

)^ z

= 0t

14

Solving the System II

•^

We have a system of four equations on four unknowns.

-^

To solve it note that

R

(^1) C

AP

B

(^1) C

AP

(^1) C

B

•^

Then:

P^

2

μ

B A

K J

GC JA

P^

KB

HC

JA

a quadratic equation on

P

16

Solving the System III

•^

We have two solutions: P

 

B A

K J

GC JA

à μ

B A

K J

GC JA

¶^2

KB

HC

JA

!^0

.^5  

one stable and another unstable.

-^

If we pick the stable root and

fi

nd

R

(^1) C^

(AP

B

) we have to a

system of two linear equations on two unknowns with solution:

Q

D

(JN

K

CLN

CM

AJN

AK

CG

CJR

S^

ALN

AM

DG

DJR

AJN

AK

CG

CJR

17

General Structure of Linearized SystemGiven

m

states

x

, nt

controls

y

,^ t

and

k

exogenous stochastic processes

zt

, we have:

Ax

+t

Bx

t−

1

Cy

+t

Dz

= 0t

E

(t F x

t+

Gx

+t

Hx

t−

1

Jy

t+

Ky

+t

Lz

t+

Mz

) = 0t

E

zt t+

Nz

t

where

C

is of size

n, l

n

and of rank

n,

that

F

is of size (

m

n

l)

×

n,

and that

N

has only stable eigenvalues.

19

Policy FunctionsWe guess policy functions of the form:

xt

P x

t−

1

Qz

t

yt

Rx

t−

1

Sz

t

where

P, Q, R,

and

S

are matrices such that the computed equilibrium is

stable.

20