Professional Documents
Culture Documents
Macroeconomics 1 PS4 PDF
Macroeconomics 1 PS4 PDF
Problem Set # 4
For this exercise, you can use any programming language that you prefer. In the seminar,
we will use Python to solve it.
In the last Problem Set, we solved the Ramsey model with household size growth
and no technological change for a given initial level of capital k0 . The two optimality
conditions are
k̇ = f (k) − c − (δ + n)k
ċ
= σ(f ′ (k) − δ − ρ)
c
k n+1 − k n
k̇ ≈
∆t
1
and approximate the differential equations by
k n+1 − k n
= f (k n ) − cn − (δ + n)k n
∆t
cn+1 − cn 1
= σ(f ′ (k n ) − δ − ρ)
∆t cn
The Algorithm
(a) If at any iteration cn > c∗ set c̄ = c0 and select a new c0 = (c̄ + c)/2.
(b) If at any iteration k n > k ∗ set c = c0 and select a new c0 = (c̄ + c)/2.
2
(c) If ϵ < 0.01, we found c0 and the entire path of cn and k n
Exercise
(b) Plot the path of kt and ct together with the k̇ = 0 and ċ = 0 curves.
(c) Plot two paths, one for some initial consumption higher than c0 and another for an
initial consumption lower than c0 .