Simulate Geometric Brownian Motion with Excel

Learn about Geometric Brownian Motion and download a spreadsheet

Stock prices are often modeled as the sum of

  • the deterministic drift, or growth, rate
  • and a random number with a mean of 0 and a variance that is proportional to dt

This is known as Geometric Brownian Motion, and is commonly model to define stock price paths.  It is defined by the following stochastic differential equation.

Geometric Brownian Motion

Equation 1

Weiner Process

Equation 2

St is the stock price at time t, dt is the time step, μ is the drift, σ is the volatility,  Wt is a Weiner process, and ε is a normal distribution with a mean of zero and standard deviation of one .

Substituting Equation 2 into Equation 1 gives

Geometric Brownian Motion

Equation 3

Hence  dSt is the sum of a general trend, and a term that represents uncertainty.

Drift and Uncertainty in Geometric Brownian Motion

Simulate Geometric Brownian Motion in Excel

Converting Equation 3 into finite difference form gives

Geometric Brownian Motion Finite Difference

Equation 4

Bear in mind that ε is a normal distribution with a mean of zero and standard deviation of one. This can be represented in Excel by NORM.INV(RAND(),0,1).

The spreadsheet linked to at the bottom of this post implements Geometric Brownian Motion in Excel using Equation 4.

Geometric Brownian Motion Excel

Simulate Geometric Brownian Motion in Excel

4 Responses to "Simulate Geometric Brownian Motion with Excel"

  1. Narges says:

    I need a free software for ornstein uhlembek, geometric Geometric Brownian Motion, jump diffusion, regime switching and mean reverting method

  2. Edouard says:

    Have you tried the R library sde?

  3. Coco says:

    Hi Samir,
    Wonderful website!
    I’m trying to do a Brownian motion code for VBA.
    But something doesn’t work.
    Could you please help me?
    Thanks in advance for your comments.

Leave a Reply

Submit Comment
What is 2 + 13 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)
© 2014 Invest Excel. All rights reserved. XHTML / CSS Valid.