Skip to content

Commit 1f7eded

Browse files
committed
fix minor error
1 parent 24c8f20 commit 1f7eded

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

lectures/cass_fiscal.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,9 @@ To compute an equilibrium, we seek a price system $\{q_t, \eta_t, w_t\}$, a bu
274274
- feasibility condition {eq}`eq:tech_capital`, no-arbitrage condition for household {eq}`eq:no_arb` and firms {eq}`eq:no_arb_firms`, household's first order conditions {eq}`eq:foc_c` and {eq}`eq:foc_n`.
275275
- an initial condition $k_0$ and a terminal condition {eq}`eq:terminal_final`.
276276
277-
277+
(cass_fiscal_shooting)=
278278
## Python Code
279279
280-
281280
We require the following imports
282281
283282
```{code-cell} ipython3
@@ -327,6 +326,12 @@ $$
327326
k_{t+1} = f(k_t) + (1 - \delta) k_t - g_t - c_t.
328327
$$ (eq:feasi_capital)
329328
329+
```{note}
330+
In the functions below, we include routines to handle the growth component, making the code more concise.
331+
332+
A detailed discussion of the growth model is provided later in the section {ref}`growth_model`.
333+
```
334+
330335
```{code-cell} ipython3
331336
def next_k(k_t, g_t, c_t, model, μ_t=None):
332337
"""
@@ -596,22 +601,13 @@ def f_prime(k, model, A=None):
596601
return model.α * A_val * k ** (model.α - 1)
597602
```
598603
599-
(compute_cass_fiscal)=
600604
## Computation
601605
602606
We describe two ways to compute an equilibrium:
603607
604608
* a shooting algorithm
605609
* a residual-minimization method that focuses on imposing Euler equation {eq}`eq:diff_second` and the feasibility condition {eq}`eq:feasi_capital`.
606610
607-
608-
```{note}
609-
In the functions below, we included routines to handle the growth component to
610-
make the code more concise.
611-
612-
A detailed discussion of the growth model is given later in {ref}`growth_model`.
613-
```
614-
615611
### Shooting Algorithm
616612
617613
This algorithm deploys the following steps.
@@ -1675,7 +1671,7 @@ $$
16751671
(c_tA_t)^{-\gamma} = \beta (c_{t+1}A_{t+1})^{-\gamma} \bar{R}_{t+1}
16761672
$$
16771673
1678-
Thus, the counterpart to {eq}`eq:consume_r` is
1674+
Thus, the counterpart to {eq}`eq:consume_R` is
16791675
16801676
$$
16811677
c_{t+1} = c_t \left[ \beta \bar{R}_{t+1} \right]^{\frac{1}{\gamma}}\mu_{t+1}^{-1}
@@ -1865,6 +1861,7 @@ The figures show that:
18651861
18661862
```{exercise}
18671863
:label: cass_fiscal_ex3
1864+
18681865
Replicate the plots of our two experiments using the second method of residual minimization.
18691866
1. A foreseen increase in $\mu$ from 1.02 to 1.025 at t=10,
18701867
2. A unforeseen increase in $\mu$ from 1.02 to 1.025 at t=0.
@@ -1873,9 +1870,10 @@ Replicate the plots of our two experiments using the second method of residual m
18731870
```{solution-start} cass_fiscal_ex3
18741871
:class: dropdown
18751872
```
1873+
18761874
Here is one solution:
18771875
1878-
#### Experiment 1: A foreseen increase in $\mu$ from 1.02 to 1.025 at t=10
1876+
**Experiment 1: A foreseen increase in $\mu$ from 1.02 to 1.025 at $t=10$**
18791877
18801878
```{code-cell} ipython3
18811879
shocks = {
@@ -1890,7 +1888,7 @@ A_path = compute_A_path(1.0, shocks, S)
18901888
experiment_model(shocks, S, model, A_path, run_min, plot_results, 'μ')
18911889
```
18921890
1893-
#### Experiment 2: A unforeseen increase in $\mu$ from 1.02 to 1.025 at t=0
1891+
**Experiment 2: A unforeseen increase in $\mu$ from 1.02 to 1.025 at $t=0$**
18941892
18951893
```{code-cell} ipython3
18961894
shocks = {
@@ -1902,6 +1900,7 @@ shocks = {
19021900
19031901
experiment_model(shocks, S, model, A_path, run_min, plot_results, 'μ')
19041902
```
1903+
19051904
```{solution-end}
19061905
```
19071906
@@ -1910,7 +1909,7 @@ experiment_model(shocks, S, model, A_path, run_min, plot_results, 'μ')
19101909
This section describes a two country version of the basic model of {ref}`cs_fs_model`.
19111910
19121911
The model has a structure similar to ones used in the international real business cycle literature and is
1913-
in the spirit of an analysis of distorting taxes by {cite:t}`mendoza_tesar_1998`.
1912+
in the spirit of an analysis of distorting taxes by {cite:t}`mendoza1998international`.
19141913
19151914
We allow two countries to trade goods, claims on future goods, but not labor.
19161915

0 commit comments

Comments
 (0)