Skip to content

Commit 01b7ad7

Browse files
Tom's Feb 14 edits of supply-demand lecture
1 parent 5d3759e commit 01b7ad7

File tree

3 files changed

+70
-46
lines changed

3 files changed

+70
-46
lines changed

.DS_Store

0 Bytes
Binary file not shown.

in-work/quantecon_undergrad_notes_tom_3.md

Lines changed: 70 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ This document describe a class of linear models that determine competitive equil
55

66
Linear algebra and some multivariable calculus are the tools deployed.
77

8-
Versions of the classic welfare theorems prevail.
8+
Versions of the two classic welfare theorems prevail.
9+
10+
* **first welfare theorem:** for a given a distribution of wealth among consumers, a competitive equilibrium allocation of goods solves a particular social planning problem.
11+
12+
* **second welfare theorem:** An allocation of goods among consumers that solves a social planning problem can be supported by a compeitive equilibrium provided that wealth is appropriately distributed among consumers.
913

1014
Key infrastructure concepts are
1115

@@ -56,9 +60,8 @@ $$ \int_0^q (d_0 - d_1 x) dx = d_0 q -.5 d_1 q^2 - pq $$
5660

5761
$$ p q - \int_0^q (s_0 + s_1 x) dx $$
5862

59-
or
60-
6163

64+
Intimately associated with a competitive equilibrium is the following:
6265

6366

6467
**Welfare criterion** is consumer surplus plus producer surplus
@@ -67,25 +70,36 @@ $$ \int_0^q (d_0 - d_1 x) dx - \int_0^q (s_0 + s_1 x) dx $$
6770

6871
or
6972

70-
$$ (d_0 - s_0) q - .5 (d_1 + s_1) q^2 $$
73+
$$ \textrm{Welf} = (d_0 - s_0) q - .5 (d_1 + s_1) q^2 $$
7174

72-
The quantity that maximizes the welfare criterion is
75+
The quantity that maximizes welfare criterion $\textrm{Welf}$ is
7376

74-
$$ q = \frac{ d_0 - s_0}{s_1 + d_1} \tag{1}$$
77+
$$ q = \frac{ d_0 - s_0}{s_1 + d_1} \tag{1}$$
7578

7679

77-
Competitive equilibrium quantity equates demand price to supply price:
80+
A competitive equilibrium quantity equates demand price to supply price:
7881

7982

8083
$$ p = d_0 - d_1 q = s_0 + s_1 q , $$
8184

82-
which implies (1) and leads to both
85+
which implies (1).
8386

84-
**Key finding:** a competitive equilibrium quantity maximizes our welfare criterion.
87+
The outcome that the quantity determined by equation (1) equates
88+
supply to demand brings us the following important **key finding:**
8589

86-
and
90+
* a competitive equilibrium quantity maximizes our welfare criterion
91+
92+
93+
It also brings us a convenient **competitive equilibrium computation strategy:**
94+
95+
* after solving the welfare problem for an optimal quantity, we can read a competive equilibrium price from either supply price or demand price at the competitive equilibrium quantity
8796

88-
**A competitive equilibrium computation strategy:** after using the welfare problem to find a competitive equilibrium quantity, we can read a competive equilibrium price from either supply price or demand price at the competitive equilibrium quantity.
97+
Soon we'll derive generalizations of the above demand and supply
98+
curves from other objects.
99+
100+
We'll derive the **demand** curve from a **utility maximization problem**.
101+
102+
We'll derive the **supply curve** from a **cost function**.
89103

90104

91105
# Multiple goods
@@ -101,51 +115,51 @@ We apply formulas from linear algebra for
101115

102116
Where $a$ is an $n \times 1$ vector, $A$ is an $n \times n$ matrix, and $x$ is an $n \times 1$ vector:
103117

104-
$$ \frac{\partial a^T x }{\partial x} = a $$
118+
$$ \frac{\partial a^\top x }{\partial x} = a $$
105119

106-
$$ \frac{\partial x^T A x}{\partial x} = (A + A^T)x $$
120+
$$ \frac{\partial x^\top A x}{\partial x} = (A + A^\top)x $$
107121

108122
## From utility function to demand curve
109123

110124
Let $\Pi$ be an $n\times n$ matrix, $c$ be $n \times 1$ vector of consumptions of various goods, $b$ be $n \times 1$ vector of bliss points, $e$ an $n \times 1$ vector of endowments, and $p$ be an $n\times 1$ vector of prices
111125

112126
A consumer faces $p$ as a price taker and chooses $c$ to maximize
113127

114-
$$ -.5 (\Pi c -b) \cdot (\Pi c -b ) \tag{0} $$
128+
$$ -.5 (\Pi c -b) ^\top (\Pi c -b ) \tag{0} $$
115129

116130
subject to the budget constraint
117131

118-
$$ p \cdot (c -e ) = 0 \tag{2}$$
132+
$$ p ^\top (c -e ) = 0 \tag{2}$$
119133

120134

121-
## Digression about Marshallian and Hicksian Demand Curves
135+
## Digression: Marshallian and Hicksian Demand Curves
122136

123137
**Remark:** We'll use budget constraint (2) in situations in which a consumers's endowment vector $e$ is his **only** source of income. But sometimes we'll instead assume that the consumer has other sources of income (positive or negative) and write his budget constraint as
124138

125139

126-
$$ p \cdot (c -e ) = W \tag{2'}$$
140+
$$ p ^\top (c -e ) = W \tag{2'}$$
127141

128142
where $W$ is measured in "dollars" (or some other **numeraire**) and component $p_i$ of the price vector is measured in dollars per good $i$.
129143

130144
Whether the consumer's budget constraint is (2) or (2') and whether we take $W$ as a free parameter or instead as an endogenous variable to be solved for will affect the consumer's marginal utility of wealth.
131145

132-
How we treat these things will determine whether we are constucting
146+
How we set $\mu$ determines whether we are constucting
133147

134148
* a **Marshallian** demand curve, when we use (2) and solve for $\mu$ using equation (4) below, or
135149
* a **Hicksian** demand curve, when we treat $\mu$ as a fixed parameter and solve for $W$ from (2').
136150

137-
Marshallian and Hicksian demand curves correspond to different mental experiments:
151+
Marshallian and Hicksian demand curves describe different mental experiments:
138152

139153
* For a Marshallian demand curve, hypothetical price vector changes produce changes in quantities determined that have both **substitution** and **income** effects
140154

141155
* income effects are consequences of changes in
142-
$p^T e$ associated with the change in the price vector
156+
$p^\top e$ associated with the change in the price vector
143157

144158
* For a Hicksian demand curve, hypothetical price vector changes produce changes in quantities determined that have only **substitution** effects
145159

146160
* changes in the price vector leave the $p^e + W$ unaltered because we freeze $\mu$ and solve for $W$
147161

148-
We'll discuss these alternative concepts of demand curves more below.
162+
We'll discuss these distinct demand curves more below.
149163

150164

151165
## Demand Curve as Constrained Utility Maximization
@@ -156,25 +170,25 @@ So we'll be deriving a **Marshallian** demand curve.
156170

157171
Form a Lagrangian
158172

159-
$$ L = -.5 (\Pi c -b) \cdot (\Pi c -b ) + \mu [p\cdot (e-c)] $$
173+
$$ L = -.5 (\Pi c -b) ^\top (\Pi c -b ) + \mu [p^\top (e-c)] $$
160174

161175
where $\mu$ is a Lagrange multiplier that is often called a **marginal utility of wealth**.
162176

163177
The consumer chooses $c$ to maximize $L$ and $\mu$ to minimize it.
164178

165179
First-order conditions for $c$ are
166180

167-
$$ \frac{\partial L} {\partial c} = - \Pi^T \Pi c + \Pi^T b - \mu p = 0 $$
181+
$$ \frac{\partial L} {\partial c} = - \Pi^\top \Pi c + \Pi^\top b - \mu p = 0 $$
168182

169183
so that, given $\mu$, the consumer chooses
170184

171-
$$ c = \Pi^{-1} b - \Pi^{-1} (\Pi^T)^{-1} \mu p \tag{3} $$
185+
$$ c = \Pi^{-1} b - \Pi^{-1} (\Pi^\top)^{-1} \mu p \tag{3} $$
172186

173187
Substituting (3) into budget constraint (2) and solving for $\mu$ gives
174188

175-
$$ \mu(p,e) = \frac{p^T (\Pi^{-1} b - e)}{p^T (\Pi^T \Pi )^{-1} p}. \tag{4} $$
189+
$$ \mu(p,e) = \frac{p^\top (\Pi^{-1} b - e)}{p^\top (\Pi^\top \Pi )^{-1} p}. \tag{4} $$
176190

177-
Equation (4) tells how marginal utility of wealth depend on the endowment vector $e$ and the price vector $p$.
191+
Equation (4) tells how marginal utility of wealth depends on the endowment vector $e$ and the price vector $p$.
178192

179193
**Remark:** Equation (4) is a consequence of imposing that $p (c - e) = 0$. We could instead take $\mu$ as a parameter and use (3) and the budget constraint (2') to solve for $W.$ Which way we proceed determines whether we are constructing a **Marshallian** or **Hicksian** demand curve.
180194

@@ -192,7 +206,7 @@ Competitive equilibium prices must be set to induce the consumer to choose $c=
192206

193207
This implies that the equilibrium price vector must satisfy
194208

195-
$$ p = \mu^{-1} (\Pi^T b - \Pi^T \Pi e)$$
209+
$$ p = \mu^{-1} (\Pi^\top b - \Pi^\top \Pi e)$$
196210

197211
In the present case where we have imposed budget constraint in the form (2), we are free to normalize the price vector by setting the marginal utility of wealth $\mu =1$ (or any other value for that matter).
198212

@@ -223,26 +237,26 @@ $$ c_1 + c_2 = e_1 + e_2 $$
223237

224238
Assume the demand curves
225239

226-
$$ c_i = \Pi^{-1}b_i - (\Pi^T \Pi)^{-1} \mu_i p $$
240+
$$ c_i = \Pi^{-1}b_i - (\Pi^\top \Pi)^{-1} \mu_i p $$
227241

228242
Competitive equilibrium then requires that
229243

230-
$$ e_1 + e_2 = \Pi^{-1} (b_1 + b_2) - (\Pi^T \Pi)^{-1} (\mu_1 + \mu_2) p $$
244+
$$ e_1 + e_2 = \Pi^{-1} (b_1 + b_2) - (\Pi^\top \Pi)^{-1} (\mu_1 + \mu_2) p $$
231245

232246
which after a line or two of linear algebra implies that
233247

234-
$$ (\mu_1 + \mu_2) p = \Pi^T(b_1+ b_2) (e_1 + e_2) \tag{6} $$
248+
$$ (\mu_1 + \mu_2) p = \Pi^\top(b_1+ b_2) (e_1 + e_2) \tag{6} $$
235249

236250
We can normalize prices by setting $\mu_1 + \mu_2 =1$ and then deducing
237251

238252

239-
$$ \mu_i(p,e) = \frac{p^T (\Pi^{-1} bi - e_i)}{p^T (\Pi^T \Pi )^{-1} p} \tag{7} $$
253+
$$ \mu_i(p,e) = \frac{p^\top (\Pi^{-1} bi - e_i)}{p^\top (\Pi^\top \Pi )^{-1} p} \tag{7} $$
240254

241255
for $\mu_i, i = 1,2$.
242256

243257

244258
**Exercise:** Show that, up to normalization by a positive scalar, the same competitive equilibrium price vector that you computed in the preceding two-consumer economy would prevail in a single-consumer economy in which a single **representative consumer** has utility function
245-
$$ -.5 (\Pi c -b) \cdot (\Pi c -b ) $$
259+
$$ -.5 (\Pi c -b) ^\top (\Pi c -b ) $$
246260
and endowment vector $e$, where
247261
$$
248262
b = b_1 + b_2
@@ -256,7 +270,7 @@ $$e = e_1 + e_2 . $$
256270

257271

258272

259-
Special cases of out model can handle
273+
Special cases of our model can be created to represent
260274

261275
* dynamics
262276
- by putting different dates on different commodities
@@ -289,11 +303,15 @@ The left side is the **discounted present value** of consumption.
289303

290304
The right side is the **discounted present value** of the consumer's endowment.
291305

306+
The relative price $\frac{p_1}{p_2}$ has units of time $2$ goods per unit of time $1$ goods.
307+
308+
Consequently, $(1+r) = R \equiv \frac{p_1}{p_2}$ is the **gross interest rate** and $r$ is the **net interest rate**.
309+
292310
### Risk and state-contingent claims
293311

294-
The enviroment is static meaning that there is only one period.
312+
We study a **static** environment, meaning that there is only one period.
295313

296-
There is risk.
314+
There is **risk**.
297315

298316
There are two states of nature, $1$ and $2$.
299317

@@ -345,7 +363,7 @@ We can study how these things affect equilibrium prices and allocations.
345363

346364
Plenty of fun exercises that could be executed with a single Python class.
347365

348-
It would be easy to build a example with two consumers who have different beliefs ($\lambda$'s)
366+
It would be easy to build another example with two consumers who have different beliefs ($\lambda$'s)
349367

350368

351369
# Economies with Endogenous Supplies of Goods
@@ -355,7 +373,7 @@ It would be easy to build a example with two consumers who have different belief
355373

356374
Start from a cost function
357375

358-
$$ C(q) = h \cdot q + .5 q^T J q $$
376+
$$ C(q) = h ^\top q + .5 q^\top J q $$
359377

360378
where $J$ is a positive definite matrix.
361379

@@ -373,18 +391,18 @@ $$ p = h + H q $$
373391

374392
## Competitive equilibrium
375393

376-
### $\mu=1$ warmup case
394+
### $\mu=1$ warmup
377395

378396
As a special case, let's pin down a demand curve by setting the marginal utility of wealth $\mu =1$.
379397

380398

381399
Equate supply price to demand price
382400

383-
$$ p = h + H c = \Pi^T b - \Pi^T \Pi c $$
401+
$$ p = h + H c = \Pi^\top b - \Pi^\top \Pi c $$
384402

385403
which implies the equilibrium quantity vector
386404

387-
$$ c = (\Pi^T \Pi + H )^{-1} ( \Pi^T b - h) \tag{5} $$
405+
$$ c = (\Pi^\top \Pi + H )^{-1} ( \Pi^\top b - h) \tag{5} $$
388406

389407
This equation is the counterpart of equilbrium quantity (1) for the scalar $n=1$ model with which we began.
390408

@@ -395,28 +413,34 @@ general case by allowing $\mu \neq 1$.
395413

396414
Then the inverse depend curve is
397415

398-
$$ p = \mu^{-1} [\Pi^T b - \Pi^T \Pi c] $$
416+
$$ p = \mu^{-1} [\Pi^\top b - \Pi^\top \Pi c] $$
399417

400418
Equating this to the inverse supply curve and solving
401419
for $c$ gives
402420

403-
$$ c = [\Pi^T \Pi + \mu H]^{-1} [ \Pi^T b - \mu h] \tag{5'} $$
421+
$$ c = [\Pi^\top \Pi + \mu H]^{-1} [ \Pi^\top b - \mu h] \tag{5'} $$
404422

405423
## Multi-good social welfare maximization problem
406424

407425

408426
Our welfare or social planning problem is to choose $c$ to maximize
409-
$$-.5 \mu^{-1}(\Pi c -b) \cdot (\Pi c -b )$$ minus the area under the inverse supply curve:
427+
$$-.5 \mu^{-1}(\Pi c -b) ^\top (\Pi c -b )$$ minus the area under the inverse supply curve, namely,
410428

411-
$$ -.5 \mu^{-1}(\Pi c -b) \cdot (\Pi c -b ) -h c - .5 c^T J c $$
429+
$$ h c + .5 c^\top J c .$$
430+
431+
So the welfare criterion is
432+
433+
$$ -.5 \mu^{-1}(\Pi c -b) ^\top (\Pi c -b ) -h c - .5 c^\top J c $$
412434

413435
The first-order condition with respect to $c$ is
414436

415-
$$ - \mu^{-1} \Pi^T \Pi c + \mu^{-1}\Pi^T b - h - .5 H c = 0 $$
437+
$$ - \mu^{-1} \Pi^\top \Pi c + \mu^{-1}\Pi^\top b - h - .5 H c = 0 $$
416438

417439
which implies (5').
418440

419-
Thus, in the multiple case as for the single-good case, a competitive equilibrium quantity solves a planning problem.
441+
Thus, in the multiple case as for the single-good case, a competitive equilibrium quantity solves a planning problem.
442+
443+
(This is another version of the first welfare theorem.)
420444

421445
We can read the competitive equilbrium price vector off the inverse demand curve or the inverse supply curve.
422446

lectures/.DS_Store

8 KB
Binary file not shown.

0 commit comments

Comments
 (0)