Simulating Geometric Brownian Motion in Python | Quantitative Finance Tutorial

Added:

Model Basics
Parameter Setup
Path Simulation
Data Processing
Visualization

Model Basics

0:00
Playing Section
  • 1

    Define geometric Brownian motion SDE.

  • 2

    Explain drift and volatility coefficients.

Intermediate Python programming skills, particularly using scientific computing libraries like NumPy for array operations and Matplotlib for data visualization.
Basic probability and statistics, specifically concepts like the normal distribution, random walks, and mean/variance.
An introductory understanding of continuous-time stochastic processes, particularly the standard Brownian Motion (Wiener process).
Fundamental quantitative finance concepts, such as asset returns, drift, volatility, and the assumption of log-normal stock price distributions.
Applying simulated Geometric Brownian Motion paths to price derivative contracts using Monte Carlo simulation (e.g., pricing European Options).
Parameter estimation and calibration techniques to extract historical drift and volatility parameters from real-world financial market data.
Exploring more advanced stochastic asset pricing models that address the limitations of GBM, such as the Heston Stochastic Volatility model or Jump-Diffusion models.
Implementing financial risk management frameworks, such as calculating Value at Risk (VaR) and Expected Shortfall (ES) using simulated portfolios.
44.4K views992likes8:48@QuantPyOriginal Release: 2021-09-15

Geometric Brownian motion is a stochastic process used to model stock prices, where the logarithm of the stock price follows a normal distribution with mean μt and variance σ²t; it can be simulated in Python using numpy by calculating the drift term (μ - σ²/2) × dt, generating random normal samples scaled by √(dt), and applying the cumulative product to accumulate changes over time, with the final stock price given by S₀ × exp[(μ - σ²/2) × t + σ × W(t)], where W(t) represents the Brownian motion component.