Mathijs Vogelzang created MATH-1421:
---------------------------------------
Summary: WilsonConfidenceInterval returning negative values
Key: MATH-1421
URL: https://issues.apache.org/jira/browse/MATH-1421
Project: Commons Math
Issue Type: Bug
Affects Versions: 3.6.1
Reporter: Mathijs Vogelzang
Wilson confidence intervals sometimes return negative values as the lower
bound, e.g.
IntervalUtils.getWilsonScoreInterval(19436, 0, 0.95).getLowerBound() returns
-1.3549849074815073E-20
This is causing assertion fails in our code, which we have fixed it now by
wrapping the confidence score bounds in Math.max(0, Math.min(1, bound)) until
the method doesn't return wrong results anymore.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)