Simulating death processes
Let
with the initial condition
See also: Death process
Here, we want to simulate them numerically to obtain some concrete sample paths like this one:
We can do so just like we did for the birth process.
That is, we first discretize the time variable so that we consider time steps with some small interval : .
Next, we exploit the Markov property of the birth process: Every death is the first death since the last one. That is, given at time , we may regard this as the "initial" condition for the next step: or . We can solve (Eq:Death0) (with replaced with ) to find with the "initial" condition . A bit of exercise gives
which is the probability that (i.e., no death during ). Accordingly, we have the probability that (i.e., one death during ) as
Thus, the algorithm for simulating the birth process is the following:
- Set
; set k = 0. - Generate a uniformly distributed random number
. - If
, then set ; Otherwise, set . - Update
, go to Step 2, and repeat.
Comments
Post a Comment