powered by
Simulates a Geometric Brownian Motion process
simGBM(S0 = 10, drift = 0, sigma = 0.2, T2M = 1, dt = 1/12)
Spot price at t=0
Drift term in percentage
Standard deviation
Maturity in years
Time step in period e.g. 1/250 = 1 business day.
A numeric vector of simulated values
# NOT RUN { simGBM(S0 = 10, drift = 0, sigma = 0.2, T2M = 1, dt = 1 / 12) # }
Run the code above in your browser using DataLab