Skip to content

Commit d476aaa

Browse files
committed
fix minor typos and hide long code
1 parent 0a6b177 commit d476aaa

File tree

1 file changed

+20
-38
lines changed

1 file changed

+20
-38
lines changed

lectures/inflation_history.md

Lines changed: 20 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ jupytext:
44
extension: .md
55
format_name: myst
66
format_version: 0.13
7-
jupytext_version: 1.14.5
7+
jupytext_version: 1.14.4
88
kernelspec:
99
display_name: Python 3 (ipykernel)
1010
language: python
1111
name: python3
1212
---
1313

14-
15-
1614
# Price Level Histories
1715

1816
This lecture offers some scraps of historical evidence about fluctuations in the level of aggregate price indexes.
@@ -63,15 +61,14 @@ import matplotlib.dates as mdates
6361
import datetime
6462
```
6563

66-
6764
```{code-cell} ipython3
6865
:tags: [hide-output]
66+
6967
!pip install xlrd
7068
```
7169

7270
We'll start by bringing these data into Pandas from a spreadsheet.
7371

74-
7572
```{code-cell} ipython3
7673
# import data
7774
df_fig5 = pd.read_excel('datasets/longprices.xls', sheet_name='all', header=2, index_col=0).iloc[1:]
@@ -84,9 +81,6 @@ We first plot price levels over the period 1600-1914.
8481

8582
During most years in this time interval, the countries were on a gold or silver standard.
8683

87-
88-
89-
9084
```{code-cell} ipython3
9185
df_fig5_bef1914 = df_fig5[df_fig5.index <= 1915]
9286
@@ -104,7 +98,7 @@ ax.set_ylabel('Index 1913 = 100')
10498
ax.set_xlim(xmin=1600)
10599
plt.tight_layout()
106100
plt.show()
107-
````
101+
```
108102

109103
We say "most years" because there were temporary lapses from the gold or silver standard.
110104

@@ -120,21 +114,21 @@ Despite these temporary lapses, a striking thing about the figure is that price
120114

121115
Two other features of the figure attracted the attention of leading economists such as Irving Fisher of Yale University and John Maynard Keynes of Cambridge University in the early century.
122116

123-
* there was considerable year-to-year instability of the price levels despite their long begin anchored to the same average level in the long term
117+
* There was considerable year-to-year instability of the price levels despite their long begin anchored to the same average level in the long term
124118

125-
* while using valuable gold and silver as coins was a time-tested way to anchor the price level by limiting the supply of money, it cost real resources.
119+
* While using valuable gold and silver as coins was a time-tested way to anchor the price level by limiting the supply of money, it cost real resources.
126120

127-
* that is, society paid a high "opportunity cost" for using gold and silver as coins; gold and silver could instead by used as valuable jewelry and also as an industrial input
121+
* that is, society paid a high "opportunity cost" for using gold and silver as coins; gold and silver could instead be used as valuable jewelry and also as an industrial input
128122

129123
Keynes and Fisher argued that there was a socially efficient way to achieve a price level that would
130124
be at least as well anchored, and would also exhibit less year-to-year short-term fluctuations.
131125

132126
In particular, they argued that a well-managed central bank could achieve price level stability by
133127

134128
* issuing a **limited supply** of paper currency
135-
* guranteeing that it would not print money to finance government expenditures
129+
* guaranteeing that it would not print money to finance government expenditures
136130

137-
Thue, the waste from using gold and silver as coins prompted John Maynard Keynes to call a commodity standard a “barbarous relic.”
131+
Thus, the waste from using gold and silver as coins prompted John Maynard Keynes to call a commodity standard a “barbarous relic.”
138132

139133
A paper fiat money system disposes of all reserves behind a currency.
140134

@@ -153,8 +147,6 @@ We didn't need to take logarithms in our earlier graphs that had stopped in 19
153147

154148
All four of the countries eventually permanently left the gold standard by modifying their monetary and fiscal policies in several ways, starting the outbreak of the Great War in 1914.
155149

156-
157-
158150
```{code-cell} ipython3
159151
# create plot
160152
cols = ['UK', 'US', 'France', 'Castile']
@@ -174,7 +166,7 @@ plt.tight_layout()
174166
plt.show()
175167
```
176168

177-
The graph shows that achieving price level system with a well-managed paper money system proved to be more challenging than Irving Fisher and Keynes perhaps imagined.
169+
The graph shows that achieving a price level system with a well-managed paper money system proved to be more challenging than Irving Fisher and Keynes perhaps imagined.
178170

179171
Actually, earlier economists and statesmen knew about the possibility of fiat money systems long before
180172
Keynes and Fisher advocated them in the early 20th century.
@@ -194,23 +186,20 @@ We present four graphs from "The Ends of Four Big Inflations" from chapter 3 o
194186

195187
The graphs depict logarithms of price levels during the early post World War I years for four countries:
196188

197-
* Figure 3.1, Retail prices Austria 1921-1924 (page 42)
189+
* Figure 3.1, Retail prices Austria, 1921-1924 (page 42)
198190
* Figure 3.2, Wholesale prices Hungary, 1921-1924 (page 43)
199191
* Figure 3.3, Wholesale prices, Poland, 1921-1924 (page 44)
200-
* Figure pd.dataframe(3.4, Wholesale prices, Germany, 1919-1924 (page 45)
192+
* Figure 3.4, Wholesale prices, Germany, 1919-1924 (page 45)
201193

202194
We have added logarithms of the exchange rates vis a vis the US dollar to each of the four graphs
203195
from chapter 3 of {cite}`sargent2013rational`.
204196

205197
Data underlying our graphs appear in the tables in an appendix to chapter 3 of {cite}`sargent2013rational`.
206-
We have transcribed all of these data into a spreadsheet *chapter_3.xls* that we read into Pandas.
207-
208-
209-
210-
211-
198+
We have transcribed all of these data into a spreadsheet `chapter_3.xls` that we read into Pandas.
212199

213200
```{code-cell} ipython3
201+
:tags: [hide-input]
202+
214203
def process_entry(entry):
215204
"Clean each entry of a dataframe."
216205
@@ -331,7 +320,7 @@ fig, ax = plt.subplots(figsize=[10,7], dpi=200)
331320
_ = create_plot(p_seq, e_seq, df_Aus.index, lab, ax)
332321
333322
# connect disjunct parts
334-
plt.figtext(0.5, 0.0, 'Austria', horizontalalignment='center', fontsize=12)
323+
plt.figtext(0.5, -0.02, 'Austria', horizontalalignment='center', fontsize=12)
335324
plt.show()
336325
```
337326

@@ -341,7 +330,6 @@ The source of our data for Hungary is:
341330

342331
* Table 3.10, price level $\exp p$ and exchange rate
343332

344-
345333
```{code-cell} ipython3
346334
df_Hung.head(5)
347335
```
@@ -358,7 +346,7 @@ lab = ['Hungarian Index of Prices', '1/Cents per Crown in New York']
358346
fig, ax = plt.subplots(figsize=[10,7], dpi=200)
359347
_ = create_plot(p_seq, e_seq, df_Hung.index, lab, ax)
360348
361-
plt.figtext(0.5, 0.0, 'Hungary', horizontalalignment='center', fontsize=12)
349+
plt.figtext(0.5, -0.02, 'Hungary', horizontalalignment='center', fontsize=12)
362350
plt.show()
363351
```
364352

@@ -410,7 +398,7 @@ lab = ['Wholesale Price Index', '1/Cents per Polish Mark']
410398
fig, ax = plt.subplots(figsize=[10,7], dpi=200)
411399
ax1 = create_plot(p_seq, e_seq, df_Pol.index, lab, ax)
412400
413-
plt.figtext(0.5, 0.0, 'Poland', horizontalalignment='center', fontsize=12)
401+
plt.figtext(0.5, -0.02, 'Poland', horizontalalignment='center', fontsize=12)
414402
plt.show()
415403
```
416404

@@ -435,12 +423,10 @@ lab = ['Price Index', '1/Cents per Mark']
435423
fig, ax = plt.subplots(figsize=[9,5], dpi=200)
436424
ax1 = create_plot(p_seq, e_seq, df_Germ.index, lab, ax)
437425
438-
plt.figtext(0.5, 0.0, 'Germany', horizontalalignment='center', fontsize=12)
426+
plt.figtext(0.5, -0.06, 'Germany', horizontalalignment='center', fontsize=12)
439427
plt.show()
440428
```
441429

442-
443-
444430
```{code-cell} ipython3
445431
p_seq = df_Germ['Price index (on basis of marks before July 1924, reichsmarks after)'].copy()
446432
e_seq = 1/df_Germ['Cents per mark'].copy()
@@ -455,7 +441,7 @@ lab = ['Price Index (Marks or converted to Marks)', '1/Cents per Mark (or Reichs
455441
fig, ax = plt.subplots(figsize=[10,7], dpi=200)
456442
ax1 = create_plot(p_seq, e_seq, df_Germ.index, lab, ax)
457443
458-
plt.figtext(0.5, 0.0, 'Germany', horizontalalignment='center', fontsize=12)
444+
plt.figtext(0.5, -0.02, 'Germany', horizontalalignment='center', fontsize=12)
459445
plt.show()
460446
```
461447

@@ -475,8 +461,4 @@ After World War I, the United States was on the gold standard. The US government
475461
In practice, their currencies were largely “fiat,” or unbacked. The governments of these countries resorted to the printing of new unbacked money to finance government deficits. (The notes were "backed" mainly by treasury bills that, in those times, could not be expected to be paid off by levying taxes, but only by printing more notes or treasury bills.) This was done on such a scale that it led to a depreciation of the currencies of spectacular proportions. In the end, the German mark stabilized at 1 trillion ($10^{12}$) paper marks to the prewar gold mark, the Polish mark at 1.8 million paper marks to the gold zloty, the Austrian crown at 14,400 paper crowns to the prewar Austro-Hungarian crown, and the Hungarian krone at 14,500 paper crowns to the prewar Austro-Hungarian crown.
476462

477463
Chapter 3 of {cite}`sargent2002big` focuses on the deliberate changes in policy that Hungary, Austria, Poland, and Germany made to end their hyperinflations.
478-
The hyperinflations were each ended by restoring or virtually restoring convertibility to the dollar or equivalently to gold.
479-
480-
481-
482-
464+
The hyperinflations were each ended by restoring or virtually restoring convertibility to the dollar or equivalently to gold.

0 commit comments

Comments
 (0)