[ https://issues.apache.org/jira/browse/MATH-1401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16002454#comment-16002454 ]
Bruno P. Kinoshita commented on MATH-1401: ------------------------------------------ Continuing on case #1, [this PDF|http://www.lexjansen.com/phuse/2013/sp/SP05.pdf] mentions that "The lower bound is set to 0 when x = 0, and the upp er bound is set to 1 when x = n. ". These are exact variable names in the R library, and this is exactly what is happening. There is still the matter that the calculation is different when x >0 and x != n. > Exception at IntervalUtils.getClopperPearsonInterval > ---------------------------------------------------- > > Key: MATH-1401 > URL: https://issues.apache.org/jira/browse/MATH-1401 > Project: Commons Math > Issue Type: Bug > Affects Versions: 3.6.1 > Reporter: Art > Assignee: Bruno P. Kinoshita > Fix For: 4.0 > > > IntervalUtils.getClopperPearsonInterval throws an exception when number of > successes equals to zero or number of successes = number of trials. > IntervalUtils.getClopperPearsonInterval(1, 0, 0.95) or > IntervalUtils.getClopperPearsonInterval(1, 1, 0.95) throws > org.apache.commons.math3.exception.NotStrictlyPositiveException despite that > its input parameters are valid. > -- This message was sent by Atlassian JIRA (v6.3.15#6346)