powered by
Simulates a Geometric Brownian Motion process
simGBM( nsims = 1, S0 = 10, drift = 0, sigma = 0.2, T2M = 1, dt = 1/12, vec = TRUE )
A tibble of simulated values. tibble
tibble
Number of simulations. Defaults to 1. numeric
numeric
Spot price at t=0. numeric
Drift term in percentage. numeric
Standard deviation. numeric
Maturity in years. numeric
Time step in period e.g. 1/250 = 1 business day. numeric
Vectorized implementation. Defaults to TRUE. logical
logical
Philippe Cote
simGBM(nsims = 2, S0 = 10, drift = 0, sigma = 0.2, T2M = 1, dt = 1 / 12, vec = TRUE)
Run the code above in your browser using DataLab