Skip to content

Commit 726a25f

Browse files
authored
update sources from lecture-python-advanced (3cbc32c) using sphinx-tomyst (b06cacb) (#3)
1 parent 22cb2e1 commit 726a25f

7 files changed

Lines changed: 19 additions & 36 deletions

File tree

‎lectures/BCG_complete_mkts.md‎

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ kernelspec:
1818
</div>
1919
```
2020

21-
# Irrelevance of Capital Structures with Complete Markets
21+
# Irrelevance of Capital Structure with Complete Markets
2222

2323
```{contents} Contents
2424
:depth: 2
@@ -408,8 +408,6 @@ Let
408408
the firm, $\sum_i \theta_0^i =1$
409409
- $\theta^i$ be the fraction of a firm’s shares purchased by
410410
consumer $i$ at time $t=0$
411-
- $- \bar a^i(\epsilon; \theta^i)$ be debt limits constraining consumer $i$ ' s issues of claims
412-
on time $1$ consumption in state $\epsilon$
413411
- $V$ be the value of the representative firm
414412
- $\tilde V$ be the value of equity issued by the representative
415413
firm
@@ -469,8 +467,6 @@ As a price taker, each consumer faces a given Arrow securities pricing kernel
469467
$q(\epsilon)$, a given value of a firm $V$ that has chosen capital stock $k$, a price of
470468
equity $\tilde V$, and prospective next period random dividends $A k^\alpha e^\epsilon$.
471469

472-
Consumer $i$ also confronts a state-by-state borrowing limit that restricts quantities of Arrow securities that he can issue.
473-
474470
If we evaluate consumer $i$'s time $1$ budget constraint at zero consumption $c^i_1(\epsilon) = 0$ and solve for $-a^i(\epsilon)$
475471
we obtain
476472

@@ -483,18 +479,12 @@ we obtain
483479
The quantity $- \bar a^i(\epsilon;\theta^i)$ is the maximum amount that it is feasible for consumer $i$ to repay to
484480
his Arrow security creditors at time $1$ in state $\epsilon$.
485481

486-
To arrange trading with one-period Arrow securities, we must impose on agent $i$ the state-by-state debt limits
487-
488-
$$
489-
-a^i(\epsilon) \leq - \bar a^i(\epsilon;\theta^i)
490-
$$
491-
492-
Notice that consumer $i$'s borrowing limit defined in {eq}`debtlimit` depends on
482+
Notice that $-\bar a^i(\epsilon;\theta^i)$ defined in {eq}`debtlimit` depends on
493483

494484
* his endowment $w_1^i(\epsilon)$ at time $1$ in state $\epsilon$
495485
* his share $\theta^i$ of a representive firm's dividends
496486

497-
These constitute the two sources of **collateral** that back the consumer's issues of Arrow securities that pay off in state $\epsilon$
487+
These constitute two sources of **collateral** that back the consumer's issues of Arrow securities that pay off in state $\epsilon$
498488

499489
Consumer $i$ chooses a scalar $c_0^i$ and a function
500490
$c_1^i(\epsilon)$ to maximize
@@ -503,7 +493,7 @@ $$
503493
u(c_0^i) + \beta \int u(c_1^i(\epsilon)) g (\epsilon) d \epsilon
504494
$$
505495

506-
subject to his state-by-state debt limits and time $0$ and time $1$ budget constraints
496+
subject to time $0$ and time $1$ budget constraints
507497

508498
$$
509499
\begin{aligned}
@@ -513,10 +503,9 @@ c_1^i(\epsilon) & \leq w_1^i(\epsilon) +\theta^i A k^\alpha e^\epsilon + a^i(\ep
513503
$$
514504

515505
Attach Lagrange multiplier $\lambda_0^i$ to the budget constraint
516-
at time $0$, scaled Lagrange multiplier
506+
at time $0$ and scaled Lagrange multiplier
517507
$\beta \lambda_1^i(\epsilon) g(\epsilon)$ to the budget constraint
518-
at time $1$ and state $\epsilon$, and scaled Lagrange multiplier
519-
$\beta \phi_1^i(\epsilon) g(\epsilon)$ to the debt limit at time $1$ and state $\epsilon$,
508+
at time $1$ and state $\epsilon$,
520509
then form the Lagrangian
521510

522511
$$
@@ -525,8 +514,7 @@ L^i & = u(c_0^i) + \beta \int u(c^i_1(\epsilon)) g(\epsilon) d \epsilon \cr
525514
& + \lambda_0^i [ w_0^i + \theta_0^i - \int q(\epsilon) a^i(\epsilon) d \epsilon -
526515
\theta^i \tilde V - c_0^i ] \cr
527516
& + \beta \int \lambda_1^i(\epsilon) [ w_1^i(\epsilon) + \theta^i A k^\alpha e^\epsilon
528-
+ a^i(\epsilon) c_1^i(\epsilon) ] g(\epsilon) d \epsilon \cr
529-
& + \beta \int \phi_1^i(\epsilon) [ - \bar a^i(\epsilon; \theta^i) + a^i(\epsilon) ] g(\epsilon) d \epsilon
517+
+ a^i(\epsilon) c_1^i(\epsilon) ] g(\epsilon) d \epsilon
530518
\end{aligned}
531519
$$
532520

@@ -807,8 +795,6 @@ of parameter values.
807795

808796
It consists of 4 functions that do the following things:
809797

810-
>
811-
812798
* `opt_k` computes the planner's optimal capital $K$
813799
- First, create a grid for capital.
814800
- Then for each value of capital stock in the grid, compute the left side of the planner's

‎lectures/amss.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,6 @@ $z_c(s^t)$ into the first-order condition {eq}`AMSS_foc;a`, we find two
397397
differences from the corresponding condition for the optimal allocation
398398
in a Lucas-Stokey economy with state-contingent government debt.
399399

400-
>
401-
402400
1. The term involving $b_t(s^{t-1})$ in the first-order condition
403401
{eq}`AMSS_foc;a` does not appear in the corresponding expression
404402
for the Lucas-Stokey economy.

‎lectures/amss2.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ log_example = CRRAutility()
453453
log_example.transfers = True # Government can use transfers
454454
log_sequential = SequentialAllocation(log_example) # Solve sequential problem
455455
log_bellman = RecursiveAllocationAMSS(log_example, μ_grid,
456-
tol_diff=1e-10, tol=1e-12)
456+
tol_diff=1e-10, tol=1e-10)
457457
458458
T = 20
459459
sHist = np.array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1,

‎lectures/markov_jump_lq.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ $$
171171
with
172172

173173
$$
174-
r(x_t, s_t, u_t) = -( x_t' R_{s_t} x_t + u_t' Q_{s_t} u_t + 2 u_t' W_{s_t} x_t)
174+
r(x_t, s_t, u_t) = x_t' R_{s_t} x_t + u_t' Q_{s_t} u_t + 2 u_t' W_{s_t} x_t
175175
$$
176176

177177
subject to linear laws of motion with matrices $(A,B,C)$ each

‎lectures/muth_kalman.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ The lecture [First Look at Kalman Filter](https://python-intro.quantecon.org/kal
102102

103103
We'll use limiting versions of the Kalman filter corresponding to what are called **stationary values** in that lecture.
104104

105-
### A Process for Which Adaptive Expectations are Optimal
105+
## A Process for Which Adaptive Expectations are Optimal
106106

107107
Suppose that an observable $y_t$ is the sum of an unobserved
108108
random walk $x_t$ and an IID shock $\epsilon_{2,t}$:
@@ -182,7 +182,7 @@ Ak, Ck, Gk, Hk = A, K1, G, 1
182182
ssk = LinearStateSpace(Ak, Ck, Gk, Hk, mu_0=x_hat_0)
183183
```
184184

185-
### Some Useful State-Space Math
185+
## Some Useful State-Space Math
186186

187187
Now we want to map the time-invariant innovations representation {eq}`innovations` and
188188
the original state-space system {eq}`state-space` into a convenient form for deducing
@@ -264,7 +264,7 @@ $\hat{x_t}$, and $y_t$.
264264
We can now investigate how these
265265
variables are related by plotting some key objects.
266266

267-
### Estimates of Unobservables
267+
## Estimates of Unobservables
268268

269269
First, let’s plot the hidden state $x_t$ and the filtered version
270270
$\hat x_t$ that is linear-least squares projection of $x_t$
@@ -285,7 +285,7 @@ Note how $x_t$ and $\hat{x_t}$ differ.
285285
For Friedman, $\hat x_t$ and not $x_t$ is the consumer’s
286286
idea about her/his *permanent income*.
287287

288-
### Relation between Unobservable and Observable
288+
## Relation between Unobservable and Observable
289289

290290
Now let’s plot $x_t$ and $y_t$.
291291

@@ -318,7 +318,7 @@ ax.set_xlabel("Time")
318318
plt.show()
319319
```
320320

321-
### MA and AR Representations
321+
## MA and AR Representations
322322

323323
Now we shall extract from the `Kalman` instance `kmuth` coefficients of
324324

‎lectures/rob_markov_perf.md‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ to misspecifications of the state dynamics, a Markov perfect equilibrium can be
7171
backward recursion on two sets of equations
7272

7373
* a pair of Bellman equations, one for each agent.
74-
* a pair of equations that express linear decision rules for each agent as functions of that agent's continuation value function as well as parameters of
75-
76-
preferences and state transition matrices.
74+
* a pair of equations that express linear decision rules for each agent as functions of that agent's continuation value function as well as parameters of preferences and state transition matrices.
7775

7876
This lecture shows how a similar equilibrium concept and similar computational procedures
7977
apply when we impute concerns about robustness to both decision-makers.
@@ -630,7 +628,7 @@ def nnash_robust(A, C, B1, B2, R1, R2, Q1, Q2, S1, S2, W1, W2, M1, M2,
630628
break
631629
632630
else:
633-
raise ValueError(f'No convergence: Iteration limit of {maxiter} \
631+
raise ValueError(f'No convergence: Iteration limit of {max_iter} \
634632
reached in nnash')
635633
636634
return F1, F2, P1, P2

‎lectures/smoothing.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ an exogenous and time-invariant gross interest rate on one period risk-free debt
5555
$\beta^{-1}$, where $\beta \in (0,1)$ is also a consumer's
5656
intertemporal discount factor.
5757

58-
This is equivalent to saying that it costs $\beta^{-1}$ of time $t$ consumption to buy one unit of consumption at time $t+1$ for sure.
58+
This is equivalent to saying that it costs $\beta$ of time $t$ consumption to buy one unit of
59+
consumption at time $t+1$ for sure.
5960

60-
So $\beta^{-1}$ is the price of a one-period risk-free claim to consumption next period.
61+
So $\beta$ is the price of a one-period risk-free claim to consumption next period.
6162

6263
We maintain Hall's assumption about the interest rate when we describe an
6364
incomplete markets version of our model.

0 commit comments

Comments
 (0)