@@ -14,7 +14,6 @@ kernelspec:
|
14 | 14 | (cobweb)= |
15 | 15 | # The Cobweb Model |
16 | 16 | |
17 | | - |
18 | 17 | The cobweb model is a model of prices and quantities in a given market, and how they evolve over time. |
19 | 18 | |
20 | 19 | ## Overview |
@@ -56,8 +55,6 @@ assumptions regarding the way that producers form expectations.
|
56 | 55 | |
57 | 56 | Our discussion and simulations draw on [high quality lectures](https://comp-econ.org/CEF_2013/downloads/Complex%20Econ%20Systems%20Lecture%20II.pdf) by [Cars Hommes](https://www.uva.nl/en/profile/h/o/c.h.hommes/c.h.hommes.html). |
58 | 57 | |
59 | | -+++ |
60 | | - |
61 | 58 | We will use the following imports. |
62 | 59 | |
63 | 60 | ```{code-cell} ipython3 |
@@ -192,7 +189,6 @@ Combining the last two equations gives the dynamics for prices:
|
192 | 189 | |
193 | 190 | The price dynamics depend on the parameter values and also on the function $f$ that determines how producers form expectations. |
194 | 191 | |
195 | | - |
196 | 192 | ## Naive expectations |
197 | 193 | |
198 | 194 | To go further in our analysis we need to specify the function $f$; that is, how expectations are formed. |
@@ -222,7 +218,6 @@ where $g$ is the function defined by
|
222 | 218 | g(p) = - \frac{1}{b} [ S(p) - a] |
223 | 219 | ``` |
224 | 220 | |
225 | | - |
226 | 221 | Here we represent the function $g$ |
227 | 222 | |
228 | 223 | ```{code-cell} ipython3 |
|
427 | 422 | p_t = - \frac{1}{b} [ S(\alpha p_{t-1} + (1-\alpha) p^e_{t-1}) - a] |
428 | 423 | $$ |
429 | 424 | |
430 | | - |
431 | 425 | Let's try to simulate the price and observe the dynamics using different values of $\alpha$. |
432 | 426 | |
433 | 427 | ```{code-cell} ipython3 |
@@ -472,8 +466,6 @@ expectations, which stabilizes expected prices.
|
472 | 466 | |
473 | 467 | This increased stability can be seen in the figures. |
474 | 468 | |
475 | | - |
476 | | - |
477 | 469 | ## Exercises |
478 | 470 | |
479 | 471 | ```{exercise-start} |
@@ -599,8 +591,4 @@ ts_plot_price_blae(m,
|
599 | 591 | ``` |
600 | 592 | |
601 | 593 | ```{solution-end} |
602 | | -``` |
603 | | - |
604 | | -```{code-cell} ipython3 |
605 | | - |
606 | | -``` |
| 594 | +``` |