Skip to content

Latest commit

 

History

History

Random Processes

Random Processes in Python

Random Walk plot using Python, MatplotLib and NumPy

Animation of a simple random walk by using the MatplotLib Animation API. Source code in file:

  • random_walk_animation.ipynb: the source code for the random walk simulation and animation

Brownian Motion plot using Python, MatplotLib and NumPy

Illustration of the Brownian Motion construction from a simple random walk using the Donsker's Invariance Principle. Source code in file:

  • brownian_motion_animation.ipynb

Brownian Motion with drift and volatility using Python, MatplotLib and NumPy

Extending the bare Brownian Motion with volatility and drift. We illustrate these two proparties with an animated visualization using Matplotlib's Animation API. Source code:

  • drifted_brownian_motion.ipynb

Geometric Brownian Motion using Python, MatplotLib and NumPy

Transforming the Drifted Brownian Motion from a process with additive increments to a process with multiplicative increments. This is well suited for modelling stock price data. We analyze and animate one interesting property of the process: for certain conditions, it has zero mean and infinite variance. Source code:

  • geometric_brownian_motion.ipynb