Skip to content

Commit d39a4e7

Browse files
Fix some notation errors
1 parent c148a69 commit d39a4e7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lectures/cobweb.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ where $a, b$ are nonnegative constants and $p_t$ is the spot (i.e, current marke
106106

107107
($D(p_t)$ is the quantity demanded in some fixed unit, such as thousands of tons.)
108108

109-
Because the crop of soy beans for time $t$ is planted at $t-1$, supply of soy beans at time $t$ depends on *expected* prices at time $t$, which we denote $p^e_t$.
109+
Because the crop of soy beans for time $t$ is planted at $t-1$, supply of soy beans at time $t$ depends on *expected* prices at time $t$, which we denote $p^e_{t-1}$.
110110

111111
We suppose that supply is nonlinear in expected prices, and takes the form
112112

113113
$$
114-
S(p^e_t) = \tanh(\lambda(p^e_t - c)) + d
114+
S(p^e_{t-1}) = \tanh(\lambda(p^e_{t-1} - c)) + d
115115
$$
116116

117117
where $\lambda$ is a positive constant and $c, d \geq 0$.
@@ -160,13 +160,13 @@ plt.show()
160160
Market equilibrium requires that supply equals demand, or
161161

162162
$$
163-
a - b p_t = S(p^e_t)
163+
a - b p_t = S(p^e_{t-1})
164164
$$
165165

166166
Rewriting in terms of $p_t$ gives
167167

168168
$$
169-
p_t = - \frac{1}{b} [S(p^e_t) - a]
169+
p_t = - \frac{1}{b} [S(p^e_{t-1}) - a]
170170
$$
171171

172172
Finally, to complete the model, we need to describe how price expectations are formed.
@@ -276,7 +276,7 @@ def plot45(model, pmin, pmax, p0, num_arrows=5):
276276
alpha=0.6, head_length=hl)
277277
278278
ax.plot(pgrid, g(model, pgrid), 'b-',
279-
lw=2, alpha=0.6, label='p')
279+
lw=2, alpha=0.6, label='g')
280280
ax.plot(pgrid, pgrid, lw=1, alpha=0.7, label='45')
281281
282282
x = p0
@@ -610,3 +610,4 @@ ts_plot_price_blae(m,
610610
```{code-cell} ipython3
611611
612612
```
613+

0 commit comments

Comments
 (0)