Skip to content

Commit d99c031

Browse files
committed
incorporate round 2 feedback from @jstac
1 parent bb18112 commit d99c031

File tree

1 file changed

+27
-32
lines changed

1 file changed

+27
-32
lines changed

lectures/inflation_history.md

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,24 @@ kernelspec:
1515

1616
This lecture offers some historical evidence about fluctuations in levels of aggregate price indexes.
1717

18+
Let's start by installing the necessary Python packages.
19+
20+
```{code-cell} ipython3
21+
:tags: [hide-output]
22+
!pip install xlrd
23+
```
24+
25+
We can then import the Python modules we will use.
26+
27+
```{code-cell} ipython3
28+
import numpy as np
29+
import pandas as pd
30+
import matplotlib.pyplot as plt
31+
plt.matplotlib.rcParams['figure.figsize'] = (12,8)
32+
plt.rcParams.update({'font.size': 19})
33+
import matplotlib.dates as mdates
34+
```
35+
1836
The rate of growth of the price level is called **inflation** in the popular press and in discussions among central bankers and treasury officials.
1937

2038
The price level is measured in units of domestic currency per units of a representative bundle of consumption goods.
@@ -33,7 +51,7 @@ A widely believed explanation of this big difference is that countries' abandoni
3351
This lecture sets the stage for some subsequent lectures about a theory that macro economists use to think about determinants of the price level, namely, {doc}`cagan_ree` and {doc}`cagan_adaptive`
3452
```
3553

36-
## Four Centuries of Price Levels
54+
## Four centuries of price levels
3755

3856
We begin by displaying data that originally appeared on page 35 of {cite}`sargent2002big` that show price levels for four "hard currency" countries from 1600 to 1914.
3957

@@ -48,24 +66,6 @@ In the present context, the phrase "hard currency" means that the countries wer
4866
Under a gold or silver standard, some money also consisted of "warehouse certificates" that represented paper claims on gold or silver coins. Bank notes issued by the government or private banks can be viewed as examples of such "warehouse certificates".
4967
```
5068

51-
We start by installing the necessary Python packages.
52-
53-
```{code-cell} ipython3
54-
:tags: [hide-output]
55-
!pip install xlrd
56-
```
57-
58-
We then import the Python modules we need.
59-
60-
```{code-cell} ipython3
61-
import numpy as np
62-
import pandas as pd
63-
import matplotlib.pyplot as plt
64-
plt.matplotlib.rcParams['figure.figsize'] = (12,8)
65-
plt.rcParams.update({'font.size': 19})
66-
import matplotlib.dates as mdates
67-
```
68-
6969
Let us bring the data into pandas from a spreadsheet that is [hosted on github](https://github.com/QuantEcon/lecture-python-intro/lectures/datasets/longprices.xls).
7070

7171
```{code-cell} ipython3
@@ -100,7 +100,6 @@ for col in cols:
100100
ax.plot(df_fig5_bef1914.index,
101101
df_fig5_bef1914[col], label=col)
102102
103-
ax.spines[['right', 'top']].set_visible(False)
104103
ax.legend()
105104
ax.set_ylabel('Index 1913 = 100')
106105
ax.set_xlim(xmin=1600)
@@ -112,7 +111,7 @@ plt.show()
112111

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

115-
By staring at the graph carefully, you might be able to guess when these temporary lapses occurred, because they were also times during which price levels temporarily rose markedly:
114+
By staring at {numref}`lrpl` carefully, you might be able to guess when these temporary lapses occurred, because they were also times during which price levels temporarily rose markedly:
116115

117116
* 1791-1797 in France (French Revolution)
118117
* 1776-1790 in the US (War for Independence from Great Britain)
@@ -170,7 +169,6 @@ for col in cols:
170169
ax.text(x=df_fig5.index[-1]+2,
171170
y=df_fig5[col].iloc[-1], s=col)
172171
173-
ax.spines[['right', 'top']].set_visible(False)
174172
ax.set_yscale('log')
175173
ax.set_ylabel('Index 1913 = 100')
176174
ax.set_xlim(xmin=1600)
@@ -181,7 +179,7 @@ fig.text(.5, .0001,
181179
plt.show()
182180
```
183181

184-
The graph shows that paper-money-printing central banks didn't do as well as the gold and standard silver standard in anchoring price levels.
182+
{numref}`lrpl_lg` that paper-money-printing central banks didn't do as well as the gold and standard silver standard in anchoring price levels.
185183

186184
That would probably have surprised or disappointed Irving Fisher and John Maynard Keynes.
187185

@@ -195,7 +193,7 @@ In light of the high and persistent inflation that many countries experienced af
195193

196194
The breadth and lengths of the inflationary experiences of the twentieth century under paper money fiat standards are historically unprecedented.
197195

198-
## Four Big Inflations
196+
## Four big inflations
199197

200198
In the wake of World War I, which ended in November 1918, monetary and fiscal authorities struggled to achieve price level stability without being on a gold or silver standard.
201199

@@ -275,7 +273,7 @@ def process_df(df):
275273
return df
276274
```
277275

278-
Now we write plotting functions so we can plot the price level, exchange rates,
276+
Now we write plotting functions `pe_plot` and `pr_plot` that will build figures that show the price level, exchange rates,
279277
and inflation rates, for each country of interest.
280278

281279
```{code-cell} ipython3
@@ -311,8 +309,6 @@ def pe_plot(p_seq, e_seq, index, labs, ax):
311309
ax.text(0.92, 1.03, 'Exchange Rate', transform=ax.transAxes)
312310
313311
ax1.legend(loc='upper left')
314-
ax.spines[['top']].set_visible(False)
315-
ax1.spines[['top']].set_visible(False)
316312
317313
return ax1
318314
@@ -338,7 +334,6 @@ def pr_plot(p_seq, index, ax):
338334
mdates.MonthLocator(interval=5))
339335
ax.xaxis.set_major_formatter(
340336
mdates.DateFormatter('%b %Y'))
341-
ax.spines[['right', 'top']].set_visible(False)
342337
343338
for label in ax.get_xticklabels():
344339
label.set_rotation(45)
@@ -439,7 +434,7 @@ _ = pr_plot(p_seq, df_Aus.index, ax)
439434
plt.show()
440435
```
441436

442-
Staring at the above graphs conveys the following impressions to the authors of this lecture at QuantEcon.
437+
Staring at {numref}`pi_xrate_austria` and {numref}`inflationrate_austria` conveys the following impressions to the authors of this lecture at QuantEcon.
443438

444439
* an episode of "hyperinflation" with rapidly rising log price level and very high monthly inflation rates
445440
* a sudden stop of the hyperinflation as indicated by the abrupt flattening of the log price level and a marked permanent drop in the three-month average of inflation
@@ -626,9 +621,9 @@ _ = pr_plot(p_seq, df_Germ.index, ax)
626621
plt.show()
627622
```
628623

629-
## Starting and Stopping Big Inflations
624+
## Starting and stopping big inflations
630625

631-
It is striking how **quickly** (log) price levels in Austria, Hungary, Poland, and Germany leveled off after rising so quickly.
626+
It is striking how *quickly* (log) price levels in Austria, Hungary, Poland, and Germany leveled off after rising so quickly.
632627

633628
These "sudden stops" are also revealed by the permanent drops in three-month moving averages of inflation for the four countries plotted above.
634629

@@ -664,7 +659,7 @@ In the end, the German mark stabilized at 1 trillion ($10^{12}$) paper marks to
664659

665660
Chapter 3 of {cite}`sargent2002big` described deliberate changes in policy that Hungary, Austria, Poland, and Germany made to end their hyperinflations.
666661

667-
Each government stopped printing money to pay for goods and services once again which made its currency convertible to the US dollar or the UK pound.
662+
Each government stopped printing money to pay for goods and services once again and made its currency convertible to the US dollar or the UK pound.
668663

669664
The story told in {cite}`sargent2002big` is grounded in a "monetarist theory of the price level" described in {doc}`cagan_ree` and {doc}`cagan_adaptive`.
670665

0 commit comments

Comments
 (0)