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
@@ -20,26 +20,37 @@ the main topics of elementary microeconomics.
20
20
21
21
Throughout the lecture, we focus on models with one good and one price.
22
22
23
-
24
23
In a {doc}`subsequent lecture <supply_demand_multiple_goods>` we will investigate settings with
25
24
many goods.
26
25
26
+
### Why does this model matter?
27
+
28
+
In the 15th, 16th, 17th and 18th centuries, mercantilist ideas held sway among most rulers of European countries.
29
+
30
+
Exports were regarded as good because they brought in bullion (gold flowed into the country).
31
+
32
+
Imports were regarded as bad because bullion was required to pay for them (gold flowed out).
33
+
34
+
This [zero-sum](https://en.wikipedia.org/wiki/Zero-sum_game) view of economics was eventually overturned by the work of the classical economists such as [Adam Smith](https://en.wikipedia.org/wiki/Adam_Smith) and [David Ricado](https://en.wikipedia.org/wiki/David_Ricardo), who showed how freeing domestic and international trade can enhance welfare.
35
+
36
+
There are many different expressions of this idea in economics.
37
+
38
+
This lecture dicusses one of the simplest: how free adjustment of prices can maximize a measure of social welfare in the market for a single good.
39
+
40
+
41
+
### Topics and infrastructure
42
+
27
43
Key infrastructure concepts that we'll encounter in this lecture are
28
44
29
45
* inverse demand curves
30
46
* inverse supply curves
31
47
* consumer surplus
32
48
* producer surplus
49
+
* integration
33
50
* social welfare as the sum of consumer and producer surpluses
34
-
* relationship between equilibrium quantity and social welfare optimum
35
-
36
-
Throughout the lectures, we'll assume that inverse demand and supply curves are **affine** functions of quantity.
37
-
38
-
("Affine" means "linear plus a constant" and [here](https://math.stackexchange.com/questions/275310/what-is-the-difference-between-linear-and-affine-function) is a nice discussion about it.)
51
+
* the relationship between equilibrium quantity and social welfare optimum
39
52
40
-
We'll also assume affine inverse supply and demand functions when we study models with multiple consumption goods in our {doc}`subsequent lecture <supply_demand_multiple_goods>`.
41
53
42
-
We do this in order to simplify the exposition and enable us to use just a few tools from linear algebra, namely, matrix multiplication and matrix inversion.
43
54
44
55
In our exposition we will use the following imports.
45
56
@@ -48,8 +59,283 @@ import numpy as np
48
59
import matplotlib.pyplot as plt
49
60
```
50
61
62
+
## Consumer Surplus
63
+
64
+
Before we look at the model of supply and demand, it will be helpful to have some background on (a) consumer and producer surpluses and (b) integration.
65
+
66
+
(If you are comfortable with both topics you can jump to the next section.)
67
+
68
+
### A discrete example
69
+
70
+
Regarding consumer surplus, suppose that we have a single good and 10 consumers.
71
+
72
+
These 10 consumers have different preferences; in particular, the amount they would be willing to pay for one unit of the good differs.
73
+
74
+
Suppose that the willingness to pay amount for each of the 10 consumers is as follows:
ax.bar(consumers, [min(w, price) for w in wtp], color="black", alpha=0.6)
109
+
ax.set_xlim(0, 12)
110
+
ax.set_xticks(consumers)
111
+
ax.set_ylabel("willingness to pay, price")
112
+
ax.set_xlabel("consumer, quantity")
113
+
ax.legend()
114
+
plt.show()
115
+
```
116
+
117
+
The total consumer surplus in this market is
118
+
119
+
$$
120
+
\sum_{i=1}^{10} \max\{w_i - p, 0\}
121
+
= \sum_{w_i \geq p} (w_i - p)
122
+
$$
123
+
124
+
Since consumer surplus $\max\{w_i-p,0\}$ of consumer $i$ is a measure of her gains from trade (i.e., extent to which the good is valued over and above the amount the consumer had to pay), it is reasonable to consider total consumer surplus as a measurement of consumer welfare.
125
+
126
+
Later we will pursue this idea further, considering how different prices lead to different welfare outcomes for consumers and producers.
127
+
128
+
### A comment on quantity.
129
+
130
+
Notice that in the figure, the horizontal axis is labeled "consumer, quantity".
131
+
132
+
We have added "quantity" here because we can read the number of units sold from this axis, assuming for now that there are sellers who are willing to sell as many units as the consumers demand, given the current market price $p$.
133
+
134
+
In this example, consumers 1 to 5 buy, and the quantity sold is 5.
135
+
136
+
Below we drop the assumption that sellers will provide any amount at a given price and study how this changes outcomes.
137
+
138
+
+++
139
+
140
+
### A continuous approximation
141
+
142
+
It is often convenient to assume that there is a "very large number" of consumers, so that willingness to pay becomes a continuous curve.
143
+
144
+
As before, the vertical axis measures willingness to pay, while the horizontal axis measures quantity.
145
+
146
+
This kind of curve is called an **inverse demand curve**
147
+
148
+
An example is provided below, showing both an inverse demand curve and a set price.
Reasoning by analogy with the discrete case, the area under the demand curve and above the price is called the **consumer surplus**, and is a measure of total gains from trade on the part of consumers.
174
+
175
+
The consumer surplus is shaded in the figure below.
176
+
177
+
```{code-cell} ipython3
178
+
# solve for the value of q where demand meets price
There are many rules for calculating integrals, with different rules applying to different choices of $f$.
309
+
310
+
Many of these rules relate to one of the most beautiful and powerful results in all of mathematics: the [fundamental theorem of calculus](https://en.wikipedia.org/wiki/Fundamental_theorem_of_calculus).
311
+
312
+
We will not try to cover these ideas here, partly because the subject is too big, and partly because you only need to know one rule for this lecture, stated below.
313
+
314
+
If $f(x) = c + d x$, then
315
+
316
+
$$ \int_a^b f(x) dx = c (b - a) + \frac{d}{2}(b^2 - a^2) $$
317
+
318
+
In fact this rule is so simple that it can be calculated from elementary geometry -- you might like to try by graphing $f$ and calculating the area under the curve between $a$ and $b$.
319
+
320
+
We use this rule repeatedly in what follows.
321
+
322
+
+++
323
+
51
324
## Supply and demand
52
325
326
+
Let's now put supply and demand together.
327
+
328
+
This leads us to the all important notion of market equilibrium, and from there onto a discussion of equilibra and welfare.
329
+
330
+
For most of this discussion, we'll assume that inverse demand and supply curves are **affine** functions of quantity.
331
+
332
+
("Affine" means "linear plus a constant" and [here](https://math.stackexchange.com/questions/275310/what-is-the-difference-between-linear-and-affine-function) is a nice discussion about it.)
333
+
334
+
We'll also assume affine inverse supply and demand functions when we study models with multiple consumption goods in our {doc}`subsequent lecture <supply_demand_multiple_goods>`.
335
+
336
+
We do this in order to simplify the exposition and enable us to use just a few tools from linear algebra, namely, matrix multiplication and matrix inversion.
337
+
338
+
53
339
We study a market for a single good in which buyers and sellers exchange a quantity $q$ for a price $p$.
54
340
55
341
Quantity $q$ and price $p$ are both scalars.
@@ -137,7 +423,6 @@ $$ (eq:cstm_spls)
137
423
138
424
The next figure illustrates
139
425
140
-
141
426
```{code-cell} ipython3
142
427
:tags: [hide-input]
143
428
@@ -277,7 +562,6 @@ def W(q, market):
277
562
278
563
The next figure plots welfare as a function of $q$.
0 commit comments