Skip to content

Commit 264cb80

Browse files
Tom's edits of two sandpit lectures on May 18
1 parent acf04f4 commit 264cb80

File tree

2 files changed

+20
-18
lines changed

2 files changed

+20
-18
lines changed

sandpit/cons_smooth.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jupytext:
44
extension: .md
55
format_name: myst
66
format_version: 0.13
7-
jupytext_version: 1.14.5
7+
jupytext_version: 1.14.4
88
kernelspec:
99
display_name: Python 3 (ipykernel)
1010
language: python
@@ -15,7 +15,7 @@ kernelspec:
1515

1616
In this notebook, we'll present some useful models of economic dynamics using only linear algebra -- matrix multiplication and matrix inversion.
1717

18-
**Present value formulas** are at the core of the models.
18+
**Present value formulas** are at the core of the models.
1919

2020
+++
2121

@@ -71,9 +71,6 @@ where $g_1 > 0, g_2 > 0$.
7171

7272
We shall see that when $\beta R = 1$ (a condition assumed by Milton Friedman and Robert Hall), this criterion assigns higher welfare to **smoother** consumption paths.
7373

74-
75-
76-
7774
+++
7875

7976
## Difference equations with linear algebra ##
@@ -85,7 +82,16 @@ with appropriate initial conditions and then use linear algebra to solve it.
8582

8683
#### First-order difference equation
8784

88-
A first-order linear difference equation cast as a matrix equation
85+
We'll start with a first-order linear difference equation for $\{y_t\}_{t=0}^T$:
86+
87+
$$
88+
y_{t} = \lambda y_{t-1}, \quad t = 1, 2, \ldots, T
89+
$$
90+
91+
where $y_0$ is a given initial condition.
92+
93+
94+
We can cast this set of $T$ equations as a single matrix equation
8995

9096
$$
9197
\begin{bmatrix} 1 & 0 & 0 & \cdots & 0 & 0 \cr
@@ -98,7 +104,8 @@ $$
98104
= \begin{bmatrix} \lambda y_0 \cr 0 \cr 0 \cr \vdots \cr 0 \end{bmatrix}
99105
$$
100106

101-
Here $y_0$ is an initial condition.
107+
108+
102109

103110
Multiplying both sides by inverse of the matrix on the left provides the solution
104111

@@ -245,7 +252,7 @@ Let's verify this with our Python code.
245252

246253
### Feasible consumption variations ###
247254

248-
To explore what types of consumption paths are welfare-improving, we shall create an **admissible consumption path variation** sequence $\{v_t\}_{t=0}^T$
255+
To explore what types of consumption paths are welfare-improving, we shall create an **admissible consumption path variation sequence** $\{v_t\}_{t=0}^T$
249256
that satisfies
250257

251258
$$
@@ -266,7 +273,7 @@ Let's compute that function.
266273
We require
267274

268275
$$
269-
\sum_{t=0}^T \left[ \xi_1 \phi^t - \phi_0 \right] = 0
276+
\sum_{t=0}^T \left[ \xi_1 \phi^t - \xi_0 \right] = 0
270277
$$
271278

272279
which implies that
@@ -300,7 +307,6 @@ graphs to show that, when $\beta R =1$ and starting from the smooth path, all n
300307

301308
We can even use the Python numpy grad command to compute derivatives of welfare with respect to our two parameters. Notice that we are teaching the key idea beneath the calculus of variations.
302309

303-
304310
```{code-cell} ipython3
305311
306312
```

sandpit/equalizing_difference.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jupytext:
44
extension: .md
55
format_name: myst
66
format_version: 0.13
7-
jupytext_version: 1.14.5
7+
jupytext_version: 1.14.4
88
kernelspec:
99
display_name: Python 3 (ipykernel)
1010
language: python
@@ -22,7 +22,7 @@ equation that would be part of set equations comprising all of the "equilibrium
2222
The condition featured in our model determies a college, high-school wage ratio that equalizes the
2323
present values of a high school worker and a college educated worker.
2424

25-
It is just one instance of a class of "equalizing difference" theories of relative wage rates, a class dating back at least to Adam Smith's **Wealth of Nations**.
25+
It is just one instance of a class of "equalizing difference" theories of relative wage rates, a class dating back at least to Adam Smith's **Wealth of Nations**.
2626

2727
+++
2828

@@ -120,22 +120,18 @@ $$
120120
c_0 = \pi \sum_{t=4}^T R^{-t} w_t^c
121121
$$
122122

123-
where $\pi \in (0,1) $ is the probability that the entrepreneur's "project" succeeds.
123+
where $\pi \in (0,1) $ is the probability that an entrepreneur's "project" succeeds.
124124

125125
We set $D =0$.
126126

127127
What we used to call the college, high school wage gap $\phi$ now becomes the ratio
128-
of (successful) entreneurs' earnings to worker's earnings.
128+
of a successful entreneur's earnings to a worker's earnings.
129129

130130
We'll find that as $\pi$ decreases, $\phi$ increases.
131131

132132
We can have some fun providing some example calculations that tweak various parameters,
133133
prominently including $\gamma_h, \gamma_c, R$.
134134

135-
136-
137-
138-
139135
```{code-cell} ipython3
140136
141137
```

0 commit comments

Comments
 (0)