Hacker News new | ask | show | jobs
by siddboots 1536 days ago
One fun thing to do is to take these death probabilities and throw them into a Leslie matrix [1], along with assumptions for the age-specific birth rates. From there you can simulate the projected population growth (ignoring migration) with no more than a couple of lines of Python/R/whathaveyou.

It's also a great study case for understanding some basic principles of linear algebra: The dominant eigenvalue is the stable population growth rate, and the corresponding eigenvector is the stable age distribution.

[1] https://en.wikipedia.org/wiki/Leslie_matrix