Simulating birth-death processes
The birth-death process with birth and death rates and , respectively, and initial population size is characterized by the following differential-difference equations for the probability mass functions :
with the initial condition
See Combining birth and death processes for the detail of how to analytically solve the above differential-difference equations. Here, we show how to simulate this process numerically as we did for the birth process and death process; See also:
First, we discretize the time steps with some small interval : .
Next, we exploit the Markov property of the birth-death process: Every birth or death is the first birth or death since the last one. That is, given at time , we may regard this as the "initial" condition for the next step: or or .
Unlike the simple birth or death process, we have three mutually disjoint events. That is, we assume that during the short period , one of the following occurs: one birth , one death , or nothing . Thus, we have the following differential-difference equations with
Solving these, we have
Note that
Based on this, we have the following algorithm for simulating the birth-death process:
- Set
; set . - Generate a uniformly distributed random number
. - If
, then ; - Otherwise, if
, then ; - Otherwise,
. - Update
, go to Step 2, and repeat.
A sample path obtained from such simulations is shown below:
A sample path of a birth-death process with birth rate and death rate .
Comments
Post a Comment