lhaze / data-science-playground

Let's have some fun with a bunch of libs & approaches.
GNU General Public License v3.0
0 stars 0 forks source link

how: implement the model #7

Open lhaze opened 6 years ago

lhaze commented 6 years ago
lhaze commented 6 years ago

natural growth

natural_growth(t) = lambda t: int(deaths(t) * wraith_turn_factor(t)) + migration(t)

deaths(t) = lambda t: int(alive_population(t) * mortality_rate(t)) + additional_deaths(t)

migration(t) = lambda t: int((immigration_rate(t) + emigration_rate(t)) * population(t-1))

immigration

is proportional to population of wraiths. One can consider it mostly dependent on wraiths from towns, villages and suburbs of the very City moving into the Citadel for safety or because their Fetters are moving into the City. There is some sense to assume that the amount of immigration to be proportional to the population of the region which roughly is proportional to the population of the City itself. Immigration rate can be considered rising up from the beginning of the industrial age as a process of the urbanization is approaching its climax.

emigration

can be assumed to be just a fraction of the population of the Citadel moving forward, towards the Stygia or other, bigger Citadels.

lhaze commented 6 years ago

real growth


real_growth(t) = lambda t: int(natural_growth(t) * (1 - enfant_survavibility_rate(t)))

shades_growth(t) = lambda t: int(natural_growth(t) * enfant_oblivion_rate(t) + \
    population(t - 1) * senior_oblivion_rate(t))