Skip to content

Commit f6dcddb

Browse files
committed
migrate latest sources from lecture-python-advanced (f82c31f1d31652f89065a51bd684cd6b81451bea)
1 parent e829ce2 commit f6dcddb

3 files changed

Lines changed: 137 additions & 125 deletions

File tree

‎lectures/amss.md‎

Lines changed: 60 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ It is at this point that AMSS {cite}`aiyagari2002optimal` modify the Lucas and S
118118

119119
AMSS allow the government to issue only one-period risk-free debt each period.
120120

121-
Ruling out complete markets in this way is a step in the direction of making total tax collections behave more like that prescribed in {cite}`Barro1979` than they do in {cite}`LucasStokey1983`.
121+
Ruling out complete markets in this way is a step in the direction of making total tax collections behave more like that prescribed in Robert Barro (1979) {cite}`Barro1979` than they do in Lucas and Stokey (1983) {cite}`LucasStokey1983`.
122122

123123
### Risk-free One-Period Debt Only
124124

@@ -139,14 +139,14 @@ The government’s budget constraint in period $t$ at history $s^t$ is
139139
140140
\begin{aligned}
141141
b_t(s^{t-1})
142-
& = \tau^n_t(s^t) n_t(s^t) - g_t(s_t) - T_t(s^t) +
142+
& = \tau^n_t(s^t) n_t(s^t) - g(s_t) - T_t(s^t) +
143143
{b_{t+1}(s^t) \over R_t(s^t )}
144144
\\
145-
& \equiv z(s^t) + {b_{t+1}(s^t) \over R_t(s^t )},
145+
& \equiv z_t(s^t) + {b_{t+1}(s^t) \over R_t(s^t )},
146146
\end{aligned}
147147
```
148148

149-
where $z(s^t)$ is the net-of-interest government surplus.
149+
where $z_t(s^t)$ is the net-of-interest government surplus.
150150

151151
To rule out Ponzi schemes, we assume that the government is subject to a **natural debt limit** (to be discussed in a forthcoming lecture).
152152

@@ -165,16 +165,16 @@ yields:
165165
```{math}
166166
:label: TS_gov_wo2
167167
168-
b_t(s^{t-1}) = z(s^t) + \beta \sum_{s^{t+1}\vert s^t} \pi_{t+1}(s^{t+1} | s^t)
168+
b_t(s^{t-1}) = z_t(s^t) + \beta \sum_{s^{t+1}\vert s^t} \pi_{t+1}(s^{t+1} | s^t)
169169
{ u_c(s^{t+1}) \over u_c(s^{t}) } \; b_{t+1}(s^t)
170170
```
171171

172-
Components of $z(s^t)$ on the right side depend on $s^t$, but the left side is required to depend only
172+
Components of $z_t(s^t)$ on the right side depend on $s^t$, but the left side is required to depend only
173173
on $s^{t-1}$ .
174174

175175
**This is what it means for one-period government debt to be risk-free**.
176176

177-
Therefore, the sum on the right side of equation {eq}`TS_gov_wo2` also has to depend only on $s^{t-1}$.
177+
Therefore, the right side of equation {eq}`TS_gov_wo2` also has to depend only on $s^{t-1}$.
178178

179179
This requirement will give rise to **measurability constraints** on the Ramsey allocation to be discussed soon.
180180

@@ -183,13 +183,13 @@ side of next period’s budget constraint (associated with a
183183
particular realization $s_{t}$) we get
184184

185185
$$
186-
b_t(s^{t-1}) = z(s^t) + \sum_{s^{t+1}\vert s^t} \beta \pi_{t+1}(s^{t+1} | s^t)
186+
b_t(s^{t-1}) = z_t(s^t) + \sum_{s^{t+1}\vert s^t} \beta \pi_{t+1}(s^{t+1} | s^t)
187187
{ u_c(s^{t+1}) \over u_c(s^{t}) }
188-
\, \left[z(s^{t+1}) + {b_{t+2}(s^{t+1}) \over R_{t+1}(s^{t+1})}\right]
188+
\, \left[z_{t+1}(s^{t+1}) + {b_{t+2}(s^{t+1}) \over R_{t+1}(s^{t+1})}\right]
189189
$$
190190

191191
After making similar repeated substitutions for all future occurrences of
192-
government indebtedness, and by invoking the natural debt limit, we
192+
government indebtedness, and by invoking a natural debt limit, we
193193
arrive at:
194194

195195
```{math}
@@ -198,7 +198,7 @@ arrive at:
198198
\begin{aligned}
199199
b_t(s^{t-1})
200200
&= \sum_{j=0}^\infty \sum_{s^{t+j} | s^t} \beta^j \pi_{t+j}(s^{t+j} | s^t)
201-
{ u_c(s^{t+j}) \over u_c(s^{t}) } \;z(s^{t+j})
201+
{ u_c(s^{t+j}) \over u_c(s^{t}) } \;z_{t+j}(s^{t+j})
202202
\end{aligned}
203203
```
204204

@@ -210,17 +210,17 @@ Now let's
210210
* substitute the resource constraint into the net-of-interest government surplus, and
211211
* use the household’s first-order condition $1-\tau^n_t(s^t)= u_{\ell}(s^t) /u_c(s^t)$ to eliminate the labor tax rate
212212

213-
so that we can express the net-of-interest government surplus $z(s^t)$ as
213+
so that we can express the net-of-interest government surplus $z_t(s^t)$ as
214214

215215
```{math}
216216
:label: AMSS_44_2
217217
218-
z(s^t)
219-
= \left[1 - {u_{\ell}(s^t) \over u_c(s^t)}\right] \left[c_t(s^t)+g_t(s_t)\right]
220-
-g_t(s_t) - T_t(s^t)\,.
218+
z_t(s^t)
219+
= \left[1 - {u_{\ell}(s^t) \over u_c(s^t)}\right] \left[c_t(s^t)+g(s_t)\right]
220+
-g(s_t) - T_t(s^t)\,.
221221
```
222222

223-
If we substitute appropriate versions of the right side of {eq}`AMSS_44_2` for $z(s^{t+j})$ into equation {eq}`TS_gov_wo3`,
223+
If we substitute appropriate versions of the right side of {eq}`AMSS_44_2` for $z_{t+j}(s^{t+j})$ into equation {eq}`TS_gov_wo3`,
224224
we obtain a sequence of *implementability constraints* on a Ramsey allocation in an AMSS economy.
225225

226226
Expression {eq}`TS_gov_wo3` at time $t=0$ and initial state $s^0$
@@ -230,7 +230,7 @@ was also an *implementability constraint* on a Ramsey allocation in a Lucas-Sto
230230
:label: TS_gov_wo4
231231
232232
b_0(s^{-1}) = \mathbb E_0 \sum_{j=0}^\infty \beta^j
233-
{ u_c(s^{j}) \over u_c(s^{0}) } \;z(s^{j})
233+
{ u_c(s^{j}) \over u_c(s^{0}) } \;z_j(s^{j})
234234
```
235235

236236
Indeed, it was the *only* implementability constraint there.
@@ -241,7 +241,7 @@ But now we also have a large number of additional implementability constraints
241241
:label: TS_gov_wo4a
242242
243243
b_t(s^{t-1}) = \mathbb E_t \sum_{j=0}^\infty \beta^j
244-
{ u_c(s^{t+j}) \over u_c(s^{t}) } \;z(s^{t+j})
244+
{ u_c(s^{t+j}) \over u_c(s^{t}) } \;z_{t+j}(s^{t+j})
245245
```
246246

247247
Equation {eq}`TS_gov_wo4a` must hold for each $s^t$ for each $t \geq 1$.
@@ -263,7 +263,7 @@ After we have substituted the resource constraint into the utility function, we
263263
$$
264264
\max_{\{c_t(s^t),b_{t+1}(s^t)\}}
265265
\mathbb E_0 \sum_{t=0}^\infty \beta^t
266-
u\left(c_t(s^t),1-c_t(s^t)-g_t(s_t)\right)
266+
u\left(c_t(s^t),1-c_t(s^t)-g(s_t)\right)
267267
$$
268268

269269
where the maximization is subject to
@@ -272,7 +272,7 @@ where the maximization is subject to
272272
:label: AMSS_44
273273
274274
\mathbb E_{0} \sum_{j=0}^\infty \beta^j
275-
{ u_c(s^{j}) \over u_c(s^{0}) } \;z(s^{j}) \geq b_0(s^{-1})
275+
{ u_c(s^{j}) \over u_c(s^{0}) } \;z_j(s^{j}) \geq b_0(s^{-1})
276276
```
277277

278278
and
@@ -282,7 +282,7 @@ and
282282
283283
\mathbb E_{t} \sum_{j=0}^\infty \beta^j
284284
{ u_c(s^{t+j}) \over u_c(s^{t}) } \;
285-
z(s^{t+j}) = b_t(s^{t-1})
285+
z_{t+j}(s^{t+j}) = b_t(s^{t-1})
286286
\quad \forall \, t, s^t
287287
```
288288

@@ -306,7 +306,7 @@ $$
306306
&\;\geq\; (\leq)\;\, 0 \quad \text{if the constraint binds in the following direction }
307307
\\
308308
& \mathbb E_{t} \sum_{j=0}^\infty \beta^j
309-
{ u_c(s^{t+j}) \over u_c(s^{t}) } \;z(s^{t+j}) \;\geq \;(\leq)\;\, b_t(s^{t-1})
309+
{ u_c(s^{t+j}) \over u_c(s^{t}) } \;z_{t+j}(s^{t+j}) \;\geq \;(\leq)\;\, b_t(s^{t-1})
310310
\end{aligned}
311311
$$
312312

@@ -331,14 +331,14 @@ Then a Lagrangian for the Ramsey problem can be represented as
331331
332332
\begin{aligned}
333333
J &= \mathbb E_{0} \sum_{t=0}^\infty \beta^t
334-
\biggl\{ u\left(c_t(s^t), 1-c_t(s^t)-g_t(s_t)\right)\\
334+
\biggl\{ u\left(c_t(s^t), 1-c_t(s^t)-g(s_t)\right)\\
335335
& \qquad + \gamma_t(s^t) \Bigl[ \mathbb E_{t} \sum_{j=0}^\infty \beta^j
336-
u_c(s^{t+j}) \,z(s^{t+j}) - u_c(s^{t}) \,b_t(s^{t-1}) \biggr\}
336+
u_c(s^{t+j}) \,z_{t+j}(s^{t+j}) - u_c(s^{t}) \,b_t(s^{t-1}) \biggr\}
337337
\\
338338
&= \mathbb E_{0} \sum_{t=0}^\infty \beta^t
339-
\biggl\{ u\left(c_t(s^t), 1-c_t(s^t)-g_t(s_t)\right)
339+
\biggl\{ u\left(c_t(s^t), 1-c_t(s^t)-g(s_t)\right)
340340
\\
341-
& \qquad + \Psi_t(s^t)\, u_c(s^{t}) \,z(s^{t}) -
341+
& \qquad + \Psi_t(s^t)\, u_c(s^{t}) \,z_t(s^{t}) -
342342
\gamma_t(s^t)\, u_c(s^{t}) \, b_t(s^{t-1}) \biggr\}
343343
\end{aligned}
344344
```
@@ -365,7 +365,7 @@ to $c_t(s^t)$ can be expressed as
365365
366366
\begin{aligned}
367367
u_c(s^t)-u_{\ell}(s^t) &+ \Psi_t(s^t)\left\{ \left[
368-
u_{cc}(s^t) - u_{c\ell}(s^{t})\right]z(s^{t}) +
368+
u_{cc}(s^t) - u_{c\ell}(s^{t})\right]z_t(s^{t}) +
369369
u_{c}(s^{t})\,z_c(s^{t}) \right\}
370370
\\
371371
& \hspace{35mm} - \gamma_t(s^t)\left[
@@ -381,7 +381,7 @@ and with respect to $b_t(s^t)$ as
381381
\mathbb E_{t} \left[\gamma_{t+1}(s^{t+1})\,u_c(s^{t+1})\right] = 0
382382
```
383383

384-
If we substitute $z(s^t)$ from {eq}`AMSS_44_2` and its derivative
384+
If we substitute $z_t(s^t)$ from {eq}`AMSS_44_2` and its derivative
385385
$z_c(s^t)$ into the first-order condition {eq}`AMSS_foc;a`, we find two
386386
differences from the corresponding condition for the optimal allocation
387387
in a Lucas-Stokey economy with state-contingent government debt.
@@ -392,7 +392,7 @@ in a Lucas-Stokey economy with state-contingent government debt.
392392
* This term reflects the constraint that
393393
beginning-of-period government indebtedness must be the same across all
394394
realizations of next period’s state, a constraint that would not be present if
395-
government debt could be state contingent.
395+
government debt could be state-contingent.
396396
1. The Lagrange multiplier $\Psi_t(s^t)$ in the first-order condition
397397
{eq}`AMSS_foc;a` may change over time in response to realizations of the state,
398398
while the multiplier $\Phi$ in the Lucas-Stokey economy is time-invariant.
@@ -436,8 +436,7 @@ $$
436436
where $R_t(s^t)$ is the gross risk-free rate of interest between $t$
437437
and $t+1$ at history $s^t$ and $T_t(s^t)$ are non-negative transfers.
438438

439-
Throughout this lecture, we shall set transfers to zero (for some issues about the limiting behavior of debt, this makes a possibly
440-
important difference from AMSS {cite}`aiyagari2002optimal`, who restricted transfers
439+
Throughout this lecture, we shall set transfers to zero (for some issues about the limiting behavior of debt, this is possibly an important difference from AMSS {cite}`aiyagari2002optimal`, who restricted transfers
441440
to be non-negative).
442441

443442
In this case, the household faces a sequence of budget constraints
@@ -583,7 +582,7 @@ condition with respect to $x(s)$ is
583582
\beta V_x(x(s),s) = \mu(s|s_-)
584583
```
585584

586-
Applying the envelope theorem to Bellman equation {eq}`eqn:AMSSapp5` gives
585+
Applying an envelope theorem to Bellman equation {eq}`eqn:AMSSapp5` gives
587586

588587
```{math}
589588
:label: eqn:AMSSapp8
@@ -598,7 +597,7 @@ Equations {eq}`eqn:AMSSapp7` and {eq}`eqn:AMSSapp8` imply that
598597
:label: eqn:AMSSapp9
599598
600599
V_x(x_-, s_-) = \sum_{s} \left( \Pi(s|s_-) {\frac{u_c(s)}{\sum_{\tilde s}
601-
\Pi(\tilde s| s_-) u_c(\tilde s)}} \right) V_x(x(s), s)
600+
\Pi(\tilde s| s_-) u_c(\tilde s)}} \right) V_x(x, s)
602601
```
603602

604603
Equation {eq}`eqn:AMSSapp9` states that $V_x(x, s)$ is a *risk-adjusted martingale*.
@@ -628,7 +627,7 @@ found that
628627
* a counterpart to $V_x(x,s)$ is time-invariant and equal to
629628
the Lagrange multiplier on the Lucas-Stokey implementability constraint
630629
* time invariance of $V_x(x,s)$ is the source of a key
631-
feature of the Lucas-Stokey model, namely, **state variable degeneracy** in which $x_t$ is an exact time-invariant function of $s_t$)
630+
feature of the Lucas-Stokey model, namely, **state variable degeneracy** in which $x_t$ is an exact time-invariant function of $s_t$.
632631

633632
That $V_x(x,s)$ varies over time according to a twisted martingale
634633
means that there is no state-variable degeneracy in the AMSS model.
@@ -687,7 +686,7 @@ We will first build some useful functions for solving the model
687686

688687
### Anticipated One-Period War
689688

690-
In our lecture on {doc}`optimal taxation with state contingent debt <opt_tax_recur>`
689+
In our lecture on {doc}`optimal taxation with state-contingent debt <opt_tax_recur>`
691690
we studied how the government manages uncertainty in a simple setting.
692691

693692
As in that lecture, we assume the one-period utility function
@@ -701,8 +700,8 @@ For convenience in matching our computer code, we have expressed
701700
utility as a function of $n$ rather than leisure $l$.
702701
```
703702

704-
We consider the same government expenditure process studied in the lecture on
705-
{doc}`optimal taxation with state contingent debt <opt_tax_recur>`.
703+
We first consider a government expenditure process that we studied earlier in a lecture on
704+
{doc}`optimal taxation with state-contingent debt <opt_tax_recur>`.
706705

707706
Government expenditures are known for sure in all periods except one.
708707

@@ -746,18 +745,18 @@ This utility function is implemented in the following class.
746745
```{literalinclude} _static/lecture_specific/opt_tax_recur/crra_utility.py
747746
```
748747

749-
The following figure plots the Ramsey plan under both complete and incomplete
748+
The following figure plots Ramsey plans under complete and incomplete
750749
markets for both possible realizations of the state at time $t=3$.
751750

752-
Optimal policies when the government has access to state contingent debt are
753-
represented by black lines, while the optimal policies when there is only a risk-free bond are in red.
751+
Ramsey outcomes and policies when the government has access to state-contingent debt are
752+
represented by black lines and by red lines when there is only a risk-free bond.
754753

755754
Paths with circles are histories in which there is peace, while those with
756755
triangle denote war.
757756

758757
```{code-cell} python3
759758
# Initialize μgrid for value function iteration
760-
μ_grid = np.linspace(-0.7, 0.01, 200)
759+
μ_grid = np.linspace(-0.7, 0.01, 300)
761760
762761
time_example = CRRAutility()
763762
@@ -817,34 +816,37 @@ How a Ramsey planner responds to war depends on the structure of the asset mark
817816

818817
If it is able to trade state-contingent debt, then at time $t=2$
819818

820-
* the government purchases an Arrow security that pays off when $g_3 = g_h$
821-
* the government sells an Arrow security that pays off when $g_3 = g_l$
822-
* these purchases are designed in such a way that regardless of whether or not there is a war at $t=3$, the government will begin period $t=4$ with the *same* government debt
819+
* the government **purchases** an Arrow security that pays off when $g_3 = g_h$
820+
* the government **sells** an Arrow security that pays off when $g_3 = g_l$
821+
* the Ramsey planner designs these purchases and sales designed so that, regardless of whether or not there is a war at $t=3$, the government begins period $t=4$ with the *same* government debt
823822

824823
This pattern facilities smoothing tax rates across states.
825824

826-
The government without state contingent debt cannot do this.
825+
The government without state-contingent debt cannot do this.
827826

828827
Instead, it must enter time $t=3$ with the same level of debt falling due whether there is peace or war at $t=3$.
829828

830-
It responds to this constraint by smoothing tax rates across time.
829+
The risk-free rate between time $2$ and time $3$ is unusually **low** because at time $2$ consumption at time $3$ is expected to be unusually **low**.
830+
831+
A **low** risk-free rate of return on government debt between time $2$ and time $3$ allows the government to enter period $3$ with **lower** government debt than it entered period $2$.
831832

832-
To finance a war it raises taxes and issues more debt.
833+
To finance a war at time $3$ it raises taxes and issues more debt to carry into perpetual peace that begins in period $4$.
833834

834835
To service the additional debt burden, it raises taxes in all future periods.
835836

836-
The absence of state contingent debt leads to an important difference in the
837+
The absence of state-contingent debt leads to an important difference in the
837838
optimal tax policy.
838839

839-
When the Ramsey planner has access to state contingent debt, the optimal tax
840+
When the Ramsey planner has access to state-contingent debt, the optimal tax
840841
policy is history independent
841842

842843
* the tax rate is a function of the current level of government spending only,
843844
given the Lagrange multiplier on the implementability constraint
844845

845-
Without state contingent debt, the optimal tax rate is history dependent.
846+
Without state-contingent debt, the optimal tax rate is history dependent.
846847

847-
* A war at time $t=3$ causes a permanent increase in the tax rate.
848+
* A war at time $t=3$ causes a permanent **increase** in the tax rate.
849+
* Peace at time $t=3$ causes a permanent **reduction** in the tax rate.
848850

849851
#### Perpetual War Alert
850852

@@ -871,7 +873,7 @@ With these preferences, Ramsey tax rates will vary even in the Lucas-Stokey
871873
model with state-contingent debt.
872874

873875
The figure below plots optimal tax policies for both the economy with
874-
state contingent debt (circles) and the economy with only a risk-free bond
876+
state-contingent debt (circles) and the economy with only a risk-free bond
875877
(triangles).
876878

877879
```{code-cell} python3
@@ -912,16 +914,20 @@ plt.show()
912914
```
913915

914916
When the government experiences a prolonged period of peace, it is able to reduce
915-
government debt and set permanently lower tax rates.
917+
government debt and set persistently lower tax rates.
916918

917919
However, the government finances a long war by borrowing and raising taxes.
918920

919-
This results in a drift away from policies with state contingent debt that
921+
This results in a drift away from policies with state-contingent debt that
920922
depends on the history of shocks.
921923

922924
This is even more evident in the following figure that plots the evolution of
923925
the two policies over 200 periods.
924926

927+
This outcome reflects the presence of a force for **precautionary saving** that the incomplete markets structure imparts to the Ramsey plan.
928+
929+
In {doc}`this subsequent lecture <amss2>` and {doc}`this subsequent lecture <amss3>`, some ultimate consequences of that force are explored.
930+
925931
```{code-cell} python3
926932
T = 200 # Set T to 200 periods
927933
sim_seq_long = log_sequential.simulate(0.5, 0, T)

0 commit comments

Comments
 (0)