This is a discrete math model to predict population trend based on different fertility mode
Codes are run in GNU Octave, with grammar a little different from that of Matlab.
Input:
- population data of all ages in the first year
- death rates of all ages (which are considered unchanngeable towards time)
- woman proportions of all ages (which are considered unchangeable towards time)
- beta: the average number of children a woman give birth to in her entire life, which is mainly affected by social policies.
- the number of years to predict
Output:
- total population in all predicted years
以.m结尾的是代码文本
输入:
- 第一年各个年龄层的人口数据
- 各个年龄层的死亡率(认为不随时间变化)
- 各个年龄层的女性人口比例(认为不随时间变化)
- 每个育龄妇女平均生育婴儿数beta(受二孩政策影响)
- 迭代次数/预测年份数
输出:
- 所有年份人口数
- (未实现)所有年份各年龄层人口数