Message Boards Message Boards

0
|
5267 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Model the birth death process with delay?

Posted 6 years ago

Hi All,

I would like to implement Birth Death Process with Delay.

Here is the code for Birth Death Process without Delay.

SeedRandom@2
With[{A = 5, initialPop = 10}, sim = NestList[(

      \[CapitalDelta]t = 
       RandomVariate@ExponentialDistribution[A #[[2]]];

      {#[[1]] + \[CapitalDelta]t, #[[2]] + 1}

      ) &, {0, initialPop}, 10]];

ListLinePlot[sim, Epilog -> {Red, PointSize[Medium], Point[sim]}, 
 Frame -> True, PlotTheme -> "Detailed", 
 FrameLabel -> {"Time", "Population"}, ImageSize -> Large, 
 InterpolationOrder -> 0]

enter image description here

I don't know how to implement if there is a delay this process with delay. I would like to extend this for Birth-Death process later.

Here is the algorithm for Birth Death Process with Delay.

enter image description here

Any Suggestion. Cross posted at mathematica.stackexchange.com

POSTED BY: Okkes Dulgerci
Posted 6 years ago
POSTED BY: Okkes Dulgerci
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract