Suppose we want to measure the wealth gap of a nation. The Gini coefficient does this by measuring how far away we are from perfect equality. Consider the following graph.
The x-axis represents shares of income. So on the x-axis represents half of those who have an income ( of income earners are on either side), and everyone is included since unemployed are considered to have 0 income. The y-axis represents the sum of all incomes up to income Hence on this particular depiction of the Lorenz curve, which represents this for a made-up nation, it appears the bottom of income adds up to about (or ) of the total income. The perfect equality line has a slope of since if everyone has the same income, then each step forward on the x-axis (where steps are evenly distributed because of equal income) adds the same amount to the cumulative income. Measuring the deviation (Gini coefficient) from perfect equality thus amounts to computing the pink area as a ratio to perfect equality. That is, if represents the Gini coefficient, is the pink area, and is the grey area, then
where is the Lorenz curve. It thus takes a value between and where is perfect equality (everyone has same income), and is perfect inequality (one person has all of the income). We can see a variation of Gini coefficients by nation:
The US Gini coefficient has moved up from .408 in 1997 to .45 in 2007 and ranks 39 out of 136 nations for highest Gini coefficient .