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/inequality.md
+13-14Lines changed: 13 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -519,7 +519,7 @@ Now let's look at the Gini coefficient using US data.
519
519
520
520
We will get pre-computed Gini coefficients from the World Bank using the [wbgapi](https://blogs.worldbank.org/opendata/introducing-wbgapi-new-python-package-accessing-world-bank-data).
521
521
522
-
Let's use the `wbgapi` package we imported earlier to search the world bank data for gini to find the Series ID.
522
+
Let's use the `wbgapi` package we imported earlier to search the world bank data for Gini to find the Series ID.
As we have discussed the Gini coefficient can also be computed over different distributions such as *income* and *wealth*.
648
647
649
-
We can use the data collected above {ref}`survey of consumer finances <data:survey-consumer-finance>` to look at the gini coefficient when using income when compared to wealth data.
648
+
We can use the data collected above {ref}`survey of consumer finances <data:survey-consumer-finance>` to look at the Gini coefficient when using income when compared to wealth data.
650
649
651
650
We can compute the Gini coefficient for net wealth, total income, and labour income over many years.
652
651
@@ -704,7 +703,7 @@ ginis.head(n=5)
704
703
705
704
Let's plot the Gini coefficients for net wealth, labor income and total income.
706
705
707
-
Looking at each data series we see an outlier in gini coefficient computed for 1965 for `labour income`.
706
+
Looking at each data series we see an outlier in Gini coefficient computed for 1965 for `labour income`.
708
707
709
708
We will smooth our data and take an average of the data either side of it for the time being.
710
709
@@ -770,9 +769,9 @@ The wealth time series exhibits a strong U-shape.
770
769
771
770
### Cross-country comparisons of income inequality
772
771
773
-
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`
772
+
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`
774
773
775
-
In this section we will compare a few countries and the evolution in their respective gini coefficients
774
+
In this section we will compare a few countries and the evolution in their respective Gini coefficients
776
775
777
776
```{code-cell} ipython3
778
777
data = gini_all.unstack() # Obtain data for all countries as a table
0 commit comments