[
https://issues.apache.org/jira/browse/MATH-1034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13782398#comment-13782398
]
Thorsten Schäfer commented on MATH-1034:
----------------------------------------
Here's how I'd describe it. Feel free to use/modify it:
The p-Value represents the likelihood of getting a result at least as extreme
as the sample, given the provided population mean. For single-sided tests, this
value can be directly derived from the cumulative distribution. For the
two-sided test, the implementation works as follows: we start by looking at the
most extreme cases (0 success and n success where n is the number of trials
from the sample) and determine their likelihood. The lower value is added to
the p-Value (if both values are equal, both are added). Then we continue with
the next extreme value, until we added the value for the actual observed sample.
> Add binomial test
> -----------------
>
> Key: MATH-1034
> URL: https://issues.apache.org/jira/browse/MATH-1034
> Project: Commons Math
> Issue Type: Wish
> Affects Versions: 3.2
> Reporter: Thorsten Schäfer
> Priority: Minor
> Attachments: binomialTest.patch, binomialTest.patch
>
>
> A binomial test would be a nice addition to commons-math. I might supply a
> patch in the near future. I guess the interface should be similar to the
> other tests, i.e., a method to get the p-value and a method returning a
> boolean indicating reject/non-reject.
> Is there a policy about using Enumerations in commons-math? For instance, in
> R you can test two-sided, less or greater. This could be done using an
> enumeration in Java, but I'm not sure if this is discouraged for backward
> compatibility reasons...
--
This message was sent by Atlassian JIRA
(v6.1#6144)