# Gini coefficient

In economics, the **Gini coefficient** ( *JEE-nee*), also the **Gini index** and the **Gini ratio**, is a measure of statistical dispersion intended to represent the income inequality or the wealth inequality within a nation or a social group. The Gini coefficient was developed by the statistician and sociologist Corrado Gini.

The Gini coefficient measures the inequality among values of a frequency distribution (for example, levels of income). A Gini coefficient of zero expresses perfect equality, where all values are the same (e.g. where everyone has the same income). A Gini coefficient of one (or 100%) expresses maximal inequality among values (e.g. for a large number of people where only one person has all the income or consumption and all others have none, the Gini coefficient will be nearly one).^{[3]}^{[4]}

For larger groups, values close to one are unlikely. Given the normalization of both the cumulative population and the cumulative share of income used to calculate the Gini coefficient, the measure is not overly sensitive to the specifics of the income distribution, but rather only on how incomes vary relative to the other members of a population. The exception to this is in the redistribution of income resulting in a minimum income for all people. When the population is sorted, if their income distribution were to approximate a well-known function, then some representative values could be calculated.

The Gini coefficient was proposed by Gini as a measure of inequality of income or wealth.^{[5]} For OECD countries, in the late 20th century, considering the effect of taxes and transfer payments, the income Gini coefficient ranged between 0.24 and 0.49, with Slovenia being the lowest and Mexico the highest.^{[6]} African countries had the highest pre-tax Gini coefficients in 2008–2009, with South Africa the world's highest, variously estimated to be 0.63 to 0.7,^{[7]}^{[8]} although this figure drops to 0.52 after social assistance is taken into account, and drops again to 0.47 after taxation.^{[9]} The global income Gini coefficient in 2005 has been estimated to be between 0.61 and 0.68 by various sources.^{[10]}^{[11]}

There are some issues in interpreting a Gini coefficient. The same value may result from many different distribution curves. The demographic structure should be taken into account. Countries with an aging population, or with a baby boom, experience an increasing pre-tax Gini coefficient even if real income distribution for working adults remains constant. Scholars have devised over a dozen variants of the Gini coefficient.^{[12]}^{[13]}^{[14]}

The Gini coefficient was developed by the Italian statistician Corrado Gini and published in his 1912 paper *Variability and Mutability* (Italian: *Variabilità e mutabilità*).^{[15]}^{[16]} Building on the work of American economist Max Lorenz, Gini proposed that the difference between the hypothetical straight line depicting perfect equality, and the actual line depicting people's incomes, be used as a measure of inequality.^{[17]}

The Gini coefficient is a single number that demonstrates a degree of inequality in a distribution of income/wealth. It is used to estimate how far a country's wealth or income distribution deviates from a totally equal distribution.

In terms of income-ordered population percentiles, the Gini coefficient is the cumulative shortfall from equal share of the total income up to each percentile. That summed shortfall is then divided by the value it would have in the case of complete equality.

The Gini coefficient is usually defined mathematically based on the Lorenz curve, which plots the proportion of the total income of the population (y axis) that is cumulatively earned by the bottom *x* of the population (see diagram). The line at 45 degrees thus represents perfect equality of incomes. The Gini coefficient can then be thought of as the ratio of the area that lies between the line of equality and the Lorenz curve (marked *A* in the diagram) over the total area under the line of equality (marked *A* and *B* in the diagram); i.e., G = *A*/(*A* + *B*). It is also equal to 2*A* and to 1 − 2*B* due to the fact that *A* + *B* = 0.5 (since the axes scale from 0 to 1).

If all people have non-negative income (or wealth, as the case may be), the Gini coefficient can theoretically range from 0 (complete equality) to 1 (complete inequality); it is sometimes expressed as a percentage ranging between 0 and 100. In reality, both extreme values are not quite reached. If negative values are possible (such as the negative wealth of people with debts), then the Gini coefficient could theoretically be more than 1. Usually the mean (or total) is assumed to be positive, which rules out a Gini coefficient less than zero.

When the income (or wealth) distribution is given as a continuous probability density function *p*(*x*), the Gini coefficient is again half of the relative mean absolute difference:

While the income distribution of any particular country won't always follow theoretical models in reality, these functions give a qualitative understanding of the income distribution in a nation given the Gini coefficient.

The extreme cases are the most equal society in which every person receives the same income (*G* = 0) and the most unequal society where a single person receives 100% of the total income and the remaining *N* − 1 people receive none (*G* = 1 − 1/*N*).

A more general simplified case also just distinguishes two levels of income, low and high. If the high income group is a proportion *u* of the population and earns a proportion *f* of all income, then the Gini coefficient is *f* − *u*. An actual more graded distribution with these same values *u* and *f* will always have a higher Gini coefficient than *f* − *u*.

The proverbial case where the richest 20% have 80% of all income (see Pareto principle) would lead to an income Gini coefficient of at least 60%.

An often cited^{[19]} case that 1% of all the world's population owns 50% of all wealth, means a wealth Gini coefficient of at least 49%.

In some cases, this equation can be applied to calculate the Gini coefficient without direct reference to the Lorenz curve. For example, (taking *y* to mean the income or wealth of a person or household):

Since the Gini coefficient is half the relative mean absolute difference, it can also be calculated using formulas for the relative mean absolute difference. For a random sample *S* consisting of values *y*_{i}, *i* = 1 to *n*, that are indexed in non-decreasing order (*y*_{i} ≤ *y*_{i+1}), the statistic:

is a consistent estimator of the population Gini coefficient, but is not, in general, unbiased. Like *G*, *G*(*S*) has a simpler form:

There does not exist a sample statistic that is in general an unbiased estimator of the population Gini coefficient, like the relative mean absolute difference.

When the population is large, the income distribution may be represented by a continuous probability density function *f*(*x*) where *f*(*x*) *dx* is the fraction of the population with wealth or income in the interval *dx* about *x*. If *F*(*x*) is the cumulative distribution function for *f*(*x*):

then the Lorenz curve *L*(*F*) may then be represented as a function parametric in *L*(*x*) and *F*(*x*) and the value of *B* can be found by integration:

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:

The latter result comes from integration by parts. (Note that this formula can be applied when there are negative values if the integration is taken from minus infinity to plus infinity.)

The Gini coefficient may be expressed in terms of the quantile function *Q*(*F*) (inverse of the cumulative distribution function: *Q*(*F*(*x*)) = *x*)

Since the Gini coefficient is independent of scale, if the distribution function can be expressed in the form *f(x,φ,a,b,c...)* where *φ* is a scale factor and *a,b,c...* are dimensionless parameters, then the Gini coefficient will be a function only of *a,b,c...*.^{[21]} For example, for the exponential distribution, which is a function of only *x* and a scale parameter, the Gini coefficient is a constant, equal to 1/2.

Sometimes the entire Lorenz curve is not known, and only values at certain intervals are given. In that case, the Gini coefficient can be approximated by using various techniques for interpolating the missing values of the Lorenz curve. If (*X*_{k}, *Y*_{k}) are the known points on the Lorenz curve, with the *X*_{k} indexed in increasing order (*X*_{k – 1} < *X*_{k}), so that:

If the Lorenz curve is approximated on each interval as a line between consecutive points, then the area B can be approximated with trapezoids and:

is the resulting approximation for G. More accurate results can be obtained using other methods to approximate the area B, such as approximating the Lorenz curve with a quadratic function across pairs of intervals, or building an appropriately smooth approximation to the underlying distribution function that matches the known data. If the population mean and boundary values for each interval are also known, these can also often be used to improve the accuracy of the approximation.

The Gini coefficient calculated from a sample is a statistic and its standard error, or confidence intervals for the population Gini coefficient, should be reported. These can be calculated using bootstrap techniques but those proposed have been mathematically complicated and computationally onerous even in an era of fast computers. Economist Tomson Ogwang made the process more efficient by setting up a "trick regression model" in which respective income variables in the sample are ranked with the lowest income being allocated rank 1. The model then expresses the rank (dependent variable) as the sum of a constant *A* and a normal error term whose variance is inversely proportional to *y*_{k};

Thus, *G* can be expressed as a function of the weighted least squares estimate of the constant *A* and that this can be used to speed up the calculation of the jackknife estimate for the standard error. Economist David Giles argued that the standard error of the estimate of *A* can be used to derive that of the estimate of *G* directly without using a jackknife at all. This method only requires the use of ordinary least squares regression after ordering the sample data. The results compare favorably with the estimates from the jackknife with agreement improving with increasing sample size.^{[24]}

However, it has since been argued that this is dependent on the model's assumptions about the error distributions and the independence of error terms, assumptions that are often not valid for real data sets. There is still ongoing debate surrounding this topic.

Guillermina Jasso^{[25]} and Angus Deaton^{[26]} independently proposed the following formula for the Gini coefficient:

where *p*_{j} weights the units by their population share, and *f*(*r*_{j}) is a function of the deviation of each unit's *r*_{j} from 1, the point of equality. The insight of this generalised inequality index is that inequality indices differ because they employ different functions of the distance of the inequality ratios (the *r*_{j}) from 1.

Gini coefficients of income are calculated on a market income as well as a disposable income basis. The Gini coefficient on market income—sometimes referred to as a pre-tax Gini coefficient—is calculated on income before taxes and transfers, and it measures inequality in income without considering the effect of taxes and social spending already in place in a country. The Gini coefficient on disposable income—sometimes referred to as after-tax Gini coefficient—is calculated on income after taxes and transfers, and it measures inequality in income after considering the effect of taxes and social spending already in place in a country.^{[6]}^{[30]}^{[31]}

For OECD countries over the 2008–2009 period, the Gini coefficient (pre-taxes and transfers) for a total population ranged between 0.34 and 0.53, with South Korea the lowest and Italy the highest. The Gini coefficient (after-taxes and transfers) for a total population ranged between 0.25 and 0.48, with Denmark the lowest and Mexico the highest. For the United States, the country with the largest population of the OECD countries, the pre-tax Gini index was 0.49, and the after-tax Gini index was 0.38, in 2008–2009. The OECD averages for total populations in OECD countries was 0.46 for the pre-tax income Gini index and 0.31 for the after-tax income Gini index.^{[6]}^{[32]} Taxes and social spending that were in place in 2008–2009 period in OECD countries significantly lowered effective income inequality, and in general, "European countries—especially Nordic and Continental welfare states—achieve lower levels of income inequality than other countries."^{[33]}

Using the Gini can help quantify differences in welfare and compensation policies and philosophies. However it should be borne in mind that the Gini coefficient can be misleading when used to make political comparisons between large and small countries or those with different immigration policies (see limitations section).

The Gini coefficient for the entire world has been estimated by various parties to be between 0.61 and 0.68.^{[10]}^{[11]}^{[34]} The graph shows the values expressed as a percentage in their historical development for a number of countries.

According to UNICEF, Latin America and the Caribbean region had the highest net income Gini index in the world at 48.3, on unweighted average basis in 2008. The remaining regional averages were: sub-Saharan Africa (44.2), Asia (40.4), Middle East and North Africa (39.2), Eastern Europe and Central Asia (35.4), and High-income Countries (30.9). Using the same method, the United States is claimed to have a Gini index of 36, while South Africa had the highest income Gini index score of 67.8.^{[35]}

Taking income distribution of all human beings, worldwide income inequality has been constantly increasing since the early 19th century. There was a steady increase in the global income inequality Gini score from 1820 to 2002, with a significant increase between 1980 and 2002. This trend appears to have peaked and begun a reversal with rapid economic growth in emerging economies, particularly in the large populations of BRIC countries.^{[36]}

The table below presents the estimated world income Gini coefficients over the last 200 years, as calculated by Milanovic.^{[37]}

More detailed data from similar sources plots a continuous decline since 1988. This is attributed to globalization increasing incomes for billions of poor people, mostly in countries like China and India. Developing countries like Brazil have also improved basic services like health care, education, and sanitation; others like Chile and Mexico have enacted more progressive tax policies.^{[39]}

Gini coefficient is widely used in fields as diverse as sociology, economics, health science, ecology, engineering and agriculture.^{[41]} For example, in social sciences and economics, in addition to income Gini coefficients, scholars have published education Gini coefficients and opportunity Gini coefficients.

Education Gini index estimates the inequality in education for a given population.^{[42]} It is used to discern trends in social development through educational attainment over time. From a study of 85 countries by three Economists of World Bank Vinod Thomas, Yan Wang, Xibo Fan, estimate Mali had the highest education Gini index of 0.92 in 1990 (implying very high inequality in educational attainment across the population), while the United States had the lowest education inequality Gini index of 0.14. Between 1960 and 1990, China, India and South Korea had the fastest drop in education inequality Gini Index. They also claim education Gini index for the United States slightly increased over the 1980–1990 period.

Similar in concept to income Gini coefficient, opportunity Gini coefficient measures inequality of opportunity.^{[43]}^{[44]}^{[45]} The concept builds on Amartya Sen's suggestion^{[46]} that inequality coefficients of social development should be premised on the process of enlarging people's choices and enhancing their capabilities, rather than on the process of reducing income inequality. Kovacevic in a review of opportunity Gini coefficient explains that the coefficient estimates how well a society enables its citizens to achieve success in life where the success is based on a person's choices, efforts and talents, not his background defined by a set of predetermined circumstances at birth, such as, gender, race, place of birth, parent's income and circumstances beyond the control of that individual.

In 2003, Roemer^{[43]}^{[47]} reported Italy and Spain exhibited the largest opportunity inequality Gini index amongst advanced economies.

In 1978, Anthony Shorrocks introduced a measure based on income Gini coefficients to estimate income mobility.^{[48]} This measure, generalized by Maasoumi and Zandvakili,^{[49]} is now generally referred to as Shorrocks index, sometimes as Shorrocks mobility index or Shorrocks rigidity index. It attempts to estimate whether the income inequality Gini coefficient is permanent or temporary, and to what extent a country or region enables economic mobility to its people so that they can move from one (e.g., bottom 20%) income quantile to another (e.g., middle 20%) over time. In other words, Shorrocks index compares inequality of short-term earnings such as the annual income of households, to inequality of long-term earnings such as 5-year or 10-year total income for the same households.

Shorrocks index is calculated in number of different ways, a common approach being from the ratio of income Gini coefficients between short-term and long-term for the same region or country.^{[50]}

A 2010 study using social security income data for the United States since 1937 and Gini-based Shorrocks indices concludes that income mobility in the United States has had a complicated history, primarily due to the mass influx of women into the American labor force after World War II. Income inequality and income mobility trends have been different for men and women workers between 1937 and the 2000s. When men and women are considered together, the Gini coefficient-based Shorrocks index trends imply long-term income inequality has been substantially reduced among all workers, in recent decades for the United States.^{[50]} Other scholars, using just 1990s data or other short periods have come to different conclusions.^{[51]} For example, Sastre and Ayala, conclude from their study of income Gini coefficient data between 1993 and 1998 for six developed economies, that France had the least income mobility, Italy the highest, and the United States and Germany intermediate levels of income mobility over those 5 years.^{[52]}

The Gini coefficient has features that make it useful as a measure of dispersion in a population, and inequalities in particular.^{[28]}

The Gini coefficient is a relative measure. It is possible for the Gini coefficient of a developing country to rise (due to increasing inequality of income) while the number of people in absolute poverty decreases.^{[53]} This is because the Gini coefficient measures relative, not absolute, wealth. Changing income inequality, measured by Gini coefficients, can be due to structural changes in a society such as growing population (baby booms, aging populations, increased divorce rates, extended family households splitting into nuclear families, emigration, immigration) and income mobility.^{[54]} Gini coefficients are simple, and this simplicity can lead to oversights and can confuse the comparison of different populations; for example, while both Bangladesh (per capita income of $1,693) and the Netherlands (per capita income of $42,183) had an income Gini coefficient of 0.31 in 2010,^{[55]} the quality of life, economic opportunity and absolute income in these countries are very different, i.e. countries may have identical Gini coefficients, but differ greatly in wealth. Basic necessities may be available to all in a developed economy, while in an undeveloped economy with the same Gini coefficient, basic necessities may be unavailable to most or unequally available, due to lower absolute wealth.

Even when the total income of a population is the same, in certain situations two countries with different income distributions can have the same Gini index (e.g. cases when income Lorenz Curves cross).^{[28]} Table A illustrates one such situation. Both countries have a Gini coefficient of 0.2, but the average income distributions for household groups are different. As another example, in a population where the lowest 50% of individuals have no income and the other 50% have equal income, the Gini coefficient is 0.5; whereas for another population where the lowest 75% of people have 25% of income and the top 25% have 75% of the income, the Gini index is also 0.5. Economies with similar incomes and Gini coefficients can have very different income distributions. Bellù and Liberati claim that to rank income inequality between two different populations based on their Gini indices is sometimes not possible, or misleading.^{[56]}

A Gini index does not contain information about absolute national or personal incomes. Populations can have very low income Gini indices, yet simultaneously very high wealth Gini index. By measuring inequality in income, the Gini ignores the differential efficiency of use of household income. By ignoring wealth (except as it contributes to income) the Gini can create the appearance of inequality when the people compared are at different stages in their life. Wealthy countries such as Sweden can show a low Gini coefficient for disposable income of 0.31 thereby appearing equal, yet have a very high Gini coefficient for wealth of 0.79 to 0.86 thereby suggesting an extremely unequal wealth distribution in its society.^{[57]}^{[58]} These factors are not assessed in income-based Gini.

Gini index has a downward-bias for small populations.^{[59]} Counties or states or countries with small populations and less diverse economies will tend to report small Gini coefficients. For economically diverse large population groups, a much higher coefficient is expected than for each of its regions. Taking world economy as one, and income distribution for all human beings, for example, different scholars estimate global Gini index to range between 0.61 and 0.68.^{[10]}^{[11]}
As with other inequality coefficients, the Gini coefficient is influenced by the granularity of the measurements. For example, five 20% quantiles (low granularity) will usually yield a lower Gini coefficient than twenty 5% quantiles (high granularity) for the same distribution. Philippe Monfort has shown that using inconsistent or unspecified granularity limits the usefulness of Gini coefficient measurements.^{[60]}

The Gini coefficient measure gives different results when applied to individuals instead of households, for the same economy and same income distributions. If household data is used, the measured value of income Gini depends on how the household is defined. When different populations are not measured with consistent definitions, the comparison is not meaningful.

Deininger and Squire (1996) show that income Gini coefficient based on individual income, rather than household income, are different. For example, for the United States, they find that the individual income-based Gini index was 0.35, while for France it was 0.43. According to their individual-focused method, in the 108 countries they studied, South Africa had the world's highest Gini coefficient at 0.62, Malaysia had Asia's highest Gini coefficient at 0.5, Brazil the highest at 0.57 in Latin America and the Caribbean region, and Turkey the highest at 0.5 in OECD countries.^{[61]}

Expanding on the importance of life-span measures, the Gini coefficient as a point-estimate of equality at a certain time ignores life-span changes in income. Typically, increases in the proportion of young or old members of a society will drive apparent changes in equality, simply because people generally have lower incomes and wealth when they are young than when they are old. Because of this, factors such as age distribution within a population and mobility within income classes can create the appearance of inequality when none exist taking into account demographic effects. Thus a given economy may have a higher Gini coefficient at any one point in time compared to another, while the Gini coefficient calculated over individuals' lifetime income is actually lower than the apparently more equal (at a given point in time) economy's.^{[14]} Essentially, what matters is not just inequality in any particular year, but the composition of the distribution over time.

Billionaire Thomas Kwok claims income Gini coefficient for Hong Kong has been high (0.434 in 2010^{[55]}), in part because of structural changes in its population. Over recent decades, Hong Kong has witnessed increasing numbers of small households, elderly households and elderly living alone. The combined income is now split into more households. Many old people are living separately from their children in Hong Kong. These social changes have caused substantial changes in household income distribution. The income Gini coefficient, claims Kwok, does not discern these structural changes in its society.^{[54]} Household money income distribution for the United States, summarized in Table C of this section, confirms that this issue is not limited to just Hong Kong. According to the US Census Bureau, between 1979 and 2010, the population of the United States experienced structural changes in overall households, the income for all income brackets increased in inflation-adjusted terms, household income distributions shifted into higher income brackets over time, while the income Gini coefficient increased.^{[62]}^{[63]}

Another limitation of the Gini coefficient is that it is not a proper measure of egalitarianism, as it only measures income dispersion. For example, if two equally egalitarian countries pursue different immigration policies, the country accepting a higher proportion of low-income or impoverished migrants will report a higher Gini coefficient and therefore may appear to exhibit more income inequality.

Some countries distribute benefits that are difficult to value. Countries that provide subsidized housing, medical care, education or other such services are difficult to value objectively, as it depends on the quality and extent of the benefit. In absence of free markets, valuing these income transfers as household income is subjective. The theoretical model of the Gini coefficient is limited to accepting correct or incorrect subjective assumptions.

In subsistence-driven and informal economies, people may have significant income in other forms than money, for example through subsistence farming or bartering. These income tend to accrue to the segment of population that is below-poverty line or very poor, in emerging and transitional economy countries such as those in sub-Saharan Africa, Latin America, Asia and Eastern Europe. Informal economy accounts for over half of global employment and as much as 90 per cent of employment in some of the poorer sub-Saharan countries with high official Gini inequality coefficients. Schneider et al., in their 2010 study of 162 countries,^{[64]} report about 31.2%, or about $20 trillion, of world's GDP is informal. In developing countries, the informal economy predominates for all income brackets except for the richer, urban upper income bracket populations. Even in developed economies, between 8% (United States) to 27% (Italy) of each nation's GDP is informal, and resulting informal income predominates as a livelihood activity for those in the lowest income brackets.^{[65]} The value and distribution of the incomes from informal or underground economy is difficult to quantify, making true income Gini coefficients estimates difficult.^{[66]}^{[67]} Different assumptions and quantifications of these incomes will yield different Gini coefficients.^{[68]}^{[69]}^{[70]}

Gini has some mathematical limitations as well. It is not additive and different sets of people cannot be averaged to obtain the Gini coefficient of all the people in the sets.

Given the limitations of the Gini coefficient, other statistical methods are used in combination or as an alternative measure of population dispersity. For example, *entropy measures* are frequently used (e.g. the Atkinson index or the Theil Index and Mean log deviation as special cases of the generalized entropy index). These measures attempt to compare the distribution of resources by intelligent agents in the market with a maximum entropy random distribution, which would occur if these agents acted like non-interacting particles in a closed system following the laws of statistical physics.

The Gini index is also related to the Pietra index — both of which are a measure of statistical heterogeneity and are derived from Lorenz curve and the diagonal line.^{[72]}^{[73]}^{[21]}

Although the Gini coefficient is most popular in economics, it can in theory be applied in any field of science that studies a distribution. For example, in ecology the Gini coefficient has been used as a measure of biodiversity, where the cumulative proportion of species is plotted against cumulative proportion of individuals.^{[75]} In health, it has been used as a measure of the inequality of health related quality of life in a population.^{[76]} In education, it has been used as a measure of the inequality of universities.^{[77]} In chemistry it has been used to express the selectivity of protein kinase inhibitors against a panel of kinases.^{[78]} In engineering, it has been used to evaluate the fairness achieved by Internet routers in scheduling packet transmissions from different flows of traffic.^{[79]}

The Gini coefficient is sometimes used for the measurement of the discriminatory power of rating systems in credit risk management.^{[80]}

A 2005 study accessed US census data to measure home computer ownership and used the Gini coefficient to measure inequalities amongst whites and African Americans. Results indicated that although decreasing overall, home computer ownership inequality is substantially smaller among white households.^{[81]}

A 2016 peer-reviewed study titled Employing the Gini coefficient to measure participation inequality in treatment-focused Digital Health Social Networks^{[82]} illustrated that the Gini coefficient was helpful and accurate in measuring shifts in inequality, however as a standalone metric it failed to incorporate overall network size.

The Gini coefficient has also been applied to analyze inequality on dating apps.^{[83]}^{[84]}

Kaminskiy and Krivtsov^{[85]} extended the concept of the Gini coefficient from economics to reliability theory and proposed a Gini–type coefficient that helps to assess the degree of aging of non−repairable systems or aging and rejuvenation of repairable systems. The coefficient is defined between -1 and 1 and can be used in both empirical and parametric life distributions. It takes negative values for the class of decreasing failure rate distributions and point processes with decreasing failure intensity rate and is positive for the increasing failure rate distributions and point processes with increasing failure intensity rate. The value of zero corresponds to the exponential life distribution or the Homogeneous Poisson Process.