Skip to content

Commit 866834d

Browse files
committed
update cass_fiscal
1 parent 3455bf5 commit 866834d

File tree

1 file changed

+35
-37
lines changed

1 file changed

+35
-37
lines changed

lectures/cass_fiscal.md

Lines changed: 35 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ kernelspec:
1515

1616
## Introduction
1717

18-
This lecture studies effects of technology and fiscal shocks on equilibrium outcomes in a nonstochastic growth model with features inherited from {doc}`cass_koopmans_2`
18+
This lecture studies effects of technology and fiscal shocks on equilibrium outcomes in a nonstochastic growth model with features inherited from {doc}`cass_koopmans_2`.
1919

2020
We use the model as a laboratory to exhibit numerical techniques for approximating equilibria and to display the structure of dynamic models in which decision makers have perfect foresight about future government decisions.
2121

@@ -464,7 +464,7 @@ def compute_R_bar_path(shocks, k_path, model, S=100):
464464
465465
$$
466466
R^{-1}_{t, t+1} = \frac{q_t}{q_{t-1}} = m_{t, t+1} = \beta \frac{u'(c_{t+1})}{u'(c_t)} \frac{(1 + \tau_{ct})}{(1 + \tau_{ct+1})}
467-
$$ (eq:equil_R)
467+
$$ (eq:equil_bigR)
468468
469469
470470
*Net one-period rate of interest:*
@@ -473,7 +473,7 @@ $$
473473
r_{t, t+1} \equiv R_{t, t+1} - 1 = (1 - \tau_{k, t+1})(f'(k_{t+1}) - \delta)
474474
$$ (eq:equil_r)
475475
476-
By {eq}`eq:equil_R`, we have
476+
By {eq}`eq:equil_bigR`, we have
477477
478478
$$
479479
R_{t, t+s} = e^{s \cdot r_{t, t+s}}.
@@ -696,9 +696,9 @@ def run_shooting(shocks, S, model, c0_func=bisection_c0, shooting_func=shooting_
696696
697697
We will run a series of experiments and analyze the transition path for the equilibrium in each scenario:
698698
699-
1. A foreseen once-and-for-all increase in $g$ from 0.2 to 0.4 occurring in period 10.
700-
2. A foreseen once-and-for-all increase in $\tau_c$ from 0.0 to 0.2 occurring in period 10.
701-
3. A foreseen once-and-for-all increase in $\tau_k$ from 0.0 to 0.2 occurring in period 10.
699+
1. A foreseen once-and-for-all increase in $g$ from 0.2 to 0.4 occurring in period 10,
700+
2. A foreseen once-and-for-all increase in $\tau_c$ from 0.0 to 0.2 occurring in period 10,
701+
3. A foreseen once-and-for-all increase in $\tau_k$ from 0.0 to 0.2 occurring in period 10, and
702702
4. A foreseen one-time increase in $g$ from 0.2 to 0.4 in period 10, after which $g$ reverts to 0.2 permanently.
703703
704704
+++
@@ -778,19 +778,17 @@ plt.tight_layout()
778778
plt.show()
779779
```
780780
781-
- Steady-State Value of Capital Stock
782-
- The steady-state value of the capital stock remains unaffected.
783-
- This follows from the fact that $g$ disappears from the steady state version of the Euler equation ({eq}eq:diff_second_steady).
781+
We note the following features in the figure
782+
783+
- The steady-state value of the capital stock remains unaffected:
784+
- This follows from the fact that $g$ disappears from the steady state version of the Euler equation ({eq}`eq:diff_second_steady`).
784785
785-
- Gradual Reduction in Consumption
786-
- Consumption begins to decline gradually before time $T$ due to increased government consumption.
786+
- Consumption begins to decline gradually before time $T$ due to increased government consumption:
787787
- Households reduce consumption to offset government spending, which is financed through increased lump-sum taxes.
788788
- The competitive economy signals households to consume less through an increase in the stream of lump-sum taxes.
789789
- Households, caring about the present value rather than the timing of taxes, experience an adverse wealth effect on consumption, leading to an immediate response.
790790
791-
- Effect on Capital Stock:
792-
- Capital gradually accumulates between time $0$ and $T$ due to increased savings.
793-
- After time $T$, capital stock gradually decreases.
791+
- Capital gradually accumulates between time $0$ and $T$ due to increased savings and reduces gradually after time $T$:
794792
- This temporal variation in capital stock smooths consumption over time, driven by the consumption-smoothing motive.
795793
796794
Let's write the procedures above into a function that runs the solver and draw the plots for a given model
@@ -866,17 +864,17 @@ plt.tight_layout()
866864
plt.show()
867865
```
868866
869-
- Impact of Lower $\gamma$:
867+
From the graph we can observe that lowering $\gamma$ affects both the consumption and capital stock paths:
868+
869+
- Consumption path:
870870
- Lowering $\gamma$ increases the willingness to substitute consumption across time.
871871
- In the case of $\gamma = 0.2$, consumption becomes less smooth compared to $\gamma = 2$.
872872
- For $\gamma = 0.2$, consumption mirrors the government expenditure path more closely, staying higher until $t = 10$.
873873
874-
- Effects on Capital and Fluctuations:
874+
- Capital stock path:
875875
- With $\gamma = 0.2$, there are smaller build-ups and drawdowns of capital stock.
876876
- Leads to smaller fluctuations in $\bar{R}$ and $\eta$.
877877
878-
+++
879-
880878
Let's write another function that runs the solver and draw the plots for two models as we did above
881879
882880
```{code-cell} ipython3
@@ -969,7 +967,7 @@ def plot_prices(solution, c_ss, shock_param, axes,
969967
```
970968
971969
For $\gamma = 2$ again, the next figure describes the response of $q_t$ and the term
972-
structure of interest rates to a foreseen increase in $g_t$ at $t = 10$.
970+
structure of interest rates to a foreseen increase in $g_t$ at $t = 10$
973971
974972
```{code-cell} ipython3
975973
solution = run_shooting(shocks, S, model)
@@ -1035,8 +1033,10 @@ experiment_model(shocks, S, model, run_shooting, plot_results, 'τ_c')
10351033
```
10361034
10371035
Notice that while all variables in the figure above eventually return to their initial
1038-
steady-state values, the anticipated increase in $\tau_{ct}$ leads to variations in consumption
1039-
across time:
1036+
steady-state values.
1037+
1038+
The anticipated increase in $\tau_{ct}$ leads to variations in consumption
1039+
and capital stock across time:
10401040
10411041
- At $t = 0$:
10421042
- Anticipation of the increase in $\tau_c$ causes an *immediate jump in consumption*.
@@ -1071,7 +1071,7 @@ experiment_two_models(shocks, S, model, model_γ2,
10711071
10721072
The path of government expenditures remains fixed, and the increase in $\tau_{kt}$ is offset by a reduction in the present value of lump-sum taxes to keep the budget balanced.
10731073
1074-
We note that
1074+
We note the following features in the figure:
10751075
10761076
- Anticipation of the increase in $\tau_{kt}$ leads to immediate decline in capital stock due to increased current consumption and growing consumption flow.
10771077
- $\bar{R}$ starts rising at $t = 0$ and peaks at $t = 9$, and at $t = 10$, $\bar{R}$ drops sharply due to the tax change.
@@ -1104,7 +1104,7 @@ shocks = {
11041104
experiment_model(shocks, S, model, run_shooting, plot_results, 'g')
11051105
```
11061106
1107-
We note that such a policy change impacts consumption and capital in an interesting one:
1107+
We note that such a policy change impacts consumption and capital in an interesting way:
11081108
11091109
- Consumption:
11101110
- Drops immediately at the announcement of the policy and continues to decline over time in anticipation of the one-time surge in $g$.
@@ -1120,12 +1120,12 @@ We note that such a policy change impacts consumption and capital in an interest
11201120
11211121
The second method involves minimizing the residuals of the following equations:
11221122
1123-
- *The Euler equation* {eq}`eq:diff_second`:
1123+
- The Euler equation {eq}`eq:diff_second`:
11241124
$$
11251125
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]
11261126
$$
11271127
1128-
- *The feasibility condition* {eq}`eq:feasi_capital`:
1128+
- The feasibility condition {eq}`eq:feasi_capital`:
11291129
$$
11301130
k_{t+1} = A k_{t}^{\alpha} + (1 - \delta) k_t - g_t - c_t.
11311131
$$
@@ -1151,38 +1151,36 @@ def feasi_residual(k_t, k_tm1, c_tm1, g_t, model):
11511151
11521152
The algorithm is described as follows:
11531153
1154-
1. *Calculate the initial state $k_0$*:
1155-
- Derive $k_0$ based on the given initial government plan $z_0$.
1154+
1. Derive $k_0$ based on the given initial government plan $z_0$.
11561155
1157-
2. *Initialize a sequence of initial guesses* $\{\hat{c}_t, \hat{k}_t\}_{t=0}^{S}$.
1156+
2. Initialize a sequence of initial guesses $\{\hat{c}_t, \hat{k}_t\}_{t=0}^{S}$.
11581157
1159-
3. *Compute the residuals* $l_a$ and $l_k$ for $t = 0, \dots, S$, as well as $l_{k_0}$ for $t = 0$ and $l_{k_S}$ for $t = S$:
1160-
- Compute the *Euler's equation* residual for $t = 0, \dots, S$ using {eq}`eq:diff_second`:
1158+
3. Compute the residuals $l_a$ and $l_k$ for $t = 0, \dots, S$, as well as $l_{k_0}$ for $t = 0$ and $l_{k_S}$ for $t = S$:
1159+
- Compute the Euler's equation residual for $t = 0, \dots, S$ using {eq}`eq:diff_second`:
11611160
11621161
$$
11631162
l_{ta} = \beta u'(c_{t+1}) \frac{(1 + \tau_{ct})}{(1 + \tau_{ct+1})} \left[(1 - \tau_{kt+1})(f'(k_{t+1}) - \delta) + 1 \right] - 1
11641163
$$
11651164

1166-
- Compute the *feasibility condition* residual for $t = 1, \dots, S-1$ using {eq}`eq:feasi_capital`:
1165+
- Compute the feasibility condition residual for $t = 1, \dots, S-1$ using {eq}`eq:feasi_capital`:
11671166

11681167
$$
11691168
l_{tk} = k_{t+1} - f(k_t) - (1 - \delta)k_t + g_t + c_t
11701169
$$
11711170

1172-
- Compute the residual for the *initial condition for $k_0$* using {eq}`eq:diff_second_steady` and the initial capital $k_0$:
1171+
- Compute the residual for the*initial condition for $k_0$ using {eq}`eq:diff_second_steady` and the initial capital $k_0$:
11731172

11741173
$$
11751174
l_{k_0} = 1 - \beta \left[ (1 - \tau_{k0}) \left(f'(k_0) - \delta \right) + 1 \right]
11761175
$$
11771176

1178-
- Compute the residual for the *terminal condition* for $t = S$ using {eq}`eq:diff_second` under the assumptions $c_t = c_{t+1} = c_S$, $k_t = k_{t+1} = k_S$, $\tau_{ct} = \tau_{ct+1} = \tau_{cS}$, and $\tau_{kt} = \tau_{kt+1} = \tau_{kS}$:
1177+
- Compute the residual for the terminal condition for $t = S$ using {eq}`eq:diff_second` under the assumptions $c_t = c_{t+1} = c_S$, $k_t = k_{t+1} = k_S$, $\tau_{ct} = \tau_{ct+1} = \tau_{cS}$, and $\tau_{kt} = \tau_{kt+1} = \tau_{kS}$:
11791178

11801179
$$
11811180
l_{k_S} = \beta u'(c_S) \frac{(1 + \tau_{cS})}{(1 + \tau_{cS})} \left[(1 - \tau_{kS})(f'(k_S) - \delta) + 1 \right] - 1
11821181
$$
11831182

1184-
4. *Residual Minimization*:
1185-
- Adjust the guesses for $\{\hat{c}_t, \hat{k}_t\}_{t=0}^{S}$ to minimize the residuals $l_{k_0}$, $l_{ta}$, $l_{tk}$, and $l_{k_S}$ for $t = 0, \dots, S$.
1183+
4. Iteratively adjust the guesses for $\{\hat{c}_t, \hat{k}_t\}_{t=0}^{S}$ to minimize the residuals $l_{k_0}$, $l_{ta}$, $l_{tk}$, and $l_{k_S}$ for $t = 0, \dots, S$.
11861184

11871185
```{code-cell} ipython3
11881186
# Computing residuals as objective function to minimize
@@ -1345,8 +1343,8 @@ experiment_model(shocks, S, model, run_min, plot_results, 'g')
13451343
```{exercise}
13461344
:label: cass_fiscal_ex2
13471345
1348-
Design a new experiment where the government expenditure $g$ increases from 0.2 to 0.4 in period 10,
1349-
and then decreases to 0.1 in period 20, after which it remains at 0.1 forever.
1346+
Design a new experiment where the government expenditure $g$ increases from $0.2$ to $0.4$ in period $10$,
1347+
and then decreases to $0.1$ in period $20$ permanently.
13501348
```
13511349

13521350
```{solution-start} cass_fiscal_ex2

0 commit comments

Comments
 (0)