Page 1 of 1

CDF & PDF of stock price (geometric motion)

Posted: June 24th, 2009, 5:12 pm
by micha12
Could anyone please provide me with the formula of the cumulative distribution function of the stock price (geometric brownian motion)? So that one could calculate the probability that the stock price rises by more than 20% in 1 year, given 30% volatility and 10% drift, for example.I have only found the probability density function at http://www.sitmo.com/eq/157, but I need a CDF, and also the PDF formula seems to be giving incorrect results (or maybe I just made a mistake).VBA / C++ code of the CDF / PDF would also be great.

CDF & PDF of stock price (geometric motion)

Posted: June 24th, 2009, 9:09 pm
by LocalVolatility
If you want to calculate the probability of the (continuously compounded) return being bigger than x then you can directly work with the PDF / CDF of the yields. And you know that these are normally distributed with mean = mu * T and variance = sigma^2 T. So just go for NORMDIST in Excel or in C++ use e.g. the numerical recipes library.Alternatively if you have a level X and want to calculate the probability of ending up above that level then just re-use the Black-Scholes result that P{S_T > K} = N(d_-).