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: lectures/equalizing_difference.md
+45-111
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.4
7
+
jupytext_version: 1.16.1
8
8
kernelspec:
9
9
display_name: Python 3 (ipykernel)
10
10
language: python
@@ -29,7 +29,7 @@ To map Friedman's application into our model, think of our high school students
29
29
30
30
Our presentation is "incomplete" in the sense that it is based on a single equation that would be part of set equilibrium conditions of a more fully articulated model.
31
31
32
-
This ''equalizing difference'' equation determines a college, high-school wage ratio that equalizes present values of a high school educated worker and a college educated worker.
32
+
This ''equalizing difference'' equation determines a college-high-school wage ratio that equalizes present values of a high school educated worker and a college educated worker.
33
33
34
34
The idea is that lifetime earnings somehow adjust to make a new high school worker indifferent between going to college and not going to college but instead going to work immmediately.
35
35
@@ -50,6 +50,8 @@ As usual, we'll start by importing some Python modules.
50
50
```{code-cell} ipython3
51
51
import numpy as np
52
52
import matplotlib.pyplot as plt
53
+
from collections import namedtuple
54
+
from sympy import Symbol, Lambda, symbols
53
55
```
54
56
55
57
## The indifference condition
@@ -206,34 +208,34 @@ prominently including $\gamma_h, \gamma_c, R$.
206
208
207
209
Now let's write some Python code to compute $\phi$ and plot it as a function of some of its determinants.
208
210
209
-
210
211
```{code-cell} ipython3
211
-
class equalizing_diff:
212
-
"""
213
-
A class of the equalizing difference model
214
-
"""
212
+
# Define the namedtuple for the equalizing difference model
213
+
EqDiffModel = namedtuple('EqDiffModel', 'R T γ_h γ_c w_h0 D π')
Let's not charge for college and recompute $\phi$.
290
254
291
255
The initial college wage premium should go down.
292
256
293
-
294
-
295
-
296
257
```{code-cell} ipython3
297
258
# free college
298
-
ex2 = equalizing_diff(R, T, γ_h, γ_c, w_h0, D=0)
299
-
gap2 = ex2.compute_gap()
300
-
print(gap2)
259
+
ex2 = create_edm(D=0)
260
+
gap2 = compute_gap(ex2)
261
+
gap2
301
262
```
302
263
303
-
304
-
305
264
Let us construct some graphs that show us how the initial college-high-school wage ratio $\phi$ would change if one of its determinants were to change.
0 commit comments