You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sebb <se...@gmail.com> on 2015/01/12 19:46:08 UTC
[MATH] SimpleRegression - inconsistent use of sumXX?
External access to sumXX is via getXSumSquares()
This returns NaN if n < 2.
However there are some methods in the class that reference sumXX directly.
They don't all check for n < 2
For example:
getSumSquaredErrors
getInterceptStdErr
getSlopeStdErr
getRegressionSumSquares
regress(int[] variablesToInclude)
Are any of these bugs?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [MATH] SimpleRegression - inconsistent use of sumXX?
Posted by Phil Steitz <ph...@gmail.com>.
On 1/12/15 11:46 AM, sebb wrote:
> External access to sumXX is via getXSumSquares()
> This returns NaN if n < 2.
>
> However there are some methods in the class that reference sumXX directly.
> They don't all check for n < 2
>
> For example:
>
> getSumSquaredErrors
>
> getInterceptStdErr
>
> getSlopeStdErr
>
> getRegressionSumSquares
>
> regress(int[] variablesToInclude)
>
> Are any of these bugs?
No, see testNaNs.
Phil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org