Skip to content

Commit 6f55cf9

Browse files
Tom's third edits on June 15 in hyperinflate branch
1 parent 805470b commit 6f55cf9

File tree

1 file changed

+54
-65
lines changed

1 file changed

+54
-65
lines changed

lectures/inflation_history.md

Lines changed: 54 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,7 @@ kernelspec:
1515

1616
# Price Level Histories
1717

18-
## Ends of Four Big Inflations
19-
20-
21-
22-
We want to construct four graphs from "The Ends of Four Big Inflations" from chapter 3 of {cite}`
23-
24-
This is chapter 3 of the book **Rational Expectations and Inflation** that I shared with you a couple of days ago.
25-
26-
18+
As usual, we'll start by importing some Python modules.
2719

2820
```{code-cell} ipython3
2921
import numpy as np
@@ -39,39 +31,64 @@ import datetime
3931
!pip install xlrd
4032
```
4133

42-
The graphs depict logarithms of price levels during the early post World War I years for four countries:
34+
## Four Centuries of Price Levels
4335

44-
* Figure 3.1, Retail prices Austria 1921-1924 (page 42)
45-
* Figure 3.2, Wholesale prices Hungary, 1921-1924 (page 43)
46-
* Figure 3.3, Wholesale prices, Poland, 1921-1924 (page 44)
47-
* Figure pd.dataframe(3.4, Wholesale prices, Germany, 1919-1924 (page 45)
36+
The waste from using gold and silver as coins prompted John Maynard Keynes to call a commodity standard a “barbarous relic.” A fiat money system disposes of all reserves behind a currency. In doing so, it also eliminates ab automatic supply mechanism constraining the price level. A low-inflation fiat money system replaces that automatic mechanism with an enlightened government that commits itself to limit the quantity of a pure token, no-cost currency.
37+
Because most nineteenth-century proponents of a commodity money system did not trust governments properly to manage a fiat money system, they were willing to pay the resource costs associated with setting up and maintaining a commodity money system. In light of the high inflation episodes that many countries experienced in the twentieth century after they abandoned commodity monies, it is difficult to criticize them for that. The figure below present s price levels in Castile, France, England, and the United States. The inflationary experience of the twentieth century, the century of paper money, is unprecedented.
38+
39+
The graph that originally appeared on page 35 of {cite}`sargent2002big`.
40+
41+
The graph shows logarithms of price levels for four ``hard currency'' countries from 1600 to 2000.
42+
43+
(We wouldn't need the logarithm if we had stopped in 1914 -- we used logarithms because we wanted also to fit observations after 1914 in the same graph as the earlier observations.)
44+
45+
46+
```{code-cell} ipython3
47+
# import data
48+
df_fig5 = pd.read_excel('datasets/longprices.xls', sheet_name='all', header=2, index_col=0).iloc[1:]
49+
df_fig5.index = df_fig5.index.astype(int)
4850
49-
Data underlying these graphs appear in the tables in the appendix; all of the data have been organized into a spreadsheet *chapter_3.xls* that I include in our dropbox folder.
51+
df_fig5.head(5)
52+
```
5053

51-
The spreadsheet refers to the tables that I now describe for each of our four countries.
54+
```{code-cell} ipython3
55+
# create plot
56+
cols = ['UK', 'US', 'France', 'Castile']
5257
58+
fig, ax = plt.subplots(1, 1, figsize=[8, 5], dpi=200)
5359
54-
## Tweak request for Jiacheng
60+
for col in cols:
61+
ax.plot(df_fig5.index, df_fig5[col])
62+
ax.text(x=df_fig5.index[-1]+2, y=df_fig5[col].iloc[-1], s=col)
5563
56-
* for each of the four countries, please delete the graphs of the "money supplies" and "real balances" in the right panels. So now we'll just have your excellent graphs of the price level and exchange rate
64+
ax.spines[['right', 'top']].set_visible(False)
65+
ax.set_yscale('log')
66+
ax.set_ylabel('Index 1913 = 100')
67+
ax.set_xlim(xmin=1600)
68+
ax.set_ylim([10, 1e6])
69+
plt.tight_layout()
70+
plt.show()
71+
```
5772

58-
* for each graph please add a caption below the graph just saying the country name. Maybe Zejin can quickly tell you how to do this.
5973

60-
* for Poland I think that there are some additional price level data in the table, but their units have changed. Please take a look at figure 3.3. in the chapter. I am pretty sure that to draw that graph I just made a guess about the units change -- sort of using "continuity" -- and adjusted the units of the second series and spliced the series to get the one in figure 3.3. We can talk about this if you wish
74+
## Ends of Four Big Inflations
75+
76+
77+
78+
We present four graphs from "The Ends of Four Big Inflations" from chapter 3 of {cite}`sargent2013rational`.
79+
80+
The graphs depict logarithms of price levels during the early post World War I years for four countries:
81+
82+
* Figure 3.1, Retail prices Austria 1921-1924 (page 42)
83+
* Figure 3.2, Wholesale prices Hungary, 1921-1924 (page 43)
84+
* Figure 3.3, Wholesale prices, Poland, 1921-1924 (page 44)
85+
* Figure pd.dataframe(3.4, Wholesale prices, Germany, 1919-1924 (page 45)
86+
87+
Data underlying these graphs appear in the tables in an appendix to chapter 3 of {cite}`sargent2013rational`.
88+
We have transcribed all of these data into a spreadsheet *chapter_3.xls* that we shall ask pandas to read for us.
6189

62-
* for Germany, I'd like to do another "splicing operation" to avoid the big jump down in the price series and the exchange rate series. What those jumps reflect is the "units change" associated with the "currency reform". It was a pure units change.
63-
64-
* Here is one idea -- make two versions of the graph in two separate graphs. The first version is what you have
65-
66-
* The second version does the "splicing" by converting the new units to the old so that there is no drop. Then the graphs will be "continuous.
67-
68-
* By comparing the graphs we can teach about the "currency reform"
69-
70-
7190

72-
* Comment: I really like the way you put the exchange rate and the price level on the same graph for each country. Overall the graphs are great -- really exciting to me! And I love the "long series" graph at the end.
7391

74-
* Thanks so much.
7592

7693

7794

@@ -173,7 +190,7 @@ df_Aus, df_Hung, df_Pol, df_Germ = df_list
173190

174191
### Austria
175192

176-
* Table 3.2, money supply, $\exp M$
193+
177194
* Table 3.3, rdf_Aus.indexetail prices, $\exp p$
178195
* Table 3.4, exchange rate with US
179196

@@ -198,7 +215,7 @@ plt.show()
198215

199216
### Hungary
200217

201-
* Table 3.9, money supply, $\exp M$
218+
202219
* Table 3.10, price level $\exp p$ and exchange rate
203220

204221

@@ -224,16 +241,15 @@ plt.show()
224241

225242
### Poland
226243

227-
* Table 3.14, money supply, $\exp M$
244+
228245
* Table 3.15, price level $\exp p$
229246
* Table 3.15, exchange rate
230247

231248

232-
Jiacheng:
233-
249+
````{note}
234250
I spliced the three series - Wholesale price index, Wholesale Price Index: On paper currency basis, and Wholesale Price Index: On zloty basis. I made the adjustment by adjusting the sequence based on the price level ratio at the last period of the available previous series and glue them to a single series.
235-
236251
I dropped the exchange rate after June 1924, when zloty was adopted, because we don't have the price measured in zloty and old currency in June to compute the exchange rate adjustment.
252+
````
237253

238254
```{code-cell} ipython3
239255
df_Pol.head(5)
@@ -276,7 +292,7 @@ plt.show()
276292

277293
### Germany
278294

279-
* Table 3.21, money supply, $\exp M$ (last column)
295+
280296
* Table 3.18, wholesale price level $\exp p$
281297
* Table 3.19, exchange rate
282298

@@ -326,30 +342,3 @@ There might be some ambiguity about exactly which column in the "balance sheets"
326342

327343
**Seecond Steps:** There are some fun additonal things we can plot to set the stage for our cagan_ree and cagan_adaptive notebooks. For example, we have the data to plot logs of real balances around the times of the stabilizations. We can hunt for instances of "velocity dividends".
328344

329-
330-
```{code-cell} ipython3
331-
# import data
332-
df_fig5 = pd.read_excel('datasets/longprices.xls', sheet_name='all', header=2, index_col=0).iloc[1:]
333-
df_fig5.index = df_fig5.index.astype(int)
334-
335-
df_fig5.head(5)
336-
```
337-
338-
```{code-cell} ipython3
339-
# create plot
340-
cols = ['UK', 'US', 'France', 'Castile']
341-
342-
fig, ax = plt.subplots(1, 1, figsize=[8, 5], dpi=200)
343-
344-
for col in cols:
345-
ax.plot(df_fig5.index, df_fig5[col])
346-
ax.text(x=df_fig5.index[-1]+2, y=df_fig5[col].iloc[-1], s=col)
347-
348-
ax.spines[['right', 'top']].set_visible(False)
349-
ax.set_yscale('log')
350-
ax.set_ylabel('Index 1913 = 100')
351-
ax.set_xlim(xmin=1600)
352-
ax.set_ylim([10, 1e6])
353-
plt.tight_layout()
354-
plt.show()
355-
```

0 commit comments

Comments
 (0)