Skip to content

Commit a3fcd2b

Browse files
authored
Merge pull request #207 from QuantEcon/equalizing_diff
Add Equalizing Difference Model
2 parents 87ea6f0 + 925363d commit a3fcd2b

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

lectures/_toc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ parts:
2222
chapters:
2323
- file: pv
2424
- file: cons_smooth
25+
- file: equalizing_difference
2526
- file: cagan_ree
2627
- file: geom_series
2728
- caption: Probability and Distributions

sandpit/equalizing_difference.md renamed to lectures/equalizing_difference.md

+4-8
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ kernelspec:
1111
name: python3
1212
---
1313

14-
+++ {"user_expressions": []}
15-
16-
### Equalizing Difference Model
14+
# Equalizing Difference Model
1715

1816
This notebook presents a model of the college-high-school wage gap in which the
1917
"time to build" a college graduate plays a key role.
@@ -31,8 +29,6 @@ import numpy as np
3129
import matplotlib.pyplot as plt
3230
```
3331

34-
+++ {"user_expressions": []}
35-
3632
Let
3733

3834
* $R > 0$ be the gross rate of return on a one-period bond
@@ -114,7 +110,7 @@ $$
114110
$$
115111

116112

117-
#### Tweaked Model: Workers and Entrepreneurs
113+
## Tweaked Model: Workers and Entrepreneurs
118114

119115

120116
We can add a parameter and reinterpret variables to get a model of entrepreuneurs versus workers.
@@ -165,7 +161,7 @@ class equalizing_diff:
165161
return ϕ
166162
```
167163

168-
+++ {"user_expressions": []}
164+
169165

170166
We can build some functions to help do comparative statics using vectorization instead of loops.
171167

@@ -216,7 +212,7 @@ gap1 = ex1.compute_gap()
216212
print(gap1)
217213
```
218214

219-
+++ {"user_expressions": []}
215+
220216

221217
Let us plot $\phi$ against some parameters.
222218

0 commit comments

Comments
 (0)