0
$\begingroup$

Possible Duplicate:
Evaluate definite interval of normal distribution

Title was changed and question edited bellow.

How is possible that a probability density function defined as following can return some values that are higher than 1 ?! Is there any error in my definition of this pdf ?

float gauss_pdf = exp( -pow(x-mean, 2.0) / (2.0 * pow(sigma, 2.0)) )   /   ( sigma * sqrt(2*M_PI) );

For example, for x = 0.0908182, mean = 0.0552096 and sigma = 0.0241953, it will return 5.583

EDIT:

Well, what I need is the corresponding probability, thus I need to compute the CDF (i.e. P(X < x)) for that mean and sigma. How can I compute the CDF ?

$\endgroup$
1

0

Browse other questions tagged or ask your own question.