wealth distribution over the business cycle a mean-field ... · heterogeneous agents models – a...

139
Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach Thomas Bourany 1,2 1 Sciences Po and UPMC-Sorbonne University 2 Under the supervision of Yves Achdou at Paris-Diderot University Workshop MiMh – OFCE – March, 13th. Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 1 / 73

Upload: others

Post on 22-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Wealth distribution over the business cycleA mean-field game approach

Thomas Bourany1,2

1Sciences Po and UPMC-Sorbonne University

2Under the supervision of Yves Achdou at Paris-Diderot University

Workshop MiMh – OFCE – March, 13th.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 1 / 73

Page 2: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Introduction and motivation

Introduction

I Recent development in macroeconomics : the incorporation ofagent heterogeneity in standard models :

• The Aiyagari-Bewley-Huggett model,enriching the Brock-Mirman (1972) Stochastic Growth model

• The HANK modelsenriching DSGE models, Woodford (2003), Gali (2008)

• Many others...

I Why is this important ?• Matching micro-data using macro models,

e.g. the wealth and income distribution• Studying welfare implication of shocks and policies• Micro matters for macro :

we reached the limits of representative agents model.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 2 / 73

Page 3: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Introduction and motivation

Introduction

I Recent development in macroeconomics : the incorporation ofagent heterogeneity in standard models :

• The Aiyagari-Bewley-Huggett model,enriching the Brock-Mirman (1972) Stochastic Growth model

• The HANK modelsenriching DSGE models, Woodford (2003), Gali (2008)

• Many others...I Why is this important ?

• Matching micro-data using macro models,e.g. the wealth and income distribution

• Studying welfare implication of shocks and policies• Micro matters for macro :

we reached the limits of representative agents model.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 2 / 73

Page 4: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Introduction and motivation

Introduction - toward mean-field games

I What are the limits of conventional HA theories?• The shape of the distribution (wealth/income/consumption) is only

a side effect of the models• No clear understanding of the evolution of the distribution

I Why Mean-Field Games could be useful ?

• Recent : developed in 2006-2008 by P. L. Lions and J. M. Lasry.• Perfectly suited to study the interaction between an agent and rest

of the distribution (micro matters for macro and conversely !)• Allow to study the dynamics of the distribution

I High entry cost (tools from functional analysis and stochastic calculus),but obtain new results easily.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 3 / 73

Page 5: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Introduction and motivation

Introduction - toward mean-field games

I What are the limits of conventional HA theories?• The shape of the distribution (wealth/income/consumption) is only

a side effect of the models• No clear understanding of the evolution of the distribution

I Why Mean-Field Games could be useful ?

• Recent : developed in 2006-2008 by P. L. Lions and J. M. Lasry.• Perfectly suited to study the interaction between an agent and rest

of the distribution (micro matters for macro and conversely !)• Allow to study the dynamics of the distribution

I High entry cost (tools from functional analysis and stochastic calculus),but obtain new results easily.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 3 / 73

Page 6: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Introduction and motivation

Introduction - toward mean-field games

I What are the limits of conventional HA theories?• The shape of the distribution (wealth/income/consumption) is only

a side effect of the models• No clear understanding of the evolution of the distribution

I Why Mean-Field Games could be useful ?• Recent : developed in 2006-2008 by P. L. Lions and J. M. Lasry.• Perfectly suited to study the interaction between an agent and rest

of the distribution (micro matters for macro and conversely !)

• Allow to study the dynamics of the distribution

I High entry cost (tools from functional analysis and stochastic calculus),but obtain new results easily.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 3 / 73

Page 7: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Introduction and motivation

Introduction - toward mean-field games

I What are the limits of conventional HA theories?• The shape of the distribution (wealth/income/consumption) is only

a side effect of the models• No clear understanding of the evolution of the distribution

I Why Mean-Field Games could be useful ?• Recent : developed in 2006-2008 by P. L. Lions and J. M. Lasry.• Perfectly suited to study the interaction between an agent and rest

of the distribution (micro matters for macro and conversely !)• Allow to study the dynamics of the distribution

I High entry cost (tools from functional analysis and stochastic calculus),but obtain new results easily.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 3 / 73

Page 8: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Introduction and motivation

Introduction - toward mean-field games

I What are the limits of conventional HA theories?• The shape of the distribution (wealth/income/consumption) is only

a side effect of the models• No clear understanding of the evolution of the distribution

I Why Mean-Field Games could be useful ?• Recent : developed in 2006-2008 by P. L. Lions and J. M. Lasry.• Perfectly suited to study the interaction between an agent and rest

of the distribution (micro matters for macro and conversely !)• Allow to study the dynamics of the distribution

I High entry cost (tools from functional analysis and stochastic calculus),but obtain new results easily.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 3 / 73

Page 9: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Introduction and motivation

This presentation : outline

Introduction and motivation

Stochastic control and Mean-Field Games : an informal presentation

The Aiyagari-Bewley model : Achdou et al. (2017)

The algorithm

Krusell-Smith model : adding aggregate shocks

Limits and future research

Appendices : more on stochastic calculus

Appendices : more on operator theory

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 4 / 73

Page 10: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

Mean-Field Games – what is it ?I A Nash equilibrium of a differential game, when the number of

(symmetric and small) players become very large• Analogy with ”mean field” theory from particle physics

I It will consist of a system of two Partial Differential Equation (PDE) given by two building blocks :

• A stochastic control problem : the agent optimize its decisions,given the state of the economy

I Identical to usual models in economics, but in continuous time.I Yield the first PDE : the Hamilton-Jacobi-Bellman equation (HJB)

• The evolution of the distribution of agents, when the agents controlare given

I One can characterize the agent distributionI Yield the second PDE : the Fokker-Planck (Kolmogorov-Forward)

equation (FP)I I will do a brief lecture on these two points

• Stochastic control and the HJB• Mean-Field theory and the FP.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 5 / 73

Page 11: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

Mean-Field Games – what is it ?I A Nash equilibrium of a differential game, when the number of

(symmetric and small) players become very large• Analogy with ”mean field” theory from particle physics

I It will consist of a system of two Partial Differential Equation (PDE) given by two building blocks :

• A stochastic control problem : the agent optimize its decisions,given the state of the economy

I Identical to usual models in economics, but in continuous time.I Yield the first PDE : the Hamilton-Jacobi-Bellman equation (HJB)

• The evolution of the distribution of agents, when the agents controlare given

I One can characterize the agent distributionI Yield the second PDE : the Fokker-Planck (Kolmogorov-Forward)

equation (FP)I I will do a brief lecture on these two points

• Stochastic control and the HJB• Mean-Field theory and the FP.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 5 / 73

Page 12: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

Mean-Field Games – what is it ?I A Nash equilibrium of a differential game, when the number of

(symmetric and small) players become very large• Analogy with ”mean field” theory from particle physics

I It will consist of a system of two Partial Differential Equation (PDE) given by two building blocks :

• A stochastic control problem : the agent optimize its decisions,given the state of the economy

I Identical to usual models in economics, but in continuous time.I Yield the first PDE : the Hamilton-Jacobi-Bellman equation (HJB)

• The evolution of the distribution of agents, when the agents controlare given

I One can characterize the agent distributionI Yield the second PDE : the Fokker-Planck (Kolmogorov-Forward)

equation (FP)

I I will do a brief lecture on these two points• Stochastic control and the HJB• Mean-Field theory and the FP.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 5 / 73

Page 13: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

Mean-Field Games – what is it ?I A Nash equilibrium of a differential game, when the number of

(symmetric and small) players become very large• Analogy with ”mean field” theory from particle physics

I It will consist of a system of two Partial Differential Equation (PDE) given by two building blocks :

• A stochastic control problem : the agent optimize its decisions,given the state of the economy

I Identical to usual models in economics, but in continuous time.I Yield the first PDE : the Hamilton-Jacobi-Bellman equation (HJB)

• The evolution of the distribution of agents, when the agents controlare given

I One can characterize the agent distributionI Yield the second PDE : the Fokker-Planck (Kolmogorov-Forward)

equation (FP)I I will do a brief lecture on these two points

• Stochastic control and the HJB• Mean-Field theory and the FP.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 5 / 73

Page 14: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The stochastic control problem – the HJB equationI The aim of the agent is to maximize its objective function :

v(t0,Xt0) = supαtT

t0

Et0( ∫ T

t0L(t,Xt, αt)dt + g(XT)

)where v is the value function of the agent (at time t0), L and G resp.the running gain and terminal gain.

I αt the (adapted) control variable and Xt is the state variable,(unique) solution of SDE :

dXt = b(t,Xt, αt)dt + σ(t,Xt, αt)dBt

Xt0 = x0 (t0, x0) ∈ [0,T]× Rd

where b is the drift, σ the variance and Bt a Brownian motionMore on this .

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 6 / 73

Page 15: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The stochastic control problem – the HJB equationI The aim of the agent is to maximize its objective function :

v(t0,Xt0) = supαtT

t0

Et0( ∫ T

t0L(t,Xt, αt)dt + g(XT)

)where v is the value function of the agent (at time t0), L and G resp.the running gain and terminal gain.

I αt the (adapted) control variable and Xt is the state variable,(unique) solution of SDE :

dXt = b(t,Xt, αt)dt + σ(t,Xt, αt)dBt

Xt0 = x0 (t0, x0) ∈ [0,T]× Rd

where b is the drift, σ the variance and Bt a Brownian motionMore on this .

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 6 / 73

Page 16: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The stochastic control problem – the HJB equationI Here, Bellman dynamic programming principle holds :

v(t0,Xt0 ) = supαtT

t0

Et0

( ∫ t1

t0

L(t,Xt, αt)dt + v(t1,Xt1 ))

I The idea is to study ”infinitesimal” variation in the value functionI Use the Ito formula here to compute the value fct at time t + h :

supαt

Et0

(∫ t0+h

t0L(t, x, αt)dt+

∫ t0+h

t0

∂t v+∇x v·bt+

12

Tr(σtσ

Tt D2

xx v)

dt+∫ t0+h

t0∇x v·σt dBt

)= 0

I The expectation of stochastic integral is zero E(∫ t

0 · · · dBs) = B0 = 0 bymartingale property.

I Take h→ 0, the integrand need to be zero for every t :

∂tv(t, x)+supa

L(t, x, a) +∇xv(t, x) · b(t, x, a) +

12

Tr(σ(t, x, a)σ(t, x, a)T D2

xxv(t, x))

= 0

I This is the Hamilton Jacobi Bellman (HJB) PDE!

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 7 / 73

Page 17: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The stochastic control problem – the HJB equationI Here, Bellman dynamic programming principle holds :

v(t0,Xt0 ) = supαtT

t0

Et0

( ∫ t1

t0

L(t,Xt, αt)dt + v(t1,Xt1 ))

I The idea is to study ”infinitesimal” variation in the value function

I Use the Ito formula here to compute the value fct at time t + h :

supαt

Et0

(∫ t0+h

t0L(t, x, αt)dt+

∫ t0+h

t0

∂t v+∇x v·bt+

12

Tr(σtσ

Tt D2

xx v)

dt+∫ t0+h

t0∇x v·σt dBt

)= 0

I The expectation of stochastic integral is zero E(∫ t

0 · · · dBs) = B0 = 0 bymartingale property.

I Take h→ 0, the integrand need to be zero for every t :

∂tv(t, x)+supa

L(t, x, a) +∇xv(t, x) · b(t, x, a) +

12

Tr(σ(t, x, a)σ(t, x, a)T D2

xxv(t, x))

= 0

I This is the Hamilton Jacobi Bellman (HJB) PDE!

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 7 / 73

Page 18: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The stochastic control problem – the HJB equationI Here, Bellman dynamic programming principle holds :

v(t0,Xt0 ) = supαtT

t0

Et0

( ∫ t1

t0

L(t,Xt, αt)dt + v(t1,Xt1 ))

I The idea is to study ”infinitesimal” variation in the value function• This will give us a Partial Differential Equation (PDE) : the

Hamilton-Jacobi-Equation (HJB)

I Use the Ito formula here to compute the value fct at time t + h :

supαt

Et0

(∫ t0+h

t0L(t, x, αt)dt+

∫ t0+h

t0

∂t v+∇x v·bt+

12

Tr(σtσ

Tt D2

xx v)

dt+∫ t0+h

t0∇x v·σt dBt

)= 0

I The expectation of stochastic integral is zero E(∫ t

0 · · · dBs) = B0 = 0 bymartingale property.

I Take h→ 0, the integrand need to be zero for every t :

∂tv(t, x)+supa

L(t, x, a) +∇xv(t, x) · b(t, x, a) +

12

Tr(σ(t, x, a)σ(t, x, a)T D2

xxv(t, x))

= 0

I This is the Hamilton Jacobi Bellman (HJB) PDE!

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 7 / 73

Page 19: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The stochastic control problem – the HJB equationI Here, Bellman dynamic programming principle holds :

v(t0,Xt0 ) = supαtT

t0

Et0

( ∫ t1

t0

L(t,Xt, αt)dt + v(t1,Xt1 ))

I The idea is to study ”infinitesimal” variation in the value function• This will give us a Partial Differential Equation (PDE) : the

Hamilton-Jacobi-Equation (HJB)

I Use the Ito formula here to compute the value fct at time t + h :

supαt

Et0

(∫ t0+h

t0L(t, x, αt)dt+

∫ t0+h

t0

∂t v+∇x v·bt+

12

Tr(σtσ

Tt D2

xx v)

dt+∫ t0+h

t0∇x v·σt dBt

)= 0

I The expectation of stochastic integral is zero E(∫ t

0 · · · dBs) = B0 = 0 bymartingale property.

I Take h→ 0, the integrand need to be zero for every t :

∂tv(t, x)+supa

L(t, x, a) +∇xv(t, x) · b(t, x, a) +

12

Tr(σ(t, x, a)σ(t, x, a)T D2

xxv(t, x))

= 0

I This is the Hamilton Jacobi Bellman (HJB) PDE!

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 7 / 73

Page 20: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The stochastic control problem – the HJB equationI Here, Bellman dynamic programming principle holds :

v(t0,Xt0 ) = supαtT

t0

Et0

( ∫ t1

t0

L(t,Xt, αt)dt + v(t1,Xt1 ))

I The idea is to study ”infinitesimal” variation in the value functionI Use the Ito formula here to compute the value fct at time t + h :

supαt

Et0

(∫ t0+h

t0L(t, x, αt)dt+

∫ t0+h

t0

∂t v+∇x v·bt+

12

Tr(σtσ

Tt D2

xx v)

dt+∫ t0+h

t0∇x v·σt dBt

)= 0

I The expectation of stochastic integral is zero E(∫ t

0 · · · dBs) = B0 = 0 bymartingale property.

I Take h→ 0, the integrand need to be zero for every t :

∂tv(t, x)+supa

L(t, x, a) +∇xv(t, x) · b(t, x, a) +

12

Tr(σ(t, x, a)σ(t, x, a)T D2

xxv(t, x))

= 0

I This is the Hamilton Jacobi Bellman (HJB) PDE!

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 7 / 73

Page 21: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The stochastic control problem – the HJB equationI Here, Bellman dynamic programming principle holds :

v(t0,Xt0 ) = supαtT

t0

Et0

( ∫ t1

t0

L(t,Xt, αt)dt + v(t1,Xt1 ))

I The idea is to study ”infinitesimal” variation in the value functionI Use the Ito formula here to compute the value fct at time t + h :

supαt

Et0

(∫ t0+h

t0L(t, x, αt)dt+

∫ t0+h

t0

∂t v+∇x v·bt+

12

Tr(σtσ

Tt D2

xx v)

dt+∫ t0+h

t0∇x v·σt dBt

)= 0

I The expectation of stochastic integral is zero E(∫ t

0 · · · dBs) = B0 = 0 bymartingale property.

I Take h→ 0, the integrand need to be zero for every t :

∂tv(t, x)+supa

L(t, x, a) +∇xv(t, x) · b(t, x, a) +

12

Tr(σ(t, x, a)σ(t, x, a)T D2

xxv(t, x))

= 0

I This is the Hamilton Jacobi Bellman (HJB) PDE!

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 7 / 73

Page 22: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The stochastic control problem – the HJB equationI Here, Bellman dynamic programming principle holds :

v(t0,Xt0 ) = supαtT

t0

Et0

( ∫ t1

t0

L(t,Xt, αt)dt + v(t1,Xt1 ))

I The idea is to study ”infinitesimal” variation in the value functionI Use the Ito formula here to compute the value fct at time t + h :

supαt

Et0

(∫ t0+h

t0L(t, x, αt)dt+

∫ t0+h

t0

∂t v+∇x v·bt+

12

Tr(σtσ

Tt D2

xx v)

dt+∫ t0+h

t0∇x v·σt dBt

)= 0

I The expectation of stochastic integral is zero E(∫ t

0 · · · dBs) = B0 = 0 bymartingale property.

I Take h→ 0, the integrand need to be zero for every t :

∂tv(t, x)+supa

L(t, x, a) +∇xv(t, x) · b(t, x, a) +

12

Tr(σ(t, x, a)σ(t, x, a)T D2

xxv(t, x))

= 0

I This is the Hamilton Jacobi Bellman (HJB) PDE!

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 7 / 73

Page 23: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The stochastic control problem – the HJB equationI Here, Bellman dynamic programming principle holds :

v(t0,Xt0 ) = supαtT

t0

Et0

( ∫ t1

t0

L(t,Xt, αt)dt + v(t1,Xt1 ))

I The idea is to study ”infinitesimal” variation in the value functionI Use the Ito formula here to compute the value fct at time t + h :

supαt

Et0

(∫ t0+h

t0L(t, x, αt)dt+

∫ t0+h

t0

∂t v+∇x v·bt+

12

Tr(σtσ

Tt D2

xx v)

dt+∫ t0+h

t0∇x v·σt dBt

)= 0

I The expectation of stochastic integral is zero E(∫ t

0 · · · dBs) = B0 = 0 bymartingale property.

I Take h→ 0, the integrand need to be zero for every t :

∂tv(t, x)+supa

L(t, x, a) +∇xv(t, x) · b(t, x, a) +

12

Tr(σ(t, x, a)σ(t, x, a)T D2

xxv(t, x))

= 0

I This is the Hamilton Jacobi Bellman (HJB) PDE!

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 7 / 73

Page 24: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The stochastic control problem – the HJB equation

I The Hamilton-Jacobi-Bellman :

∂tv(t, x) + supa

L(t, x, a) +∇xv(t, x)· b +

12

Tr(σσT D2

xxv(t, x))

= 0

I Sometimes, mathematicians write it with ”Hamiltonian”

H(t, x, p,M) = supa

L(t, x, a) + p · b +

12

Tr(σσT M

)= 0

I and the HJB rewrites :

∂tv(t, x) + H(t, x,∇xv,D2xxv) = 0

I The optimal control can be given in feedback form by the First-Order Conditions(FOC).

I Plenty of different applications

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 8 / 73

Page 25: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The stochastic control problem – the HJB equation

I The Hamilton-Jacobi-Bellman :

∂tv(t, x) + supa

L(t, x, a) +∇xv(t, x)· b +

12

Tr(σσT D2

xxv(t, x))

= 0

I Sometimes, mathematicians write it with ”Hamiltonian”

H(t, x, p,M) = supa

L(t, x, a) + p · b +

12

Tr(σσT M

)= 0

I and the HJB rewrites :

∂tv(t, x) + H(t, x,∇xv,D2xxv) = 0

I The optimal control can be given in feedback form by the First-Order Conditions(FOC).

I Plenty of different applications

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 8 / 73

Page 26: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The stochastic control problem – ApplicationsI Methods to find solutions :

• Verification methods (guess and verify)• What if the fct v is not smooth? (not C1,2)→ Viscosity solutions : Crandall and Lions (1989)

I Various applications in finance• One of the first applications : Merton portfolio selection problem• Optimal liquidation problems• Transaction costs and liquidity risk models• Applications in incomplete markets : super-replication of options

(uncertain volatility models)I Many applications in economics !

• Firm investment problems• Optimal investment/consumption strategies• Stochastic growth model and . . .RBC model !

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 9 / 73

Page 27: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The stochastic control problem – ApplicationsI Methods to find solutions :

• Verification methods (guess and verify)• What if the fct v is not smooth? (not C1,2)→ Viscosity solutions : Crandall and Lions (1989)

I Various applications in finance• One of the first applications : Merton portfolio selection problem• Optimal liquidation problems• Transaction costs and liquidity risk models• Applications in incomplete markets : super-replication of options

(uncertain volatility models)

I Many applications in economics !• Firm investment problems• Optimal investment/consumption strategies• Stochastic growth model and . . .RBC model !

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 9 / 73

Page 28: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The stochastic control problem – ApplicationsI Methods to find solutions :

• Verification methods (guess and verify)• What if the fct v is not smooth? (not C1,2)→ Viscosity solutions : Crandall and Lions (1989)

I Various applications in finance• One of the first applications : Merton portfolio selection problem• Optimal liquidation problems• Transaction costs and liquidity risk models• Applications in incomplete markets : super-replication of options

(uncertain volatility models)I Many applications in economics !

• Firm investment problems• Optimal investment/consumption strategies• Stochastic growth model and . . .RBC model !

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 9 / 73

Page 29: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

Stochastic control – Applications – RBC model

v(t0, k0, z0) = supctt≥0

Et0( ∫ ∞

t0e−ρtu(ct)dt

)dkt = (ztF(kt)− δkt − ct)dt

dzt = µ(z)dt + σ(z)dBt

I Applying the same methods, we can obtain the HJB :

ρv(k, z) = maxc

u(c) + ∂kv(k, z)[zF(k)− δk − c

]+ µ(z)∂zv(k, z) +

σ(z)2

2∂2

zzv(k, z)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 10 / 73

Page 30: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The evolution of the distribution – the Fokker-Planckequation

I The Fokker-Planck equation is known for a long time byphysicists :

• Used to compute the (probability) distribution of particles – e.g.fluid/gas – in a domain

• Each particle is subject to shocks (e.g. diffusion).• In plasma physics, it corresponds to the Boltzmann equation.

I Knowing the initial distribution, one can compute the evolution ofthe distribution over time. It is forward in time.

I After, I draw a direct link with stochastic calculus, through the useof the Feynman Kac formula

• Feynman Kac is backward in time.• Also used a lot in option pricing, e.g. Black-Scholes model

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 11 / 73

Page 31: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The evolution of the distribution – the Fokker-Planckequation

I The Fokker-Planck equation is known for a long time byphysicists :

• Used to compute the (probability) distribution of particles – e.g.fluid/gas – in a domain

• Each particle is subject to shocks (e.g. diffusion).• In plasma physics, it corresponds to the Boltzmann equation.

I Knowing the initial distribution, one can compute the evolution ofthe distribution over time. It is forward in time.

I After, I draw a direct link with stochastic calculus, through the useof the Feynman Kac formula

• Feynman Kac is backward in time.• Also used a lot in option pricing, e.g. Black-Scholes model

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 11 / 73

Page 32: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The evolution of the distribution – the Fokker-Planckequation

I Suppose we consider N interacting particles Xit , i = 1, . . . ,N

subject to shocks (again a SDE) :dXi

t = 1N

∑Nj=1 b(t,Xi

t ,Xjt)dt + σdBi

tXi

t0 = Y i

with Y i i.i.d. and Bit i.i.d. (independence is key !).

I What happen when N →∞?

• ’Simply’ use the law of large number !1N

∑Nj=1 ϕ(Zj)→

∫ϕ(z)mZ(dz) where mZ is the probability

measure of the r.v. Z :dXi

t =∫Rd b(t,Xi

t , y)m(dy)dt + σdBit

Xt0 = Y

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 12 / 73

Page 33: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The evolution of the distribution – the Fokker-Planckequation

I Suppose we consider N interacting particles Xit , i = 1, . . . ,N

subject to shocks (again a SDE) :dXi

t = 1N

∑Nj=1 b(t,Xi

t ,Xjt)dt + σdBi

tXi

t0 = Y i

with Y i i.i.d. and Bit i.i.d. (independence is key !).

I What happen when N →∞?

• ’Simply’ use the law of large number !1N

∑Nj=1 ϕ(Zj)→

∫ϕ(z)mZ(dz) where mZ is the probability

measure of the r.v. Z :dXi

t =∫Rd b(t,Xi

t , y)m(dy)dt + σdBit

Xt0 = Y

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 12 / 73

Page 34: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The evolution of the distribution – the Fokker-Planckequation

I Suppose we consider N interacting particles Xit , i = 1, . . . ,N

subject to shocks (again a SDE) :dXi

t = 1N

∑Nj=1 b(t,Xi

t ,Xjt)dt + σdBi

tXi

t0 = Y i

with Y i i.i.d. and Bit i.i.d. (independence is key !).

I What happen when N →∞?• ’Simply’ use the law of large number !

1N

∑Nj=1 ϕ(Zj)→

∫ϕ(z)mZ(dz) where mZ is the probability

measure of the r.v. Z :dXi

t =∫Rd b(t,Xi

t , y)m(dy)dt + σdBit

Xt0 = Y

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 12 / 73

Page 35: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The evolution of the distribution – the Fokker-Planckequation

I From the evolution of these particles, one can obtain theFokker-Planck :

∂tm(t, x)− div(b m(t, x)

)+ σ2

2 D2xx(m(t, x)

)= 0

m(0, x) = m0(x)

• More formally, derive the Ito’s formula for test function ϕ ∈ C∞c onXt, take the expectation and derive the ’adjoint’ operators on m.

More on adjoint operators

• (b∇·)? ≡ −div(b·) and (σσT∆·)∗ ≡ D2(σσT ·)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 13 / 73

Page 36: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The evolution of the distribution – the Fokker-Planckequation

I From the evolution of these particles, one can obtain theFokker-Planck :

∂tm(t, x)− div(b m(t, x)

)+ σ2

2 D2xx(m(t, x)

)= 0

m(0, x) = m0(x)

• More formally, derive the Ito’s formula for test function ϕ ∈ C∞c onXt, take the expectation and derive the ’adjoint’ operators on m.

More on adjoint operators

• (b∇·)? ≡ −div(b·) and (σσT∆·)∗ ≡ D2(σσT ·)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 13 / 73

Page 37: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The evolution of the distribution – the Fokker-Planckequation

I From the evolution of these particles, one can obtain theFokker-Planck :

∂tm(t, x)− div(b m(t, x)

)+ σ2

2 D2xx(m(t, x)

)= 0

m(0, x) = m0(x)

• More formally, derive the Ito’s formula for test function ϕ ∈ C∞c onXt, take the expectation and derive the ’adjoint’ operators on m.

More on adjoint operators

• (b∇·)? ≡ −div(b·) and (σσT∆·)∗ ≡ D2(σσT ·)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 13 / 73

Page 38: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The evolution of the distribution – the Fokker-Planckequation – Link with Feynman-Kac

I If w(t, x) is a C1,2 function and has bounded derivative,∇xv ∈ L∞,and is solution of :

∂tw(t, x) + b· ∇xw(t, x) + 12 Tr(σσTD2

xxw(t, x))

= 0w(T, x) = g(x)

I Then, the Feynman Kac formula gives us the form of the solution :

w(t, x) = Et0

(g(Xt0,x

T ))

where XT is the solution of the SDE :dXx

t = b(t,Xxt )dt + σ(t,Xx

t )dBt

Xxt0 = x (t0, x0) ∈ [0,T]× Rd

I The above PDE is called Feynman-Kac equation or ”KolmogorovBackward equation” A general Feynman Kac thm

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 14 / 73

Page 39: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The evolution of the distribution – the Fokker-Planckequation – Link with Feynman-Kac

I If w(t, x) is a C1,2 function and has bounded derivative,∇xv ∈ L∞,and is solution of :

∂tw(t, x) + b· ∇xw(t, x) + 12 Tr(σσTD2

xxw(t, x))

= 0w(T, x) = g(x)

I Then, the Feynman Kac formula gives us the form of the solution :

w(t, x) = Et0

(g(Xt0,x

T ))

where XT is the solution of the SDE :dXx

t = b(t,Xxt )dt + σ(t,Xx

t )dBt

Xxt0 = x (t0, x0) ∈ [0,T]× Rd

I The above PDE is called Feynman-Kac equation or ”KolmogorovBackward equation” A general Feynman Kac thm

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 14 / 73

Page 40: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The evolution of the distribution – the Fokker-Planckequation – Link with Feynman-Kac

I If w(t, x) is a C1,2 function and has bounded derivative,∇xv ∈ L∞,and is solution of :

∂tw(t, x) + b· ∇xw(t, x) + 12 Tr(σσTD2

xxw(t, x))

= 0w(T, x) = g(x)

I Then, the Feynman Kac formula gives us the form of the solution :

w(t, x) = Et0

(g(Xt0,x

T ))

where XT is the solution of the SDE :dXx

t = b(t,Xxt )dt + σ(t,Xx

t )dBt

Xxt0 = x (t0, x0) ∈ [0,T]× Rd

I The above PDE is called Feynman-Kac equation or ”KolmogorovBackward equation” A general Feynman Kac thm

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 14 / 73

Page 41: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The evolution of the distribution – the Fokker-Planckequation – Link with Feynman-Kac

I The Feynman-Kac/Kolmogorov Backward equation is∂tw(t, x) + b· ∇xw(t, x) + 1

2 Tr(σσT D2

xxw(t, x))

= 0v(T, x) = g(x)

I When one return the time, one may find the following”Kolmogorov Forward equation”

−∂tp(t, x)− div(b p(t, x)

)+ 1

2 D2xx(σσT p(t, x)

)= 0

p(0, x) = p0(x)

• More formally, this equation is the ”adjoint” equation of the KBEMore on adjoint operators

• (b∇·)? ≡ −div(b·) and (σσT∆·)∗ ≡ D2(σσT ·)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 15 / 73

Page 42: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The evolution of the distribution – the Fokker-Planckequation – Link with Feynman-Kac

I The Feynman-Kac/Kolmogorov Backward equation is∂tw(t, x) + b· ∇xw(t, x) + 1

2 Tr(σσT D2

xxw(t, x))

= 0v(T, x) = g(x)

I When one return the time, one may find the following”Kolmogorov Forward equation”

−∂tp(t, x)− div(b p(t, x)

)+ 1

2 D2xx(σσT p(t, x)

)= 0

p(0, x) = p0(x)

• More formally, this equation is the ”adjoint” equation of the KBEMore on adjoint operators

• (b∇·)? ≡ −div(b·) and (σσT∆·)∗ ≡ D2(σσT ·)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 15 / 73

Page 43: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

The evolution of the distribution – the Fokker-Planckequation – Link with Feynman-Kac

I The Feynman-Kac/Kolmogorov Backward equation is∂tw(t, x) + b· ∇xw(t, x) + 1

2 Tr(σσT D2

xxw(t, x))

= 0v(T, x) = g(x)

I When one return the time, one may find the following”Kolmogorov Forward equation”

−∂tp(t, x)− div(b p(t, x)

)+ 1

2 D2xx(σσT p(t, x)

)= 0

p(0, x) = p0(x)

• More formally, this equation is the ”adjoint” equation of the KBEMore on adjoint operators

• (b∇·)? ≡ −div(b·) and (σσT∆·)∗ ≡ D2(σσT ·)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 15 / 73

Page 44: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

MFG – a general formulation

I Mean field games take advantage of these two PDEs, it is amixture of various elements :

• Game theory : Nash equilibria when the number of players N →∞• Stochastic control : the HJB equation• Mean field theory : the FP equation

I Usual assumptions :• The agent control the drift of the diffusion, but not the variance• The agents are small enough, so that we do not consider

inter-individual interactionsI Without this, no Fokker-Planck equation !

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 16 / 73

Page 45: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

MFG – a general formulation

I Mean field games take advantage of these two PDEs, it is amixture of various elements :

• Game theory : Nash equilibria when the number of players N →∞• Stochastic control : the HJB equation• Mean field theory : the FP equation

I Usual assumptions :• The agent control the drift of the diffusion, but not the variance• The agents are small enough, so that we do not consider

inter-individual interactionsI Without this, no Fokker-Planck equation !

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 16 / 73

Page 46: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

MFG – a general formulationI The optimal control problem :

supαtT

t

Et( ∫ T

tL(Xs,ms, αs)ds + g(XT ,mT)

)Controlling the SDE : dXt = αtdt +

√2νdBt

• Writing the Hamiltonian :H(x,m,∇v) = supa

(L(x,m, a) + a· ∇xv(t, x)

)• If v is regular, the control is given by the feedback :

α? = −DpH(t, x,∇xv)

I This yields the system of PDEs

(i) − ∂tv− ν∆v + H(t, x,∇xv) = 0 in Rd × [0,T]

(ii) ∂tm− ν∆m− div(DpH(t, x,∇xv) m

)= 0 in Rd × [0,T]

(iii) m(0, ·) = m0(·) v(x,T) = G(x,mT)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 17 / 73

Page 47: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

MFG – a general formulationI The optimal control problem :

supαtT

t

Et( ∫ T

tL(Xs,ms, αs)ds + g(XT ,mT)

)Controlling the SDE : dXt = αtdt +

√2νdBt

• Writing the Hamiltonian :H(x,m,∇v) = supa

(L(x,m, a) + a· ∇xv(t, x)

)• If v is regular, the control is given by the feedback :

α? = −DpH(t, x,∇xv)

I This yields the system of PDEs

(i) − ∂tv− ν∆v + H(t, x,∇xv) = 0 in Rd × [0,T]

(ii) ∂tm− ν∆m− div(DpH(t, x,∇xv) m

)= 0 in Rd × [0,T]

(iii) m(0, ·) = m0(·) v(x,T) = G(x,mT)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 17 / 73

Page 48: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

MFG – a general formulation

I The ”economists-friendly” formulation would be :

(i) − ∂tv(t, x)− νTr(D2

xxv(t, x))

+(L(t, x, a?) + a? · ∇xv(t, x)

)= 0

(ii) ∂tm(t, x)− νTr(D2

xxm(x, t))−∑

i∂xi

(a∗ m

)= 0

(iii) m(0, ·) = m0(·) v(x,T) = G(x,mT)

where a? is the optimal control for problem at (t, x)

• Remember : div(f (x)) =∑d

i ∂xi f (x) and∆f (x) = Tr

(D2

xxf (x))

=∑d

i ∂2xixi

f (x)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 18 / 73

Page 49: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

Wrapping-up

I ”Solving het. agents models = Solving PDEs” (cf. B. Moll)

• A Hamilton-Jacobi-Bellman : backward in timeHow the agent value/decisions change when distribution is given

• A Fokker-Planck (Kolmogorov-Forward) : forward in timeHow the distribution changes, when agents control is given

I Let’s see a concrete example : the Aiyagari-Bewley model :• Reference : Achdou, Han, Lasry, Lions and Moll (2017)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 19 / 73

Page 50: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Stochastic control and Mean-Field Games : an informal presentation

Wrapping-up

I ”Solving het. agents models = Solving PDEs” (cf. B. Moll)

• A Hamilton-Jacobi-Bellman : backward in timeHow the agent value/decisions change when distribution is given

• A Fokker-Planck (Kolmogorov-Forward) : forward in timeHow the distribution changes, when agents control is given

I Let’s see a concrete example : the Aiyagari-Bewley model :• Reference : Achdou, Han, Lasry, Lions and Moll (2017)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 19 / 73

Page 51: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

MFG – the Aiyagari-Bewley model

I This model has become the workhorse model to study income andwealth distribution in Macroeconomics

I Households are heterogeneous (ex-post) in their wealth a andincome y, and solve an analogous stochastic control problem.

I Income yt is the only stochastic process (for now!) : Poissonprocesses with two states zt ∈ z1, z2 with intensities λ1, λ2(the higher the intensity, the higher the proba to jump).

I Can be generalized to any process (diffusion, Poisson, Levy)I We can analyze both the stationary case and the transition case

(evolving in time).

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 20 / 73

Page 52: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

MFG – the Aiyagari-Bewley model

I This model has become the workhorse model to study income andwealth distribution in Macroeconomics

I Households are heterogeneous (ex-post) in their wealth a andincome y, and solve an analogous stochastic control problem.

I Income yt is the only stochastic process (for now!) : Poissonprocesses with two states zt ∈ z1, z2 with intensities λ1, λ2(the higher the intensity, the higher the proba to jump).

I Can be generalized to any process (diffusion, Poisson, Levy)I We can analyze both the stationary case and the transition case

(evolving in time).

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 20 / 73

Page 53: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

MFG – the Aiyagari-Bewley model

I One of the specificities is the credit constraint ( state constraints) :

at ≥ a

I Really complicated problem for control theory• Intuitively, the optimal strategy might be (will be) to move on the

constraint (∂Ω) and stay there (poverty trap).• Mathematically, it is not possible to find a PDE and a boundary

condition on ∂Ω even in the sense of distribution.

I This will result on both (i) a Dirac mass on the boundary and(ii) an explosion near the boundary.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 21 / 73

Page 54: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

MFG – the Aiyagari-Bewley model

I One of the specificities is the credit constraint ( state constraints) :

at ≥ a

I Really complicated problem for control theory• Intuitively, the optimal strategy might be (will be) to move on the

constraint (∂Ω) and stay there (poverty trap).• Mathematically, it is not possible to find a PDE and a boundary

condition on ∂Ω even in the sense of distribution.

I This will result on both (i) a Dirac mass on the boundary and(ii) an explosion near the boundary.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 21 / 73

Page 55: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

MFG – the Aiyagari-Bewley model

I One of the specificities is the credit constraint ( state constraints) :

at ≥ a

I Really complicated problem for control theory• Intuitively, the optimal strategy might be (will be) to move on the

constraint (∂Ω) and stay there (poverty trap).• Mathematically, it is not possible to find a PDE and a boundary

condition on ∂Ω even in the sense of distribution.

I This will result on both (i) a Dirac mass on the boundary and(ii) an explosion near the boundary.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 21 / 73

Page 56: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

MFG – the Aiyagari-Bewley model

I The stochastic control problem is the following :

maxct

E0

∫ ∞0

e−ρtu(ct)dt

subject to : dat = (ztw + r at − ct)dt (Budget constraint)

and at ≥ a (Credit constraint)

I zt Jump processes with two states z1, z2 (intensities λ1, λ2)• c consumption, ρ time pref., u(·) utility (u′ > 0, u′′ < 0).• a ≥ −y1/rt natural borrowing limit.• rt interest rate, wt wage : adjust in general equilibrium.

I zt idiosync. productivity can be generalized to diffusions :dzt = b(zt)dt + σ(zt)dBt.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 22 / 73

Page 57: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

MFG – the Aiyagari-Bewley model

I The stochastic control problem is the following :

maxct

E0

∫ ∞0

e−ρtu(ct)dt

subject to : dat = (ztw + r at − ct)dt (Budget constraint)

and at ≥ a (Credit constraint)I zt Jump processes with two states z1, z2 (intensities λ1, λ2)

• c consumption, ρ time pref., u(·) utility (u′ > 0, u′′ < 0).• a ≥ −y1/rt natural borrowing limit.• rt interest rate, wt wage : adjust in general equilibrium.

I zt idiosync. productivity can be generalized to diffusions :dzt = b(zt)dt + σ(zt)dBt.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 22 / 73

Page 58: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

Aiyagari-Bewley model : the Household

maxct

E0

∫ ∞0

e−ρtu(ct)dt dat = (ztw + r at − ct)dt

I The agent controls the drift : here sj(a) = zjw + r a− cj(a)Optimal saving policy function, given by the FOC in the HJB :cj(a) = (u′)−1(∂avj(a))

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 23 / 73

Page 59: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

Aiyagari-Bewley model : the FirmI Beside the household, capital is used by a representative firm :

• Use capital K to produce F(K,L) = A Kα z1−αav

• Rent it at the interest r,• Hire households and pay the wage w.

I Capital demand is thus :

K(r) :=( αA

r + δ

) 11−α zav

• δ depreciation of capital and A productivity level• zav is the average productivity of households : zav = z1λ2+z2λ1

λ1+λ2

I If one have the capital stock K, you could easily compute theinterest rate and the wage paid by the firm :

w = (1− α) A Kαz−αav

r = αA Kα−1z1−αav − δ

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 24 / 73

Page 60: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

Aiyagari-Bewley model : the FirmI Beside the household, capital is used by a representative firm :

• Use capital K to produce F(K,L) = A Kα z1−αav

• Rent it at the interest r,• Hire households and pay the wage w.

I Capital demand is thus :

K(r) :=( αA

r + δ

) 11−α zav

• δ depreciation of capital and A productivity level• zav is the average productivity of households : zav = z1λ2+z2λ1

λ1+λ2

I If one have the capital stock K, you could easily compute theinterest rate and the wage paid by the firm :

w = (1− α) A Kαz−αav

r = αA Kα−1z1−αav − δ

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 24 / 73

Page 61: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

Aiyagari-Bewley model : a MFG formulationI Doing the same computation as above, one obtain the system of

PDEsI The stationary case :

ρvj(a) = maxc

u(c) + ∂avj(a)(zjw + ra− c) + λj(v−j(a)− vj(a)) [HJB]

0 =dda

[sj(a) gj(a)] + λjgj(a)− λ−jg−j(a) [FP]

S(r) :=

∫ ∞a

a g1(a)da +

∫ ∞a

a g2(a)da = K(r) [Market clearing]

I For the stationary case, these equations are simply ODE...I When one add transition dynamics, we obtain PDEs

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 25 / 73

Page 62: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

Aiyagari-Bewley model : a MFG formulationI When studying the dynamics of the system, we obtain :

ρ vj(a, t) = ∂tvj(a, t) + maxc

u(c) + ∂avj(a, t) sj(a) + λj(v−j(a, t)− vj(a, t)) [HJB]

0 = ∂tgj(a, t) +dda

[sj(a) gj(a)] + λjgj(a)− λ−jg−j(a, t) [FP]

S(r, t) :=

∫ ∞a

a g1(a, t)da +

∫ ∞a

a g2(a, t)da = K(r, t) [Market clearing]

sj(a, t) = zjtwt + rt a− cj(a, t) cj(a, t) = (u′)−1(∂avj(a, t))

I Note :• We obtained as many PDEs as income states (z1, z2)• Idiosyncratic state j is a variable of value function. We could have

written : v(a, j, t)• Will matter if z is a diffusion : adding a dimension is not free ...

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 26 / 73

Page 63: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

Aiyagari-Bewley model : a MFG formulationI When studying the dynamics of the system, we obtain :

ρ vj(a, t) = ∂tvj(a, t) + maxc

u(c) + ∂avj(a, t) sj(a) + λj(v−j(a, t)− vj(a, t)) [HJB]

0 = ∂tgj(a, t) +dda

[sj(a) gj(a)] + λjgj(a)− λ−jg−j(a, t) [FP]

S(r, t) :=

∫ ∞a

a g1(a, t)da +

∫ ∞a

a g2(a, t)da = K(r, t) [Market clearing]

sj(a, t) = zjtwt + rt a− cj(a, t) cj(a, t) = (u′)−1(∂avj(a, t))

I Note :• We obtained as many PDEs as income states (z1, z2)• Idiosyncratic state j is a variable of value function. We could have

written : v(a, j, t)• Will matter if z is a diffusion : adding a dimension is not free ...

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 26 / 73

Page 64: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

Aiyagari-Bewley model : Stationary wealth distributionsI Two income states : Blue, poor agent, Red, rich agent

• Dirac point mass at the borrowing constraint !

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 27 / 73

Page 65: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

Aiyagari-Bewley model : Stationary wealth distributionsI Question of the borrowing constraint :

• Here it is a ’state’ constraint, so it does show up in the HJB!• It would if it was a constraint on the control !

I Matter for the boundary condition : vj satisfy :

vj(a) ≥ u′(zjw + ra) j = 1, 2 (∗)

I Why?• FOC yields u′(cj(a)) = ∂avj(a)• Saving given by sj(a) = zj

tw + r a− cj(a) ≥ 0

I vj is determined by both (i) the HJB in the interior and(ii) the boundary condition (∗).

• The junction may not be C2,→ viscosity solutions.• Cf. any book on stochastic control or B. Moll slides on the topic

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 28 / 73

Page 66: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

Aiyagari-Bewley model : Stationary wealth distributionsI Question of the borrowing constraint :

• Here it is a ’state’ constraint, so it does show up in the HJB!• It would if it was a constraint on the control !

I Matter for the boundary condition : vj satisfy :

vj(a) ≥ u′(zjw + ra) j = 1, 2 (∗)

I Why?• FOC yields u′(cj(a)) = ∂avj(a)• Saving given by sj(a) = zj

tw + r a− cj(a) ≥ 0

I vj is determined by both (i) the HJB in the interior and(ii) the boundary condition (∗).

• The junction may not be C2,→ viscosity solutions.• Cf. any book on stochastic control or B. Moll slides on the topic

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 28 / 73

Page 67: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

Aiyagari-Bewley model : Stationary wealth distributionsI Question of the borrowing constraint :

• Here it is a ’state’ constraint, so it does show up in the HJB!• It would if it was a constraint on the control !

I Matter for the boundary condition : vj satisfy :

vj(a) ≥ u′(zjw + ra) j = 1, 2 (∗)

I Why ?• FOC yields u′(cj(a)) = ∂avj(a)• Saving given by sj(a) = zj

tw + r a− cj(a) ≥ 0

I vj is determined by both (i) the HJB in the interior and(ii) the boundary condition (∗).

• The junction may not be C2,→ viscosity solutions.• Cf. any book on stochastic control or B. Moll slides on the topic

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 28 / 73

Page 68: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

Aiyagari-Bewley model : Stationary wealth distributionsI Question of the borrowing constraint :

• Here it is a ’state’ constraint, so it does show up in the HJB!• It would if it was a constraint on the control !

I Matter for the boundary condition : vj satisfy :

vj(a) ≥ u′(zjw + ra) j = 1, 2 (∗)

I Why ?• FOC yields u′(cj(a)) = ∂avj(a)• Saving given by sj(a) = zj

tw + r a− cj(a) ≥ 0

I vj is determined by both (i) the HJB in the interior and(ii) the boundary condition (∗).

• The junction may not be C2,→ viscosity solutions.• Cf. any book on stochastic control or B. Moll slides on the topic

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 28 / 73

Page 69: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

Aiyagari-Bewley model : theoretical resultsI Achdou, Han, Lasry, Lions and Moll (2017) provide plenty of

different theoretical results :1. Analysis of household decisions :

I Full characterization of consumption and saving behavior :I Decision of the Poor, the Rich, close or far from the constraintI Time needed to hit the credit constraintI MPC and MPS (given by the Feynman-Kac formula !)

2. Closed-form solution for the wealth distributionI Given a and sj(a) : explicit formula

3. Uniqueness result of the stationary equilibriumI If IES ≥ 1 then substitution effect dominates income effect of

interest rate→, Capital supply S(r) increasing in r⇒ Uniqueness4. Extension to ’soft’-borrowing constraint

I Interest rate r higher is a < 0.I Theoretical characterizationI Match empirical evidence : spike around zero net worth.

I A general computational algorithm.Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 29 / 73

Page 70: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

Aiyagari-Bewley model : theoretical resultsI Achdou, Han, Lasry, Lions and Moll (2017) provide plenty of

different theoretical results :1. Analysis of household decisions :

I Full characterization of consumption and saving behavior :I Decision of the Poor, the Rich, close or far from the constraintI Time needed to hit the credit constraintI MPC and MPS (given by the Feynman-Kac formula !)

2. Closed-form solution for the wealth distributionI Given a and sj(a) : explicit formula

3. Uniqueness result of the stationary equilibriumI If IES ≥ 1 then substitution effect dominates income effect of

interest rate→, Capital supply S(r) increasing in r⇒ Uniqueness4. Extension to ’soft’-borrowing constraint

I Interest rate r higher is a < 0.I Theoretical characterizationI Match empirical evidence : spike around zero net worth.

I A general computational algorithm.Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 29 / 73

Page 71: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

Aiyagari-Bewley model : theoretical resultsI Achdou, Han, Lasry, Lions and Moll (2017) provide plenty of

different theoretical results :1. Analysis of household decisions :

I Full characterization of consumption and saving behavior :I Decision of the Poor, the Rich, close or far from the constraintI Time needed to hit the credit constraintI MPC and MPS (given by the Feynman-Kac formula !)

2. Closed-form solution for the wealth distributionI Given a and sj(a) : explicit formula

3. Uniqueness result of the stationary equilibriumI If IES ≥ 1 then substitution effect dominates income effect of

interest rate→, Capital supply S(r) increasing in r⇒ Uniqueness

4. Extension to ’soft’-borrowing constraintI Interest rate r higher is a < 0.I Theoretical characterizationI Match empirical evidence : spike around zero net worth.

I A general computational algorithm.Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 29 / 73

Page 72: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

Aiyagari-Bewley model : theoretical resultsI Achdou, Han, Lasry, Lions and Moll (2017) provide plenty of

different theoretical results :1. Analysis of household decisions :

I Full characterization of consumption and saving behavior :I Decision of the Poor, the Rich, close or far from the constraintI Time needed to hit the credit constraintI MPC and MPS (given by the Feynman-Kac formula !)

2. Closed-form solution for the wealth distributionI Given a and sj(a) : explicit formula

3. Uniqueness result of the stationary equilibriumI If IES ≥ 1 then substitution effect dominates income effect of

interest rate→, Capital supply S(r) increasing in r⇒ Uniqueness4. Extension to ’soft’-borrowing constraint

I Interest rate r higher is a < 0.I Theoretical characterizationI Match empirical evidence : spike around zero net worth.

I A general computational algorithm.Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 29 / 73

Page 73: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The Aiyagari-Bewley model : Achdou et al. (2017)

Aiyagari-Bewley model : theoretical results

I An Euler equation :

(ρ− r)u′(cj(a)) = u′′(cj(a))c′j(a)sj + λj(u′(c−j(a))− u′(cj(a)))

I Assumption 1 : Absolution risk aversion R(c) = −u′′(c)/u′(c) isfinite when wealth a approaches the constraint a.

I (Behavior of the poor) if r < ρ and assumption 1 holds, then :• (Prop 1) s1(a) = 0 and s1(a) < 0, they all decumulate assets except

constrained individuals, who consume everything (poverty trap !).• (Cor. 1) Poor individuals hit the borrowing constraint in finite time,

at a speed proportional to ν = (ρ− r)IES(c1)c1 + λ1(c2 − c1)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 30 / 73

Page 74: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The algorithm

The algorithm : an overviewI Aim : find the equilibria : i.e. the functions vj and gj (j = 1, 2) and

the interest rate r.I General structure :

1. Guess interest rate r`, compute capital demand K(r`) & wagesw(K)

2. Solve the HJB using finite differences (semi-implicit method) :obtain s`j (a) and then v`j , by a system of sort : ρ v = u(v) + A(v; r)v

3. Using AT , solve the FP equation (finite diff. system :A(v; r)Tg = 0), and obtain gj

4. Compute the capital supplyS(g, r) =

∫∞a a g1(a)da +

∫∞a a g2(a)da

5. If S(r) > K(r), decrease r`+1 ( update using bisection method), andconversely, and come back to step 2.

6. Stop if S(r) ≈ K(r)Stationary MFG equations

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 31 / 73

Page 75: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The algorithm

The algorithm : advantages relative to discrete time :1. Borrowing constraint only appears in the boundary conditions

• FOCs u′(c(a)) = ∂avj(a) and HJB eq. always holds with equality• No need to split the Bellman equation (constrained vs.

unconstrained agents)

2. In continuous time there is no future (i.e. t + 1) only present t !• Only involve contemporaneous variables (FOC are ’static’)• No need to use costly root-finding to obtain optimal cj(a).

3. The discretized system is easy to solve :• ’Simply’ a matrix inversion

(Finite differences : taught in 1st year in any engineering school).• Matrix is sparse (tridiagonal)• Continuous space : one step left or one step right

4. HJB and FP are coupled• The matrix to solve FP is the transpose of the one of HJB.• Why? Operator in FP is simply the ’adjoint’ of the operator in

HJB : ’Two birds one stone’• Specificity of MFG!

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 32 / 73

Page 76: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The algorithm

The algorithm : advantages relative to discrete time :1. Borrowing constraint only appears in the boundary conditions

• FOCs u′(c(a)) = ∂avj(a) and HJB eq. always holds with equality• No need to split the Bellman equation (constrained vs.

unconstrained agents)2. In continuous time there is no future (i.e. t + 1) only present t !

• Only involve contemporaneous variables (FOC are ’static’)• No need to use costly root-finding to obtain optimal cj(a).

3. The discretized system is easy to solve :• ’Simply’ a matrix inversion

(Finite differences : taught in 1st year in any engineering school).• Matrix is sparse (tridiagonal)• Continuous space : one step left or one step right

4. HJB and FP are coupled• The matrix to solve FP is the transpose of the one of HJB.• Why? Operator in FP is simply the ’adjoint’ of the operator in

HJB : ’Two birds one stone’• Specificity of MFG!

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 32 / 73

Page 77: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The algorithm

The algorithm : advantages relative to discrete time :1. Borrowing constraint only appears in the boundary conditions

• FOCs u′(c(a)) = ∂avj(a) and HJB eq. always holds with equality• No need to split the Bellman equation (constrained vs.

unconstrained agents)2. In continuous time there is no future (i.e. t + 1) only present t !

• Only involve contemporaneous variables (FOC are ’static’)• No need to use costly root-finding to obtain optimal cj(a).

3. The discretized system is easy to solve :• ’Simply’ a matrix inversion

(Finite differences : taught in 1st year in any engineering school).• Matrix is sparse (tridiagonal)• Continuous space : one step left or one step right

4. HJB and FP are coupled• The matrix to solve FP is the transpose of the one of HJB.• Why? Operator in FP is simply the ’adjoint’ of the operator in

HJB : ’Two birds one stone’• Specificity of MFG!

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 32 / 73

Page 78: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The algorithm

The algorithm : advantages relative to discrete time :1. Borrowing constraint only appears in the boundary conditions

• FOCs u′(c(a)) = ∂avj(a) and HJB eq. always holds with equality• No need to split the Bellman equation (constrained vs.

unconstrained agents)2. In continuous time there is no future (i.e. t + 1) only present t !

• Only involve contemporaneous variables (FOC are ’static’)• No need to use costly root-finding to obtain optimal cj(a).

3. The discretized system is easy to solve :• ’Simply’ a matrix inversion

(Finite differences : taught in 1st year in any engineering school).• Matrix is sparse (tridiagonal)• Continuous space : one step left or one step right

4. HJB and FP are coupled• The matrix to solve FP is the transpose of the one of HJB.• Why ? Operator in FP is simply the ’adjoint’ of the operator in

HJB : ’Two birds one stone’• Specificity of MFG!

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 32 / 73

Page 79: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The algorithm

The algorithm : Finite difference schemeI Finite difference scheme : discretize the state-space ai for

i = 1, . . . I.

∂avj(ai) ≈vi+1,j − vi,j

∆a≡ v′i,j,F ∂avj(ai) ≈

vi−1,j − vi,j

∆a≡ v′i,j,B

I Vector form :

I Linear system to solve A is sparse.

ρ v = u(v) + A(v; r)v

0 = A(v; r)TgS(g, r) = K(r)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 33 / 73

Page 80: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The algorithm

The algorithm : theoretical results

I This numerical solution converges to the unique (viscosity)solution of the HJB, under some conditions :

1. Monotonicity (invertible and inverse positive)2. Consistent (approx error is majored by powers of step sizes)3. Stability (iteration in k is bounded)

I Is the matrix monotonous?• In the scheme for solving the HJB, one can distinguish if the drift is

positive or negative :• that is the upwind scheme• When s(a) > 0 use v′i,j,F, and s(a) < 0, use v′i,j,B• This insures the convergence of the algorithm

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 34 / 73

Page 81: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The algorithm

The algorithm : transition dynamicsI The algo for transitions is a generalization :

• Discretization : vni,j and gn

i,j stacked into vn and gn

• Somehow, it is more specific to Mean Field Games :

I Take advantage of the backward-forward structure of the MFG• Make a guess r`t (t = 1, . . . ,N) on the path interest rates.• Solve the HJB (implicit scheme), given terminal condition ;

ρvn+1 = un + A(vn+1; rn) vn+1 +vn+1 − vn

∆tvN = v∞ (terminal condition = steady state)

• Solve the FP forward, given the initial condition

gn+1 − gn

∆t= A(vn; rn)Tgn+1

g1 = g0 (initial condition)

• Update the interest rates path

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 35 / 73

Page 82: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The algorithm

The algorithm : transition dynamicsI The algo for transitions is a generalization :

• Discretization : vni,j and gn

i,j stacked into vn and gn

• Somehow, it is more specific to Mean Field Games :I Take advantage of the backward-forward structure of the MFG

• Make a guess r`t (t = 1, . . . ,N) on the path interest rates.• Solve the HJB (implicit scheme), given terminal condition ;

ρvn+1 = un + A(vn+1; rn) vn+1 +vn+1 − vn

∆tvN = v∞ (terminal condition = steady state)

• Solve the FP forward, given the initial condition

gn+1 − gn

∆t= A(vn; rn)Tgn+1

g1 = g0 (initial condition)

• Update the interest rates path

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 35 / 73

Page 83: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The algorithm

The algorithm : transition dynamicsI The algo for transitions is a generalization :

• Discretization : vni,j and gn

i,j stacked into vn and gn

• Somehow, it is more specific to Mean Field Games :I Take advantage of the backward-forward structure of the MFG

• Make a guess r`t (t = 1, . . . ,N) on the path interest rates.• Solve the HJB (implicit scheme), given terminal condition ;

ρvn+1 = un + A(vn+1; rn) vn+1 +vn+1 − vn

∆tvN = v∞ (terminal condition = steady state)

• Solve the FP forward, given the initial condition

gn+1 − gn

∆t= A(vn; rn)Tgn+1

g1 = g0 (initial condition)

• Update the interest rates pathThomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 35 / 73

Page 84: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The algorithm

The algorithm : wrapping upI This algorithm to compute the dynamics of the system will be used

a lot when adding aggregate shocks.• HJB start from the end (what agent anticipate) and runs backward

until the computation of the initial value function• FP start from the beginning (what wealth agents hold) and runs

forward to compute the evolution of distributions.• If there are discrepancies between capital demand and capital

supply, loop to correct the path of interest rate.

I Performance of the algorithm :(≈ 1000 grid points in space, 400 in time) :

• Stationary equilibrium : 0.25-0.4 sec• Transition dynamics : around 50 secs

I MIT shocks or perfect foresight.I 10−6 error on the path of interest rate.

• What about anticipated shocks?

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 36 / 73

Page 85: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

The algorithm

The algorithm : wrapping upI This algorithm to compute the dynamics of the system will be used

a lot when adding aggregate shocks.• HJB start from the end (what agent anticipate) and runs backward

until the computation of the initial value function• FP start from the beginning (what wealth agents hold) and runs

forward to compute the evolution of distributions.• If there are discrepancies between capital demand and capital

supply, loop to correct the path of interest rate.

I Performance of the algorithm :(≈ 1000 grid points in space, 400 in time) :

• Stationary equilibrium : 0.25-0.4 sec• Transition dynamics : around 50 secs

I MIT shocks or perfect foresight.I 10−6 error on the path of interest rate.

• What about anticipated shocks?

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 36 / 73

Page 86: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Adding aggregate shocksI That is where things start to complicate !

• MFG literature, aggregate shocks referred as ’common noise’

I We still have the same household problem Don’t remember?

I We suppose that the path of productivity At follow a stochasticprocess :

• Brownian motion dBt• Ornstein-Uhlenbeck (the closest to AR(1) : mean revert)

dXt = θ(µ− Xt)dt + σdBt• Geometric Brownian motion (stay > 0) :

dXt = Xtµdt + XtσdBt• Poisson /Jump process dXt = dNt

• Will matter a lot !• Need your opinion on this !

I According to me : need to endogenize it ;)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 37 / 73

Page 87: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Adding aggregate shocksI That is where things start to complicate !

• MFG literature, aggregate shocks referred as ’common noise’

I We still have the same household problem Don’t remember?

I We suppose that the path of productivity At follow a stochasticprocess :

• Brownian motion dBt• Ornstein-Uhlenbeck (the closest to AR(1) : mean revert)

dXt = θ(µ− Xt)dt + σdBt• Geometric Brownian motion (stay > 0) :

dXt = Xtµdt + XtσdBt• Poisson /Jump process dXt = dNt

• Will matter a lot !• Need your opinion on this !

I According to me : need to endogenize it ;)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 37 / 73

Page 88: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Adding aggregate shocksI That is where things start to complicate !

• MFG literature, aggregate shocks referred as ’common noise’

I We still have the same household problem Don’t remember?

I We suppose that the path of productivity At follow a stochasticprocess :

• Brownian motion dBt• Ornstein-Uhlenbeck (the closest to AR(1) : mean revert)

dXt = θ(µ− Xt)dt + σdBt• Geometric Brownian motion (stay > 0) :

dXt = Xtµdt + XtσdBt• Poisson /Jump process dXt = dNt

• Will matter a lot !• Need your opinion on this !

I According to me : need to endogenize it ;)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 37 / 73

Page 89: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Adding aggregate shocks

I Why will it matter ? (for household?)I Affect firm’s production, capital demand and . . . interest rate and

wages !

wt = (1− α) At Kαz−αav

rt = αAt Kα−1z1−αav − δ

I Household will anticipate (through v) the rise or fall of wages, andchange their saving behavior accordingly (s and thus g)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 38 / 73

Page 90: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Aggregate shocks – building trees

I Idea : approximate the process for the shock/common noise by afinite number M of ’simple’ shocks :

I Every ∆T , At switch between two values (of K values)

I This way, build a ’tree’ of different path of productivity, and fromeach node growing different branches

• Taking ∆T → 0, you can approximate any process.

I On each branch (between each shock), compute the evolution ofthe MFG system (HJB and FP) and equilibrium v(a, j, t, A) andg(a, j, t, A).

I Need to link the different branches together in the appropriate way

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 39 / 73

Page 91: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Aggregate shocks – building trees

I Idea : approximate the process for the shock/common noise by afinite number M of ’simple’ shocks :

I Every ∆T , At switch between two values (of K values)I This way, build a ’tree’ of different path of productivity, and from

each node growing different branches• Taking ∆T → 0, you can approximate any process.

I On each branch (between each shock), compute the evolution ofthe MFG system (HJB and FP) and equilibrium v(a, j, t, A) andg(a, j, t, A).

I Need to link the different branches together in the appropriate way

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 39 / 73

Page 92: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Aggregate shocks – building trees

I Idea : approximate the process for the shock/common noise by afinite number M of ’simple’ shocks :

I Every ∆T , At switch between two values (of K values)I This way, build a ’tree’ of different path of productivity, and from

each node growing different branches• Taking ∆T → 0, you can approximate any process.

I On each branch (between each shock), compute the evolution ofthe MFG system (HJB and FP) and equilibrium v(a, j, t, A) andg(a, j, t, A).

I Need to link the different branches together in the appropriate way

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 39 / 73

Page 93: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Aggregate shocks – building trees

I Two examples of trees, with M = 4 (qualitative example) andM = 6 (quantitative 1).

I left : 16 different paths, right : 64 paths.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 40 / 73

Page 94: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Aggregate shocks – grafting branchesI How what one compute the evolution of the MFG accounting for

future and past shocks?

I Use the boundary conditions of the PDEs !• t−m : time before revelation of the shock (At−m

= Am)t+m : time when shocks hits (At+m

= Am+1 take 2 (or K) values)

v(a, j, t−m ,Am) =∑

k|Am+1=Ak

P(Am+1|Am) v(a, j, t+m ,Am+1)

g(a, j, t−m ,Am) = g(a, j, t+m ,Am+1)

I Agents are forward looking, form expectations over the differentset of future branches

I Continuity of m in time t

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 41 / 73

Page 95: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Aggregate shocks – grafting branchesI How what one compute the evolution of the MFG accounting for

future and past shocks?I Use the boundary conditions of the PDEs !

• t−m : time before revelation of the shock (At−m= Am)

t+m : time when shocks hits (At+m= Am+1 take 2 (or K) values)

v(a, j, t−m ,Am) =∑

k|Am+1=Ak

P(Am+1|Am) v(a, j, t+m ,Am+1)

g(a, j, t−m ,Am) = g(a, j, t+m ,Am+1)

I Agents are forward looking, form expectations over the differentset of future branches

I Continuity of m in time t

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 41 / 73

Page 96: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Aggregate shocks – grafting branchesI How what one compute the evolution of the MFG accounting for

future and past shocks?I Use the boundary conditions of the PDEs !

• t−m : time before revelation of the shock (At−m= Am)

t+m : time when shocks hits (At+m= Am+1 take 2 (or K) values)

v(a, j, t−m ,Am) =∑

k|Am+1=Ak

P(Am+1|Am) v(a, j, t+m ,Am+1)

g(a, j, t−m ,Am) = g(a, j, t+m ,Am+1)

I Agents are forward looking, form expectations over the differentset of future branches

I Continuity of m in time t

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 41 / 73

Page 97: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Aggregate shocks – grafting branchesI How what one compute the evolution of the MFG accounting for

future and past shocks?I Use the boundary conditions of the PDEs !

• t−m : time before revelation of the shock (At−m= Am)

t+m : time when shocks hits (At+m= Am+1 take 2 (or K) values)

v(a, j, t−m ,Am) =∑

k|Am+1=Ak

P(Am+1|Am) v(a, j, t+m ,Am+1)

g(a, j, t−m ,Am) = g(a, j, t+m ,Am+1)

I Agents are forward looking, form expectations over the differentset of future branches

I Continuity of m in time t

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 41 / 73

Page 98: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Aggregate shocks – grafting branches

I After all this,loop on the path of interest rate to adjust demand andsupply of capital.

• Why ?

• Saving decisions depend on future shocks and interest rate, throughthe future value function v

I Nice, since the HJB runs backward, no?• Saving decisions depend on past shocks, interest rate and wealth

accumulation, through the distribution gI Nice, since the FP runs forward, no?

I In practice, this loop on prices may take a long time.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 42 / 73

Page 99: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Aggregate shocks – grafting branches

I After all this,loop on the path of interest rate to adjust demand andsupply of capital.

• Why ?• Saving decisions depend on future shocks and interest rate, through

the future value function vI Nice, since the HJB runs backward, no?

• Saving decisions depend on past shocks, interest rate and wealthaccumulation, through the distribution g

I Nice, since the FP runs forward, no?

I In practice, this loop on prices may take a long time.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 42 / 73

Page 100: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Aggregate shocks – grafting branches

I After all this,loop on the path of interest rate to adjust demand andsupply of capital.

• Why ?• Saving decisions depend on future shocks and interest rate, through

the future value function vI Nice, since the HJB runs backward, no?

• Saving decisions depend on past shocks, interest rate and wealthaccumulation, through the distribution g

I Nice, since the FP runs forward, no?

I In practice, this loop on prices may take a long time.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 42 / 73

Page 101: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Aggregate shocks – grafting branches

I After all this,loop on the path of interest rate to adjust demand andsupply of capital.

• Why ?• Saving decisions depend on future shocks and interest rate, through

the future value function vI Nice, since the HJB runs backward, no?

• Saving decisions depend on past shocks, interest rate and wealthaccumulation, through the distribution g

I Nice, since the FP runs forward, no?

I In practice, this loop on prices may take a long time.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 42 / 73

Page 102: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – aggregate variablesI For each branch, one can compute capital stock and interest rates

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 43 / 73

Page 103: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – aggregate variablesI For each branch, one can compute capital stock and interest rates

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 44 / 73

Page 104: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – v solution to HJB

I The value function evolves across time, with productivityI Movie?

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 45 / 73

Page 105: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – v solution to HJBI The value function evolves across time, with productivity

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 46 / 73

Page 106: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – jump in v

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 47 / 73

Page 107: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – g solution to FP

I The wealth distribution evolves across time, with productivityI Movie?

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 48 / 73

Page 108: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – g solution to FPI The wealth distribution evolves across time, with productivity

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 49 / 73

Page 109: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – g solution to FPI The wealth distribution evolves across time, in the best case

scenario (i.e. productivity increases !)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 50 / 73

Page 110: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – g solution to FPI The wealth distribution evolve across time, in the worst case

scenario (i.e. productivity decreases !)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 51 / 73

Page 111: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – g solution to FPI The wealth distribution evolve across time, in the best case

scenario (i.e. productivity increases !) [poor]

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 52 / 73

Page 112: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – g solution to FPI The wealth distribution evolve across time, in the worst case

scenario (i.e. productivity decreases !) [poor]

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 53 / 73

Page 113: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – g solution to FPI The wealth distribution evolve across time, in the worst case

scenario (i.e. productivity decreases !) [from behind]

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 54 / 73

Page 114: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – g solution to FPI The wealth distribution evolve across time, in the best case

scenario (i.e. productivity increases !) [rich]

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 55 / 73

Page 115: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – g solution to FPI The wealth distribution evolve across time, in the worst case

scenario (i.e. productivity decreases !) [rich]

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 56 / 73

Page 116: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – mathematical objective

I The main idea, mathematically, is to be able to compute v(a, j, t,A)and g(a, j, t,A) for any value of A.

I Solving infinite-dimensional equation, i.e. the master-equation.I Here, discretization procedure inspired by Carmona, Delarue and

LackerI (btw : only ’weak equilibrium’, question of adaptability of the

solution)I However, can still have a good approximation :

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 57 / 73

Page 117: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – objective – g(a, 1, t,A)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 58 / 73

Page 118: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – objective – g(a, 2, t,A)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 59 / 73

Page 119: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – comparison – RBC

I Need to compare the heterogeneous agent model with theBrock-Mirman (72) model

• i.e. stochastic growth model, or RBC when adding endogenouslabor supply

I I made use of the deterministic neoclassical growth modelI I build an approximation scheme for the Brownian motion, as

beforeI Solve the RBC (B/M) model on each branch of the treeI Compare the graph quantitatively (with 6 shocks)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 60 / 73

Page 120: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – comparison – RBCI On the left the Krusell/Smith model, on the right the

Brock/Mirman

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 61 / 73

Page 121: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – comparison – RBCI What about interest rate ? (left K/S, right B/M)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 62 / 73

Page 122: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Results – comparison – RBC

I Precautionary savings reduce the fluctuation caused byproductivity shocks

• Capital : Best case scenario : decrease from 3 to 1.6 the aggregatelevel of capital

• Interest rate : Worst case scenario : decrease from 22% to 10 % theinterest rate.

I Smooth the business cycle !I Well-known fact in such type of models !I Precautionary saving with aggregate shocks : important

quantitatively

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 63 / 73

Page 123: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Krusell-Smith model : adding aggregate shocks

Computational challenge

TABLE – Summary – computational cost

Number of shock Number of Computing time Number of computations(’waves’) branches (sec.) (min.) H.J.B. F.P.

2 4 70 1.6 285 2103 8 240 4 578 4034 16 510 8.5 1158 7835 32 1196 19 2320 15456 64 2252 37 3071 2063

This without counting the cost of storage of large 4− D arrays (mayreach several Gb when M ≥ 7)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 64 / 73

Page 124: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Limits and future research

Several limitation and future research1. Computing time may be quite long, for M ≥ 7

• Solution : parallelize the algo, code it in C++ (internship : task 1)• Code it in Julia/Fortran (faster ?), use cloud computing (planned)

2. What about endogenous labor supply?• With controls on c, s and ` : more heterogeneity• Solution : loop over wages to clear labor markets (algo ready,

internship : task 2)3. Idiosyncratic shocks follow 2 states process (boring?) What about

income as diffusion?• Solution : Done in stationary equilibrium, need to study common

noise (internship : task 3)4. What if idiosyncratic shock is correlated to aggregate state

• Solution : λj (or b/σ if diffusion) change with At

(internship : task 4)

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 65 / 73

Page 125: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Limits and future research

Several limitation and future research5. Is it better than Reiter and Winberry’s algorithm to study aggregate

uncertainty?• Avoid linearization, can use large shocks• Comparison with discrete time methods (planned)

6. And Krusell/Smith? Does it feature approximate aggregation?• Comparison with their algo (planned)

7. Extension to fat-tailed wealth distribution :• Wealth in illiquid asset/wealth hand-to-mouth behavior

(Kaplan/Violante)• Need to add one dimension (internship : task 5 maybe)

8. What about the data? Does it fit the business cycle time series ? themicro data?

9. Extension with a demand side? HANK?10. Fiscal/Monetary policy?11. Any suggestion?

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 66 / 73

Page 126: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Limits and future research

Conclusion

I MFG : high entry cost (need to study PDEs) but numericalalgorithm more or less straightforward.

I Relevant framework to study evolution of wealth distributionsalong aggregate fluctuations

I Powerful tool with great adaptability / generalization of othermodels

I Thank you for your attention !

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 67 / 73

Page 127: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

References

Achdou, Yves, Jiequn Han, Jean-Michel Lasry, Pierre-Louis Lions andBenjamin Moll (2017), ‘Income and wealth distribution inmacroeconomics : A continuous-time approach’, R & R, Review ofEconomic Studies (NBER 23732).

Ahn, SeHyoun, Greg Kaplan, Benjamin Moll, Thomas Winberry and ChristianWolf (2017), When inequality matters for macro and macro matters forinequality, in ‘NBER Macroeconomics Annual 2017, volume 32’,University of Chicago Press.

Aiyagari, S Rao (1994), ‘Uninsured idiosyncratic risk and aggregate saving’,The Quarterly Journal of Economics 109(3), 659–684.

Benhabib, Jess, Alberto Bisin and Shenghao Zhu (2011), ‘The distribution ofwealth and fiscal policy in economies with finitely lived agents’,Econometrica 79(1), 123–157.

Benhabib, Jess, Alberto Bisin and Shenghao Zhu (2015), ‘The wealthdistribution in bewley economies with capital income risk’, Journal ofEconomic Theory 159, 489–515.

Bewley, Truman (1986), ‘Stationary monetary equilibrium with a continuumThomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 67 / 73

Page 128: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

References

of independently fluctuating consumers’, Contributions to mathematicaleconomics in honor of Gerard Debreu 79.

Bhandari, Anmol, David Evans, Mikhail Golosov and Thomas J Sargent(2017), Inequality, business cycles and fiscal-monetary policy, Technicalreport, University of Minnesota working paper.

Cardaliaguet, Pierre, Francois Delarue, Jean-Michel Lasry and Pierre-LouisLions (2015), ‘The master equation and the convergence problem in meanfield games’, arXiv preprint arXiv :1509.02505 .

Carmona, Rene and Francois Delarue (2014), The master equation for largepopulation equilibriums, in ‘Stochastic Analysis and Applications 2014’,Springer, pp. 77–128.

Carmona, Rene, Francois Delarue and Aime Lachapelle (2013), ‘Control ofmckean–vlasov dynamics versus mean field games’, Mathematics andFinancial Economics 7(2), 131–166.

Carmona, Rene, Francois Delarue, Daniel Lacker et al. (2016), ‘Mean fieldgames with common noise’, The Annals of Probability 44(6), 3740–3803.

Gabaix, Xavier, Jean-Michel Lasry, Pierre-Louis Lions and Benjamin Moll(2016), ‘The dynamics of inequality’, Econometrica 84(6), 2071–2111.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 67 / 73

Page 129: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Appendices : more on stochastic calculus

Heathcote, Jonathan, Kjetil Storesletten and Giovanni L Violante (2014),‘Consumption and labor supply with partial insurance : An analyticalframework’, American Economic Review 104(7), 2075–2126.

Kaplan, Greg and Giovanni L Violante (2014), ‘A model of the consumptionresponse to fiscal stimulus payments’, Econometrica 82(4), 1199–1239.

Krusell, Per and Anthony A Smith, Jr (1998), ‘Income and wealthheterogeneity in the macroeconomy’, Journal of political Economy106(5), 867–896.

Reiter, Michael (2010), ‘Solving the incomplete markets model with aggregateuncertainty by backward induction’, Journal of Economic Dynamics andControl 34(1), 28–35.

Winberry, Thomas (2016), ‘A toolbox for solving and estimatingheterogeneous agent macro models’, Forthcoming Quantitative Economics .

Young, Eric R (2010), ‘Solving the incomplete markets model with aggregateuncertainty using the krusell–smith algorithm and non-stochasticsimulations’, Journal of Economic Dynamics and Control 34(1), 36–41.

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 68 / 73

Page 130: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Appendices : more on stochastic calculus

Brownian motion

I This is the ”continuous-time” stochastic process which is theclosest to a random-walk.

I We define as a Brownian motion the continuous process Wt valuedin R such that :

1. The function t 7→ Wt(ω) is continuous on R+

2. For all 0 ≤ s < t, the increment Wt −Ws is independent ofσ(Wu, u ≤ s)

3. For all t ≥ s ≥ 0, Wt −Ws follows the normal distribution N (0, σ2)

Go back

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 68 / 73

Page 131: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Appendices : more on stochastic calculus

Brownian motionI This is the ”continuous-time” stochastic process which is the

closest to a random-walk.I We define as a Brownian motion the continuous process Wt valued

in R such that :1. The function t 7→ Wt(ω) is continuous on R+

2. For all 0 ≤ s < t, the increment Wt −Ws is independent ofσ(Wu, u ≤ s)

3. For all t ≥ s ≥ 0, Wt −Ws follows the normal distribution N (0, σ2)

• The brownian motion is ”standard” if W0 = 0 and σ = 1.• Here, the Brownian motion is a martingale• It is used to model any ”small” shock in a continuous-time

finance/macro models.

I By Donsker theorem, one can show that a ”normal”-random-walkconverges in law toward a BM, when time increment goes to zero.

Go back

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 68 / 73

Page 132: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Appendices : more on stochastic calculus

Brownian motionI This is the ”continuous-time” stochastic process which is the

closest to a random-walk.I We define as a Brownian motion the continuous process Wt valued

in R such that :1. The function t 7→ Wt(ω) is continuous on R+

2. For all 0 ≤ s < t, the increment Wt −Ws is independent ofσ(Wu, u ≤ s)

3. For all t ≥ s ≥ 0, Wt −Ws follows the normal distribution N (0, σ2)

Go backThomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 68 / 73

Page 133: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Appendices : more on stochastic calculus

Ito’s formulaI For any Xt Ito process :

dXt = bt dt + σt dBt

and any C1,2 scalar function f (t, x) of two real variables t and x, one has :

df (t,Xt) =

(∂f∂t

+ bt∂f∂x

+σ2

t

2∂2f∂x2

)dt + σt

∂f∂x

dBt

I For vector-valued processes Xt = (X1t ,X

2t , . . . ,X

nt )

dXt = bt dt + σt dBt

I The Ito formula rewrites :

df (t,Xt) =∂f∂t

(t,Xt) dt +d∑

i=1

∂f∂xi

(t,Xt)dXit +

12

d∑i,j=1

∂2f∂xi∂xj

(t,Xt)d < Xi,Xj >t

= ∂t f dt +∇xf · dXt +12

Tr(σtσ

Tt D2

xxf)

dt,

=

∂t f +∇x f · bt +

12

Tr(σtσ

Tt D2

xx f)

dt +∇x f · σt dBt

Go back

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 69 / 73

Page 134: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Appendices : more on stochastic calculus

Feyman Kac - a general formulaI Consider the function

v(t0, x0) = Et0

[ ∫ T

t0

e−∫ s

t0r(u,Xu)duf (s,Xs)ds + e−

∫ Tt0

r(u,Xu)dug(XT)]

∀(t, x) ∈ [0, T]× Rd

Supposing that X follows the SDE :dXt = b(t,Xt)dt + σ(t,Xt)dBt

Xt0 = x0 (t0, x0) ∈ [0, T]× Rd

I The Feynman-Kac formula tells us that v is solution to the PDE :r(t, x) v(t, x)− ∂tv(t, x)−∇xv(t, x)· b− 1

2 Tr(σσT D2

xxv(t, x))

= f (t, x)v(T, .) = g

I Moreover, if w(t, x) is C1,2 and has bounded derivative, then w(t, x) = v(t, x), i.e.admits the representation above.

• Intuitions : a function v of X subject to a diffusion can be represented by theexpected future value g, adding running gain f and discounting r

I Used a lot in finance to compute option prices (Black-Scholes)• One can compute w using Monte-Carlo methods for instance

Go back

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 70 / 73

Page 135: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Appendices : more on stochastic calculus

Feyman Kac - a general formulaI Consider the function

v(t0, x0) = Et0

[ ∫ T

t0

e−∫ s

t0r(u,Xu)duf (s,Xs)ds + e−

∫ Tt0

r(u,Xu)dug(XT)]

∀(t, x) ∈ [0, T]× Rd

Supposing that X follows the SDE :dXt = b(t,Xt)dt + σ(t,Xt)dBt

Xt0 = x0 (t0, x0) ∈ [0, T]× Rd

I The Feynman-Kac formula tells us that v is solution to the PDE :r(t, x) v(t, x)− ∂tv(t, x)−∇xv(t, x)· b− 1

2 Tr(σσT D2

xxv(t, x))

= f (t, x)v(T, .) = g

I Moreover, if w(t, x) is C1,2 and has bounded derivative, then w(t, x) = v(t, x), i.e.admits the representation above.

• Intuitions : a function v of X subject to a diffusion can be represented by theexpected future value g, adding running gain f and discounting r

I Used a lot in finance to compute option prices (Black-Scholes)• One can compute w using Monte-Carlo methods for instance

Go back

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 70 / 73

Page 136: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Appendices : more on stochastic calculus

Feyman Kac - a general formulaI Consider the function

v(t0, x0) = Et0

[ ∫ T

t0

e−∫ s

t0r(u,Xu)duf (s,Xs)ds + e−

∫ Tt0

r(u,Xu)dug(XT)]

∀(t, x) ∈ [0, T]× Rd

Supposing that X follows the SDE :dXt = b(t,Xt)dt + σ(t,Xt)dBt

Xt0 = x0 (t0, x0) ∈ [0, T]× Rd

I The Feynman-Kac formula tells us that v is solution to the PDE :r(t, x) v(t, x)− ∂tv(t, x)−∇xv(t, x)· b− 1

2 Tr(σσT D2

xxv(t, x))

= f (t, x)v(T, .) = g

I Moreover, if w(t, x) is C1,2 and has bounded derivative, then w(t, x) = v(t, x), i.e.admits the representation above.

• Intuitions : a function v of X subject to a diffusion can be represented by theexpected future value g, adding running gain f and discounting r

I Used a lot in finance to compute option prices (Black-Scholes)• One can compute w using Monte-Carlo methods for instance

Go backThomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 70 / 73

Page 137: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Appendices : more on operator theory

Operators - a primerI If Operators are the infinite-dimensional version of matrices, Adjoint operator are

the ”equivalent” of transpose matrices.

I Most of the time an operator is a function applied on function :

• Example : ∇ : C1 → C0, f 7→ ∇fI The basic idea of linear algebra extend to functional spaces :

〈Mv1, v2〉 = 〈v1,MT v2〉

I The only difference is that inner product is ”replaced” by duality brackets. Forconventional functional spaces, it is ”defined” as follow :

〈 f , g〉 =

∫Rd

f (x) g(x)dx

I The nice thing is that you get more flexibility : f or g can be much less regular : itcan be probability measure P(Rd) or ”distributions” D′(Rd) for instance.

Go back

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 71 / 73

Page 138: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Appendices : more on operator theory

Operators - a primerI This flexibility has a cost : one of the two functions should be regular enough to

compensate for the irregularity of the other.• For instance, f = ϕ ∈ Cc and g = m ∈ P :

〈Lϕ,m〉 =

∫Rd

L[ϕ](x) m(dx)

I Let’s transpose an operator ! For our first example, f ∈ C1 and g ∈ Cc (compactsupport). Then, we already knew the result, actually (by integration by part) :

〈∇f , g〉 =∫Rd∇f (x)g(x)dx =

∑d

i

∫R∂xi f (xi)g(xi)dxi

=∑

i

[f g]∞−∞ −

∑d

i

∫R

f (xi)∂xi g(xi)dxi

= −∫Rd

f (x)∇g(x)dx

= −〈f ,∇g〉

I This can be generalized, even if f /∈ C1. (Important, e.g. if the measure/distribution of agents has (Dirac) mass points (at the credit constraint in our case).

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 72 / 73

Page 139: Wealth distribution over the business cycle A mean-field ... · Heterogeneous agents models – a MFG approach Wealth distribution over the business cycle A mean-field game approach

Heterogeneous agents models – a MFG approach

Appendices : more on operator theory

Operators - a primer

I Following this technique, one can find the adjoints of common operators.

I Here are a few of them, with ϕ ∈ C∞c and m ∈ D′ :

• The gradient is given above : 〈∇ϕ,m〉 = −〈f ,∇g〉• ”Scaled” gradient : 〈b∇ϕ,m〉 = −〈ϕ, div(b m)〉• The Laplacian ∆ is self-adjoint (≈ symmetrical) : 〈∆ϕ,m〉 = 〈ϕ,∆m〉• ”Scaled Laplacian : 〈σσT∆ϕ,m〉 = 〈ϕ,D2

xx(σσT m)〉

I Remember : div[f ] =∑d

i ∂xi f and ∆f = Tr(D2

xxf)

I These formulas should be useful for most cases found in economics.

• Still not convinced?I When we discretize the operators numerically (in the finite difference scheme),

this will yield matrices that we can transpose without problem... Go back

Thomas Bourany Heterogeneous agents models – a MFG approach Workshop MiMh - March, 13th. 73 / 73