GithubHelp home page GithubHelp logo

agsb / emppty Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 37 KB

A simple simulation based from book, Empty Planet The Shock of Global Population Decline By Darrell Bricker and John Ibbitson

License: GNU General Public License v3.0

C 100.00%

emppty's Introduction

Empty Planet Simulation

The program simulates population growth hypotheses, using 3 age groups, children, adults and elderly, calculating the variations of these groups each generation, using the number of children per couple, percentage of unmarried adults and infant mortality.

The evaluation ends when there are no children or when the number of children exceeds the original population.

Information on the number of the original population, percentages of children, adults and the elderly, number of children per couple, percentage of unmarried adults and percentage of infant mortality are required.

The representation in years for each generation, usually 20 to 25 years or group ages( < 15, 15 a 65, 65 < ), is not specific to the algorithm, only the capacity or not of reproduction.

Basically, with each generation: The number of children is calculated by multiplying half of adults by the number of children and by the proportion of couples; The number of adults is calculated by the multiplication of the children adjusted to the index of infant mortality; The number of elderly and children is accumulated in each generation.

The program is not meant to be accurate or comprehensive, just the simplified demonstration of results.

EXAMPLE: for a population of 7000, 0.43 of childrens, 0.43 of adults and 0.14 of elders, with two childrens by couple, 0.30 of unmarried adults and 0.001 of infant mortality

echo "7000 0.43 0.43 0.14 2 0.30 0.001" | emppty > data.csv

spoiller: with .30 unmarried must be a 2.86 childrens per couple rate to survive 3008 generations.

for real factors https://data.worldbank.org/indicator/SP.DYN.TFRT.IN https://ourworldindata.org/fertility-rate https://www.cia.gov/library/publications/the-world-factbook/rankorder/2127rank.html https://www.bbc.com/news/world-39211144

emppty's People

Contributors

agsb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.