Skip to content

Commit 04e5dd0

Browse files
committed
updating sources from lecture-python-advanced (4cf6103) and tomyst (a3497b5)
1 parent c0c3970 commit 04e5dd0

13 files changed

Lines changed: 79 additions & 43 deletions

lectures/BCG_complete_mkts.md

Lines changed: 43 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ markets in one-period Arrow securities.
4646

4747
This simplification of BCG’s setup helps us by
4848

49-
{cite}`Modigliani_Miller_1958`- creating a benchmark economy to compare with outcomes in BCG’s
49+
`- creating a benchmark economy to compare with outcomes in BCG’s
5050
incomplete markets economy
5151
- creating a good guess for initial values of some equilibrium objects
5252
to be computed in BCG’s incomplete markets economy via an iterative
5353
algorithm
5454
- illustrating classic complete markets outcomes that include
5555
- indeterminacy of consumers’ portfolio choices
5656
- indeterminacy of firms' financial structures that underlies a
57-
Modigliani-Miller theorem
57+
Modigliani-Miller theorem {cite}`Modigliani_Miller_1958
5858
- introducing `Big K, little k` issues in a simple context that will
5959
recur in the BCG incomplete markets environment
6060

@@ -65,7 +65,7 @@ A Big K, little k analysis also played roles in [this quantecon lecture](https:/
6565

6666
The economy lasts for two periods, $t=0, 1$.
6767

68-
There are unit measure continua of two types of consumers named $i=1,2$.
68+
There are two types of consumers named $i=1,2$.
6969

7070
A scalar random variable $\epsilon$ with probability density $g(\epsilon)$ affects both
7171

@@ -402,16 +402,18 @@ not now.
402402

403403
### Objects appearing in a competitive equilibrium
404404

405-
We let
405+
Let
406406

407-
- $a^i(\epsilon)$ be consumer $i$’s purchases of claims
407+
- $a^i(\epsilon)$ be consumer $i$ ’s purchases of claims
408408
on time $1$ consumption in state $\epsilon$
409409
- $q(\epsilon)$ be a pricing kernel for one-period Arrow
410410
securities
411411
- $\theta_0^i \geq 0$ be consumer $i$’s intial share of
412412
the firm, $\sum_i \theta_0^i =1$
413413
- $\theta^i$ be the fraction of the firm’s shares purchased by
414414
consumer $i$ at time $t=0$
415+
- $- \bar a^i(\epsilon; \theta^i)$ be debt limits constraining consumer $i$ ' s issues of claims
416+
on time $1$ consumption in state $\epsilon$
415417
- $V$ be the value of the representative firm
416418
- $\tilde V$ be the value of equity issued by the representative
417419
firm
@@ -471,39 +473,67 @@ As a price taker, each consumer faces a given Arrow securities pricing kernel
471473
$q(\epsilon)$, a given value of a firm $V$ that has chosen capital stock $k$, a price of
472474
equity $\tilde V$, and given prospective random dividends next period $A k^\alpha e^\epsilon$.
473475

476+
Consumer $i$ also faces a state-by-state borrowing limit that restricts quantities of Arrow securities that he can issue.
477+
478+
If we evaluate consumer $i$'s time $1$ budget constraint at zero consumption $c^i(\epsilon) = 0$ and solve for $-a^i(\epsilon)$
479+
we obtain
480+
481+
$$
482+
- \bar a^i(\epsilon;\theta^i) = w_1^i(\epsilon) +\theta^i A k^\alpha e^\epsilon
483+
$$
484+
485+
The quantity $- \bar a^i(\epsilon;\theta^i)$ is the maximum amount that it is feasible for consumer $i$ to repay to
486+
his Arrow security creditors at time $1$ in state $\epsilon$.
487+
488+
To implement trading with one-period Arrow securities, we must impose on agent $i$ the state-by-state debt limits
489+
490+
$$
491+
-a^i(\epsilon) \leq - \bar a^i(\epsilon;\theta^i)
492+
$$
493+
494+
Notice that consumer $i$'s borrowing limit depends on
495+
496+
* his endowment at time $1$ in state $\epsilon$
497+
* his share $\theta^i$ of a representive firm's dividends
498+
499+
These are the two sources of **collateral** that back the consumer's issues of Arrow securities that pay off in state $\epsilon$
500+
474501
Consumer $i$ chooses a scalar $c_0^i$ and a function
475502
$c_1^i(\epsilon)$ to maximize
476503

477504
$$
478505
u(c_0^i) + \beta \int u(c_1^i(\epsilon)) g (\epsilon) d \epsilon
479506
$$
480507

481-
subject to time $0$ and time $1$ budget constraints
508+
subject to his state-by-state debt limits and the time $0$ and time $1$ budget constraints
482509

483510
$$
484511
\begin{aligned}
485512
c_0^i & \leq w_0^i +\theta_0^i V - \int q(\epsilon) a^i(\epsilon) d \epsilon - \theta^i \tilde V \cr
486-
c_1^i & \leq w_1^i(\epsilon) +\theta^i A k^\alpha e^\epsilon + a^i(\epsilon)
513+
c_1^i(\epsilon) & \leq w_1^i(\epsilon) +\theta^i A k^\alpha e^\epsilon + a^i(\epsilon)
487514
\end{aligned}
488515
$$
489516

490517
Attach Lagrange multiplier $\lambda_0^i$ to the budget constraint
491-
at time $0$ and scaled Lagrange multiplier
518+
at time $0$, scaled Lagrange multiplier
492519
$\beta \lambda_1^i(\epsilon) g(\epsilon)$ to the budget constraint
493-
at time $1$ and state $\epsilon$ and form the Lagrangian
520+
at time $1$ and state $\epsilon$, and scaled Lagrange multiplier
521+
$\beta \phi_1^i(\epsilon) g(\epsilon)$ to the debt limit at time $1$ and state $\epsilon$,
522+
then form the Lagrangian
494523

495524
$$
496525
\begin{aligned}
497526
L^i & = u(c_0^i) + \beta \int u(c^i_1(\epsilon)) g(\epsilon) d \epsilon \cr
498527
& + \lambda_0^i [ w_0^i + \theta_0^i - \int q(\epsilon) a^i(\epsilon) d \epsilon -
499528
\theta^i \tilde V - c_0^i ] \cr
500529
& + \beta \int \lambda_1^i(\epsilon) [ w_1^i(\epsilon) + \theta^i A k^\alpha e^\epsilon
501-
+ a^i(\epsilon) c_1^i(\epsilon) g(\epsilon)] d \epsilon
530+
+ a^i(\epsilon) c_1^i(\epsilon) ] g(\epsilon) d \epsilon \cr
531+
& + \beta \int \phi_1^i(\epsilon) [ - \bar a^i(\epsilon; \theta^i) - a^i(\epsilon) ] g(\epsilon) d \epsilon
502532
\end{aligned}
503533
$$
504534

505-
First-order necessary conditions for an optimum with respect to
506-
$c_0^i, c_1^i(\epsilon)$, and $a^i(\epsilon)$ are
535+
Off corners, first-order necessary conditions for an optimum with respect to
536+
$c_0^i, c_1^i(\epsilon)$ and $a^i(\epsilon)$ are
507537

508538
$$
509539
\begin{aligned}
@@ -522,7 +552,7 @@ plan to satisfy
522552
q(\epsilon) = \beta \left( \frac{u'(c_1^i(\epsilon))}{u'(c_0^i)} \right) g(\epsilon)
523553
```
524554

525-
To deduce a restriction on the consumer’s choice of $\theta^i$ we
555+
To deduce a restriction on equilibrium prices, we
526556
solve the period $1$ budget constraint to express
527557
$a^i(\epsilon)$ as
528558

lectures/BCG_incomplete_mkts.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,18 @@ It is useful to watch how outcomes differ in the two settings.
5050

5151
In the complete markets economy in {doc}`BCG_complete_mkts <BCG_complete_mkts>`
5252

53-
{cite}`Modigliani_Miller_1958`- there is a unique stochastic discount factor that prices all assets
53+
`- there is a unique stochastic discount factor that prices all assets
5454
- consumers’ portfolio choices are indeterminate
55-
- firms' financial structures are indeterminate, so the model embodies an instance of a Modigliani-Miller irrelevance theorem
55+
- firms' financial structures are indeterminate, so the model embodies an instance of a Modigliani-Miller irrelevance theorem {cite}`Modigliani_Miller_1958
5656
- the aggregate of all firms' financial structures are indeterminate, a consequence of there being redundant assets
5757

5858
In the incomplete markets economy studied here
5959

60-
{cite}`Modigliani_Miller_1958`- there is a not a unique equilibrium stochastic discount factor
60+
`- there is a not a unique equilibrium stochastic discount factor
6161
- different stochastic discount factors price different assets
6262
- consumers’ portfolio choices are determinate
6363
- while **individual** firms' financial structures are indeterminate, thus conforming to part of a Modigliani-Miller theorem,
64-
, the **aggregate** of all firms' financial structures **is** determinate.
64+
{cite}`Modigliani_Miller_1958, the **aggregate** of all firms' financial structures **is** determinate.
6565

6666
A `Big K, little k` analysis played an important role in the previous lecture {doc}`BCG_complete_mkts <BCG_complete_mkts>`.
6767

lectures/amss2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Nonzero Lagrange multipliers on those constraints make the Ramsey allocation for
7575

7676
This lecture studies a special AMSS model in which
7777

78-
{cite}`LucasStokey1983`* The exogenous state variable $s_t$ is governed by a finite-state Markov chain.
78+
`* The exogenous state variable $s_t$ is governed by a finite-state Markov chain.
7979
* With an arbitrary budget-feasible initial level of government debt, the measurability constraints
8080
- bind for many periods, but $\ldots$.
8181
- eventually, they stop binding evermore, so $\ldots$.
@@ -92,7 +92,7 @@ This lecture studies a special AMSS model in which
9292
- the **market value** $\frac{\bar b}{R_t(s_t)}$ of government debt at time $t$ varies as a time-invariant function of the Markov state $s_t$.
9393
- fluctuations in the interest rate make gross earnings on government debt $\frac{\bar b}{R_t(s_t)}$ fully insure the gross-of-gross-interest-payments government budget against fluctuations in government expenditures.
9494
- the state variable $x$ in a recursive representation of a Ramsey plan is a time-invariant function of the Markov state for $t \geq 0$.
95-
* In this special case, the Ramsey allocation in the AMSS model agrees with that in a model in which
95+
* In this special case, the Ramsey allocation in the AMSS model agrees with that in a {cite}`LucasStokey1983 model in which
9696
the same amount of state-contingent debt falls due in all states tomorrow
9797
- it is a situation in which the Ramsey planner loses nothing from not being able to purchase state-contingent debt and being restricted to exchange only risk-free debt debt.
9898
* This outcome emerges only when we initialize government debt at a particular $b_0 < 0$.

lectures/amss3.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,9 +964,9 @@ ergodic distribution.
964964
To construct the BEGS approximation to ${\mathcal B}^*$, we just follow steps set forth on pages 648 - 650 of section III.D of
965965
{cite}`BEGS1`
966966
967-
{cite}`BEGS1`- notation in BEGS might be confusing at first sight, so
967+
`- notation in BEGS might be confusing at first sight, so
968968
it is important to stare and digest before computing
969-
- there are also some sign errors in the text that we'll want
969+
- there are also some sign errors in the {cite}`BEGS1 text that we'll want
970970
to correct
971971
972972
Here is a step-by-step description of the {cite}`BEGS1` approximation procedure.

lectures/arellano.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ After that we'll perform some additional simulations.
321321

322322
We use a slightly modified version of the algorithm recommended by Arellano.
323323

324-
{cite}`arellano2008default`* The appendix to recommends value function iteration until
324+
`* The appendix to {cite}`arellano2008default recommends value function iteration until
325325
convergence, updating the price, and then repeating.
326326
* Instead, we update the bond price at every value function iteration step.
327327

lectures/arma.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,19 @@ The famous *Fourier transform* and its inverse are used to map between the two r
7474
For supplementary reading, see
7575

7676
```{only} html
77-
{cite}`Ljungqvist2012`{cite}`Sargent1987`<a href=/_static/lecture_specific/arma/time_series_book.pdf download></a>{cite}`Shiryaev1995`{cite}`CryerChan2008`* , chapter 2
78-
* , chapter 11
77+
``<a href=/_static/lecture_specific/arma/time_series_book.pdf download></a>``* {cite}`Ljungqvist2012, chapter 2
78+
* {cite}`Sargent1987, chapter 11
7979
* John Cochrane's notes on time series analysis, chapter 8
80-
* , chapter 6
81-
* , all
80+
* {cite}`Shiryaev1995, chapter 6
81+
* {cite}`CryerChan2008, all
8282
```
8383

8484
```{only} latex
85-
{cite}`Ljungqvist2012`{cite}`Sargent1987`{cite}`Shiryaev1995`{cite}`CryerChan2008`* , chapter 2
86-
* , chapter 11
85+
````* {cite}`Ljungqvist2012, chapter 2
86+
* {cite}`Sargent1987, chapter 11
8787
* John Cochrane's [notes on time series analysis](https://lectures.quantecon.org/_downloads/time_series_book.pdf), chapter 8
88-
* , chapter 6
89-
* , all
88+
* {cite}`Shiryaev1995, chapter 6
89+
* {cite}`CryerChan2008, all
9090
```
9191

9292
Let's start with some imports:

lectures/black_litterman.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ particular density value.
530530
The curves defined by equation {eq}`ellipse` can be
531531
labeled as iso-likelihood ellipses
532532

533-
{cite}`leamer1978specification`> **Remark:** More generally there is a class of density functions
533+
`> **Remark:** More generally there is a class of density functions
534534
> that possesses this feature, i.e.
535535
>
536536
> $$
@@ -540,7 +540,7 @@ labeled as iso-likelihood ellipses
540540
> $$
541541
>
542542
> This property is called **spherical symmetry** (see p 81. in Leamer
543-
> (1978) ).
543+
> (1978) {cite}`leamer1978specification).
544544
545545
In our specific example, we can use the pair
546546
$(\bar d_1, \bar d_2)$ as being two "likelihood" values for which

lectures/chang_ramsey.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ analyzed **competitive equilibria** and a best competitive equilibrium called a
4040

4141
He did this by
4242

43-
{cite}`APS1990`* characterizing a competitive equilibrium recursively in a way also employed
43+
`* characterizing a competitive equilibrium recursively in a way also employed
4444
in the {doc}`dynamic Stackelberg problems <dyn_stack>` and {doc}`Calvo model <calvo>` lectures
4545
to pose Stackelberg problems in linear economies, and then
4646
* appropriately adapting an argument of Abreu, Pearce, and Stachetti
47-
to describe key features of the set of competitive equilibria
47+
{cite}`APS1990 to describe key features of the set of competitive equilibria
4848

4949
Roberto Chang {cite}`chang1998credible` chose a model of Calvo {cite}`Calvo1978`
5050
as a simple structure that conveys ideas that apply more broadly.

lectures/discrete_dp.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,12 @@ seamlessly if you are using [Anaconda](https://www.anaconda.com/download/) as [s
9898

9999
For background reading on dynamic programming and additional applications, see, for example,
100100

101-
{cite}`Ljungqvist2012`{cite}`HernandezLermaLasserre1996`{cite}`puterman2005`{cite}`StokeyLucas1989`{cite}`Rust1996`{cite}`MirandaFackler2002`* , section 3.5
101+
``````* {cite}`Ljungqvist2012
102+
* {cite}`HernandezLermaLasserre1996, section 3.5
103+
* {cite}`puterman2005
104+
* {cite}`StokeyLucas1989
105+
* {cite}`Rust1996
106+
* {cite}`MirandaFackler2002
102107
* [EDTC](http://johnstachurski.net/edtc.html), chapter 5
103108

104109
(discrete_dps)=
@@ -149,7 +154,7 @@ In particular, a stationary Markov policy is a map $\sigma$ from states to actio
149154

150155
It is known that, for any arbitrary policy, there exists a stationary Markov policy that dominates it at least weakly.
151156

152-
{cite}`puterman2005`* See section 5.5 of for discussion and proofs.
157+
`* See section 5.5 of {cite}`puterman2005 for discussion and proofs.
153158

154159
In what follows, stationary Markov policies are referred to simply as policies.
155160

lectures/robustness.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ If you want to understand more about why one serious quantitative researcher is
156156

157157
Our discussion in this lecture is based on
158158

159-
{cite}`HansenSargent2000`{cite}`HansenSargent2008`
159+
``* {cite}`HansenSargent2000
160+
* {cite}`HansenSargent2008
160161

161162
## The Model
162163

0 commit comments

Comments
 (0)