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 336D29684 for ; Tue, 12 Jun 2012 14:07:46 +0000 (UTC) Received: (qmail 52759 invoked by uid 500); 12 Jun 2012 14:07:44 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 52665 invoked by uid 500); 12 Jun 2012 14:07:44 -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 52512 invoked by uid 99); 12 Jun 2012 14:07:43 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2012 14:07:43 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id DBD7B1404B4 for ; Tue, 12 Jun 2012 14:07:43 +0000 (UTC) Date: Tue, 12 Jun 2012 14:07:43 +0000 (UTC) From: "Mikkel Meyer Andersen (JIRA)" To: issues@commons.apache.org Message-ID: <918531287.7756.1339510063903.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1938796121.27.1337446903619.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (MATH-790) Mann-Whitney U Test Suffers From Integer Overflow With Large Data Sets MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13293644#comment-13293644 ] Mikkel Meyer Andersen commented on MATH-790: -------------------------------------------- I agree - I just wanted to have it in writing :-). Thanks for this. > Mann-Whitney U Test Suffers From Integer Overflow With Large Data Sets > ---------------------------------------------------------------------- > > Key: MATH-790 > URL: https://issues.apache.org/jira/browse/MATH-790 > Project: Commons Math > Issue Type: Bug > Affects Versions: 3.0, Nightly Builds > Environment: Ubuntu Linux x64, Sun Java 6 > Reporter: James Pickering > Assignee: Mikkel Meyer Andersen > Priority: Minor > Labels: newbie, patch > Fix For: 3.1 > > Attachments: MannWhitnetUOVerflowPatch.diff > > Original Estimate: 1h > Remaining Estimate: 1h > > When performing a Mann-Whitney U Test on large data sets (the attached test uses two 1500 element sets), intermediate integer values used in calculateAsymptoticPValue can overflow, leading to invalid results, such as p-values of NaN, or incorrect calculations. > Attached is a patch, including a test, and a fix, which modifies the affected code to use doubles -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira