You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can use these helper functions to obtain steady state values $\hat{Y}$, $\hat{r}$, and $\hat{W}$ associated with steady state values $\hat{K}$ and $\hat{r}$.
@@ -536,7 +536,7 @@ We'll then compute the single remaining undetermined policy variable from the go
536
536
537
537
When we simulate transition paths, it is useful to distinguish **state variables** at time $t$ such as $K_t, Y_t, D_t, W_t, r_t$ from **control variables** that include $C_{yt}, C_{ot}, \tau_{t}, G_t$.
538
538
539
-
```{code-cell}
539
+
```{code-cell} ipython3
540
540
class ClosedFormTrans:
541
541
"""
542
542
This class simulates length T transitional path of a economy
@@ -681,7 +681,7 @@ class ClosedFormTrans:
681
681
682
682
We can create an instance `closed` for model parameters $\{\alpha, \beta\}$ and use it for various fiscal policy experiments.
683
683
684
-
```{code-cell}
684
+
```{code-cell} ipython3
685
685
closed = ClosedFormTrans(α, β)
686
686
```
687
687
@@ -711,7 +711,7 @@ The first step is to prepare sequences of policy variables that describe fiscal
711
711
712
712
We must define sequences of government expenditure $\{G_t\}_{t=0}^{T}$ and debt level $\{D_t\}_{t=0}^{T+1}$ in advance, then pass them to the solver.
713
713
714
-
```{code-cell}
714
+
```{code-cell} ipython3
715
715
T = 20
716
716
717
717
# tax cut
@@ -730,7 +730,7 @@ Let's use the `simulate` method of `closed` to compute dynamic transitions.
730
730
731
731
Note that we leave `τ_pol` as `None`, since the tax rates need to be determined to satisfy the government budget constraint.
@@ -797,7 +797,7 @@ The government targets the same tax rate $\tau_t=\hat{\tau}$ and to accumulate
797
797
798
798
To conduct this experiment, we pass `τ_seq` and `G_seq` as inputs and let `D_pol` be determined along the path by satisfying the government budget constraint.
799
799
800
-
```{code-cell}
800
+
```{code-cell} ipython3
801
801
# government expenditure cut by a half
802
802
G_seq = τ_hat * 0.5 * Y_hat * np.ones(T+1)
803
803
@@ -812,7 +812,7 @@ As the government accumulates the asset and uses it in production, the rental r
812
812
813
813
As a result, the ratio $-\frac{D_t}{K_t}$ of the government asset to physical capital used in production will increase over time
@@ -934,14 +934,16 @@ An optimal consumption plan $C_y^*$ can be found by maximizing `Cy_val`.
934
934
935
935
Here is an example that computes optimal consumption $C_y^*=\hat{C}_y$ in the steady state with $\delta_{yt}=\delta_{ot}=0,$ like one that we studied earlier
@@ -950,7 +952,7 @@ Let's define a Python class `AK2` that computes the transition paths with the
950
952
951
953
It can handle nonzero lump sum taxes
952
954
953
-
```{code-cell}
955
+
```{code-cell} ipython3
954
956
class AK2():
955
957
"""
956
958
This class simulates length T transitional path of a economy
@@ -1121,13 +1123,13 @@ class AK2():
1121
1123
1122
1124
We can initialize an instance of class `AK2` with model parameters $\{\alpha, \beta\}$ and then use it to conduct fiscal policy experiments.
1123
1125
1124
-
```{code-cell}
1126
+
```{code-cell} ipython3
1125
1127
ak2 = AK2(α, β)
1126
1128
```
1127
1129
1128
1130
We first examine that the "guess and verify" method leads to the same numerical results as we obtain with the closed form solution when lump sum taxes are muted
Let's alter our {ref}`exp-tax-cut` fiscal policy experiment by assuming that the government also increases lump sum taxes for both young and old people $\delta_{yt}=\delta_{ot}=0.005, t\geq0$.
0 commit comments