Brownian Motion#

Simulate and visualise paths

# Author: Dialid Santiago <d.santiago@outlook.com>
# License: MIT
# Description: Simulate and visualise a Brownian Motion

from aleatory.processes import BrownianMotion
from aleatory.styles import qp_style

qp_style()  # Use quant-pastel-style

process = BrownianMotion()
fig = process.draw(n=100, N=200, figsize=(12, 7), dpi=150)
fig.show()
Brownian Motion, Monte Carlo Simulated Paths $\{{X_t, t \in [t_0, T]\}}$, $X_T$ Marginal
process = BrownianMotion()
fig = process.plot(n=100, N=10, figsize=(12, 7), dpi=250)
fig.show()
Brownian Motion
process = BrownianMotion()
fig = process.plot_paths_and_kernel(n=100, N=5)
fig.show()
Brownian Motion, Simulated Paths, Kernel

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

Gallery generated by Sphinx-Gallery