Stochastic Logistic Growth Model
Stochastic Logistic Growth Model
slgm[r_, xmax_, x0_, σ_] := ItoProcess[ⅆx[t] == x[t](1 - (x[t]/xmax))(r ⅆt + σ ⅆw[t]), x[t], {x, x0}, t, wWienerProcess[]]detsol[r_, xmax_, x0_] := Function[t, (E^r t x0 /(E^r t - 1) (x0/xmax) + 1)]stochsol[r_, xmax_, x0_, σ_] := RandomFunction[slgm[r, xmax, x0, σ], {0, 6, 0.005}, 10, Method -> "KloedenPlatenSchurz"]With[{r = 1, xmax = 4, x0 = 1, σ = 1 / 2}, Show[ListLinePlot[stochsol[r, xmax, x0, σ]], Plot[detsol[r, xmax, x0][t], {t, 0, 6}, PlotStyle -> Directive[Orange, Thick]]]]