Lorenz Curves and the Gini Coefficient

The Lorenz curve is a measure of the distribution of wealth (or income or other factors) in a society. The value of the curve corresponds to a percentile of the population ordered according to the characteristic in question. The value of the curve represents that portion of the total value of the characteristic in question held by people no wealthier than the -valued percentile of the population. Thus, the value (0.7, 0.3) means that the bottom 70% of the population owns 30% of the total wealth in society. The Gini coefficient is the (shaded) area between the Lorenz curve that would exist in a perfectly egalitarian society (the dashed line) and the Lorenz curve that does exist, divided by the area under the Lorenz curve that would exist in a perfectly egalitarian society. The coefficients are thus normalized to run from zero in a perfectly egalitarian society, to one in a society in which the wealthiest person held all the wealth. By way of reference, the United States has a Gini coefficient of 0.4; Sweden has a Gini coefficient of 0.25; Bolivia has a Gini coefficient of 0.61. This Demonstration allows you to select a random distribution from which to draw the wealths of the members of a size-selectable population. It computes the corresponding Lorenz curve and Gini coefficient and insets the corresponding cumulative distribution of wealth.



  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


This Demonstration uses a numeric method (sampling) to compute the Gini coefficient for a given distribution. Analytic computation of this coefficient from a given distribution of wealth is often difficult.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+