|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.stats.distribution.univariate.EmpiricalDistribution
com.numericalmethod.suanshu.stats.test.distribution.pearson.FisherExactDistribution
public class FisherExactDistribution
Fisher's exact test is a statistical significance test used in the analysis of contingency tables where sample sizes are small. It converges to Chi-square distribution for a large and well balanced sample.
For small, sparse, or unbalanced data, the exact and asymptotic p-values can be quite different and may lead to opposite conclusions concerning the hypothesis of interest. In contrast the Fisher exact test is, as its name states, exact, and it can therefore be used regardless of the sample characteristics.
It becomes difficult to calculate with large samples or well-balanced tables, but fortunately these are exactly the conditions where the chi-square distribution is appropriate.
| Constructor Summary | |
|---|---|
FisherExactDistribution(int[] rowSums,
int[] colSums,
int nSim)
Construct the distribution for the Fisher's exact test. |
|
FisherExactDistribution(int[] rowSums,
int[] colSums,
int nSim,
RandomNumberGenerator rng)
Construct the distribution for the Fisher's exact test. |
|
| Method Summary |
|---|
| Methods inherited from class com.numericalmethod.suanshu.stats.distribution.univariate.EmpiricalDistribution |
|---|
cdf, density, entropy, kurtosis, mean, median, moment, quantile, skew, variance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FisherExactDistribution(int[] rowSums,
int[] colSums,
int nSim,
RandomNumberGenerator rng)
rowSums - row totalscolSums - column totalsnSim - number of simulationsrng - a uniform random number generator
public FisherExactDistribution(int[] rowSums,
int[] colSums,
int nSim)
rowSums - row totalscolSums - column totalsnSim - number of simulations
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||