Message Boards Message Boards

Implementing my equation into ito process format?

Posted 2 years ago

I have the stochastic gompertz model equation of dX(t)=(ax(t)-bx(t)log(x(t))dt+cx(t)*dwt. With a=0.1,b=0.3 and c=0.1 and x0=1. I have tried implementing it into the ito process see attached and it comes up with error. Was just wondering what I am doing wrong? Thanks

POSTED BY: George Hendry
Posted 2 years ago

The problem is a simple syntax, code typing, issue. It is Log, not log. Also, if you want the plot to change between evaluations you should make the definition of randomFunc to be a delayed assignment.

proc = ItoProcess[
    \[DifferentialD]x[t] ==  0.1 x[t] - 0.3 Log[x[t]] \[DifferentialD]t + 0.1*x[t] \[DifferentialD]w[t],
    x[t],
    {x, 1}, t,
    w \[Distributed] WienerProcess[]
]

randomFunc := RandomFunction[proc, {0., 5., 0.01}]

ListLinePlot[randomFunc, Filling -> Axis]

enter image description here

POSTED BY: Hans Milton
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