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/intro_supply_demand.md
+12-38Lines changed: 12 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -57,9 +57,9 @@ import matplotlib.pyplot as plt
57
57
58
58
## Supply and Demand
59
59
60
-
We study a market for a single good in which buyers and sellers exchange a quantity $q$ for a price $p$.
60
+
We study a market for a single good in which buyers and sellers exchange a quantity $q$ for a price $p$.
61
61
62
-
Quantity $q$ and price $p$ are both scalars.
62
+
Quantity $q$ and price $p$ are both scalars.
63
63
64
64
We assume that inverse demand and supply curves for the good are:
65
65
@@ -177,7 +177,7 @@ plt.show()
177
177
178
178
Consumer surplus gives a measure of total consumer welfare at quantity $q$.
179
179
180
-
The idea is that the inverse demand curve $d_0 - d_1 q$ shows willingness to
180
+
The idea is that the inverse demand curve $d_0 - d_1 q$ shows willingness to
181
181
pay at a given quantity $q$.
182
182
183
183
The difference between willingness to pay and the actual price is the surplus.
@@ -312,16 +312,15 @@ $$
312
312
q = \frac{ d_0 - s_0}{s_1 + d_1}
313
313
$$ (eq:old1)
314
314
315
-
Let's remember the quantity $q$ given by equation {eq}`eq:old1` that a social planner would choose to maximize consumer plus producer surplus.
315
+
Let's remember the quantity $q$ given by equation {eq}`eq:old1` that a social planner would choose to maximize consumer surplus plus producer surplus.
316
316
317
-
We'll compare it to the quantity that emerges in a competitive equilibrium
318
-
equilibrium that equates supply to demand.
317
+
We'll compare it to the quantity that emerges in a competitive equilibrium that equates supply to demand.
319
318
320
319
321
320
322
321
### Competitive Equilibrium
323
322
324
-
Instead of equating quantities supplied and demanded, we'll can accomplish the
323
+
Instead of equating quantities supplied and demanded, we can accomplish the
325
324
same thing by equating demand price to supply price:
326
325
327
326
$$
@@ -347,29 +346,24 @@ supply to demand brings us a **key finding:**
347
346
348
347
This is a version of the [first fundamental welfare theorem](https://en.wikipedia.org/wiki/Fundamental_theorems_of_welfare_economics),
349
348
350
-
It also brings a useful **competitive equilibrium computation strategy:**
351
-
352
-
* after solving the welfare problem for an optimal quantity, we can read a
353
-
competitive equilibrium price from either supply price or demand price at
354
-
the competitive equilibrium quantity
349
+
It also brings a useful **competitive equilibrium computation strategy:**
355
350
351
+
* after solving the welfare problem for an optimal quantity, we can read a competitive equilibrium price from either supply price or demand price at the competitive equilibrium quantity
356
352
357
353
## Generalizations
358
354
359
-
In a {doc}`later lecture <supply_demand_multiple_goods>`, we'll derive
355
+
In a {doc}`later lecture <supply_demand_multiple_goods>`, we'll derive
360
356
generalizations of the above demand and supply curves from other objects.
361
357
362
-
Our generalizations will extend the preceding analysis of a market for a
363
-
single good to the analysis of $n$ simultaneous markets in $n$ goods.
358
+
Our generalizations will extend the preceding analysis of a market for a single good to the analysis of $n$ simultaneous markets in $n$ goods.
364
359
365
360
In addition
366
361
367
362
* we'll derive **demand curves** from a consumer problem that maximizes a
368
363
**utility function** subject to a **budget constraint**.
369
364
370
365
* we'll derive **supply curves** from the problem of a producer who is price
371
-
taker and maximizes his profits minus total costs that are described by a
372
-
**cost function**.
366
+
taker and maximizes his profits minus total costs that are described by a **cost function**.
373
367
374
368
## Exercises
375
369
@@ -387,21 +381,18 @@ $$
387
381
All parameters are positive, as before.
388
382
389
383
390
-
391
-
392
384
```{exercise}
393
385
:label: isd_ex1
394
386
395
387
Define a new `Market` class that holds the same parameter values as before by
396
-
changes the `inverse_demand` and `inverse_supply` methods to
388
+
changing the `inverse_demand` and `inverse_supply` methods to
397
389
match these new definitions.
398
390
399
391
Using the class, plot the inverse demand and supply curves $i_d$ and $i_s$
400
392
401
393
```
402
394
403
395
404
-
405
396
```{solution-start} isd_ex1
406
397
:class: dropdown
407
398
```
@@ -432,7 +423,6 @@ Let's create an instance.
432
423
market = Market()
433
424
```
434
425
435
-
436
426
Here is a plot of inverse supply and demand.
437
427
438
428
```{code-cell} ipython3
@@ -455,16 +445,13 @@ ax.set_ylabel('price')
455
445
plt.show()
456
446
```
457
447
458
-
459
448
```{solution-end}
460
449
```
461
450
462
451
463
-
464
452
```{exercise}
465
453
:label: isd_ex2
466
454
467
-
468
455
As before, consumer surplus at $q$ is the area under the demand curve minus
469
456
price times quantity:
470
457
@@ -500,7 +487,6 @@ Plot welfare as a function of $q$.
500
487
```
501
488
502
489
503
-
504
490
```{solution-start} isd_ex2
505
491
:class: dropdown
506
492
```
@@ -515,7 +501,6 @@ $$
515
501
516
502
Here's a Python function that computes this value:
517
503
518
-
519
504
```{code-cell} ipython3
520
505
def W(q, market):
521
506
# Unpack
@@ -528,7 +513,6 @@ def W(q, market):
528
513
529
514
The next figure plots welfare as a function of $q$.
0 commit comments