Exact test for the statistical significance of deviations from a theoretically expected distribution of observations into two categories.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the null hypothesis can be rejected with confidence1 - alphanumber of trials performed numberOfTrials, int number of successes observed numberOfSuccesses, double assumed probability of a single trial under the null hypothesis probability, AlternativeHypothesis type of hypothesis being evaluated (one- or two-sided) alternativeHypothesis, double significance level of the test alpha)Returns whether the null hypothesis can be rejected with the given confidence level. |
| public double | Returns: p-valuenumber of trials performed numberOfTrials, int number of successes observed numberOfSuccesses, double assumed probability of a single trial under the null hypothesis probability, AlternativeHypothesis type of hypothesis being evaluated (one- or two-sided) alternativeHypothesis)Returns the observed significance level, or p-value, associated with a Binomial test. |
| BinomialTest | back to summary |
|---|---|
| public BinomialTest() | |
| binomialTest | back to summary |
|---|---|
| public boolean binomialTest(int numberOfTrials, int numberOfSuccesses, double probability, AlternativeHypothesis alternativeHypothesis, double alpha) Returns whether the null hypothesis can be rejected with the given confidence level. Preconditions:
| |
| binomialTest | back to summary |
|---|---|
| public double binomialTest(int numberOfTrials, int numberOfSuccesses, double probability, AlternativeHypothesis alternativeHypothesis) Returns the observed significance level, or p-value, associated with a Binomial test.
The number returned is the smallest significance level at which one can reject the null hypothesis.
The form of the hypothesis depends on
The p-Value represents the likelihood of getting a result at least as extreme as the sample,
given the provided Preconditions:
| |