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 EEC7C17ABE for ; Sat, 10 Jan 2015 01:17:34 +0000 (UTC) Received: (qmail 87242 invoked by uid 500); 10 Jan 2015 01:17:36 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 87134 invoked by uid 500); 10 Jan 2015 01:17:36 -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 86875 invoked by uid 99); 10 Jan 2015 01:17:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Jan 2015 01:17:36 +0000 Date: Sat, 10 Jan 2015 01:17:36 +0000 (UTC) From: "Phil Steitz (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MATH-1189) SimpleRegression may not report fit statistics correctly for perfect linear models 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-1189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Phil Steitz updated MATH-1189: ------------------------------ Description: The getSignificance(), getRSquare() and getR() methods can return infinite values when they should return 0, 1 and 1 respectively if the sum of squared errors is exactly 0. >From Jenkins test run: {code} java.lang.AssertionError: expected:<0.0> but was: at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:494) at org.junit.Assert.assertEquals(Assert.java:592) at org.apache.commons.math3.stat.regression.SimpleRegressionTest.testPerfect(SimpleRegressionTest.java:546) {code} was:The getSignificance(), getRSquare() and getR() methods can return infinite values when they should return 0, 1 and 1 respectively if the sum of squared errors is exactly 0. > SimpleRegression may not report fit statistics correctly for perfect linear models > ---------------------------------------------------------------------------------- > > Key: MATH-1189 > URL: https://issues.apache.org/jira/browse/MATH-1189 > Project: Commons Math > Issue Type: Bug > Affects Versions: 3.3 > Reporter: Phil Steitz > > The getSignificance(), getRSquare() and getR() methods can return infinite values when they should return 0, 1 and 1 respectively if the sum of squared errors is exactly 0. > From Jenkins test run: > {code} > java.lang.AssertionError: expected:<0.0> but was: > at org.junit.Assert.fail(Assert.java:88) > at org.junit.Assert.failNotEquals(Assert.java:743) > at org.junit.Assert.assertEquals(Assert.java:494) > at org.junit.Assert.assertEquals(Assert.java:592) > at org.apache.commons.math3.stat.regression.SimpleRegressionTest.testPerfect(SimpleRegressionTest.java:546) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)