Skip to content

Commit cdd0e96

Browse files
committed
Update inequality.md
1 parent caf1fa2 commit cdd0e96

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lectures/inequality.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ periods, diminishing their wealth.
3535
The resulting growth in inequality caused political turmoil that shook the
3636
foundations of the republic.
3737

38-
Eventually the Roman Republic gave way to a series of dictatorships, starting
38+
Eventually, the Roman Republic gave way to a series of dictatorships, starting
3939
with Octavian (Augustus) in 27 BCE.
4040

41-
This history is fascinating in its own right, and also because we can see some
41+
This history is fascinating in its own right, and we can see some
4242
parallels with certain countries in the modern world.
4343

4444
Many recent political debates revolve around inequality.
@@ -59,9 +59,9 @@ shape our findings reduces objectivity.
5959
To bring a truly scientific perspective to the topic of inequality we must
6060
start with careful definitions.
6161

62-
In this lecture we discuss standard measures of inequality used in economic research.
62+
In this lecture, we discuss standard measures of inequality used in economic research.
6363

64-
For each of these measures we will look at both simulated and real data.
64+
For each of these measures, we will look at both simulated and real data.
6565

6666
We will install the following libraries.
6767

@@ -86,7 +86,7 @@ from interpolation import interp
8686

8787
One popular measure of inequality is the Lorenz curve.
8888

89-
In this section we define the Lorenz curve and examine its properties.
89+
In this section, we define the Lorenz curve and examine its properties.
9090

9191

9292
### Definition
@@ -208,7 +208,7 @@ years = df.year.unique()
208208
F_vals, L_vals = [], []
209209
210210
for var in varlist:
211-
# create lists to store Lorenz, Ginis
211+
# create lists to store Lorenz curve data
212212
f_vals = []
213213
l_vals = []
214214
for year in years:
@@ -274,15 +274,15 @@ Another popular measure of income and wealth inequality is the Gini coefficient.
274274

275275
The Gini coefficient is just a number, rather than a curve.
276276

277-
In this section we discuss the Gini coefficient and its relationship to the
277+
In this section, we discuss the Gini coefficient and its relationship to the
278278
Lorenz curve.
279279

280280

281281
### Definition
282282

283283

284284
As before, suppose that the sample $w_1, \ldots, w_n$ has been sorted from
285-
smallest to largest
285+
smallest to largest.
286286

287287
The Gini coefficient is defined for the sample above as
288288

@@ -340,12 +340,12 @@ The following code computes the Gini coefficients for five different
340340
populations.
341341

342342
Each of these populations is generated by drawing from a
343-
lognormal distribution with parameters $\mu$ and $\sigma$.
343+
lognormal distribution with parameters $\mu$ (mean) and $\sigma$ (standard deviation).
344344

345345
To create the five populations, we vary $\sigma$ over a grid of length $5$
346346
between $0.2$ and $4$.
347347

348-
In each case we set $\mu = - \sigma^2 / 2$.
348+
In each case, we set $\mu = - \sigma^2 / 2$.
349349

350350
This implies that the mean of the distribution does not change with $\sigma$.
351351

@@ -416,12 +416,12 @@ varlist = ['n_wealth', # net wealth
416416
417417
df = df_income_wealth
418418
419-
# create lists to store Lorenz, Gini for each inequality measure
419+
# create lists to store Gini for each inequality measure
420420
421421
Ginis = []
422422
423423
for var in varlist:
424-
# create lists to store Lorenz, Ginis
424+
# create lists to store Gini
425425
ginis = []
426426
427427
for year in years:
@@ -432,7 +432,7 @@ for var in varlist:
432432
433433
rd.shuffle(y) # shuffle the sequence
434434
435-
# calculate and store ginis
435+
# calculate and store Gini
436436
gini = qe.gini_coefficient(y)
437437
ginis.append(gini)
438438
@@ -515,7 +515,7 @@ In this section we show how to compute top shares.
515515
### Definition
516516

517517

518-
As before, suppose that the sample $w_1, \ldots, w_n$ has been sorted from smallest to largest
518+
As before, suppose that the sample $w_1, \ldots, w_n$ has been sorted from smallest to largest.
519519

520520
Given the Lorenz curve $y = L(x)$ defined above, the top $100 \times p \%$
521521
share is defined as

0 commit comments

Comments
 (0)