Skip to content

Commit b0a1ae9

Browse files
Fix minor typos
1 parent 9ea8fb8 commit b0a1ae9

File tree

2 files changed

+10
-32
lines changed

2 files changed

+10
-32
lines changed

lectures/intro_supply_demand.md

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ plt.show()
177177

178178
Consumer surplus gives a measure of total consumer welfare at quantity $q$.
179179

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
181181
pay at a given quantity $q$.
182182

183183
The difference between willingness to pay and the actual price is the surplus.
@@ -314,14 +314,13 @@ $$ (eq:old1)
314314
315315
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.
316316
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.
319318
320319
321320
322321
### Competitive Equilibrium
323322
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
325324
same thing by equating demand price to supply price:
326325
327326
$$
@@ -353,7 +352,7 @@ It also brings a useful **competitive equilibrium computation strategy:**
353352
354353
## Generalizations
355354
356-
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
357356
generalizations of the above demand and supply curves from other objects.
358357
359358
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,8 +363,7 @@ In addition
364363
**utility function** subject to a **budget constraint**.
365364
366365
* we'll derive **supply curves** from the problem of a producer who is price
367-
taker and maximizes his profits minus total costs that are described by a
368-
**cost function**.
366+
taker and maximizes his profits minus total costs that are described by a **cost function**.
369367
370368
## Exercises
371369
@@ -383,21 +381,18 @@ $$
383381
All parameters are positive, as before.
384382
385383
386-
387-
388384
```{exercise}
389385
:label: isd_ex1
390386
391387
Define a new `Market` class that holds the same parameter values as before by
392-
changes the `inverse_demand` and `inverse_supply` methods to
388+
changing the `inverse_demand` and `inverse_supply` methods to
393389
match these new definitions.
394390
395391
Using the class, plot the inverse demand and supply curves $i_d$ and $i_s$
396392
397393
```
398394
399395
400-
401396
```{solution-start} isd_ex1
402397
:class: dropdown
403398
```
@@ -428,7 +423,6 @@ Let's create an instance.
428423
market = Market()
429424
```
430425
431-
432426
Here is a plot of inverse supply and demand.
433427
434428
```{code-cell} ipython3
@@ -451,16 +445,13 @@ ax.set_ylabel('price')
451445
plt.show()
452446
```
453447
454-
455448
```{solution-end}
456449
```
457450
458451
459-
460452
```{exercise}
461453
:label: isd_ex2
462454
463-
464455
As before, consumer surplus at $q$ is the area under the demand curve minus
465456
price times quantity:
466457
@@ -496,7 +487,6 @@ Plot welfare as a function of $q$.
496487
```
497488
498489
499-
500490
```{solution-start} isd_ex2
501491
:class: dropdown
502492
```
@@ -511,7 +501,6 @@ $$
511501
512502
Here's a Python function that computes this value:
513503
514-
515504
```{code-cell} ipython3
516505
def W(q, market):
517506
# Unpack
@@ -524,7 +513,6 @@ def W(q, market):
524513
525514
The next figure plots welfare as a function of $q$.
526515
527-
528516
```{code-cell} ipython3
529517
fig, ax = plt.subplots()
530518
ax.plot(q_vals, W(q_vals, market), label='welfare')
@@ -537,11 +525,9 @@ plt.show()
537525
```
538526
539527
540-
541528
```{exercise}
542529
:label: isd_ex3
543530
544-
545531
Due to nonlinearities, the new welfare function is not easy to maximize with
546532
pencil and paper.
547533
@@ -550,7 +536,6 @@ Maximize it using `scipy.optimize.minimize_scalar` instead.
550536
```
551537
552538
553-
554539
```{solution-start} isd_ex3
555540
:class: dropdown
556541
```
@@ -565,8 +550,6 @@ result = minimize_scalar(objective, bounds=(0, 10))
565550
print(result.message)
566551
```
567552
568-
569-
570553
```{code-cell} ipython3
571554
maximizing_q = result.x
572555
print(f"{maximizing_q: .5f}")
@@ -576,7 +559,6 @@ print(f"{maximizing_q: .5f}")
576559
```
577560
578561
579-
580562
```{exercise}
581563
:label: isd_ex4
582564
@@ -601,12 +583,10 @@ price, in line with the first fundamental welfare theorem.
601583
```
602584
603585
604-
605586
```{solution-start} isd_ex3
606587
:class: dropdown
607588
```
608589
609-
610590
```{code-cell} ipython3
611591
from scipy.optimize import newton
612592
@@ -617,7 +597,5 @@ equilibrium_q = newton(excess_demand, 0.1)
617597
print(f"{equilibrium_q: .5f}")
618598
```
619599
620-
621600
```{solution-end}
622601
```
623-

lectures/supply_demand_multiple_goods.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ In this lecture, we study a setting with $n$ goods and $n$ corresponding prices.
99

1010
We shall describe two classic welfare theorems:
1111

12-
* **first welfare theorem:** for a given a distribution of wealth among consumers, a competitive equilibrium allocation of goods solves a social planning problem.
12+
* **first welfare theorem:** for a given distribution of wealth among consumers, a competitive equilibrium allocation of goods solves a social planning problem.
1313

1414
* **second welfare theorem:** An allocation of goods to consumers that solves a social planning problem can be supported by a competitive equilibrium with an appropriate initial distribution of wealth.
1515

@@ -174,7 +174,7 @@ Verify that setting $\mu=2$ in {eq}`eq:old3` also implies that formula
174174
175175
## Digression: Marshallian and Hicksian Demand Curves
176176
177-
Sometimes we'll use budget constraint {eq}`eq:old2` in situations in which a consumers's endowment vector $e$ is his **only** source of income.
177+
Sometimes we'll use budget constraint {eq}`eq:old2` in situations in which a consumer's endowment vector $e$ is his **only** source of income.
178178
179179
Other times we'll instead assume that the consumer has another source of income (positive or negative) and write his budget constraint as
180180
@@ -274,7 +274,7 @@ As an example, our consumer confronts **risk** meaning in particular that
274274
275275
* there are two states of nature, $1$ and $2$.
276276
277-
* the consumer knows that probability that state $1$ occurs is $\lambda$.
277+
* the consumer knows that the probability that state $1$ occurs is $\lambda$.
278278
279279
* the consumer knows that the probability that state $2$ occurs is $(1-\lambda)$.
280280
@@ -337,7 +337,7 @@ We can study how these things affect equilibrium prices and allocations.
337337
338338
## Economies with Endogenous Supplies of Goods
339339
340-
Up to now we have described a pure exchange economy in which endowments of good are exogenous, meaning that they are taken as given from outside the model.
340+
Up to now we have described a pure exchange economy in which endowments of goods are exogenous, meaning that they are taken as given from outside the model.
341341
342342
### Supply Curve of a Competitive Firm
343343

0 commit comments

Comments
 (0)