Docsity

Heterogeneous agent models and their equilibrium, Lecture notes of Dynamics

Partial preview of the text

Download Heterogeneous agent models and their equilibrium and more Lecture notes Dynamics in PDF only on Docsity!

Heterogeneous agent models

Jes´us Fern´andez-Villaverde^1 and Galo Nu˜no^2

October 15, 2021 (^1) University of Pennsylvania

(^2) Banco de Espa˜na

Prelude: the Kolmogorov

Forward equation

Example 1: A diffusion

  • Let Xt be a stochastic process given by the SDE:

dXt = μt (Xt ) dt + σt (Xt ) dWt , X 0 = x 0.

  • The evolution of the associated density is given by:

∂f ∂t

= A∗f = −

∂x

[μt (x) ft (x)] +

∂^2

∂x^2

[

σ^2 t (x) ft (x)

]

with initial value f 0 (x) = δ (x − x 0 ).

Example 2: A Markov chain

  • Let Xt be a stochastic process given by:

dXt = μ (Xt , Zt ) dt, X 0 = x, Z 0 = z 1.

where Zt is a two-state continuous-time Markov Chain Zt ∈ {z 1 , z 2 } with intensities λ 1 and λ 2.

  • The evolution of the density is given by:

∂fit ∂t

= A∗f = − ∂ ∂x

[μ (x, zi ) fit (x)] −λi fit (x) + λj fjt (x),

i, j = 1, 2 , j 6 = i, with initial value f 10 (x) = δ (x − x 0 ) , f 20 (x) = 0.

The workhorse model of heterogeneity

  • Extension of the neoclassical model with a representative agent/complete markets to heterogeneous agents/incomplete markets.
  • Basic framework to analyze questions related to income and wealth distributions (inequality, transmission of monetary and fiscal policies, etc.).
  • Methodology can be easily extended to heterogeneous firms, heterogeneous countries, heterogeneous banks, ...
  • Perfect foresight first (aggregate shocks later).

Hugget model with Poisson shocks: Households

  • There is a continuum of mass unity of agents that are heterogeneous in their wealth a and endowment z.
  • Households solve: max {ct }∞ t=

E 0

[∫ ∞

0

e−ρt^ u(ct )dt

]

subject to dat = (zt + rt at − ct ) dt, a 0 = ¯a. where idiosyncratic endowment zt ∈ {z 1 , z 2 } follows a Markov chain with intensities z 1 → z 2 : λ 1 and z 2 → z 1 : λ 2.

  • Exogenous borrowing limit: at ≥ −φ < 0.

Competitive equilibrium

A competitive equilibrium is composed by an interest rate rt , a value function vt (a, z), a consumption policy ct (a, z), and a density ft (a, z) such that:

  1. Given r , v is the solution of the household’s HJB equation and the optimal control is c:

ρvit (a) =

∂v ∂t

  • max c

u(c) + (zi + rt a − c)

∂v ∂a

  • λi (vjt (a) − vit (a)).
  1. Given r and c, f is the solution of the KF equation , i, j = 1, 2 , j 6 = i, ∂fit ∂t

∂a

[(zi + rt a − cit (a)) fit (x)] − λi fit (a) + λj fjt (a).

  1. Given f , the capital market clears

i=

afit (a)da = 0.

Stationary equilibrium (deterministic steady state)

  • A stationary equilibrium of this model is a time-invariant competitive equilibrium.
  • Characterized by three equations (stationary HJB + KF +market clearing):

ρvi (a) = max c

u(c) + (zi + r a − c)

∂v ∂a

  • λi (vj (a) − vi (a))

∂a

[(zi + r a − ci (a)) fi (x)] − λi fi (a) + λj fj (a)

∑^2

i=

afi (a)da = 0

Solving the KF equation using the finite difference method, I

  • We have to solve the ODE 0 = − (^) dxd [(zi + ra − ci (a)) fi (x)] − λi fi (a) + λj fj (a), using finite differences. We use the notation fi,j ≡ fi (aj ).
  • The ODE is approximated by:

fi,j si,j,F 1 si,j,F > 0 − fi,j− 1 si,j− 1 ,F 1 si,j− 1 ,F > 0 ∆a −

fi,j+1si,j+1,B 1 si,j+1,B < 0 − fi,j si,j,B 1 si,j,B < 0 ∆a −λi fi,j + λ−i f−i,j

Solving the KF equation using the finite difference method, II

  • Collecting terms, we obtain:

fi,j− 1 zi,j + fi,j+1xi,j + fi,j yi,j + λ−i f−i,j = 0.

where:

xi,j ≡ −

si,j,B 1 si,j,B < 0 ∆a

yi,j ≡ −

si,j,F 1 si,j,F > 0 ∆a

si,j,B 1 si,j,B < 0 ∆a

− λi ,

zi,j ≡

si,j,F 1 si,j,F > 0 ∆a

Adjoint operator = Transpose matrix

  • Advantage of finite difference. Notice how the system

ρv = u(c) + Av.

A∗f = 0, is approximated by: ρv = u + Av.

AT^ f = 0.

Results

A condition for equilibrium is r < ρ.

-2 0 2 4

0

1

2

3

4

0.85-2 0 2 4

1

-0.1-2 0 2 4

-0.

0

(^0) -2 0 2 4

Low zHigh z

Households

  • Assume now that labor productivity evolves according to a Ornstein–Uhlenbeck process:

dzt = θ(ˆz − zt )dt + σdBt ,

on a bounded interval [z ¯

, z¯] with z ¯

≥ 0, where Bt is a Brownian motion.

  • The HJB is now:

ρVt (a, z) =

∂V

∂t

  • max c≥ 0 u(c) + [wt z + rt a − c]

∂V

∂a

  • θ(ˆz − z)

∂V

∂z +^

σ^2 2

∂^2 V

∂z^2.

Market clearing and the KF equation

  • Aggregate productivity normalize to one: E [zt ] = 1.
  • Total assets equal aggregate capital: ∫ aft (a, z)dadz = Kt ,

where ft (a, z) is the wealth-productivity density.

  • The KF equation:

∂f ∂t =^ −^

∂a ([wt^ z^ +^ rt^ a^ −^ c^ (a,^ z)]^ ft^ (a,^ z)) − ∂ ∂z

(θ(ˆz − z)ft (a, z)) +^1 2

∂^2

∂z^2

σ^2 ft (a, z)