Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6290

Simulate and plot geometric brownian motion

From Priyan Fernando <priyan.fernando@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Simulate and plot geometric brownian motion
Date 2011-11-09 11:30 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j9do82$b1r$1@smc.vnet.net> (permalink)

Show all headers | View raw


Hi

Wonder if you could please help me simulate and plot geometric brownian
motion (GBM)

E.g.  dS = mew * S dt  +   sigma * S *dX

What I am trying to do is generate in Mathematica the process for a
stock/share price based on GBM

Therefore:
dS is change in share price
S is the share price  (e.g. let S start from 100)
dt is the time step (e.g. in discrete version we could have dt=1/52 so
timestep is 1 week)
mew is the drift (e.g. mew = 5%)
sigma is the volatility (e.g. sigma = 10%)
dX is brownian motion (e.g. in discrete version, dX = Sqrt(dt) * N(0,1))

What I am trying to obtain is pairs (x,y) where x is the time step and y is
the share price. And then to be able to plot this.

Thanks for your help,
Priyan.

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Simulate and plot geometric brownian motion Priyan Fernando <priyan.fernando@gmail.com> - 2011-11-09 11:30 +0000
  Re: Simulate and plot geometric brownian motion "Dr. Wolfgang Hintze" <weh@snafu.de> - 2011-11-10 12:03 +0000

csiph-web