Skip to content

Commit 534a0d8

Browse files
committed
content changes
1 parent 028bd88 commit 534a0d8

File tree

1 file changed

+55
-33
lines changed

1 file changed

+55
-33
lines changed

lectures/long_run_growth.md

Lines changed: 55 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -64,35 +64,37 @@ wbi = pd.read_csv("datasets/GDP_per_capita_world_bank.csv")
6464

6565
## Comparison of GDP between different Income Groups
6666

67-
Countries taken into account
68-
69-
**High income**
70-
- USA
71-
- Canada
72-
- Australia
73-
- Japan
74-
75-
**Upper middle income**
76-
- China
77-
- Brazil
78-
- Fiji
79-
- Jamaica
80-
81-
**Lower middle income**
82-
- India
83-
- Pakistan
84-
- Bangladesh
85-
- Vietnam
86-
87-
**Low income**
88-
- Congo
89-
- Uganda
90-
- Yemen
91-
- Afghanistan
92-
67+
A few countries from different Income Groups where chosen to compare the GDP at a more targeted level. GDP of countries from all income groups were compared.
68+
69+
```{list-table}
70+
:header-rows: 1
71+
72+
* - High Income
73+
- Upper middle income
74+
- Lower middle income
75+
- Low income
76+
* - USA
77+
- China
78+
- India
79+
- Congo
80+
* - Canada
81+
- Brazil
82+
- Pakistan
83+
- Uganda
84+
* - Australia
85+
- Fiji
86+
- Bangladesh
87+
- Yemen
88+
* - Japan
89+
- Jamaica
90+
- Vietnam
91+
- Afghanistan
92+
```
9393

9494
### Plot for all countries
9595

96+
We compare time series graphs of all the countries in the list. The clear separation between high income countries and other groups are clearly seen. It seems at first glance that other income groups probably have similar economies. Let's look at that further in the following sections.
97+
9698
```{code-cell} ipython3
9799
# USA, Canada, Australia, Japan, China, Brazil, Fiji, Jamaica, India, Pakistan, Bangladesh, Vietnam, Congo, Uganda, Yemen, Afghanistan
98100
country_list = ['USA', 'CAN', 'AUS', 'JPN', 'CHN', 'BRA', 'FJI', 'JAM', 'IND', 'PAK', 'BGD', 'VNM', 'COD', 'UGA', 'YEM', 'AFG']
@@ -110,47 +112,67 @@ def filter_country_list_data(dataframe, country_list):
110112

111113
```{code-cell} ipython3
112114
wbi_country_filtered = filter_country_list_data(wbi, country_list)
113-
wbi_country_filtered.plot()
115+
ax = wbi_country_filtered.plot()
116+
ax.set_xlabel("year")
117+
ax.set_ylabel("GDP per capita (current US$) ")
114118
```
115119

116120
### Plot for Upper middle and lower middle income groups
117121

122+
Now, we compare the time-series graphs of GDP per capita for upper middle and lower middle income group countries, taking one country from each group. China and Pakistan was chosen as they are from the same region.
123+
On analysing the graph, the difference is quite striking from 90s onwards. But also expected, as during that time China opened up for trade and labour.
124+
It can be concluded that, further inspection reveals the economies are vastly different in the present time, unlike what the previous graph was suggesting.
125+
118126
```{code-cell} ipython3
119127
# China, Pakistan (Upper middle income and lower middle income)
120128
country_list_umi_lmi = ['CHN', 'PAK']
121129
wbi_filtered_umi_lmi = filter_country_list_data(wbi, country_list_umi_lmi)
122-
wbi_filtered_umi_lmi.plot()
130+
ax = wbi_filtered_umi_lmi.plot()
131+
ax.set_xlabel("year")
132+
ax.set_ylabel("GDP per capita (current US$) ")
123133
```
124134

125-
Here is a plot for lower middle income countries.
135+
### Plot for lower middle income
136+
137+
Here, we compare the time-series graphs of GDP per capita for two lower middle income group countries. Keeping Pakistan fixed in our set, we chose Vietnam as the second country. Apart from its turbulent past, its comeback from it and a steady growing economy qualifies it to be in this set.
138+
From the graph, we can see that Vietnam has done quite well from around 1990 onwards, and has quite surpassed Pakistan. We can also conclude that countries in the same income groups can be also be quite different.
126139

127140
```{code-cell} ipython3
128141
# Vietnam, Pakistan (Lower middle income)
129142
country_list_lmi = ['VNM', 'PAK']
130143
wbi_filtered_lmi = filter_country_list_data(wbi, country_list_lmi)
131-
wbi_filtered_lmi.plot()
144+
ax = wbi_filtered_lmi.plot()
145+
ax.set_xlabel("year")
146+
ax.set_ylabel("GDP per capita (current US$) ")
132147
```
133148

134-
Here is a plot for lower middle income and low income
149+
### Plot for lower middle income and low income
150+
151+
Finally, we compare time-series graphs of GDP per capita between a lower middle income country and a low income country. Again, keeping Pakistan fixed in our set as a lower middle income country, we choose Democratic Republic of Congo as our second country from a low income group. Congo is chosen for no particular reason apart from its unstable political atmoshpere and a dwindling economy.
152+
On comapring we see quite a bit of difference between these countries. With Pakistan's GDP per capita being almost four times as much. Further strengthning our assumption that countries from different income groups can be quite different.
135153

136154
```{code-cell} ipython3
137155
# Pakistan, Congo (Lower middle income, low income)
138156
country_list_lmi_li = ['PAK', 'COD']
139157
wbi_filtered_lmi = filter_country_list_data(wbi, country_list_lmi_li)
140-
wbi_filtered_lmi.plot()
158+
ax = wbi_filtered_lmi.plot()
159+
ax.set_xlabel("year")
160+
ax.set_ylabel("GDP per capita (current US$) ")
141161
```
142162

143163

144164

145165
## Histogram comparison between 1960, 1990, 2020
146166

167+
We compare histograms of the **log** of GDP per capita for the years 1960, 1990 and 2020 for around 170 countries. The years have been chosen to give sufficient time gap between the histograms. We see that the overall plot is shifting towards right, denoting the upward trend in GDP per capita worldwide. And also, the overall distribution is becoming more Gaussian. Which indicates that the economies have gotten more uniform over the years. Economic disparities are getting lesser possibly because of globalisation, technological advancements, better use of resources etc.
168+
147169
```{code-cell} ipython3
148170
def get_log_hist(data, years):
149171
filtered_data = data.filter(items=['Country Code', years[0], years[1], years[2]])
150172
log_gdp = filtered_data.iloc[:,1:].transform(lambda x: np.log(x))
151173
max_log_gdp = log_gdp.max(numeric_only=True).max()
152174
min_log_gdp = log_gdp.min(numeric_only=True).min()
153-
log_gdp.hist(bins=16, range=[min_log_gdp, max_log_gdp], log=True)
175+
log_gdp.hist(bins=16, range=[min_log_gdp, max_log_gdp])
154176
```
155177

156178
```{code-cell} ipython3

0 commit comments

Comments
 (0)