
ABMF(N, M, t0, T, x0, theta, sigma, output = FALSE)
t0
.Coefficient of drift
).Coefficient of diffusion
).output = TRUE
write a output
to an Excel (.csv).ABMF
returns a flow of the Arithmetic Brownian motion starting at x0
at time t0
, than the discretization dt = (T-t0)/N
.
The stochastic differential equation of the Arithmetic Brownian motion is : theta :drift coefficient
and sigma :diffusion coefficient
, W(t)
is Wiener process.ABM
creating the arithmetic brownian motion model.## Flow of Arithmetic Brownian Motion Model
## dX(t) = 3 * dt + 2 * dW(t) ; x0 = 0 and t0 = 0
ABMF(N=1000,M=5,t0=0,T=1,x0=0,theta=3,sigma=2)
Run the code above in your browser using DataLab