Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 11668 invoked from network); 25 Sep 2008 01:38:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Sep 2008 01:38:42 -0000 Received: (qmail 45961 invoked by uid 500); 25 Sep 2008 01:38:35 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 45828 invoked by uid 500); 25 Sep 2008 01:38:35 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 45728 invoked by uid 99); 25 Sep 2008 01:38:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Sep 2008 18:38:34 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.233.170.184] (HELO rn-out-0910.google.com) (64.233.170.184) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Sep 2008 01:37:33 +0000 Received: by rn-out-0910.google.com with SMTP id m69so87150rnd.1 for ; Wed, 24 Sep 2008 18:38:05 -0700 (PDT) Received: by 10.151.50.11 with SMTP id c11mr12011917ybk.214.1222306685369; Wed, 24 Sep 2008 18:38:05 -0700 (PDT) Received: from ?192.168.1.184? ( [70.91.8.169]) by mx.google.com with ESMTPS id 6sm8500239ywi.1.2008.09.24.18.38.03 (version=SSLv3 cipher=RC4-MD5); Wed, 24 Sep 2008 18:38:04 -0700 (PDT) Message-ID: <48DAEB77.9070005@gmail.com> Date: Wed, 24 Sep 2008 21:37:59 -0400 User-Agent: Thunderbird 2.0.0.16 (X11/20080707) MIME-Version: 1.0 To: Commons Users List Subject: Re: [MATH] Strange issue with FDistribution References: <1222246132.5772.4.camel@logos> In-Reply-To: <1222246132.5772.4.camel@logos> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit From: Phil Steitz X-Virus-Checked: Checked by ClamAV on apache.org This looks like a bug. At least it is a documentation bug. Can you pls open a JIRA ticket so we do not lose track of it. Follow the instructions here http://commons.apache.org/math/issue-tracking.html Thanks for reporting this. Phil J�rg Henning wrote: > Hello, > > I'm relatively new to this kind of stuff, so pardon me, if I get some > things wrong. > > We are using the FDistributionImpl from the commons.math project to do > some statistical calculations, namely receiving the upper and lower > boundaries of a confidence interval. Everything is working fine and the > results are matching our reference calculations. > > However, the FDistribution behaves strange if a > denominatorDegreeOfFreedom of 2 is used, with an alpha-value of 0.95. > This results in an IllegalArgumentsException, stating: > > Invalid endpoint parameters: lowerBound=0.0 initial=Infinity > upperBound=1.7976931348623157E308 > > coming from > org.apache.commons.math.analysis.UnivariateRealSolverUtils.bracket > > The problem is the 'initial' parameter to that function, wich is > POSITIVE_INFINITY and therefore not within the boundaries. I already > pinned down the problem to the FDistributions getInitialDomain()-method, > wich goes like: > > return getDenominatorDegreesOfFreedom() / > (getDenominatorDegreesOfFreedom() - 2.0); > > Obviously, in case of denominatorDegreesOfFreedom == 2, this must lead > to a division-by-zero, resulting in POSTIVE_INFINITY. The result of this > operation is then directly passed into the > UnivariateRealSolverUtils.bracket() - method as second argument. > > > Can someone explain what this behaviour is about? Why should a > degreeOfFreedom of 2 not be allowed? Shouldn't this fact be mentioned in > the API-documentation? Is there a possible workaround? > > Thanks in advance, > > > joerx > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org