NATION

PASSWORD

[Proposal] Inequality-adjusted Human Development Index

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Pogromistan
Civil Servant
 
Posts: 10
Founded: Dec 09, 2016
Ex-Nation

[Proposal] Inequality-adjusted Human Development Index

Postby Pogromistan » Tue Oct 23, 2018 7:42 pm

Hello,

The following is a proposal for a additive (rather than substitutive) feature, specifically a ranking for IHDI. For some time now the primary goal of my nation has been to maximise my inequality adjust human development index (IHDI) to make monitoring this a bit more convenient I recently wrote a small script to calculate this. While it's extremely easy to calculate yourself (as best you can with provided information) and with the existence of the wonderful api simple to automate I found myself wondering if other individuals might want this functionality in a easier to digest format. I searched the forums but found no proposal for such a feature. The way I calculate the IHDI seems like it could be rather trivially added but I'm not sure of the fairness/accuracy of this method. It assumes a perfect income bell curve and that income distribution is equivalent to the health and education distribution. This might be a unreasonable thing to do in which case this whole project is a bit folly. Here is the formula:

IHDI = HDI * (equality + (100 - equality) / 2) / 100

Using this formula IHDI can differ at most from HDI by 50%. This means if you had the most prosperous nation on nationstates and a equality of 0 you'd have a IHDI of 50 equivalent to Egypt. By contrast if you had a perfectly equal society with nothing you'd have a IHDI of 0 equivalent to nothing. You can imagine/calculate what this would mean for your nation and compare the value you get to the above link or look at this table I modified my script to produce (and at the link for context). The table is of my region mates:



















NationEqualityHDIIHDI
sulsuland1.8618.729.5340
juvencus21.2157.7935.0236
xhayparia35.7183.5756.7064
ghirapur0.6258.9929.6778
sideroom11.9554.1430.3048
optiplex_96037.1151.2835.1550
drawkland32.6397.3564.5576
the_confederacy_of_nationalism3.8664.1233.2975
mushcap60.2296.5377.3301
oteshknir12.4380.1345.0450
high_lowland_hrothgar2.6450.9526.1475
pogromistan86.2297.7791.0336
sonnelian_oceania27.7249.6831.7256
nationstates_the_gathering30.1449.9532.5024
westmirk33.6450.2833.5970
smile22.9450.9231.3005
turita32.9448.5932.2977
oscioru8.3156.6730.6896
streaken_drawk0.4552.8226.5288

Code: Select all
#!/bin/ksh
# this is a script to calculate the inequality adjusted income of all the nations in a region.
# replace ftp with wget, and #!/bin/ksh with your shell and it should run on most unixs.
# it doesn't work properly in many situations because it's a garbo shell script.

region=$1

api=$(ftp -o - "https://www.nationstates.net/cgi-bin/api.cgi?region=$region;&q=nations" 2>&1)
set -A nations $(echo $api | grep -o '<NATIONS>[^<]*' | grep -o '[a-z][^:]*')

for nation in "${nations[@]}"
do
        # "scale=68+33" fetches the human development index and the inequality index respectively.
        api=$(ftp -o - "https://www.nationstates.net/cgi-bin/api.cgi?nation=$nation;q=census;scale=68+33;mode=score" 2>&1)
        set -A values $(echo $api | grep -o '<SCORE>[^<]*' | grep -o '[0-9][^\n]*')
        echo -n "$nation "

        echo "scale=4; ${values[1]} * (${values[0]} + (100 - ${values[0]}) / 2) / 100"|bc)"
done

thank you for your time and consideration, and sorry for any formating oddities, I tried my best, I don't use a traditional web browser.
edit: it's late, sorry for any language oddities as well, I tried to fix a few.
Last edited by Pogromistan on Tue Oct 23, 2018 8:07 pm, edited 1 time in total.

User avatar
Galiantus III
Ambassador
 
Posts: 1453
Founded: Jan 23, 2013
Ex-Nation

Postby Galiantus III » Wed Oct 24, 2018 9:32 am

Income equality does not contribute to people's well-being. Reduction of poverty does. Everyone in a society could have the exact same income, but if that income is not sufficient to provide a good quality of life then everyone will be in poverty.
The goal of Socialism is Fascism.
#JKRowling #realfeminism #libertarian #conservative #christian #nomandates

Frisbeeteria wrote:
For some reason I have a mental image of a dolphin, trying to organize a new pod of his fellow dolphins to change the course of a nuclear sub. It's entertaining, I'll give ya that.
Ballotonia wrote:
Testing is for sissies. The actual test is to see how many people complain when any change is made ;)

User avatar
Pogromistan
Civil Servant
 
Posts: 10
Founded: Dec 09, 2016
Ex-Nation

Postby Pogromistan » Wed Oct 24, 2018 10:09 am

Galiantus III wrote:Income equality does not contribute to people's well-being. Reduction of poverty does. Everyone in a society could have the exact same income, but if that income is not sufficient to provide a good quality of life then everyone will be in poverty.

this isn't really relevant to if the rank should be visible to users so much as if users when given this rank should care about it. regardless the rank to some extent does take your problem into account, as I mentioned if your nation has nothing and absolute equality your IHDI would still be zero using this formula. focusing back on your first point I think this is only true to the extent to which poverty exists. once everyones needs are met and everyone has equitable (not equal) opportunity I suspect the psychological benefit of having more equal quality of life outweighs the benefit a few would gain by being better off. maybe that's just me though.

User avatar
Galiantus III
Ambassador
 
Posts: 1453
Founded: Jan 23, 2013
Ex-Nation

Postby Galiantus III » Wed Oct 24, 2018 10:30 am

Pogromistan wrote:
Galiantus III wrote:Income equality does not contribute to people's well-being. Reduction of poverty does. Everyone in a society could have the exact same income, but if that income is not sufficient to provide a good quality of life then everyone will be in poverty.

this isn't really relevant to if the rank should be visible to users so much as if users when given this rank should care about it. regardless the rank to some extent does take your problem into account, as I mentioned if your nation has nothing and absolute equality your IHDI would still be zero using this formula. focusing back on your first point I think this is only true to the extent to which poverty exists. once everyones needs are met and everyone has equitable (not equal) opportunity I suspect the psychological benefit of having more equal quality of life outweighs the benefit a few would gain by being better off. maybe that's just me though.


Ah, I misunderstood the proposed change, I see. And there is definitely something to be said about the psychological aspect of income equality, but I think the effect is more on crime levels, which then in turn affect human development.
The goal of Socialism is Fascism.
#JKRowling #realfeminism #libertarian #conservative #christian #nomandates

Frisbeeteria wrote:
For some reason I have a mental image of a dolphin, trying to organize a new pod of his fellow dolphins to change the course of a nuclear sub. It's entertaining, I'll give ya that.
Ballotonia wrote:
Testing is for sissies. The actual test is to see how many people complain when any change is made ;)

User avatar
Pogromistan
Civil Servant
 
Posts: 10
Founded: Dec 09, 2016
Ex-Nation

Postby Pogromistan » Wed Oct 24, 2018 10:41 am

Galiantus III wrote:Ah, I misunderstood the proposed change, I see. And there is definitely something to be said about the psychological aspect of income equality, but I think the effect is more on crime levels, which then in turn affect human development.

alright cool, and yes that's a good point aswell.
Last edited by Pogromistan on Wed Oct 24, 2018 10:41 am, edited 1 time in total.


Return to Technical

Who is online

Users browsing this forum: Arcoal, Bormiar, Britain Interbellum RP, Comfed, Giovanniland, Khantin, La Badlandoj, Lemon 42, Loveable Dogs, Memester, Narvatus, Nu Elysium

Advertisement

Remove ads