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/supply_demand_heterogeneity.md
+32-22Lines changed: 32 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,13 @@
1
+
---
2
+
jupytext:
3
+
text_representation:
4
+
extension: .md
5
+
format_name: myst
6
+
kernelspec:
7
+
display_name: Python 3 (ipykernel)
8
+
language: python
9
+
name: python3
10
+
---
1
11
# Market Equilibrium with Heterogeneity
2
12
3
13
@@ -110,7 +120,7 @@ The class will include a test to make sure that $b > > \Pi e $ and raise an exc
110
120
Now let's proceed to code.
111
121
<!-- #endregion -->
112
122
113
-
```python
123
+
```{code-cell} ipython3
114
124
# import some packages
115
125
import numpy as np
116
126
import pandas as pd
@@ -220,7 +230,7 @@ $$
220
230
Thus, we have verified that, up to choice of a numeraire in which to express absolute prices, the price vector in our representative consumer economy is the same as that in an underlying economy with multiple consumers.
Now we change the bliss point so that the consumer derives more utility from consumption.
617
627
618
-
```python
628
+
```{code-cell} ipython3
619
629
PE.mu = 1
620
630
PE.b = PE.b * 1.5
621
631
c, p = PE.competitive_equilibrium()
@@ -637,7 +647,7 @@ This raises both the equilibrium price and quantity.
637
647
* we can do experiments with a **diagonal** $\Pi$ and also with a **non-diagonal** $\Pi$ matrices to study how cross-slopes affect responses of $p$ and $c$ to various shifts in $b$
0 commit comments