@@ -566,7 +566,7 @@ data = data.T # Obtain years as rows
566
566
data_usa = data['USA'] # pd.Series of US data
567
567
```
568
568
569
- Let us zoom on the US data so we can more clearly observe trends .
569
+ Let us take a look at the data for the US .
570
570
571
571
``` {code-cell} ipython3
572
572
---
@@ -668,42 +668,13 @@ ax.set_ylabel("Gini coefficient")
668
668
plt.show()
669
669
```
670
670
671
- Looking at each data series we see an outlier in Gini coefficient computed for 1965 for ` labour income ` .
672
-
673
- We will smooth our data and take an average of the data either side of it for the time being.
674
-
675
- ``` {code-cell} ipython3
676
- ginis["l_income"][1965] = (ginis["l_income"][1962] + ginis["l_income"][1968]) / 2
677
- ```
678
-
679
- Now we can compare net wealth and labour income.
680
-
681
- ``` {code-cell} ipython3
682
- ---
683
- mystnb:
684
- figure:
685
- caption: Gini coefficients of US net wealth and labour income
686
- name: gini_wealth_us2
687
- ---
688
- fig, ax = plt.subplots()
689
- ax.plot(years, ginis["n_wealth"], marker='o', label="net wealth")
690
- ax.plot(years, ginis["l_income"], marker='o', label="labour income")
691
- ax.set_xlabel("year")
692
- ax.set_ylabel("Gini coefficient")
693
- ax.legend()
694
- plt.show()
695
- ```
696
-
697
- We see that, by this measure, inequality in both wealth and income has risen
698
- substantially since 1980.
699
-
700
671
The wealth time series exhibits a strong U-shape.
701
672
702
673
### Cross-country comparisons of income inequality
703
674
704
- As we saw earlier in this lecture we used ` wbgapi ` to get Gini data across many countries and saved it in a variable called ` gini_all `
675
+ Earlier in this lecture we used ` wbgapi ` to get Gini data across many countries and saved it in a variable called ` gini_all `
705
676
706
- In this section we will compare a few western economies and look at the evolution in their respective Gini coefficients
677
+ In this section we will compare a few Western economies and look at the evolution in their respective Gini coefficients
707
678
708
679
``` {code-cell} ipython3
709
680
data = gini_all.unstack()
@@ -712,7 +683,7 @@ data.columns
712
683
713
684
There are 167 countries represented in this dataset.
714
685
715
- Let us compare three western economies: USA, United Kingdom, and Norway
686
+ Let us compare three Western economies: USA, United Kingdom, and Norway
716
687
717
688
``` {code-cell} ipython3
718
689
---
@@ -825,7 +796,7 @@ fig.show()
825
796
This figure is built using `plotly` and is {ref}` available on the website <fig:plotly-gini-gdppc-years>`
826
797
```
827
798
828
- This plot shows that all three western economies GDP per capita has grown over time with some fluctuations
799
+ This plot shows that all three Western economies GDP per capita has grown over time with some fluctuations
829
800
in the Gini coefficient.
830
801
831
802
From the early 80's the United Kingdom and the US economies both saw increases in income
0 commit comments