Cities: Skylines

Cities: Skylines

48 ratings
Eco Stats Mod
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
10.752 KB
10 Feb, 2020 @ 3:00pm
11 Feb, 2020 @ 8:11am
3 Change Notes ( view )

Subscribe to download
Eco Stats Mod

Description
Economic Statistics Viewer (GDP, GDP per capita, GINI)

What do these indicators mean

The GDP[en.wikipedia.org] will show you the size of the city's economy.

The GDP per capita is the size of the economy divided by the population amount (often used as an indicator for the wealth of individuals in a region, although not considered by some to be so).

The Residential GINI[en.wikipedia.org] is an indicator ranging between 0 and 1 that attempts to measure the difference in wealth for each citizen (0 means all are equally wealthy, while 1 means one citizen owns everything and the rest nothing).

The City Value per capita is analogous to GDP per capita (kinda...), it is the city value divided by the population amount.

Government spending to GDP[en.wikipedia.org] tells you how "big" government is, or how much it spends compared to private spending. If, for example, you raise taxes and spend much more, then government spending to GDP will be much bigger, and private spending smaller. (It's about how much you spend not how much you take in taxes, since GDP takes in the amount of spending not the amount you as the "government" take in). The less you spend and tax the more private citizens have available for spending.

How the indicators are calculated

GDP: Calculates and shows GDP, as well as Per Capita GDP, and Government and Private Spending per GDP. GDP Is calculated based on total government expenses (without loans), and assumes that non taxed private income is spent fully by citizens and organizations (industries, commercial entities, and offices).

GINI: Residential GINI is calculated by counting each citizen's residential home building level, and passing it through the standard GINI Function.

City Value per Capita: Calculates the City Value per Capita, and the City Value per Capita w/o Savings (meaning, without the money stored in the city's bank account)

The Project and source code on github is right here[github.com] for anyone to see and collaborate.

More in depth "Economics" and technical info

The formula for GDP is GDP = C + G + I + (E - M) where
C = Total sum of consumption
G = Total government spending
I = Total amount of investment
(E - M) = Net Exports (Amount of exports in $ - Amount of imports in $)

In Cities Skylines, government spending and investment are calculated as the total expenses minus loan payments (since that does not count for GDP in the real-world formula). "Expenses" in education could be considered investment instead of government spending, but it all gets added to GDP.

To calculate the total sum of consumption, we assume every private unit, whether residential, commercial, or industrial, spends their money in full (doesn't save anything), because we have no way of knowing if they keep anything in a bank account or not. We calculate their spending based on the amount that is not taxed by the government. If taxation is 9%, for low residential level, for example, then the amount of low residential income that is spent is 91% (100% - 9%). Now, we know that by taxing low residential units, we get 'x' amount of money, and that equates to 9%, so we simply solve 'y' for 91% through simple cross-multiplication. We repeat the process for low and high density, and for residential, commercial, and industrial. We add them all up and get a combined amount of consumption + investment, which all adds up to GDP.

There's only a limitation on the part of the mod developer (me) with respect to calculating total export and import amounts, so that the net value is added to GDP. This limitation is due to the fact that I have not yet figured out how to get that from the API of Cities Skylines (the Modding Application Programming Interface of Cities Skylines). As soon as I'm able to figure it out, I will add it to the mod.

After all this is added up, we get the final GDP value. GDP per capita is self-explanatory (GDP / total population).

GINI is a measure of statistical dispersion that outputs a result between 0 and 1.
We create a collection or list of the building level that each citizen lives in.
It loops through every citizen and checks the house's building level, then adds it up to the collection.
After the looping is finished, we pass those numbers in the collection through a function you can find here[en.wikipedia.org]
22 Comments
MeeIIs635 15 Feb, 2023 @ 9:07am 
Doesn't toggle.
rcav8tr 24 Feb, 2022 @ 12:48pm 
The Residential GINI computed here is not really a measure of the wealth dispersion of the citizens as described near the top. It is more a measure of the dispersion of the residential building levels weighted by the number of citizens in each building. The way the calculation is performed in this mod, a GINI closer to 0 indicates the residential buildings are close to all the same level while a GINI closer to 1 indicates a wider variety of residential building levels. The GINI can never get to 1 because that would mean 1 citizen is in a top level building and all other citizens are in level 0 buildings and there is no such thing as a level 0 building.
rcav8tr 24 Feb, 2022 @ 12:30pm 
@StayHungryStayFoolish @roberto tomás
Please see my More City Statistics mod that includes most of these statistics.
StayHungryStayFoolish 19 Feb, 2022 @ 4:58pm 
@roberto I see you had no luck. I have skipped this mod, due to the insistent button.
roberto tomás 28 Jan, 2022 @ 8:10am 
I submitted a PR to make this button repositionable: https://github.com/alfoirazabal/ecostatsmod/pull/1
roberto tomás 21 Jan, 2022 @ 4:40pm 
how to move this button?
StayHungryStayFoolish 29 Nov, 2021 @ 9:50am 
If you are interested, this could be a great mod, but the button is placed to the wrong part of the screen and it cannot be moved. Dear alfoirazabal, I see that you are not around, but if you would add these features, it would be great. If not can Watch It! get this statistical information?
Sergih123 20 May, 2021 @ 4:38am 
Holly sh**t I didn't know cities:skylines went so deep as to count the private/between 2 private parties, as spending, damn
Simon of Cyrene 8 Apr, 2021 @ 5:10pm 
Make district specific?
ValskraaCapo 10 Feb, 2021 @ 6:25am 
0.688 GINI and still going upwards