Gini Coefficient

DOWNLOAD Mathematica Notebook

The Gini coefficient (or Gini ratio) G is a summary statistic of the Lorenz curve and a measure of inequality in a population. The Gini coefficient is most easily calculated from unordered size data as the "relative mean difference," i.e., the mean of the difference between every possible pair of individuals, divided by the mean size mu,

 G=(sum_(i=1)^(n)sum_(j=1)^(n)|x_i-x_j|)/(2n^2mu)

(Dixon et al. 1987, Damgaard and Weiner 2000). Alternatively, if the data is ordered by increasing size of individuals, G is given by

 G=(sum_(i=1)^(n)(2i-n-1)x_i^')/(n^2mu)

(Dixon et al. 1988, Damgaard and Weiner 2000), correcting the typographical error in the denominator given in the original paper (Dixon et al. 1987).

The Gini coefficient ranges from a minimum value of zero, when all individuals are equal, to a theoretical maximum of one in an infinite population in which every individual except one has a size of zero. It has been shown that the sample Gini coefficients defined above need to be multiplied by n/(n-1) in order to become unbiased estimators for the population coefficients.

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

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 Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.