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
+170-2Lines changed: 170 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,8 @@ kernelspec:
13
13
14
14
# Equalizing Difference Model
15
15
16
+
## Overview
17
+
16
18
This lecture presents a model of the college-high-school wage gap in which the
17
19
"time to build" a college graduate plays a key role.
18
20
@@ -26,13 +28,25 @@ The idea behind this condition is that lifetime earnings have to adjust to make
26
28
27
29
It is just one instance of an "equalizing difference" theory of relative wage rates, a class of theories dating back at least to Adam Smith's **Wealth of Nations** {cite}`smith2010wealth`.
28
30
31
+
For most of this lecture, the only mathematical tools that we'll use are from linear algebra, in particular, matrix multiplication and matrix inversion.
32
+
33
+
However, at the very end of the lecture, we'll use calculus just in case readers want to see how computing partial derivatives could let us present some findings more concisely.
34
+
35
+
(And doing that will let us show off how good Python is at doing calculus!)
36
+
37
+
But if you don't know calculus, our tools from linear algebra are certainly enough.
38
+
29
39
As usual, we'll start by importing some Python modules.
30
40
31
41
```{code-cell} ipython3
32
42
import numpy as np
33
43
import matplotlib.pyplot as plt
34
44
```
35
45
46
+
## The indifference condition
47
+
48
+
The key idea is that the initial college wage premium has to adjust to make a representative worker indifferent between going to college and not going to college.
49
+
36
50
Let
37
51
38
52
* $R > 1$ be the gross rate of return on a one-period bond
@@ -119,6 +133,8 @@ $$
119
133
w_0^h A_h = \phi w_0^h A_c - D .
120
134
$$ (eq:equalize)
121
135
136
+
This is the "indifference condition" that is at the heart of the model.
137
+
122
138
Solving equation {eq}`eq:equalize` for the college wage premium $\phi$ we obtain
123
139
124
140
$$
@@ -139,7 +155,7 @@ But first we'll describe a possible alternative interpretation of our model.
139
155
140
156
141
157
142
-
## A tweaked model: workers and entrepreneurs
158
+
## Reinterpreting the model: workers and entrepreneurs
143
159
144
160
145
161
We can add a parameter and reinterpret variables to get a model of entrepreneurs versus workers.
@@ -308,7 +324,7 @@ plt.show()
308
324
```
309
325
310
326
311
-
**Entrepreneur-worker interpretation**
327
+
## Entrepreneur-worker interpretation
312
328
313
329
Now let's adopt the entrepreneur-worker interpretation of our model.
314
330
@@ -335,6 +351,158 @@ plt.show()
335
351
336
352
Does the graph make sense to you?
337
353
354
+
355
+
356
+
## An application of calculus
357
+
358
+
So far, we have used only linear algebra and it has been a good enough tool for us to figure out how our model works.
359
+
360
+
However, someone who knows calculus might ask "Instead of plotting those graphs, why didn't you just take partial derivatives?"
361
+
362
+
We'll briefly do just that, yes, the questioner is correct and that partial derivatives are indeed a good tool for discovering the "comparative statics" properities of our model.
363
+
364
+
A reader who doesn't know calculus could read no further and feel confident that applying linear algebra has taught us the main properties of the model.
365
+
366
+
But for a reader interested in how we can get Python to do all the hard work involved in computing partial derivatives, we'll say a few things about that now.
367
+
368
+
We'll use the Python module 'sympy' to compute partial derivatives of $\phi$ with respect to the parameters that determine it.
369
+
370
+
Let's import key functions from sympy.
371
+
372
+
```{code-cell} ipython3
373
+
from sympy import Symbol, Lambda, symbols
374
+
```
375
+
376
+
Define symbols
377
+
378
+
```{code-cell} ipython3
379
+
γ_h, γ_c, w_h0, D = symbols('\gamma_h, \gamma_h_c, w_0^h, D', real=True)
380
+
R, T = Symbol('R', real=True), Symbol('T', integer=True)
0 commit comments