@@ -1121,11 +1121,13 @@ We note that such a policy change impacts consumption and capital in an interest
11211121The second method involves minimizing the residuals of the following equations:
11221122
11231123- The Euler equation {eq}`eq:diff_second`:
1124+
11241125 $$
11251126 1 = \beta \left(\frac{c_ {t+1}}{c_t}\right)^{-\gamma} \frac{(1+\tau_ {ct})}{(1+\tau_ {ct+1})} \left[ (1 - \tau_ {kt+1})(\alpha A k_ {t+1}^{\alpha-1} - \delta) + 1 \right]
11261127 $$
11271128
11281129- The feasibility condition {eq}`eq:feasi_capital`:
1130+
11291131 $$
11301132 k_ {t+1} = A k_ {t}^{\alpha} + (1 - \delta) k_t - g_t - c_t.
11311133 $$
@@ -1151,7 +1153,7 @@ def feasi_residual(k_t, k_tm1, c_tm1, g_t, model):
11511153
11521154The algorithm is described as follows:
11531155
1154- 1. Derive $k_0$ based on the given initial government plan $z_0 $.
1156+ 1. Derive intial steady state $k_0$ based on the government plan at $t=0 $.
11551157
115611582. Initialize a sequence of initial guesses $\{\hat{c}_t, \hat{k}_t\}_{t=0}^{S}$.
11571159
@@ -1235,8 +1237,6 @@ def run_min(shocks, S, model):
12351237 return sol.x.reshape((S + 1, 2))
12361238```
12371239
1238- Below are the results for the same experiments using the second method.
1239-
12401240This method does not have numerical stability issues, so ` mp.mpf ` is not necessary.
12411241
12421242We leave the experiments for you to replicate using the second method.
@@ -1246,13 +1246,11 @@ We leave the experiments for you to replicate using the second method.
12461246``` {exercise}
12471247:label: cass_fiscal_ex1
12481248
1249- Replicate the plots of the four experiments we run before:
1249+ Replicate the plots of the four experiments we run before using the second method of residual minimization :
125012501. A foreseen once-and-for-all increase in $g$ from 0.2 to 0.4 occurring in period 10,
125112512. A foreseen once-and-for-all increase in $\tau_c$ from 0.0 to 0.2 occurring in period 10,
125212523. A foreseen once-and-for-all increase in $\tau_k$ from 0.0 to 0.2 occurring in period 10, and
125312534. A foreseen one-time increase in $g$ from 0.2 to 0.4 in period 10, after which $g$ reverts to 0.2 permanently,
1254-
1255- using the second method of residual minimization.
12561254```
12571255
12581256``` {solution-start} cass_fiscal_ex1
0 commit comments