Skip to content

Commit e2f75c7

Browse files
longye-tianmmcky
andauthored
[styleguide] adjust lecture titles to match the QuantEcon style guide rules around capitalisations. (#240)
* Update additive_functionals.md * Update amss.md * Update amss2.md * amss and arellano * Update arma.md * Update asset_pricing_lph.md * Update black_litterman.md * Update calvo.md * update * Update cattle_cycles.md * Update chang_credible.md * Update chang_ramsey.md * Update classical_filtering.md * Update coase.md * Update cons_news.md * Update discrete_dp.md * Update dyn_stack.md * Update entropy.md * Update estspec.md * Update five_preferences.md * Update growth_in_dles.md * Update hs_recursive_models.md * Update irfs_in_hall_model.md * Update knowing_forecasts_of_others.md * Update lqramsey.md * Update lu_tricks.md * Update lucas_asset_pricing_dles.md * Update lucas_model.md * Update match_transport.md * Update matsuyama.md * Update muth_kalman.md * Update opt_tax_recur.md * Update permanent_income_dles.md * Update rob_markov_perf.md * Update robustness.md * Update rosen_schooling_model.md * Update smoothing.md * Update smoothing_tax.md * Update stationary_densities.md * Update tax_smoothing_1.md * Update tax_smoothing_2.md * Update tax_smoothing_3.md * Update troubleshooting.md * Update un_insure.md * Update BCG_incomplete_mkts.md * Update tax_smoothing_1.md * Update lectures/calvo.md Co-authored-by: Matt McKay <[email protected]> --------- Co-authored-by: Matt McKay <[email protected]>
1 parent 43e9bc7 commit e2f75c7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+467
-467
lines changed

lectures/BCG_incomplete_mkts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ show up in differences in the two types of consumers’ demands for a
242242
typical firm’s bonds and equity, the only two assets that agents can now
243243
trade.
244244

245-
## Asset Markets
245+
## Asset markets
246246

247247
Markets are incomplete: *ex cathedra* we the model builders declare that only equities and bonds issued by representative
248248
firms can be traded.
@@ -548,7 +548,7 @@ $C$’s that appear in the pricing functions, then
548548
- $\check q = q(K,B)$ and
549549
$\check p = p(K,B)$.
550550

551-
## Pseudo Code
551+
## Pseudo code
552552

553553
Before displaying our Python code for computing a BCG incomplete markets equilibrium,
554554
we’ll sketch some pseudo code that describes its logical flow.

lectures/additive_functionals.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ import matplotlib.pyplot as plt
7777
from scipy.stats import norm, lognorm
7878
```
7979

80-
## A Particular Additive Functional
80+
## A particular additive functional
8181

8282
{cite}`Hansen_2012_Eca` describes a general class of additive functionals.
8383

@@ -123,7 +123,7 @@ initial condition for $y$.
123123
The nonstationary random process $\{y_t\}_{t=0}^\infty$ displays
124124
systematic but random *arithmetic growth*.
125125

126-
### Linear State-Space Representation
126+
### Linear state-space representation
127127

128128
A convenient way to represent our additive functional is to use a [linear state space system](https://python-intro.quantecon.org/linear_models.html).
129129

@@ -872,7 +872,7 @@ Notice tell-tale signs of these probability coverage shaded areas
872872
* the green one for the stationary component $s_t$ converges to a
873873
constant band
874874

875-
### Associated Multiplicative Functional
875+
### Associated multiplicative functional
876876

877877
Where $\{y_t\}$ is our additive functional, let $M_t = \exp(y_t)$.
878878

@@ -929,7 +929,7 @@ It is interesting to how the martingale behaves as $T \rightarrow +\infty$.
929929

930930
Let's see what happens when we set $T = 12000$ instead of $150$.
931931

932-
### Peculiar Large Sample Property
932+
### Peculiar large sample property
933933

934934
Hansen and Sargent {cite}`Hans_Sarg_book` (ch. 8) describe the following two properties of the martingale component
935935
$\widetilde M_t$ of the multiplicative decomposition
@@ -958,7 +958,7 @@ It remains constant at unity, illustrating the first property.
958958

959959
The purple 95 percent frequency coverage interval collapses around zero, illustrating the second property.
960960

961-
## More About the Multiplicative Martingale
961+
## More about the multiplicative martingale
962962

963963
Let's drill down and study probability distribution of the multiplicative martingale $\{\widetilde M_t\}_{t=0}^\infty$ in
964964
more detail.
@@ -973,7 +973,7 @@ where $H = [F + D(I-A)^{-1} B]$.
973973

974974
It follows that $\log {\widetilde M}_t \sim {\mathcal N} ( -\frac{t H \cdot H}{2}, t H \cdot H )$ and that consequently ${\widetilde M}_t$ is log normal.
975975

976-
### Simulating a Multiplicative Martingale Again
976+
### Simulating a multiplicative martingale again
977977

978978
Next, we want a program to simulate the likelihood ratio process $\{ \tilde{M}_t \}_{t=0}^\infty$.
979979

@@ -984,7 +984,7 @@ After accomplishing this, we want to display and study histograms of $\tilde{M}_
984984

985985
Here is code that accomplishes these tasks.
986986

987-
### Sample Paths
987+
### Sample paths
988988

989989
Let's write a program to simulate sample paths of $\{ x_t, y_{t} \}_{t=0}^{\infty}$.
990990

@@ -1257,7 +1257,7 @@ These probability density functions help us understand mechanics underlying the
12571257
* Enough mass moves toward the right tail to keep $E \widetilde M_T = 1$
12581258
even as most mass in the distribution of $\widetilde M_T$ collapses around $0$.
12591259

1260-
### Multiplicative Martingale as Likelihood Ratio Process
1260+
### Multiplicative martingale as likelihood ratio process
12611261

12621262
[This lecture](https://python.quantecon.org/likelihood_ratio_process.html) studies **likelihood processes**
12631263
and **likelihood ratio processes**.

lectures/amss.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ In this lecture, we
6161

6262
We begin with an introduction to the model.
6363

64-
## Competitive Equilibrium with Distorting Taxes
64+
## Competitive equilibrium with distorting taxes
6565

6666
Many but not all features of the economy are identical to those of {doc}`the Lucas-Stokey economy <opt_tax_recur>`.
6767

@@ -118,7 +118,7 @@ AMSS allow the government to issue only one-period risk-free debt each period.
118118

119119
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`.
120120

121-
### Risk-free One-Period Debt Only
121+
### Risk-free one-period debt only
122122

123123
In period $t$ and history $s^t$, let
124124

@@ -244,7 +244,7 @@ b_t(s^{t-1}) = \mathbb E_t \sum_{j=0}^\infty \beta^j
244244

245245
Equation {eq}`TS_gov_wo4a` must hold for each $s^t$ for each $t \geq 1$.
246246

247-
### Comparison with Lucas-Stokey Economy
247+
### Comparison with Lucas-Stokey economy
248248

249249
The expression on the right side of {eq}`TS_gov_wo4a` in the Lucas-Stokey (1983) economy would equal the present value of a continuation stream of government net-of-interest surpluses evaluated at what would be competitive equilibrium Arrow-Debreu prices at date $t$.
250250

@@ -254,7 +254,7 @@ In the AMSS economy, the restriction that government debt be risk-free imposes t
254254

255255
In a language used in the literature on incomplete markets models, it can be said that the AMSS model requires that at each $(t, s^t)$ what would be the present value of continuation government net-of-interest surpluses in the Lucas-Stokey model must belong to the **marketable subspace** of the AMSS model.
256256

257-
### Ramsey Problem Without State-contingent Debt
257+
### Ramsey problem without state-contingent debt
258258

259259
After we have substituted the resource constraint into the utility function, we can express the Ramsey problem as being to choose an allocation that solves
260260

@@ -286,7 +286,7 @@ and
286286

287287
given $b_0(s^{-1})$.
288288

289-
#### Lagrangian Formulation
289+
#### Lagrangian formulation
290290

291291
Let $\gamma_0(s^0)$ be a non-negative Lagrange multiplier on constraint {eq}`AMSS_44`.
292292

@@ -316,7 +316,7 @@ That would let us reduce the beginning-of-period indebtedness for some other his
316316

317317
These features flow from the fact that the government cannot use state-contingent debt and therefore cannot allocate its indebtedness efficiently across future states.
318318

319-
### Some Calculations
319+
### Some calculations
320320

321321
It is helpful to apply two transformations to the Lagrangian.
322322

@@ -408,7 +408,7 @@ tags: [collapse-20]
408408
To analyze the AMSS model, we find it useful to adopt a recursive formulation
409409
using techniques like those in our lectures on {doc}`dynamic Stackelberg models <dyn_stack>` and {doc}`optimal taxation with state-contingent debt <opt_tax_recur>`.
410410

411-
## Recursive Version of AMSS Model
411+
## Recursive version of AMSS model
412412

413413
We now describe a recursive formulation of the AMSS economy.
414414

@@ -424,7 +424,7 @@ We now explore how these constraints alter Bellman equations for a time
424424
$0$ Ramsey planner and for time $t \geq 1$, history $s^t$
425425
continuation Ramsey planners.
426426

427-
### Recasting State Variables
427+
### Recasting state variables
428428

429429
In the AMSS setting, the government faces a sequence of budget constraints
430430

@@ -487,7 +487,7 @@ history $s^t$ as
487487

488488
for $t \geq 1$.
489489

490-
### Measurability Constraints
490+
### Measurability constraints
491491

492492
Write equation {eq}`eqn:AMSSapp2` as
493493

@@ -510,7 +510,7 @@ That implies that it has to be *measurable* with respect to $s^{t-1}$.
510510
Equations {eq}`eqn:AMSSapp2b` are the *measurability constraints* that the AMSS model adds to the single time $0$ implementation
511511
constraint imposed in the Lucas and Stokey model.
512512

513-
### Two Bellman Equations
513+
### Two Bellman equations
514514

515515
Let $\Pi(s|s_-)$ be a Markov transition matrix whose entries tell probabilities of moving from state $s_-$ to state $s$ in one period.
516516

@@ -567,7 +567,7 @@ where maximization is subject to
567567
u_{c,0} b_0 = u_{c,0} (n_0-g_0) - u_{l,0} n_0 + x_0
568568
```
569569

570-
### Martingale Supercedes State-Variable Degeneracy
570+
### Martingale supercedes state-variable degeneracy
571571

572572
Let $\mu(s|s_-) \Pi(s|s_-)$ be a Lagrange multiplier on the constraint {eq}`eqn:AMSSapp6`
573573
for state $s$.
@@ -620,7 +620,7 @@ that for each $s_-$, the sum over $s$ equals unity.
620620
```{exercise-end}
621621
```
622622

623-
### Absence of State Variable Degeneracy
623+
### Absence of state variable degeneracy
624624

625625
Along a Ramsey plan, the state variable $x_t = x_t(s^t, b_0)$
626626
becomes a function of the history $s^t$ and initial
@@ -642,7 +642,7 @@ In the AMSS model, both $x$ and $s$ are needed to describe the state.
642642
This property of the AMSS model transmits a twisted martingale
643643
component to consumption, employment, and the tax rate.
644644

645-
### Digression on Non-negative Transfers
645+
### Digression on non-negative transfers
646646

647647
Throughout this lecture, we have imposed that transfers $T_t = 0$.
648648

@@ -686,7 +686,7 @@ The recursive formulation is implemented as follows
686686

687687
We now turn to some examples.
688688

689-
### Anticipated One-Period War
689+
### Anticipated one-period war
690690

691691
In our lecture on {doc}`optimal taxation with state-contingent debt <opt_tax_recur>`
692692
we studied how the government manages uncertainty in a simple setting.
@@ -874,7 +874,7 @@ Without state-contingent debt, the optimal tax rate is history dependent.
874874
* A war at time $t=3$ causes a permanent **increase** in the tax rate.
875875
* Peace at time $t=3$ causes a permanent **reduction** in the tax rate.
876876

877-
#### Perpetual War Alert
877+
#### Perpetual war alert
878878

879879
History dependence occurs more dramatically in a case in which the government
880880
perpetually faces the prospect of war.

lectures/amss2.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ import matplotlib.pyplot as plt
8888
from scipy.optimize import fsolve, fmin
8989
```
9090

91-
## Forces at Work
91+
## Forces at work
9292

9393
The forces driving asymptotic outcomes here are examples of dynamics present in a more general class of incomplete markets models analyzed in {cite}`BEGS1` (BEGS).
9494

@@ -112,7 +112,7 @@ rates rather than fluctuations in par values of debt to insure against shocks
112112
shutting down the stochastic component of debt dynamics.
113113
- At that point, the tail of the par value of government debt becomes a trivial martingale: it is constant over time.
114114

115-
## Logical Flow of Lecture
115+
## Logical flow of lecture
116116

117117
We present ideas in the following order
118118

@@ -126,7 +126,7 @@ We present ideas in the following order
126126
- we verify that the LS Ramsey planner chooses to purchase **identical** claims to time $t+1$ consumption for all Markov states tomorrow for each Markov state today.
127127
* We compute the BEGS approximations to check how accurately they describe the dynamics of the long-simulation.
128128

129-
### Equations from Lucas-Stokey (1983) Model
129+
### Equations from Lucas-Stokey (1983) model
130130

131131
Although we are studying an AMSS {cite}`aiyagari2002optimal` economy, a Lucas-Stokey {cite}`LucasStokey1983` economy plays
132132
an important role in the reverse-engineering calculation to be described below.
@@ -189,7 +189,7 @@ $$
189189
It is useful to transform some of the above equations to forms that are more natural for analyzing the
190190
case of a CRRA utility specification that we shall use in our example economies.
191191

192-
### Specification with CRRA Utility
192+
### Specification with CRRA utility
193193

194194
As in lectures {doc}`optimal taxation without state-contingent debt <amss>` and {doc}`optimal taxation with state-contingent debt <opt_tax_recur>`,
195195
we assume that the representative agent has utility function
@@ -244,7 +244,7 @@ The CRRA utility function is represented in the following class.
244244
:load: _static/lecture_specific/amss2/crra_utility.py
245245
```
246246

247-
## Example Economy
247+
## Example economy
248248

249249
We set the following parameter values.
250250

@@ -292,7 +292,7 @@ tags: [collapse-20]
292292
---
293293
```
294294

295-
## Reverse Engineering Strategy
295+
## Reverse engineering strategy
296296

297297
We can reverse engineer a value $b_0$ of initial debt due that renders the AMSS measurability constraints not binding from time $t =0$ onward.
298298

@@ -337,7 +337,7 @@ state $s_t=s$ from $b(s) = {\frac{x(s)}{u_c(s)}}$ or the matrix equation
337337
**Step 7:** At the value of $\Phi$ and the value of $\bar b$ that emerged from step 6, solve equations
338338
{eq}`amss2_TS_barg11` and {eq}`eqn_AMSS2_10` jointly for $c_0, b_0$.
339339

340-
## Code for Reverse Engineering
340+
## Code for reverse engineering
341341

342342
Here is code to do the calculations for us.
343343

@@ -420,7 +420,7 @@ c0, b0
420420

421421
Thus, we have reverse engineered an initial $b0 = -1.038698407551764$ that ought to render the AMSS measurability constraints slack.
422422

423-
## Short Simulation for Reverse-engineered: Initial Debt
423+
## Short simulation for reverse-engineered: initial debt
424424

425425
The following graph shows simulations of outcomes for both a Lucas-Stokey economy and for an AMSS economy starting from initial government
426426
debt equal to $b_0 = -1.038698407551764$.
@@ -477,7 +477,7 @@ Notice how for $t \geq 1$, the tax rate is a constant - so is the par value of g
477477

478478
However, output and labor supply are both nontrivial time-invariant functions of the Markov state.
479479

480-
## Long Simulation
480+
## Long simulation
481481

482482
The following graph shows the par value of government debt and the flat-rate tax on labor income for a long simulation for our sample economy.
483483

@@ -523,7 +523,7 @@ plt.tight_layout()
523523
plt.show()
524524
```
525525

526-
### Remarks about Long Simulation
526+
### Remarks about long simulation
527527

528528
As remarked above, after $b_{t+1}(s^t)$ has converged to a constant, the measurability constraints in the AMSS model cease to bind
529529

@@ -536,7 +536,7 @@ This leads us to seek an initial value of government debt $b_0$ that renders the
536536

537537
We now describe how to find such an initial level of government debt.
538538

539-
## BEGS Approximations of Limiting Debt and Convergence Rate
539+
## BEGS approximations of limiting debt and convergence rate
540540

541541
It is useful to link the outcome of our reverse engineering exercise to limiting approximations constructed by BEGS {cite}`BEGS1`.
542542

@@ -573,7 +573,7 @@ BEGS interpret random variations in the right side of {eq}`eq_fiscal_risk` as a
573573
${\mathcal R}_\tau(s, s_{-}) {\mathcal B}_{-}$, and
574574
- fluctuations in the effective government deficit ${\mathcal X}_t$
575575

576-
### Asymptotic Mean
576+
### Asymptotic mean
577577

578578
BEGS give conditions under which the ergodic mean of ${\mathcal B}_t$ is
579579

@@ -607,7 +607,7 @@ Expressing formula {eq}`prelim_formula` in terms of our notation tells us that
607607
\hat b = \frac{\mathcal B^*}{\beta E_t u_{c,t+1}}
608608
```
609609

610-
### Rate of Convergence
610+
### Rate of convergence
611611

612612
BEGS also derive the following approximation to the rate of convergence to ${\mathcal B}^{*}$ from an arbitrary initial condition.
613613

@@ -619,7 +619,7 @@ BEGS also derive the following approximation to the rate of convergence to ${\m
619619

620620
(See the equation above equation (47) in {cite}`BEGS1`)
621621

622-
### Formulas and Code Details
622+
### Formulas and code details
623623

624624
For our example, we describe some code that we use to compute the steady state mean and the rate of convergence to it.
625625

0 commit comments

Comments
 (0)