A geometric Brownian motion (GBM) (also known as exponential Brownian motion) is a continuous-time stochastic process in which the logarithm of the randomly varying quantity follows a Brownian motion (also called a Wiener process) with drift.[1] It is an important example of stochastic processes satisfying a stochastic differential equation (SDE); in particular, it is used in mathematical finance to model stock prices in the Black–Scholes model.
A stochastic process St is said to follow a GBM if it satisfies the following stochastic differential equation (SDE):
dSt=\muStdt+\sigmaStdWt
where
Wt
\mu
\sigma
The former parameter is used to model deterministic trends, while the latter parameter models unpredictable events occurring during the motion.
For an arbitrary initial value S0 the above SDE has the analytic solution (under Itô's interpretation):
St=S0\exp\left(\left(\mu-
\sigma2 | |
2 |
\right)t+\sigmaWt\right).
The derivation requires the use of Itô calculus. Applying Itô's formula leads to
d(lnSt)=(lnSt)'dSt+
1 | |
2 |
(lnSt)''dStdSt =
dSt | - | |
St |
1 | |
2 |
1 | ||||||
|
dStdSt
where
dStdSt
dStdSt=\sigma2
2 | |
S | |
t |
d
2 | |
W | |
t |
+2\sigma
2 | |
S | |
t |
\mudWtdt+\mu2
2 | |
S | |
t |
dt2
When
dt\to0
dt
dWt
d
2 | |
W | |
t |
=O(dt)
dStdSt=\sigma2
2 | |
S | |
t |
dt
Plugging the value of
dSt
ln
St | |
S0 |
=\left(\mu-
\sigma2 | |
2 |
\right)t+\sigmaWt.
Taking the exponential and multiplying both sides by
S0
The process for
Xt=ln
St | |
S0 |
dXt=\left(\mu-
\sigma2 | |
2 |
\right)dt+\sigmadWt,
or more generally the process solving the SDE
dXt=mdt+vdWt,
where
m
v>0
X0
The above solution
St
\operatorname{E}(St)=
\mut | |
S | |
0e |
,
\operatorname{Var}(St)=
2e | |
S | |
0 |
2\mu\left(
\sigma2t | |
e |
-1\right).
They can be derived using the fact that
Zt=\exp\left(\sigmaWt-
1 | |
2 |
\sigma2t\right)
\operatorname{E}\left[\exp\left(2\sigmaWt-\sigma2t\right)\midl{F}s\right]=
\sigma2(t-s) | |
e |
\exp\left(2\sigmaWs-\sigma2s\right), \forall0\leqs<t.
The probability density function of
St
f | |
St |
(s;\mu,\sigma,t)=
1 | |
\sqrt{2\pi |
{\partialp\over{\partialt}}+{\partial\over{\partialS}}[\mu(t,S)p(t,S)]={1\over{2}}{\partial2\over{\partialS2
where
\delta(S)
x=log(S/S0)
dx=\left(\mu-{1\over{2}}\sigma2\right)dt+\sigmadW
Then the equivalent Fokker-Planck equation for the evolution of the PDF becomes:
{\partialp\over{\partialt}}+\left(\mu-{1\over{2}}\sigma2\right){\partialp\over{\partialx}}={1\over{2}}\sigma2{\partial2p\over{\partialx2
Define
V=\mu-\sigma2/2
D=\sigma2/2
\xi=x-Vt
\tau=Dt
\begin{aligned}\partialtp&=D\partial\taup-V\partial\xip\ \partialxp&=\partial\xip
2 | |
\ \partial | |
x |
p&=
2 | |
\partial | |
\xi |
p\end{aligned}
Leading to the new form of the Fokker-Planck equation:
{\partialp\over{\partial\tau}}={\partial2p\over{\partial\xi2
However, this is the canonical form of the heat equation. which has the solution given by the heat kernel:
p(\tau,\xi)={1\over{\sqrt{4\pi\tau}}}\exp\left(-{\xi2\over{4\tau}}\right)
Plugging in the original variables leads to the PDF for GBM:
p(t,S)={1\over{S\sqrt{2\pi\sigma2t}}}\exp\left\{-{\left[log(S/S0)-\left(\mu-{1\over{2}}\sigma2\right)t\right]2\over{2\sigma2t}}\right\}
When deriving further properties of GBM, use can be made of the SDE of which GBM is the solution, or the explicit solution given above can be used. For example, consider the stochastic process log(St). This is an interesting process, because in the Black–Scholes model it is related to the log return of the stock price. Using Itô's lemma with f(S) = log(S) gives
\begin{alignat}{2} dlog(S)&=f'(S)dS+
1 | |
2 |
f''(S)S2\sigma2dt\\[6pt] &=
1 | |
S |
\left(\sigmaSdWt+\muSdt\right)-
1 | |
2 |
\sigma2dt\\[6pt] &=\sigmadWt+(\mu-\sigma2/2)dt. \end{alignat}
\operatorname{E}log(St)=log(S
2/2)t | |
0)+(\mu-\sigma |
This result can also be derived by applying the logarithm to the explicit solution of GBM:
\begin{alignat}{2} log(St)&=log\left(S0\exp\left(\left(\mu-
\sigma2 | |
2 |
\right)t+\sigmaWt\right)\right)\\[6pt] &=log(S0)+\left(\mu-
\sigma2 | |
2 |
\right)t+\sigmaWt. \end{alignat}
\operatorname{E}log(St)=log(S
2/2)t | |
0)+(\mu-\sigma |
import numpy as npimport matplotlib.pyplot as plt
mu = 1n = 50dt = 0.1x0 = 100np.random.seed(1)
sigma = np.arange(0.8, 2, 0.2)
x = np.exp((mu - sigma ** 2 / 2) * dt + sigma * np.random.normal(0, np.sqrt(dt), size=(len(sigma), n)).T)x = np.vstack([np.ones(len(sigma)), x])x = x0 * x.cumprod(axis=0)
plt.plot(x)plt.legend(np.round(sigma, 2))plt.xlabel("$t$")plt.ylabel("$x$")plt.title("Realizations of Geometric Brownian Motion with different variances\n $\mu=1$")plt.show
GBM can be extended to the case where there are multiple correlated price paths.[2]
Each price path follows the underlying process
i | |
dS | |
t |
=\mui
idt | |
S | |
t |
+\sigmai
i, | |
S | |
t |
where the Wiener processes are correlated such that
i | |
\operatorname{E}(dW | |
t |
j) | |
dW | |
t |
=\rhoi,jdt
\rhoi,i=1
For the multivariate case, this implies that
i, | |
\operatorname{Cov}(S | |
t |
j) | |
S | |
t |
=
i | |
S | |
0 |
j | |
S | |
0 |
(\mui+\muj)t | |
e |
\rhoi,j\sigmai\sigmajt | |
\left(e |
-1\right).
A multivariate formulation that maintains the driving Brownian motions
i | |
W | |
t |
i | |
dS | |
t |
=\mui
idt | |
S | |
t |
+
d | |
\sum | |
j=1 |
\sigmai,j
j, | |
S | |
t |
where the correlation between
i | |
S | |
t |
j | |
S | |
t |
\sigmai,j=\rhoi,j\sigmai\sigmaj
See main article: Black–Scholes model. Geometric Brownian motion is used to model stock prices in the Black–Scholes model and is the most widely used model of stock price behavior.[3]
Some of the arguments for using GBM to model stock prices are:
However, GBM is not a completely realistic model, in particular it falls short of reality in the following points:
Apart from modeling stock prices, Geometric Brownian motion has also found applications in the monitoring of trading strategies.[4]
In an attempt to make GBM more realistic as a model for stock prices, also in relation to the volatility smile problem, one can drop the assumption that the volatility (
\sigma