commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Sadowski <>
Subject Re: [Math] Question about "AbstractLeastSquaresOptimizer" code
Date Wed, 25 Apr 2012 13:41:24 GMT

> looking at various references, it seems that the definition of the error as
> errors[i] = FastMath.sqrt(covar[i][i]) * c;
> or
> errors[i] = FastMath.sqrt(covar[i][i]);
> is a matter of convention.
> I'm no statistician, but I gathered that the first expression is what
> is called Asymptotic Standard Error (see equations 34 and 35,
> Meanwhile, NR
> seems to favor the second expression. It would be nice to check what R
> (which is truly statistician's stuff) returns as parameters errors.

Thanks for looking into that.

Can we then agree that the current naming is not really clear?
Since we are not allowed to readily remove this method, the best solution
would be to update the Javadoc to make it clear what is done there, i.e.
cite the full definition of ASE (together with a reference).

Then, to further disambiguate, we could add a
  double[] getSigma()
method that will in effect return the (sqrt of the) diagonal elements of the
covariance matrix.

Is that OK?
If so, would you take care of that, S├ębastien?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message