News for hackers. Stuff that matters.
Re:Ask HN: How to increase SWE salaries in Europe? by arcticbull on Wednesday January 13, 2021 @07:49PM (#25770243)
I assumed you realized we were constraining ourselves to places with a High or Very High HDI.

If nobody has any money at all, would you not say inequality is low? If everyone in Tajikistan has $5 except the president, Emomali Rahmon, is inequality not low?

I suspect you are looking for a pairing of HDI and Gini, which factors in both the development (and hence the standard of living) and the inequality.

Sweden: (Gini: 0.25, HDI: 0.933), France: (Gini: 0.31, HDI: 0.901), Canada: (Gini: 0.33, HDI: 0.926), USA: (Gini: 0.48, HDI: 0.924), South Africa: (Gini: 0.65, HDI: 0.709).

Now, Tajikistan has an HDI of 0.66 ("medium"), and Azerbaijan 0.756 ("high").

Kazakhstan might surprise you, the HDI is 0.817 ("very high"). The standard of living there is actually good, in spite of what you may have seen on Borat - incidentally filmed in Romania. Almaty's been on my list of places to visit for a long time :) [1]

[1] https://en.wikipedia.org/wiki/Almaty

Re:Ask HN: How to increase SWE salaries in Europe? by passerby1 on Thursday January 14, 2021 @04:38AM (#25774199)
> Borat - incidentally filmed in Romania

Romania: Gini: 0.36, HDI: 0.828

HDI is close to Kazakhstan, actually

Re:Ask HN: How to increase SWE salaries in Europe? by dnautics on Wednesday January 13, 2021 @10:20PM (#25771457)
> If everyone in Tajikistan has $5 except the president

That distribution will yield a very high gini coefficient of very close to 1.

Re:Ask HN: How to increase SWE salaries in Europe? by tobinfricke on Wednesday January 13, 2021 @10:46PM (#25771654)
No, it yields a Gini coefficient very close to zero.

The Gini coefficient is defined as 1/2 the mean absolute difference considering all pairs of households:

https://en.wikipedia.org/wiki/Gini_coefficient

A group of people where everyone has the same income as a Gini coefficient of exactly zero. Adding a single outlier will increase it a little. A group of 1001 with 1000 people earning $1 and one person earning $100 has a Gini coefficient of 0.09.

Re:Ask HN: How to increase SWE salaries in Europe? by thomasahle on Thursday January 14, 2021 @02:46AM (#25773396)
>> If everyone in Tajikistan has $5 except the president

> That distribution will yield a very high gini coefficient of very close to 1.

It yields (n-1)|5-p|/(2n(5(n-1)+p)) which is about p/(5n+p).

So it depends on whether the president (p) has $10 or $n^2.

Re:Ask HN: How to increase SWE salaries in Europe? by dnautics on Friday January 15, 2021 @12:02AM (#25787194)
indeed. If everyone in tajikistan has $5 except the president, who has $1, the gini coefficient will be different.