commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luc Maisonobe (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (MATH-392) calculateYVariance in OLS/GLSMultipleLinearRegression uses residuals not Y vars
Date Wed, 23 Mar 2011 20:15:05 GMT

     [ https://issues.apache.org/jira/browse/MATH-392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Luc Maisonobe closed MATH-392.
------------------------------


Closing issue as it was included in version 2.2, which has been released

> calculateYVariance in OLS/GLSMultipleLinearRegression uses residuals not Y vars
> -------------------------------------------------------------------------------
>
>                 Key: MATH-392
>                 URL: https://issues.apache.org/jira/browse/MATH-392
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 2.1
>            Reporter: Mark Devaney
>            Priority: Minor
>             Fix For: 2.2
>
>         Attachments: patch
>
>
> Implementation of OLS/GLSMultipleLinearRegression is:
> @Override
> 173        protected double calculateYVariance() {
> 174            RealVector residuals = calculateResiduals();
> 175            return residuals.dotProduct(residuals) /
> 176                   (X.getRowDimension() - X.getColumnDimension());
> 177        }
> This gives variance of residuals not variance of the dependent (Y) variable as the documentation
suggests.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message