Professional Documents
Culture Documents
Exercise Set 2: Exercise 1 (L7) : Solving The Buffer-Stock Consump-Tion Model With EGM
Exercise Set 2: Exercise 1 (L7) : Solving The Buffer-Stock Consump-Tion Model With EGM
by Jeppe Druedahl
This exercise set contains exercises for solving, simulating and estimating the buffer-
stock consumption model. The third (optional) exercise consider the consumption-
saving model from lecture 9 with a discrete absorbing retirement choice.
1
Exercise 2 [L8]: Estimating the buffer-stock consump-
tion model with MLE and MSM
Consider the canonical buffer-stock consumption model from lecture 7. The exercise
will be to add code to estimate.m such that Exercise_2.mlx can be run to produce
consistent estimates under both MLE and MSM from lecture 8.
3. Run section 3-4 of Exercise_2.mlx to check that your results are correct
6. Run section 6-7 of Exercise_2.mlx to check that your results are correct
n o
L
vt (mt , zt , ε0t , ε1t ) = max Vt (mt , zt+1 ) + σε εt t+1
zt+1 ∈Z(zt )
{0, 1} if zt = 0
Z(zt ) =
{1} if zt = 1
2
c1−ρ
t
Vt (mt , zt+1 ) = max
ct 1 − ρ
− α1zt+1 =0 + βEt [vt+1 (•t+1 )]
s.t.
mt+1 = R(mt − ct ) + W ξt+1 1zt+1 =0
ct ≤ mt
log ξt+1 ∼ N (−0.5σξ2 , σξ2 )
ε0t+1 , ε1t+1 ∼ Extreme Value Type 1
The exercise will be to add code in model_dc.m such that Exercise_3.mlx can be run
to produce the consumption function figures from the lecture. This cannot be done
without understanding all the other functions in model_dc.
1. Ensure that you understand the function funs.logsum
2. Ensure that you understand all functions in model_dc.m
3. Fill in the missing stuff in the function model_dc.EGM
4. Run Exercise_3.mlx to check that your results are correct
Now consider the model extended with permanent income
n o
L
vt (mt , pt , zt , ε0t , ε1t ) = max Vt (mt , pt , zt+1 ) + σε εt t+1
zt+1 ∈Z(zt )
{0, 1} if zt = 0
Z(zt ) =
{1} if zt = 1
where
ct1−ρ
Vt (mt , pt , zt+1 ) = max − α1zt+1 =0 + βEt [vt+1 (•t+1 )]
ct 1−ρ
s.t.
p
t if zt+1 = 1
pt+1 =
ξt+1 pt if zt+1 = 0
mt+1 = R(mt − ct ) + W 1zt+1 =0 pt+1 + κ1zt+1 =1 pt+1
ct ≤ mt
log ξt+1 ∼ N (−0.5σξ2 , σξ2 )
ε0t+1 , ε1t+1 ∼ Extreme Value Type 1