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
Copy file name to clipboardExpand all lines: lectures/long_run_growth.md
+39-78Lines changed: 39 additions & 78 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ jupytext:
4
4
extension: .md
5
5
format_name: myst
6
6
format_version: 0.13
7
-
jupytext_version: 1.14.4
7
+
jupytext_version: 1.14.5
8
8
kernelspec:
9
9
display_name: Python 3 (ipykernel)
10
10
language: python
@@ -34,23 +34,17 @@ In a nutshell, this lecture records growth trajectories of various countries
34
34
35
35
While some countries have experienced long term rapid growth across that has lasted a hundred years, others have not.
36
36
37
-
38
37
Since populations differ across country and within a country vary over time, it will
39
38
be interesting to describe both total GNP and GNP per capita as it evolves within a country.
40
39
41
-
First let's import the packages needed to explore what the data says about long run growth.
42
-
43
-
This lecture growth trajectories of various countries over long time periods.
44
-
45
-
While some countries have experienced long term rapid growth across that has lasted a hundred years, others have not.
46
-
47
-
First let's import the packages needed to explore what the data says about long run growth.
40
+
First let's import the packages needed to explore what the data says about long run growth
48
41
49
42
```{code-cell} ipython3
50
43
import pandas as pd
51
44
import os
52
45
import matplotlib as mpl
53
46
import matplotlib.pyplot as plt
47
+
import matplotlib.cm as cm
54
48
import numpy as np
55
49
from collections import namedtuple
56
50
from matplotlib.lines import Line2D
@@ -105,15 +99,7 @@ cntry_years
105
99
106
100
+++ {"user_expressions": []}
107
101
108
-
You can query this dataframe for each country of interest such as `Australia` by using `.loc`
109
-
110
-
```{code-cell} ipython3
111
-
cntry_years.loc['Australia']
112
-
```
113
-
114
-
+++ {"user_expressions": []}
115
-
116
-
Let us now reshape the original data into some convenient variables to enable quicker access to countries time series data.
102
+
Let's now reshape the original data into some convenient variables to enable quicker access to countries time series data.
117
103
118
104
We can build a useful mapping between country code's and country names in this dataset
119
105
@@ -130,10 +116,6 @@ data
130
116
```
131
117
132
118
```{code-cell} ipython3
133
-
import matplotlib.pyplot as plt
134
-
import matplotlib.cm as cm
135
-
import numpy as np
136
-
137
119
country_names = data['countrycode']
138
120
139
121
# Generate a colormap with the number of colors matching the number of countries
@@ -176,6 +158,10 @@ _ = gdppc[cntry].plot(
176
158
177
159
+++ {"user_expressions": []}
178
160
161
+
:::{note}
162
+
[International Dollars](https://en.wikipedia.org/wiki/International_dollar) are a hypothetical unit of currency that has the same purchasing power parity that the U.S. Dollar has in the United States at any given time. They are also known as Geary–Khamis dollars (GK Dollars).
163
+
:::
164
+
179
165
We can see that the data is non-continuous for longer periods in the early part of this millennium, so we could choose to interpolate to get a continuous line plot.
180
166
181
167
Here we use dashed lines to indicate interpolated trends
[International Dollars](https://en.wikipedia.org/wiki/International_dollar) are a hypothetical unit of currency that has the same purchasing power parity that the U.S. Dollar has in the United States at any given time. They are also known as Geary–Khamis dollars (GK Dollars).
248
-
:::
249
-
250
232
As you can see from this chart economic growth started in earnest in the 18th century and continued for the next two hundred years.
251
233
252
234
How does this compare with other countries' growth trajectories?
@@ -257,7 +239,7 @@ Let's look at the United States (USA), United Kingdom (GBR), and China (CHN)
257
239
---
258
240
mystnb:
259
241
figure:
260
-
caption: GDP per Capita (China, UK, USA)
242
+
caption: GDP per Capita, 1500- (China, UK, USA)
261
243
name: gdppc_comparison
262
244
---
263
245
# Define the namedtuple for the events
@@ -345,7 +327,7 @@ Thus, the graph indicates
345
327
---
346
328
mystnb:
347
329
figure:
348
-
caption: GDP per Capita (China)
330
+
caption: GDP per Capita, 1500-2000 (China)
349
331
name: gdppc_china
350
332
---
351
333
fig, ax = plt.subplots(dpi=300, figsize=(10, 6))
@@ -395,14 +377,14 @@ In the following graph, please watch for
395
377
- impact of trade policy (Navigation Act)
396
378
- productivity changes brought by the industrial revolution
397
379
- how the US gradually approaches and then surpasses the UK, setting the stage for the ``American Century''
398
-
- the often unanticipated consequenes of Wars
399
-
- interruptions and scars left by business cycle recessions and depressions
380
+
- the often unanticipated consequenes of wars
381
+
- interruptions and scars left by {ref}`business cycle<mc1_ex_1>` recessions and depressions
400
382
401
383
```{code-cell} ipython3
402
384
---
403
385
mystnb:
404
386
figure:
405
-
caption: GDP per Capita (UK and US)
387
+
caption: GDP per Capita, 1500-2000 (UK and US)
406
388
name: gdppc_ukus
407
389
---
408
390
fig, ax = plt.subplots(dpi=300, figsize=(10, 6))
@@ -467,88 +449,54 @@ gdp = data['gdp'].unstack('countrycode')
467
449
### Early industralization (1820 to 1940)
468
450
469
451
470
-
Gross Domestic Product
452
+
We first visualize the trend of China, the Former Soviet Union, Japan, the UK and the US.
0 commit comments