[
https://issues.apache.org/jira/browse/MATH-392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892406#action_12892406
]
Luc Maisonobe commented on MATH-392:
------------------------------------
There was an error in a file committed this afternoon. It should be OK now.
> 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
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.