[
https://issues.apache.org/jira/browse/MATH-1401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16002564#comment-16002564
]
Bruno P. Kinoshita commented on MATH-1401:
------------------------------------------
Here are the results with R PropCIs:
{noformat}
data:
95 percent confidence interval:
0.000 0.975
> exactci(n=1, x=0, 0.95)
data:
95 percent confidence interval:
0.000 0.975
> exactci(n=1, x=1, 0.95)
data:
95 percent confidence interval:
0.025 1.000
>
{noformat}
> 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)