itointegral | R Documentation |
Ito integral of a stochastic process w.r.t. another
itointegral(G, B)
G |
numeric vector containing the integrator |
B |
numeric vector, same length as G, containing the integrand |
A numeric vector, same length as G, giving the "running integral", i.e. the Ito integral as a function of the upper limit.
## Integration of Brownian motion w.r.t. itself
times <- seq(0,10,0.01)
BM <- rBM(times)
I <- itointegral(BM,BM)
matplot(times,cbind(I,0.5*BM^2-0.5*times),type="l",xlab="Time",ylab="Ito integral",
main="Integral of B.M. w.r.t itself")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.