Talk:Gini coefficient#Gini in Template:infobox country

{{Talk header}}

{{WikiProject banner shell|class=C|vital=yes|1=

{{WikiProject Mathematics|importance=Mid}}

{{WikiProject Economics|importance=Mid }}

{{WikiProject Sociology |importance=High }}

{{WikiProject Statistics|importance=Low}}

{{WikiProject Globalization|importance=mid}}

}}

{{User:MiszaBot/config

|maxarchivesize = 100K

|counter = 3

|minthreadsleft = 3

|minthreadstoarchive = 1

|algo = old(90d)

|archive = Talk:Gini coefficient/Archive %(counter)d

}}

Formula for the Gini coefficient

It seems to me the current formula in the article might be slightly incorrect. Here is the current formula:

:G = \frac{\displaystyle{\sum_{i=1}^n \sum_{j=1}^n \left| x_i - x_j \right|}}{\displaystyle{2 \sum_{i=1}^n \sum_{j=1}^n x_j}} = \frac{\displaystyle{\sum_{i=1}^n \sum_{j=1}^n \left| x_i - x_j \right|}}{\displaystyle{2n\sum_{j=1}^n x_j}} = \frac{\displaystyle{\sum_{i=1}^n \sum_{j=1}^n \left| x_i - x_j \right|}}{\displaystyle{2 n^2 \bar{x}}}

Specifically, the current numerator suggests it would include each person's difference from themself, i.e., x_i-x_j, where i=j. However, if j is defined as the set of all other persons who aren't i, then the upper limit of j's index ought to be n-1. Thus, I believe the numerator ought to be:

::\displaystyle{\sum_{i=1}^n \sum_{j=1}^{n-1} \left| x_i - x_j \right|}

Moreover, I propose that the article be updated to explicitly define j.

Lastly, I'm not sure whether the denominator needs any updating. MosesRivera100 (talk) 19:07, 7 September 2023 (UTC)

:These formulas added later may be wrong. Take x_1 = 1; \;\;\; x_2 = 0

:Using these would give: G = \frac{1}{2n^2} \frac{\sum_i \sum_j |x_i - x_j|}{\bar{x}} = \frac{1}{8} \times \frac

1 - 0| + |0-1
{0.5} = \frac{1}{2}

:Now use G = \frac{\text{mean absolute difference}}{\text{mean}} = \frac{\bar{\Delta}}{\bar{x}}

:Where \bar{\Delta} = \frac{1}{n} \sum_i \sum_{j > i} |x_i - x_j| = \frac{1}{2n} \sum_i \sum_j |x_i - x_j|

:and \bar{x} = \frac{1}{n} \sum_i x_i

:You'll get the correct value of 1. In this case, G = \frac{\sum_i \sum_j |x_i - x_j|}{2 \sum_i x_i} 2804:1998:421:F201:88E7:6514:10BF:CCDF (talk) 19:57, 25 June 2024 (UTC)

The calculation section is more confusing than...

Mathworld's article on the Gini Coefficient:

https://mathworld.wolfram.com/GiniCoefficient.html

Am I missing something? This wiki article makes it seem like the Gini coefficient is difficult to use and fraught with pitfalls without giving many concrete definitions, while the Mathworld reference has two easy-to-understand formulas. What's up with that? 24.228.174.225 (talk) 21:51, 5 August 2024 (UTC)

Gini Coefficient doesn't measure wealth inequality

Gini Coefficient only measures income inequality and not wealth inequality and text(s) saying that should be removed.

The source [2] for the statement that

"Gini index or Gini ratio, is a measure of statistical dispersion intended to represent the income inequality, the wealth inequality, or the consumption inequality" doesn't even say or imply that.

Wealth inequality is always greater than income inequality, and Gini only measures income inequality. It is very misleading to say/imply that wealth inequality is at the same level as income inequality. Egalitaristen (talk) 20:15, 4 March 2025 (UTC)