Geometric Brownian motion

From The Right Wiki
(Redirected from Geometric Brownian Motion)
Jump to navigationJump to search
File:GBM2.png
For the simulation generating the realizations, see below.

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.

Technical definition: the SDE

A stochastic process St is said to follow a GBM if it satisfies the following stochastic differential equation (SDE):

dSt=μStdt+σStdWt

where Wt is a Wiener process or Brownian motion, and μ ('the percentage drift') and σ ('the percentage volatility') are constants. The former parameter is used to model deterministic trends, while the latter parameter models unpredictable events occurring during the motion.

Solving the SDE

For an arbitrary initial value S0 the above SDE has the analytic solution (under Itô's interpretation):

St=S0exp((μσ22)t+σWt).

The derivation requires the use of Itô calculus. Applying Itô's formula leads to

d(lnSt)=(lnSt)dSt+12(lnSt)dStdSt=dStSt121St2dStdSt

where dStdSt is the quadratic variation of the SDE.

dStdSt=σ2St2dWt2+2σSt2μdWtdt+μ2St2dt2

When dt0, dt converges to 0 faster than dWt, since dWt2=O(dt). So the above infinitesimal can be simplified by

dStdSt=σ2St2dt

Plugging the value of dSt in the above equation and simplifying we obtain

lnStS0=(μσ22)t+σWt.

Taking the exponential and multiplying both sides by S0 gives the solution claimed above.

Arithmetic Brownian Motion

The process for Xt=lnStS0, satisfying the SDE

dXt=(μσ22)dt+σdWt,

or more generally the process solving the SDE

dXt=mdt+vdWt,

where m and v>0 are real constants and for an initial condition X0, is called an Arithmetic Brownian Motion (ABM). This was the model postulated by Louis Bachelier in 1900 for stock prices, in the first published attempt to model Brownian motion, known today as Bachelier model. As was shown above, the ABM SDE can be obtained through the logarithm of a GBM via Itô's formula. Similarly, a GBM can be obtained by exponentiation of an ABM through Itô's formula.

Properties of GBM

The above solution St (for any value of t) is a log-normally distributed random variable with expected value and variance given by[2]

E(St)=S0eμt,
Var(St)=S02e2μt(eσ2t1).

They can be derived using the fact that Zt=exp(σWt12σ2t) is a martingale, and that

E[exp(2σWtσ2t)s]=eσ2(ts)exp(2σWsσ2s),0s<t.

The probability density function of St is:

fSt(s;μ,σ,t)=12π1sσtexp((lnslnS0(μ12σ2)t)22σ2t).
Derivation of GBM probability density function

To derive the probability density function for GBM, we must use the Fokker-Planck equation to evaluate the time evolution of the PDF:

pt+S[μ(t,S)p(t,S)]=122S2[σ2(t,S)p(t,S)],p(0,S)=δ(S)

where δ(S) is the Dirac delta function. To simplify the computation, we may introduce a logarithmic transform x=log(S/S0), leading to the form of GBM:

dx=(μ12σ2)dt+σdW

Then the equivalent Fokker-Planck equation for the evolution of the PDF becomes:

pt+(μ12σ2)px=12σ22px2,p(0,x)=δ(x)

Define V=μσ2/2 and D=σ2/2. By introducing the new variables ξ=xVt and τ=Dt, the derivatives in the Fokker-Planck equation may be transformed as:

tp=DτpVξpxp=ξpx2p=ξ2p

Leading to the new form of the Fokker-Planck equation:

pτ=2pξ2,p(0,ξ)=δ(ξ)

However, this is the canonical form of the heat equation. which has the solution given by the heat kernel:

p(τ,ξ)=14πτexp(ξ24τ)

Plugging in the original variables leads to the PDF for GBM:

p(t,S)=1S2πσ2texp{[log(S/S0)(μ12σ2)t]22σ2t}

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

dlog(S)=f(S)dS+12f(S)S2σ2dt=1S(σSdWt+μSdt)12σ2dt=σdWt+(μσ2/2)dt.

It follows that Elog(St)=log(S0)+(μσ2/2)t. This result can also be derived by applying the logarithm to the explicit solution of GBM:

log(St)=log(S0exp((μσ22)t+σWt))=log(S0)+(μσ22)t+σWt.

Taking the expectation yields the same result as above: Elog(St)=log(S0)+(μσ2/2)t.

Simulating sample paths

# Python code for the plot
import numpy as np
import matplotlib.pyplot as plt
mu = 1
n = 50
dt = 0.1
x0 = 100
np.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()

Multivariate version

GBM can be extended to the case where there are multiple correlated price paths.[3] Each price path follows the underlying process

dSti=μiStidt+σiStidWti,

where the Wiener processes are correlated such that E(dWtidWtj)=ρi,jdt where ρi,i=1. For the multivariate case, this implies that

Cov(Sti,Stj)=S0iS0je(μi+μj)t(eρi,jσiσjt1).

A multivariate formulation that maintains the driving Brownian motions Wti independent is

dSti=μiStidt+j=1dσi,jStidWtj,

where the correlation between Sti and Stj is now expressed through the σi,j=ρi,jσiσj terms.

Use in finance

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.[4] Some of the arguments for using GBM to model stock prices are:

  • The expected returns of GBM are independent of the value of the process (stock price), which agrees with what we would expect in reality.[4]
  • A GBM process only assumes positive values, just like real stock prices.
  • A GBM process shows the same kind of 'roughness' in its paths as we see in real stock prices.
  • Calculations with GBM processes are relatively easy.

However, GBM is not a completely realistic model, in particular it falls short of reality in the following points:

  • In real stock prices, volatility changes over time (possibly stochastically), but in GBM, volatility is assumed constant.
  • In real life, stock prices often show jumps caused by unpredictable events or news, but in GBM, the path is continuous (no discontinuity).

Apart from modeling stock prices, Geometric Brownian motion has also found applications in the monitoring of trading strategies.[5]

Extensions

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 (σ) is constant. If we assume that the volatility is a deterministic function of the stock price and time, this is called a local volatility model. A straightforward extension of the Black Scholes GBM is a local volatility SDE whose distribution is a mixture of distributions of GBM, the lognormal mixture dynamics, resulting in a convex combination of Black Scholes prices for options.[3][6][7][8] If instead we assume that the volatility has a randomness of its own—often described by a different equation driven by a different Brownian Motion—the model is called a stochastic volatility model, see for example the Heston model.[9]

See also

References

  1. Ross, Sheldon M. (2014). "Variations on Brownian Motion". Introduction to Probability Models (11th ed.). Amsterdam: Elsevier. pp. 612–14. ISBN 978-0-12-407948-9.
  2. Øksendal, Bernt K. (2002), Stochastic Differential Equations: An Introduction with Applications, Springer, p. 326, ISBN 3-540-63720-6
  3. 3.0 3.1 Musiela, M., and Rutkowski, M. (2004), Martingale Methods in Financial Modelling, 2nd Edition, Springer Verlag, Berlin.
  4. 4.0 4.1 Hull, John (2009). "12.3". Options, Futures, and other Derivatives (7 ed.).
  5. Rej, A.; Seager, P.; Bouchaud, J.-P. (January 2018). "You are in a drawdown. When should you start worrying?". Wilmott. 2018 (93): 56–59. arXiv:1707.01457. doi:10.1002/wilm.10646. S2CID 157827746.
  6. Fengler, M. R. (2005), Semiparametric modeling of implied volatility, Springer Verlag, Berlin. DOI https://doi.org/10.1007/3-540-30591-2
  7. Brigo, Damiano; Mercurio, Fabio (2002). "Lognormal-mixture dynamics and calibration to market volatility smiles". International Journal of Theoretical and Applied Finance. 5 (4): 427–446. doi:10.1142/S0219024902001511.
  8. Brigo, D, Mercurio, F, Sartorelli, G. (2003). Alternative asset-price dynamics and volatility smile, QUANT FINANC, 2003, Vol: 3, Pages: 173 - 183, ISSN 1469-7688
  9. Heston, Steven L. (1993). "A closed-form solution for options with stochastic volatility with applications to bond and currency options". Review of Financial Studies. 6 (2): 327–343. doi:10.1093/rfs/6.2.327. JSTOR 2962057. S2CID 16091300.

External links