[ https://issues.apache.org/jira/browse/MATH1034?page=com.atlassian.jira.plugin.system.issuetabpanels:commenttabpanel&focusedCommentId=13782398#comment13782398
]
Thorsten Schäfer commented on MATH1034:

Here's how I'd describe it. Feel free to use/modify it:
The pValue represents the likelihood of getting a result at least as extreme as the sample,
given the provided population mean. For singlesided tests, this value can be directly derived
from the cumulative distribution. For the twosided 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
pValue (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: MATH1034
> URL: https://issues.apache.org/jira/browse/MATH1034
> 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 commonsmath. 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 pvalue and a method returning a boolean indicating reject/nonreject.
> Is there a policy about using Enumerations in commonsmath? For instance, in R you can
test twosided, 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)
