[ https://issues.apache.org/jira/browse/MATH-1421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gilles resolved MATH-1421. -------------------------- Resolution: Fixed Fix Version/s: 4.0 Thanks for the report. As of commit 612a04d6b0ff8fa3060d5e943f4f72968ea71700 the reported failure does not happen anymore. Please have a look, and reopen this issue if you have other case that still produce a negative value. > 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 > Fix For: 4.0 > > > 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)