Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 9053 invoked from network); 17 Jun 2010 11:54:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Jun 2010 11:54:32 -0000 Received: (qmail 86465 invoked by uid 500); 17 Jun 2010 09:07:51 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 85870 invoked by uid 500); 17 Jun 2010 09:07:48 -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 85845 invoked by uid 99); 17 Jun 2010 09:07:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jun 2010 09:07:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jun 2010 09:07:45 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5H97Nxp006462 for ; Thu, 17 Jun 2010 09:07:24 GMT Message-ID: <4136738.52021276765643826.JavaMail.jira@thor> Date: Thu, 17 Jun 2010 05:07:23 -0400 (EDT) From: "Dimitri Pourbaix (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (MATH-377) weight versus sigma in AbstractLeastSquares MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org weight versus sigma in AbstractLeastSquares ------------------------------------------- Key: MATH-377 URL: https://issues.apache.org/jira/browse/MATH-377 Project: Commons Math Issue Type: Bug Affects Versions: 2.1 Reporter: Dimitri Pourbaix Fix For: 2.2 In AbstractLeastSquares, residualsWeights contains the WEIGHTS assigned to each observation. In the method getRMS(), these weights are multiplicative as they should. unlike in getChiSquare() where it appears at the denominator! If the weight is really the weight of the observation, it should multiply the square of the residual even in the computation of the chi2. Once corrected, getRMS() can even reduce public double getRMS() {return Math.sqrt(getChiSquare()/rows);} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.