commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28829] New: - [bug report] Commons-Math binomial distribution method returns 1 when it should return 0
Date Fri, 07 May 2004 14:08:45 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28829>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28829

[bug report] Commons-Math binomial distribution method returns 1 when it should return 0

           Summary: [bug report] Commons-Math binomial distribution method
                    returns 1 when it should return 0
           Product: Commons
           Version: unspecified
          Platform: All
               URL: http://http://
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Math
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: mdiggory@latte.harvard.edu


I wanted to open a ticket for this issue so we can address it formally.

-Mark.

-------- Original Message --------

Dear Mark,

I'm not sure if you're the right person to inform about this, but we believe
there is an error in the results produced by the
org.apache.commons.math.distribution.BinomialDistributionImpl.cumulativeProbability(int
numberOfSuccesses) method.

When the probability of success is zero, and numberOfSuccesses is greater than
zero, we would expect the cumulative probability to be zero. The result returned
is, however, one.

org.apache.commons.math.distribution.BinomialDistributionImpl.probability(int
numberOfSuccesses) behaves as expected.

Obviously this is very easy to workaround, but I thought the development team
should know.

After significant testing on these two functions we are preparing to use the
commons math package in a production application, and would like to thank you
and the other members of the team for starting work on this project. We
understand that the library is in development, and despite the extra integration
work that will be required by us as the library develops, the software you have
developed is already of great use.

Best regards,

David Morgan-Brown
Deutsche Bank

--

This e-mail may contain confidential and/or privileged information. If you are
not the intended recipient (or have received this e-mail in error) please notify
the sender immediately and destroy this e-mail. Any unauthorized copying,
disclosure or distribution of the material in this e-mail is strictly forbidden.



-- 
Mark Diggory
Software Developer
Harvard MIT Data Center
http://www.hmdc.harvard.edu

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


Mime
View raw message