A Lorenz curve plots cumulative resource shares against the population ranked from poorest to richest. For nonnegative resources, the Gini summarizes the area between this curve and equal shares.
Hypothetical nonnegative income distribution. The polyline, shaded inequality area and Gini use the same sorted incomes. With zero total income, income shares and this Gini calculation would be undefined.