Binomial test in Java

1.1k Views Asked by At

I'm looking for an efficient Java library (or even a function) to perform the infamous Exact Binomial Test. Something similar to the R function "binom.test" described here.

Can you help me? Thanks a lot! :-)

2

There are 2 best solutions below

2
On

Maybe you should check http://sourceforge.net/projects/parallelcolt/ This package and apache Math are the most common for statistical computation

0
On

In addition to the BinomialDistribution Apache commons.math3 3.3 (unreleased at the moment of writing) has a BinomialTest that will get you the p-value as well as BinomialConfidenceInterval. It's not much compared to the stats R package you named, but it's more than just the distribution mentioned above.

Posting this as I landed on your question looking for a way to get just the p val for a known binomial distribution and the link above is the answer.