You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sandpit/cons_smooth.md
+16-10Lines changed: 16 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ jupytext:
4
4
extension: .md
5
5
format_name: myst
6
6
format_version: 0.13
7
-
jupytext_version: 1.14.5
7
+
jupytext_version: 1.14.4
8
8
kernelspec:
9
9
display_name: Python 3 (ipykernel)
10
10
language: python
@@ -15,7 +15,7 @@ kernelspec:
15
15
16
16
In this notebook, we'll present some useful models of economic dynamics using only linear algebra -- matrix multiplication and matrix inversion.
17
17
18
-
**Present value formulas** are at the core of the models.
18
+
**Present value formulas** are at the core of the models.
19
19
20
20
+++
21
21
@@ -71,9 +71,6 @@ where $g_1 > 0, g_2 > 0$.
71
71
72
72
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.
73
73
74
-
75
-
76
-
77
74
+++
78
75
79
76
## Difference equations with linear algebra ##
@@ -85,7 +82,16 @@ with appropriate initial conditions and then use linear algebra to solve it.
85
82
86
83
#### First-order difference equation
87
84
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
Multiplying both sides by inverse of the matrix on the left provides the solution
104
111
@@ -245,7 +252,7 @@ Let's verify this with our Python code.
245
252
246
253
### Feasible consumption variations ###
247
254
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$
@@ -300,7 +307,6 @@ graphs to show that, when $\beta R =1$ and starting from the smooth path, all n
300
307
301
308
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.
Copy file name to clipboardExpand all lines: sandpit/equalizing_difference.md
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ jupytext:
4
4
extension: .md
5
5
format_name: myst
6
6
format_version: 0.13
7
-
jupytext_version: 1.14.5
7
+
jupytext_version: 1.14.4
8
8
kernelspec:
9
9
display_name: Python 3 (ipykernel)
10
10
language: python
@@ -22,7 +22,7 @@ equation that would be part of set equations comprising all of the "equilibrium
22
22
The condition featured in our model determies a college, high-school wage ratio that equalizes the
23
23
present values of a high school worker and a college educated worker.
24
24
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**.
26
26
27
27
+++
28
28
@@ -120,22 +120,18 @@ $$
120
120
c_0 = \pi \sum_{t=4}^T R^{-t} w_t^c
121
121
$$
122
122
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.
124
124
125
125
We set $D =0$.
126
126
127
127
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.
129
129
130
130
We'll find that as $\pi$ decreases, $\phi$ increases.
131
131
132
132
We can have some fun providing some example calculations that tweak various parameters,
0 commit comments