Skip to content

Commit 197eb55

Browse files
committed
[intro_supply_demand] example admonition
add two example admonitions
1 parent f3d8637 commit 197eb55

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lectures/intro_supply_demand.md

+8
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ Before we look at the model of supply and demand, it will be helpful to have som
6868

6969
### A discrete example
7070

71+
```{prf:example}
72+
:label: isd_ex_cs
73+
7174
Regarding consumer surplus, suppose that we have a single good and 10 consumers.
7275
7376
These 10 consumers have different preferences; in particular, the amount they would be willing to pay for one unit of the good differs.
@@ -79,6 +82,7 @@ Suppose that the willingness to pay for each of the 10 consumers is as follows:
7982
| willing to pay | 98 | 72 | 41 | 38 | 29 | 21 | 17 | 12 | 11 | 10 |
8083
8184
(We have ordered consumers by willingness to pay, in descending order.)
85+
```
8286

8387
If $p$ is the price of the good and $w_i$ is the amount that consumer $i$ is willing to pay, then $i$ buys when $w_i \geq p$.
8488

@@ -253,6 +257,9 @@ Let $v_i$ be the price at which producer $i$ is willing to sell the good.
253257

254258
When the price is $p$, producer surplus for producer $i$ is $\max\{p - v_i, 0\}$.
255259

260+
```{prf:example}
261+
:label: isd_ex_dc
262+
256263
For example, a producer willing to sell at \$10 and selling at price \$20 makes a surplus of \$10.
257264
258265
Total producer surplus is given by
@@ -273,6 +280,7 @@ p = 2 q^2
273280
$$
274281
275282
The shaded area is the total producer surplus in this continuous model.
283+
```
276284

277285
```{code-cell} ipython3
278286
---

0 commit comments

Comments
 (0)