The former is used to model deterministic trends, while the latter term is often used to model a set of unpredictable events occurring during this motion.
Solving the SDE
For an arbitrary initial value S0 the above SDE has the analytic solution (under Itô's interpretation):
To derive the probability density function for GBM, we must use the Fokker-Planck equation to evaluate the time evolution of the PDF:
where is the Dirac delta function. To simplify the computation, we may introduce a logarithmic transform , leading to the form of GBM:
Then the equivalent Fokker-Planck equation for the evolution of the PDF becomes:
Define and . By introducing the new variables and , the derivatives in the Fokker-Planck equation may be transformed as:
Leading to the new form of the Fokker-Planck equation:
However, this is the canonical form of the heat equation. which has the solution given by the heat kernel:
Plugging in the original variables leads to the PDF for GBM:
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
It follows that .
This result can also be derived by applying the logarithm to the explicit solution of GBM:
Taking the expectation yields the same result as above: .
Simulating sample paths
# Python code for the plotimportnumpyasnpimportmatplotlib.pyplotaspltmu=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()
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:
The expected returns of GBM are independent of the value of the process (stock price), which agrees with what we would expect in reality.[3]
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).
Extensions
In an attempt to make GBM more realistic as a model for stock prices, 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. 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.