Stochastic Processes#
Introduction#
Stochastic differential equations can model various physical, biological, and chemical systems. For example, the path traced by a molecule as it travels through a liquid or a gas can be modeled as a random walk, a type of stochastic differential equation. Stochastic Differential Equations (SDEs) are essential tools to simulate asset price dynamics. They are a top-down approach to simulating market behavior, where markers are treated as a macroscopic system.
In the context of financial systems, the random walk hypothesis postulates that the stock market prices evolve according to a random walk (so price changes are random) and thus cannot be predicted. However, there are dueling perspectives on the randomness of stock prices in the finance and economics community. Malkiel, in his book A Random Walk Down Wall Street, argues that asset prices typically exhibit signs of a random walk and that investors cannot consistently outperform market averages. On the other hand, in their book A Non-Random Walk Down Wall Street, Lo and MacKinlay present, several studies that suggest there are stock market pricing trends are somewhat predictable.
To better understand these arguments and build mathematical models that can be used to simulate market dynamics, we introduce analytical and numerical tools to solve SDEs. Our development follows chapters 3, 6, and Appendix B of [Glasserman, 2004]
Brownian Motion#
A Wiener Process (also often referred to as a standard Brownian motion) is a real-valued continuous-time stochastic process named after the Norbert Wiener for the study of one-dimensional Brownian motion:
Definition 22 (One-dimensional Wiener Process)
A Wiener process is a continuous one-dimensional stochastic process \(\left\{W\left(t\right), 0\leq{t}\leq{T}\right\}\) with the following properties:
W\(\left(0\right)\) = \(0\)
The increments \(\left\{W(t_{1}) - W(t_{o}),\dots, W(t_{k}) - W(t_{k-1})\right\}\) are independent for any \(k\) and \(0\leq{t_{o}}< t_{1} < \dots < t_{k} \leq{T}\).
The increment W(t) - W(s) \(\sim~N\left(0,t-s\right)\) for any \(0\leq{s}< t \leq{T}\), where \(N\left(0,t-s\right)\) denotes a normally distributed random variable with mean \(0\) and variance \(t - s\).
Ito Processes#
We are interested in random variables \(X(t)\) whose time evolution is governed by stochastic differential equations of the form (Ito Process or Ito Diffusion):
subject to the (known) constant initial condition \(X(0)\). Eqn. (47) is called an Ito Process or Ito Diffusion. The random variable \(X\in\mathbb{R}^{d}\), while the functions \(a:\mathbb{R}^{d}\times\mathbb{R}\rightarrow\mathbb{R}^{d}\) and \(b:\mathbb{R}^{d}\times\mathbb{R}\rightarrow\mathbb{R}^{d\times{m}}\), and \(W\) denotes an m-dimensional noise process. There are some additional conditions on \(a\) and \(b\) that we will talk about later.
Depending upon the form of \(a\) and \(b\), Eqn (47) can sometimes be solved analytically. However, in the general case, we’ll need to solve Eqn (47) numerically. Numerical approximations to the solution of Eqn (47) can be developed quickly; however, they have different levels of error depending upon the solution approach.
Ito’s Lemma#
A critical theoretical result that supports the construction of analytical solutions to stochastic differential equations is Ito’s Lemma; Ito’s Lemma, developed by K. Ito in 1951, is the analog of the Taylor series for stochastic systems:
Lemma 1 (Scalar Ito’s Lemma)
Let the behavior of the random variable \(X(t)\) be governed by the stochastic differential equation:
where \(dW(t)\) is a one-dimensional Wiener process and \(a\) and \(b\) are functions of \(X(t)\) and \(t\).
Let \(Y(t) = \phi\left(t,X(t)\right)\) be another process that is a function of \(X(t)\) and time \(t\), where \(\phi\left(t,X(t)\right)\) is twice differentiable with respect to \(X(t)\), and singly differentiable with respect to \(t\). Then, the process \(Y(t)\) is governed by the equation:
Discretization Approaches#
In general, we cannot develop an analytical solution to Eqn. (47); however, we can create an approximate numerical solution by discretization. This is an issue because sometimes we may want to use more sophisticated models for the price of XYZ
, for example, a stochastic volatility model that better captures changes in market conditions.
Euler-Maruyama Discretization Method#
The Euler-Maruyama (EM) method is an extension to stochastic differential equations (SDEs) of the Euler method used for approximating the solution of ordinary differential equations (ODEs). For the general scalar stochastic differential equation (Wiener noise):
The EM method gives the approximate solution:
where the step size \(h=t_{k+1} - t_{k}\) and \(Z(0,1)\) denotes a standard normal random variable. While the EM method is straightforward to implement, it has a poor overall accuracy with error on order \(\sqrt{h}\); thus, small step sizes are required to get accurate solutions.