Login  Register

incremental statistics

Posted by Peter Caspers-4 on Aug 20, 2015; 3:27pm
URL: http://quantlib.414.s1.nabble.com/incremental-statistics-tp16828.html

Hi,

here

https://github.com/lballabio/quantlib/blob/master/QuantLib/ql/math/statistics/incrementalstatistics.cpp#L56

is a check for a negative variance estimation. Indeed I observe this
happens due to numerical issues sometimes. However, if this is the
only source for the exception to be thrown, couldn't we just omit the
check and return the value or if you want max ( v, 0.0 ) ?

In applications it is somewhat unexpected to get an exception when
just asking for a variance estimation on valid data.

Thank you
Peter

------------------------------------------------------------------------------
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev