Professional Documents
Culture Documents
Ben J. Heijdra
13 December 2016
Outline
1 Dynamic programming
Deterministic
Stochastic – Finite horizon
Stochastic – Infinite horizon
Individual who lives for three periods and has the following
lifetime utility function:
Ct is consumption in period t
β ≡ 1/(1 + ρ) is the discount factor due to impatience (ρ is
the rate of time preference, ρ > 0)
U (x) is a felicity function satisfying U ′ (x) > 0, U ′′ (x) < 0,
and the usual Inada style condition limx→0 U ′ (x) = +∞
Felicity function is logarithmic:
U (Ct ) = ln Ct (S2)
A∗4 = 0
Ĉ1 = C1 (a; r1 , r2 , r2 , w1 , w2 , w3 )
1 w2 w3
≡ (1 + r1 )a + w1 + +
1 + β + β2 1 + r2 (1 + r2 )(1 + r3 )
(S9a)
and:
Â2 = (1 + r1 )a + w1 − Ĉ1
= A+1 (a; r1 , r2 , r3 , w1 , w2 , w3 )
β(1 + β)
≡ [(1 + r1 )a + w1 ]
1 + β + β2
1 w2 w3
− + (S9b)
1 + β + β 2 1 + r2 (1 + r2 )(1 + r3 )
DP insight (1)
1 β(1 + r3 )
= (S10e)
c (1 + r3 )[(1 + r2 )a + w2 − c] + w3
β 1 w3
A+
2 (a; ·) = [(1 + r2 )a + w2 ] − (S10g)
1+β 1 + β 1 + r3
The problem:
FONC:
U ′ (c) = βV2′ ((1 + r1 )a + w1 − c)) (S10k)
For U (c) = ln c to:
1 β(1 + β)
= w2 w3 (S10l)
c (1 + r1 )a + w1 + 1+r 2
+ (1+r2 )(1+r3 )
β(1 + β)
A+
1 (a; ·) = [(1 + r1 )a + w1 ]
1 + β + β2
1 w2 w3
− +
1 + β + β 2 1 + r2 (1 + r2 )(1 + r3 )
(S10n)
Value function:
0.2
0.1
-0.1
-0.2
-0.3
V (a)
1
V 2 (a)
-0.4 V 3 (a)
-0.5
-0.6
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
asset levels (a)
1.1
0.9
0.8
0.7
0.6
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
asset levels (a)
0.3
0.25
0.2
0.15
A +1 (a)
A +2 (a)
A + (a)
3
0.1
0.05
-0.05
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
asset levels (a)
U ′ (c) = βVt+1
′
((1 + rt )a + wt − c) (S11c)
e3
< “good”
>
p23 p33 p32 p31
e2
< “average”
>
p13 p12 p22 p21
e1
“bad”
>
p11
Foundations of Modern Macroeconomics - Third Edition Chapter 17 38 / 93
Dynamic programming Deterministic
Complete markets and Arrow-Debreu securities Stochastic – Finite horizon
Constructing the representative agent Stochastic – Infinite horizon
p33 C η 3 = e3
C η 2 = e3 C C η 3 = e2
p32
p23
p31 C η3 = e1
p23 C η 3 = e3
η 1 = e2 C η 2 = e2 η 3 = e2
p22
C C p22 C
p21 C η 3 = e1
p13 C η3 = e3
p21
η 2 = e1 η 3 = e2
C C p12 C
p11
C η 3 = e1
∂E1 [Λ1 ] h
= −β 2 π31 U ′ ((1 + r3 )A3 + e1 w3 − A4 )
∂A4
+ π32 U ′ ((1 + r3 )A3 + e2 w3 − A4 )
i
+ π33 U ′ ((1 + r3 )A3 + e3 w3 − A4 ) < 0,
∂E1 [Λ1 ]
A4 ≥ 0, A4 =0 (S13b)
∂A4
It follows that A∗4 = 0 just as in the deterministic case
Assets in period t = 2:
∂E1 [Λ1 ]
= −U ′ ((1 + r1 )A1 + w1 − A2 )
∂A2
h
+ β(1 + r2 ) π21 U ′ ((1 + r2 )A2 + e1 w2 − A3 )
+ π22 U ′ ((1 + r2 )A2 + e2 w2 − A3 )
i
+ π23 U ′ ((1 + r2 )A2 + e3 w2 − A3 ) = 0
(S13c)
Assets in period t = 3:
∂E1 [Λ1 ] h
= −β π21 U ′ ((1 + r2 )A2 + e1 w2 − A3 )
∂A3
+ π22 U ′ ((1 + r2 )A2 + e2 w2 − A3 )
i
+ π23 U ′ ((1 + r2 )A2 + e3 w2 − A3 )
h
+ β 2 (1 + r3 ) π31 U ′ ((1 + r3 )A3 + e1 w3 )
+ π32 U ′ ((1 + r3 )A3 + e2 w3 )
i
+ π33 U ′ ((1 + r3 )A3 + e3 w3 ) = 0 (S13d)
A∗2 = A+
1 (A1 , e2 ) (S13e)
C1∗ = C1 (A1 , e2 ) = (1 + r1 )A1 + e2 w1 − A+
1 (A1 , e2 ) (S13f)
A∗3 = A+ ∗
2 (A2 , ei ) (S13i)
C2∗ = C2 (A∗2 , ei ) = (1 + r2 )A2 + ei w2 − A+
2 (A2 , ei ) (S13j)
Conclusion
It is feasible though tedious to compute the optimal choices in
the traditional manner by repeatedly solving a maximization
problem involving expected remaining lifetime utility
With idiosyncratic labour productivity risk of the Markov form,
the state vector in a particular period consists of assets at the
start of the period as well as the productivity indicator for that
period
Foundations of Modern Macroeconomics - Third Edition Chapter 17 49 / 93
Dynamic programming Deterministic
Complete markets and Arrow-Debreu securities Stochastic – Finite horizon
Constructing the representative agent Stochastic – Infinite horizon
Start at the end of life and work back to the first period
The consumer who has a in assets and labour productivity η
will choose c and a+ in order to maximize U (c) = ln c subject
to a+ = (1 + r3 )a + ηw3 − c
Policy and value functions:
Note that:
∂V3 (a, η)
V3′ (a, η) ≡ = (1 + r3 )U ′ (C3 (a, η; ·))
∂a
1 + r3
= (S14d)
(1 + r3 )a + ηw3
j=1
dC2 (a, η; ·)
V2′ (a, η) ≡ U ′ (C2 (a, η; ·))
da
′ + + dC2 (a, η; ·)
+ βEη+ |η V3 (A2 (a, η; ·), η ) (1 + r2 ) −
da
′
= (1 + r2 )U (C2 (a, η; ·)) (S14i)
Bellman equation:
The policy functions are C1 (a, η; ·) and A+ 1 (a, η; ·), and the
value function is:
0.1
-0.1
-0.2
-0.3
-0.4
-0.5
V (a,e )
1 1
-0.6
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
asset levels (a)
0.2
-0.2
-0.4
-0.6
-0.8 V (a,e )
2 1
V (a,e )
2 2
V (a,e )
2 3
-1
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
asset levels (a)
0.2
-0.2
-0.4
-0.6
V (a,e )
3 1
V (a,e )
3 2
V (a,e )
3 3
-0.8
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
asset levels (a)
0.35
0.3
0.25
0.2
0.15
0.1
+
A 1 (a,e2 )
0.05
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
asset levels (a)
1 A
0.8
B
0.6 C
0.4
C (a,e )
2 1
C2 (a,e2 )
C2 (a,e3 )
0.2
0
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
asset levels (a)
0.3
0.25
0.2
A
0.15
B
0.1
C A +2 (a,e1 )
+
0.05 A 2 (a,e2 )
A +2 (a,e3 )
0
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
asset levels (a)
F
C
G
1 A
D
E
B C3 (a,e1 )
C3 (a,e2 )
C3 (a,e3 )
0.5
0
0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0.16 0.18 0.2
asset levels (a)
ht ≡ (Z0 , Z1 , . . . , Zt ) (S15c)
In the most general case the optimal plans that the social
planner formulates at time t will depend on the entire vector
ht
If we assume that the stochastic process has the Markov
property, however, then Zt is all the planner needs to know to
make optimal plans at time t
Two constraints, (a) consumption must be non-negative
Ct ≥ 0 and (b) at time t = 0 the existing capital stock is
given (K0 is fixed) and Z0 is known
First/order condition:
∂L0
= −U ′ (Z0 F (K0 , 1) + (1 − δ)K0 − K1 )
∂K1
h
+ βEZ1 |Z0 U ′ (Z1 F (K1 , 1) + (1 − δ)K1 − K2 )
i
× Z1 FK (K1 , 1) + 1 − δ = 0
ht ≡ (s0 , s1 , . . . , st ) (S17a)
ht = (ht−1 , st )
ht is publicly and perfectly observable by all agents
unconditional probability of observing ht by πt (ht )
Lagrangian:
T
" I I
#
X X X X
t
U (cit (ht ))πt (ht ) t
yti (ht ) cit (ht )
L0 ≡ λi β + µt (h ) −
t=0 ht ∈Ht i=1 i=1
µt (ht )
β t U ′ (cit (ht ))πt (ht ) = (S17e)
λi
Aggregation (1)
Under complete contingent-claim markets risk sharing is
efficient and there is full insurance
Under quite general conditions regarding preferences one can
construct a fictional “representative agent” and ignore the
underlying heterogeneity of individuals when interested in
macroeconomic issues
Simple demonstration of this result in our simple endowment
model
Set q00 (h0 ) = q00 (s0 ) = 1 as the numeraire (price system is
expressed in units of period 0 goods)
Logarithmic felicity function, U (x) = ln x
It follows from (S18b) that:
1 β t πt (ht )
ζi = = (S19a)
ci0 (s0 ) qt0 (ht )cit (ht )
Foundations of Modern Macroeconomics - Third Edition Chapter 17 89 / 93
Dynamic programming
Complete markets and Arrow-Debreu securities
Constructing the representative agent
Aggregation (2)
Individual Euler equation:
cit (ht ) β t πt (ht )
= (S19b)
ci0 (s0 ) qt0 (ht )
The right-hand side of this expression is the same for all
i = 1, 2, . . . , I
Aggregate Euler equation:
Ct (ht ) β t πt (ht )
= 0 t (S19c)
C0 (s0 ) qt (h )
where aggregate consumption, Ct (ht ), is defined as:
I
X
t
Ct (h ) ≡ cit (ht ) (S19d)
i=1
Aggregation (3)
Consider the “representative agent” who has a utility function
which depends on aggregate consumption:
T
X X
Λ(C) ≡ E0 β t U (Ct ) = β t ln Ct (ht )πt (ht ) (S19e)
t=0 ht ∈Ht
Aggregation (4)
πt (ht )
βt = ζqt0 (ht ) (S19h)
Ct (ht )
Aggregation (5)
πt (ht )
βt = ζqt0 (ht ) (S19h)
Ct (ht )