Skip to content

Commit 98ffdf0

Browse files
committed
Add hogs references
1 parent 32a7af4 commit 98ffdf0

File tree

2 files changed

+45
-5
lines changed

2 files changed

+45
-5
lines changed

lectures/_static/quant-econ.bib

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,3 +2547,17 @@ @article{cobweb_model
25472547
volume = {46},
25482548
year = {1964}
25492549
}
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},
2555+
volume = {42},
2556+
number = {4},
2557+
pages = {842-853},
2558+
doi = {https://doi.org/10.2307/1235116},
2559+
url = {https://onlinelibrary.wiley.com/doi/abs/10.2307/1235116},
2560+
eprint = {https://onlinelibrary.wiley.com/doi/pdf/10.2307/1235116},
2561+
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.},
2562+
year = {1960}
2563+
}

lectures/cobweb.md

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,37 @@ supply and causing the price to climb again.
4444
You can imagine how these dynamics could cause cycles in prices and quantities
4545
that persist over time.
4646

47+
This motivation is also taken from one of the earliest papers that uses
48+
cobweb theorem to explain the prices of hog in the US. We will try to
49+
simulate and plot the graph that uses the rough data from the paper {cite}`hog_cycle`.
50+
51+
We will use the following imports:
52+
53+
```{code-cell} ipython3
54+
import numpy as np
55+
import matplotlib.pyplot as plt
56+
```
57+
58+
We will use the following data for simulation:
59+
60+
```{code-cell} ipython3
61+
:tags: [hide-input]
62+
hog_prices = [55, 57, 80, 70, 60, 65, 72, 65, 51, 49, 45, 80, 85,
63+
78, 80, 68, 52, 65, 83, 78, 60, 62, 80, 87, 81, 70,
64+
69, 65, 62, 85, 87, 65, 63, 75, 80, 62]
65+
years = np.arange(1924, 1960)
66+
```
67+
68+
Let's plot the above data and observe the graph.
69+
70+
```{code-cell} ipython3
71+
fig, ax = plt.subplots(figsize=(9, 4))
72+
ax.plot(years, hog_prices, '-o', ms=4)
73+
ax.set_xlabel('year')
74+
ax.set_ylabel('prices')
75+
plt.show()
76+
```
77+
4778
The cobweb model puts these ideas into equations so we can try to quantify
4879
them, and to study conditions underw which cycles persist (or disappear).
4980

@@ -52,12 +83,7 @@ assumptions regarding the way that produces form expectations.
5283

5384
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).
5485

55-
We will use the following imports:
5686

57-
```{code-cell} ipython3
58-
import numpy as np
59-
import matplotlib.pyplot as plt
60-
```
6187

6288
## The Model
6389

0 commit comments

Comments
 (0)