Take the 2-minute tour ×
Quantitative Finance Stack Exchange is a question and answer site for finance professionals and academics. It's 100% free, no registration required.

Lets say I want to find out the area under the graph of normal distribution curve, between X1=standard deviation of -0.5 and X2 = standard deviation of 0.5. Is there a formula for this?

Case study: find the percentage chance of a stock remaining within +0.5 and -0.5 standard deviations within one trading day, given the daily implied volatility of that stock.

share|improve this question
add comment

2 Answers 2

up vote 5 down vote accepted

This is simply the integral of the pdf from -0.5 to 0.5 (scaled to the SD of the distribution), also known as the cumulative distribution function or cdf. The cdf(x) function is indicated on the following wikipedia link: Normal Distribution.

The normal cdf(x) function computes the integral on [-Infinity, x], so to compute on your interval [x1,x2], is simply cdf(x2) - cdf(x1).

So if you meant [-.5, +.5] SDs,then would evaluate cdf(0.5*sd) - cdf(-0.5*sd).

share|improve this answer
1  
I should note that the above assumes the mean is 0. If not 0 then add the mean in the arguments for the cdf. –  Jonathan Shore May 24 '11 at 12:01
    
... and for anything finance related, the time series is never stationary, and this technique is only relevant to stationary time series. –  Contango May 25 '11 at 10:48
add comment

The source code for the CDF is listed in the book "The Complete Guide to Option Pricing Formulas - 2nd. Edition - Espan Gaarder Haug, Ph.D (McGraw-Hill, 2006, ISBN 9780071389976)".

share|improve this answer
    
You can also find implementations in QuantLib and many other open source packages. –  Jonathan Shore May 24 '11 at 12:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.