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
keywords = {Personal Income, Wealth, and Their Distributions, General Aggregative Models: Neoclassical, Macroeconomics: Consumption, Saving, Wealth, Aggregate Factor Income Distribution},
2532
2532
pages = {1623--1647},
2533
-
}
2533
+
}
2534
+
2535
+
2536
+
@article{cobweb_model,
2537
+
ISSN = {10711031},
2538
+
URL = {http://www.jstor.org/stable/1236509},
2539
+
abstract = {In recent years, economists have become much interested in recursive models. This interest stems from a growing need for long-term economic projections and for forecasting the probable effects of economic programs and policies. In a dynamic world, past and present conditions help shape future conditions. Perhaps the simplest recursive model is the two-dimensional "cobweb diagram," discussed by Ezekiel in 1938. The present paper attempts to generalize the simple cobweb model somewhat. It considers some effects of price supports. It discusses multidimensional cobwebs to describe simultaneous adjustments in prices and outputs of a number of commodities. And it allows for time trends in the variables.},
2540
+
author = {Frederick V. Waugh},
2541
+
journal = {Journal of Farm Economics},
2542
+
number = {4},
2543
+
pages = {732--750},
2544
+
publisher = {[Oxford University Press, Agricultural & Applied Economics Association]},
2545
+
title = {Cobweb Models},
2546
+
urldate = {2023-02-06},
2547
+
volume = {46},
2548
+
year = {1964}
2549
+
}
2550
+
2551
+
@article{hog_cycle,
2552
+
author = {Harlow, Arthur A.},
2553
+
title = {The Hog Cycle and the Cobweb Theorem},
2554
+
journal = {American Journal of Agricultural Economics},
abstract = {Abstract A surprisingly regular four year cycle in hogs has become apparent in the past ten years. This regularity presents an unusual opportunity to study the mechanism of the cycle because it suggests the cycle may be inherent within the industry rather than the result of lagged responses to outside influences. The cobweb theorem is often mentioned as a theoretical tool for explaining the hog cycle, although a two year cycle is usually predicted. When the nature of the hog industry is examined, certain factors become apparent which enable the cobweb theorem to serve as a theoretical basis for the present four year cycle.},
Copy file name to clipboardExpand all lines: lectures/cobweb.md
+62-17Lines changed: 62 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@ jupytext:
3
3
text_representation:
4
4
extension: .md
5
5
format_name: myst
6
+
format_version: 0.13
7
+
jupytext_version: 1.14.1
6
8
kernelspec:
7
9
display_name: Python 3 (ipykernel)
8
10
language: python
@@ -13,9 +15,11 @@ kernelspec:
13
15
# The Cobweb Model
14
16
15
17
16
-
The cobweb model {cite}:`10.2307/1236509`is a model of prices and quantities in a given market, and how they evolve over time.
18
+
The cobweb model is a model of prices and quantities in a given market, and how they evolve over time.
17
19
18
-
The model dates back to the 1930s and, while simple, it remains significant
20
+
## Overview
21
+
22
+
The cobweb model dates back to the 1930s and, while simple, it remains significant
19
23
because it shows the fundamental importance of *expectations*.
20
24
21
25
To give some idea of how the model operates, and why expectations matter, imagine the following scenario.
@@ -52,15 +56,46 @@ assumptions regarding the way that produces form expectations.
52
56
53
57
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).
54
58
55
-
We will use the following imports:
59
+
60
+
+++
61
+
62
+
We will use the following imports.
56
63
57
64
```{code-cell} ipython3
58
65
import numpy as np
59
66
import matplotlib.pyplot as plt
60
67
```
61
68
69
+
## History
70
+
71
+
Early papers on the cobweb cycle include {cite}`cobweb_model` and {cite}`hog_cycle`.
72
+
73
+
The paper {cite}`hog_cycle` uses the cobweb theorem to explain the prices of hog in the US over 1920--1950
74
+
75
+
The next plot replicates part of Figure 2 from that paper, which plots the price of hogs at yearly frequency.
76
+
77
+
Notice the cyclical price dynamics, which match the kind of cyclical soybean price dynamics discussed above.
Let's return to our discussion of a hypothetical soy bean market, where price is determined by supply and demand.
98
+
64
99
We suppose that demand for soy beans is given by
65
100
66
101
$$
@@ -71,7 +106,7 @@ where $a, b$ are nonnegative constants and $p_t$ is the spot (i.e, current marke
71
106
72
107
($D(p_t)$ is the quantity demanded in some fixed unit, such as thousands of tons.)
73
108
74
-
Supply of soy beans 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$.
75
110
76
111
We suppose that supply is nonlinear in expected prices, and takes the form
77
112
@@ -210,6 +245,7 @@ The function `plot45` defined below helps us draw the 45 degree diagram.
210
245
211
246
```{code-cell} ipython3
212
247
:tags: [hide-input]
248
+
213
249
def plot45(model, pmin, pmax, p0, num_arrows=5):
214
250
"""
215
251
Function to plot a 45 degree plot
@@ -352,7 +388,7 @@ The cycle is "stable", in the sense that prices converge to it from most startin
352
388
353
389
For example,
354
390
355
-
```{code-cell} ipython3 tags=[]
391
+
```{code-cell} ipython3
356
392
ts_plot_price(m, 10, ts_length=15)
357
393
```
358
394
@@ -430,7 +466,6 @@ Let's call the function with prices starting at $p_0 = 5$.
430
466
431
467
TODO does this fit well in the page, even in the pdf? If not should it be stacked vertically?
432
468
433
-
434
469
```{code-cell} ipython3
435
470
ts_price_plot_adaptive(m, 5, ts_length=30)
436
471
```
@@ -450,7 +485,7 @@ TODO check / fix exercises
450
485
```{exercise-start}
451
486
:label: cobweb_ex1
452
487
```
453
-
Using the default Market model and naive expectations, plot a time series simulation of supply (rather than the price).
488
+
Using the default `Market` class and naive expectations, plot a time series simulation of supply (rather than the price).
0 commit comments