Correlated Brownian Motions#

Simulate and visualise paths

  • Correlated Brownian Motions $\rho=-0.5$
  • Correlated Brownian Motions $\rho=-0.5$
# Author: Dialid Santiago <d.santiago@outlook.com>
# License: MIT
# Description: Simulate and visualise a two Correlated Brownian Motions

from aleatory.processes import CorrelatedBMs
from aleatory.styles import qp_style

qp_style()  # Use quant-pastel-style

p = CorrelatedBMs(rho=-0.5)

fig = p.plot_sample(n=500, figsize=(12, 8))
fig.show()

fig = p.plot_sample(n=200, coordinates=True, figsize=(12, 10))
fig.show()

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

Gallery generated by Sphinx-Gallery