Note
Go to the end to download the full example code.
Geometric Brownian Motion#
Simulate and visualise paths
# Author: Dialid Santiago <d.santiago@outlook.com>
# License: MIT
# Description: Simulate and visualise a Geometric Brownian Motion
from aleatory.processes import GBM
process = GBM()
fig = process.draw(n=100, N=200, figsize=(12, 7), dpi=150)
fig.show()
![Geometric Brownian Motion $X(\mu=1.0, \sigma=0.5)$, Monte Carlo Simulated Paths $\{{X_t, t \in [t_0, T]\}}$, $X_T$ Marginal](../_images/sphx_glr_plot_gbm_001.png)
process = GBM()
fig = process.plot(n=100, N=10, figsize=(12, 7), dpi=250)
fig.show()

Total running time of the script: (0 minutes 0.670 seconds)