Against Overuse of The Gini Coefficient
Against Overuse of The Gini Coefficient
Special thanks to Barnabe Monnot and Tina Zhen for feedback and review
The Gini coefficient (https://en.wikipedia.org/wiki/Gini_coefficient) (also called the Gini index) is by far the
most popular and widely known measure of inequality, typically used to measure inequality of income
or wealth in some country, territory or other community. It's popular because it's easy to understand,
with a mathematical definition that can easily be visualized on a graph.
However, as one might expect from any scheme that tried to reduce inequality to a single number, the
Gini coefficient also has its limits. This is true even in its original context of measuring income and
wealth inequality in countries, but it becomes even more true when the Gini coefficient is
transplanted into other contexts (particularly: cryptocurrency). In this post I will talk about some of
the limits of the Gini coefficient, and propose some alternatives.
income earned by the lowest-earning portion of the population (eg. f (0.1) is the share of total income
earned by the lowest-earning 10%). The Gini coefficient is the area between that curve and the y = x
2∗3.75
.≈ 0.3833
It turns out that the two are mathematically equivalent (proving this is an exercise to the reader)!
n
i
− ( i =1
n
2
)
Clearly, neither of those two dystopias are good places to live. But they are not-very-nice places to
live in very different ways. Dystopia A gives each resident a coin flip between unthinkably horrific
mass starvation if they end up on the left half on the distribution and egalitarian harmony if they end
up on the right half. If you're Thanos (https://en.wikipedia.org/wiki/Thanos), you might actually like it! If
you're not, it's worth avoiding with the strongest force. Dystopia B, on the other hand, is Brave New
World-like: everyone has decently good lives (at least at the time when that snapshot of everyone's
resources is taken), but at the high cost of an extremely undemocratic power structure where you'd
better hope you have a good overlord. If you're Curtis Yarvin (https://en.wikipedia.org/wiki/Curtis_Yarvin),
you might actually like it! If you're not, it's very much worth avoiding too.
These two problems are different enough that they're worth analyzing and measuring separately. And
this difference is not just theoretical. Here is a chart showing share of total income earned by the
bottom 20% (a decent proxy for avoiding dystopia A) versus share of total income earned by the top
1% (a decent proxy for being near dystopia B):
Sources: https://data.worldbank.org/indicator/SI.DST.FRST.20
(https://data.worldbank.org/indicator/SI.DST.FRST.20) (merging 2015 and 2016 data) and
http://hdr.undp.org/en/indicators/186106 (http://hdr.undp.org/en/indicators/186106).
The two are clearly correlated (coefficient -0.62), but very far from perfectly correlated (the high
priests of statistics apparently consider (https://www.andrews.edu/~calkins/math/edrm611/edrm05.htm) 0.7
to be the lower threshold for being "highly correlated", and we're even under that). There's an
interesting second dimension to the chart that can be analyzed - what's the difference between a
country where the top 1% earn 20% of the total income and the bottom 20% earn 3% and a country
where the top 1% earn 20% and the bottom 20% earn 7%? Alas, such an exploration is best left to
other enterprising data and culture explorers with more experience than myself.
Share of coins explicitly allocated to specific insiders in a cryptocurrency's initial supply is one type of inequality.
Note that the Ethereum data is slightly wrong: the insider and foundation shares should be 12.3% and 4.2%, not
15% and 5%.
Given the level of concern about these issues, it should be not at all surprising that many people have
tried computing Gini indices of cryptocurrencies:
The observed Gini index for staked EOS tokens (2018) (https://www.researchgate.net/figure/The-
observed-Gini-index-for-all-EOS-accounts-with-staked-tokens-from-midJune-2018-until_fig2_349280648)
Gini coefficients of cryptocurrencies (2018) (https://blog.dshr.org/2018/10/gini-coefficients-of-
cryptocurrencies.html)
Measuring decentralization in Bitcoin and Ethereum using Multiple Metrics and Granularities
(2021, includes Gini and 2 other metrics) (https://arxiv.org/pdf/2101.10699.pdf)
Nouriel Roubini comparing Bitcoin's Gini to North Korea (2018)
(https://twitter.com/nouriel/status/994994180299640832)
On-chain Insights in the Cryptocurrency Markets (2021, uses Gini to measure concentration)
(https://www.cylynx.io/blog/on-chain-insights-on-the-cryptocurrency-markets/)
And even earlier than that, we had to deal with this sensationalist article
(https://www.businessinsider.com/bitcoin-inequality-2014-1) from 2014:
In addition to common plain methodological mistakes (often either mixing up income vs wealth
inequality, mixing up users vs accounts, or both) that such analyses make quite frequently, there is a
deep and subtle problem with using the Gini coefficient to make these kinds of comparisons. The
problem lies in key distinction between typical geographic communities (eg. cities, countries) and
typical internet communities (eg. blockchains):
A typical resident of a geographic community spends most of their time and resources in that
community, and so measured inequality in a geographic community reflects inequality in total
resources available to people. But in an internet community, measured inequality can come from
two sources: (i) inequality in total resources available to different participants, and (ii)
inequality in level of interest in participating in the community.
The average person with $15 in fiat currency is poor and is missing out on the ability to have a good
life. The average person with $15 in cryptocurrency is a dabbler who opened up a wallet once for fun.
Inequality in level of interest is a healthy thing; every community has its dabblers and its full-time
hardcore fans with no life. So if a cryptocurrency has a very high Gini coefficient, but it turns out that
much of this inequality comes from inequality in level of interest, then the number points to a much
less scary reality than the headlines imply.
Cryptocurrencies, even those that turn out to be highly plutocratic, will not turn any part of the world
into anything close to dystopia A. But badly-distributed cryptocurrencies may well look like dystopia
B, a problem compounded if coin voting (https://vitalik.ca/general/2017/12/17/voting.html) governance is
used (https://vitalik.ca/general/2018/03/28/plutocracy.html) to make protocol decisions. Hence, to detect
the problems that cryptocurrency communities worry about most, we want a metric that captures
proximity to dystopia B more specifically.
intuitively appealing approximation that doubling one's income is about as useful at any level: going
from $10,000 to $20,000 adds the same utility as going from $5,000 to $10,000 or from $40,000 to
$80,000). The score is then a matter of measuring how much utility is lost compared to if everyone
just got the average income:
n n
∑ i =1
xi ∑ i =1
log(x i )
log( ) −
n n
The first term (log-of-average) is the utility that everyone would have if money were perfectly
redistributed, so everyone earned the average income. The second term (average-of-log) is the
average utility in that economy today. The difference represents lost utility from inequality, if you look
narrowly at resources as something used for personal consumption. There are other ways to define
this formula, but they end up being close to equivalent (eg. the 1969 paper by Anthony Atkinson
(http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.521.849&rep=rep1&type=pdf) suggested an "equally
distributed equivalent level of income" metric which, in the U(x) = log(x) case, is just a monotonic
function of the above, and the Theil L index (https://en.wikipedia.org/wiki/Theil_index) is perfectly
mathematically equivalent to the above formula).
To measure concentration (or "dystopia B" problems), the Herfindahl-Hirschman index
(https://www.justice.gov/atr/herfindahl-hirschman-index) is an excellent place to start, and is already used
to measure economic concentration in industries:
n
∑ i =1
x
2
i
n
(∑ i =1
xi )
2
There are other alternatives to this; the Theil T index (https://en.wikipedia.org/wiki/Theil_index) has some
similar properties though also some differences. A simpler-and-dumber alternative is the Nakamoto
coefficient: the minimum number of participants needed to add up to more than 50% of the total.
Note that all three of these concentration indices focus heavily on what happens near the top (and
deliberately so): a large number of dabblers with a small quantity of resources contributes little or
nothing to the index, while the act of two top participants merging can make a very big change to the
index.
For cryptocurrency communities, where concentration of resources is one of the biggest risks to the
system but where someone only having 0.00013 coins is not any kind of evidence that they're
actually starving, adopting indices like this is the obvious approach. But even for countries, it's
probably worth talking about, and measuring, concentration of power and suffering from lack of
resources more separately.
That said, at some point we have to move beyond even these indices. The harms from
concentration are not just a function of the size of the actors; they are also heavily dependent on the
relationships between the actors and their ability to collude
(https://vitalik.ca/general/2019/04/03/collusion.html) with each other. Similarly, resource allocation is
network-dependent: lack of formal resources may not be that harmful if the person lacking resources
has an informal network to tap into. But dealing with these issues is a much harder challenge, and so
we do also need the simpler tools while we still have less data to work with.