Skip to content

Commit fca759f

Browse files
committed
review and minor edits
1 parent 2c96d34 commit fca759f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

lectures/inequality.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ In this lecture we discuss standard measures of inequality used in economic rese
6161

6262
For each of these measures, we will look at both simulated and real data.
6363

64-
+++
65-
6664
We will also use the following imports.
6765

6866
```{code-cell} ipython3
@@ -582,19 +580,17 @@ Looking at this graph you can see that inequality was falling in the USA until 1
582580
Why did GINI fall in 2020? I would have thought it accelerate in the other direction or was there a lag in investment returns around COVID
583581
```
584582
585-
+++
586-
587583
## Comparing income and wealth inequality (the US case)
588584
589-
+++
590-
591585
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.
592586
593587
Let's compute the gin coefficient for net wealth, total income, and labour income.
594588
595589
This section makes use of the following code to compute the data, however to speed up execution we have pre-compiled the results and will use that in the subsequent analysis.
596590
597591
```{code-cell} ipython3
592+
:tags: [skip-execution, hide-input, hide-output]
593+
598594
import quantecon as qe
599595
600596
varlist = ['n_wealth', # net wealth
@@ -852,7 +848,7 @@ for σ in σ_vals:
852848
f_val, l_val = lorenz_curve(y)
853849
f_vals.append(f_val)
854850
l_vals.append(l_val)
855-
ginis.append(qe.gini_coefficient(y))
851+
ginis.append(gini_coefficient(y))
856852
topshares.append(calculate_top_share(y))
857853
```
858854

0 commit comments

Comments
 (0)