Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 145CB999D for ; Sat, 4 Feb 2012 06:36:27 +0000 (UTC) Received: (qmail 91940 invoked by uid 500); 4 Feb 2012 06:36:25 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 91564 invoked by uid 500); 4 Feb 2012 06:36:18 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 91550 invoked by uid 99); 4 Feb 2012 06:36:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Feb 2012 06:36:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Feb 2012 06:36:13 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6C0FB18EE43 for ; Sat, 4 Feb 2012 06:35:53 +0000 (UTC) Date: Sat, 4 Feb 2012 06:35:53 +0000 (UTC) From: =?utf-8?Q?S=C3=A9bastien_Brisard_=28Reopened=29_=28JIRA=29?= To: issues@commons.apache.org Message-ID: <1108879203.10933.1328337353444.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1667581376.37954.1322959359909.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Reopened] (MATH-718) inverseCumulativeProbability of BinomialDistribution returns wrong value for large trials. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-718?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] S=C3=A9bastien Brisard reopened MATH-718: ------------------------------------ Sorry, I only meant to postpone this issue. =20 > inverseCumulativeProbability of BinomialDistribution returns wrong value = for large trials. > -------------------------------------------------------------------------= ----------------- > > Key: MATH-718 > URL: https://issues.apache.org/jira/browse/MATH-718 > Project: Commons Math > Issue Type: Bug > Affects Versions: 2.2, 3.0 > Reporter: Yuji Uchiyama > Fix For: 3.1, 4.0 > > > The inverseCumulativeProbability method of the BinomialDistributionImpl c= lass returns wrong value for large trials. Following code will be reproduc= e the problem. > {{System.out.println(new BinomialDistributionImpl(1000000, 0.5).inverseCu= mulativeProbability(0.5));}} > This returns 499525, though it should be 499999. > I'm not sure how it should be fixed, but the cause is that the cumulative= Probability method returns Infinity, not NaN. As the result the checkedCum= ulativeProbability method doesn't work as expected. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira