commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz" <phil.ste...@gmail.com>
Subject Re: We find a bug in NormalDistributionImpl
Date Sun, 27 May 2007 02:34:19 GMT
I get 48.73326433872124 returned as the requested quantile.  That
looks correct to me, given mu = 50, sigma = 5.  (50 -
48.73326433872124) / 5  = 0.253347132 and -0.253347132 is 0.4 on the
std normal cumulative dist.   What do you get?

Phil

On 5/25/07, rakesh <rakesh@adventnet.com> wrote:
>
>
>
>
>
>                                                                                     <%@
page import ="org.apache.commons.math.distribution.NormalDistributionImpl" %>
> <%
>         //double p=0;
>         //double p=0.5;
>         //double p=1;
>         double p=0.4;
>         NormalDistributionImpl  nd = new NormalDistributionImpl(50,5);
>         double icp = nd.inverseCumulativeProbability(p);
>         out.println(icp);
> %>
>
> why the above programme does not work for p=0.4?
>                  Rakesh.P    &   SathyaJothi.A
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message