Gini coefficient
The Gini coefficient can also be calculated directly from the cumulative distribution function of the distribution "F"("y"). Defining μ as the mean of the distribution, and specifying that "F"("y") is zero for all negative values, the Gini coefficient is given by: