マルサスモデル
Contents
呼称
- マルサスモデル (Malthusian model)
概要
マルサスモデルとは、ある生物の個体群サイズの指数関数的な増加あるいは現象を記述する数理モデル。
モデル
マルサスモデルでは、ある生物の個体数 の増加速度が個体数自体に比例するとして、次のように個体数増加速度 を表す。
- :時点
- : 時点での個体数
- :マルサス係数
ある時点における個体数
導出:
から を求める。
が の初期値 であるため、
サンプルコード
モデル (Python 3)
import numpy as np
class MalthusianModel:
"""
マルサスモデル
"""
@staticmethod
def population(init: np.float, rate: np.float, time: np.float) -> np.float:
"""
Parameters
----------
init : np.float
初期個体数
rate : np.float
マルサス係数
time : np.float
時間
Returns
-------
population : np.float
個体数
"""
return init * np.exp(rate*time)
グラフ (Python 3)
import matplotlib.pyplot as plt
X = np.linspace(0, 10, 100)
plt.figure()
plt.title("Malthusian model")
plt.xlim(0, 8)
plt.ylim(0, 1000)
plt.xlabel("Time")
plt.ylabel("Population")
plt.plot(X, MalthusianModel.population(1., 1., X), label="init=1, rate=1.")
plt.plot(X, MalthusianModel.population(1., 2., X), label="init=1, rate=2.")
plt.plot(X, MalthusianModel.population(1., 4., X), label="init=1, rate=4.")
plt.legend()
plt.show()