Simulation of the arithmetic brownian motion model.
Usage
ABM(N, t0, T, x0, theta, sigma, output = FALSE)
Arguments
N
size of process.
t0
initial time.
T
final time.
x0
initial value of the process at time t0.
theta
constant (Coefficient of drift).
sigma
constant positive (Coefficient of diffusion).
output
if output = TRUE write a output to an Excel (.csv).
Value
data.frame(time,x) and plot of process.
Details
The function ABM returns a trajectory 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 : $$dX(t) = theta * dt + sigma * dW(t)$$
with theta :drift coefficient and sigma :diffusion coefficient,W(t) is Wiener process.
See Also
ABMF creating flow of the arithmetic brownian motion model.