Simcountry is a multiplayer Internet game in which you are the president, commander in chief, and industrial leader. You have to make the tough decisions about cutting or raising taxes, how to allocate the federal budget, what kind of infrastructure you want, etc..
  Enter the Game

Health Index - Possible Problem

Topics: Problems: Health Index - Possible Problem

auditor

Thursday, June 20, 2024 - 06:12 pm Click here to edit this post
This may or may not be intentional by design but I just don't know anymore so figured I should ask a question that I have had for a few years. I'm not asking Andy to disclose any formulas or inner workings of the game, I just would like to know if the math on the Health Index calculation is actually intentional or an error.

With the other main government indexes, their calculations follow a predictable and very simple math path, where Health bucks the trend. All I am asking is if it is intended, I am not calling for changes for the love of god please don't make some radical sudden change in response to this question or take offense to it being asked.

Here is a number by number example of what I am referring to:
Elementary Schools Needed - 35075
Elementary Schools on Hand - 76113
Elementary School Index - 217

Roads Needed - 290344
Roads on Hand - 586495
Roads Index - 202

Finance Income - 1.269T
Finance Cost - 1.071T
Finance Index - 118

Hospitals Needed - 2217
Hospitals on Hand - 5088
Health Index - 196

Everything besides the Health Index is an even on hand / needed, where the hospitals are actually at 2.29x needed but index is flat (very very slightly falling) at 196.

James Folsom

Thursday, June 20, 2024 - 11:43 pm Click here to edit this post
Thanks, auditor it was on my todo list, just not very high.

I suspect it's intentional, and is tied in some way to population age distribution. But, haven't gotten to checking that hypothesis.

It would have been sensible to bake in such a relationship so that if you got a lot old people, you need more healthcare. This something I would have expected to be there from the beginning.

If Andy doesn't respond, I will move it up my list of things to figure out.

James Folsom

Saturday, June 22, 2024 - 01:02 am Click here to edit this post
It's obviously intended. This post is a repeat of the chat, with further calculation example.

After excluding, the outliers that have been losing or gaining hospitals at regular pace (eg, those where the health index is lagging due to moving average calculation)

fig1

As you can see (Have/Need) = (Health index) until 125 (regression says), Then above 125 it requires increasingly more hospitals to raise the index a defined amount.

I took a regression of the straight part of the line, and then transformed it to get the equation for calculating the required (have/need) to achieve a desired health index. Its complicated, and I'm not going to try to describe it unless someone realllly wants to know.

(have/need*100)=(desired Health index*1.3455)-43.38

Using Auditor's provided example, where 196 is the desired health index:

196*1.3455-43.38=220.3

It's off by ~9 for auditors example. I tried incorporating the given example into the regression, but it broke it. So either the example given isn't in steady state, or there may be some minor factor unaccounted for.

Further study, could say, but I think this answers the question.

-hymy-

James Folsom

Saturday, June 22, 2024 - 08:35 pm Click here to edit this post
After some further input (angry criticism). I went over to LU to diversify my dataset

Country #HaveneedHaveHealthDelta
/Name/NeedIndex
120516918889.8936170290.24-0.346382979
303320522491.5178571491.62-0.102142857
21152807288797.228957497.46-0.231042605
1554236220107.2727273107.36-0.087272727
Hymyland711580122.5862069122.65-0.063793103
472298242123.1404959123.35-0.209504132
LU7011275973131.0380267129.641.398026721
500321242132.6446281130.931.714628099
416325241134.8547718132.342.514771784
LU101914501062136.5348399133.82.734839925
460350242144.6280992139.784.848099174
N Hymyland424287147.7351916141.995.745191638
10520351330153.0075188145.987.027518797
LU346460003752159.9147122150.729.194712154
LU152125991414183.8048091168.6915.11480905
LU73162833046206.2705187181.8624.41051871
""28601268225.5520505194.2431.31205047
Auditor50802226228.2120395196.232.01203953
LU17462500990252.5252525210.941.62525253


After incorporating more data, it's possible that the relationship is actually a polynomial one. That Rsquare is better than the linear Rsquare.

Delta

It's easy to use that formula to make a range of Health indexes with calculated (have/need*100) numbers, plot it, and do another regression to get the needed equation. I don't have the right tools for this, so I'm in excel and I know there are rounding errors that could be avoided with something like MATLAB.

final

Sadly, the raw data comes from moving averages, because all the indexes in this game are that way. That results in uncertainty that could just look like a polynomial relationship. Use of the equations over time might allow some practical tweaking of the parameters.

The simple linear equation is (have/need/*100)=1.5812x-75.566 where x is the desired health index. The Rsquare is 0.9964

Either equation will not be exact, but will be close to the ball park. The linear one may work better for lower indexes, while the polynomial one may work better for the nosebleed section.

James Folsom

Saturday, June 22, 2024 - 08:38 pm Click here to edit this post
Forum malfunctioned.

delta

final

Andy

Monday, June 24, 2024 - 02:16 pm Click here to edit this post
The health index is not linear.
if you double the number of hospitals, the index will not double.

it is close to linear at low levels, it is getting further from linear as the numbers increase.

as far as I remember, this is true to more than one index at higher levels.


Add a Message