A stochastic differential equation (SDE) is a differential equation in which one or more of the terms is a stochastic process, leading to a solution that is itself a stochastic process. SDEs are used to model systems that are influenced by random noise or uncertainty, such as financial markets, physical systems subject to thermal fluctuations, and biological processes. The formulation originates from Brownian Motion and Ito Calculus.
They consist of both a deterministic component and a stochastic component. The deterministic part describes the average behavior of the system, while the stochastic part accounts for random fluctuations.
General Form
A typical SDE can be written in the form:
Where:
- is the drift term, representing the deterministic part of the equation.
- is the diffusion term, representing the intensity of the stochastic
- is the derivative of a Wiener process (or Brownian motion), representing the random noise.
Python Implementation
This example simulates multiple paths of an Ornstein-Uhlenbeck process, a common type of SDE used in various fields such as finance and physics.1 The Ornstein-Uhlenbeck process is defined by the SDE: