|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math.stat.inference.MannWhitneyUTestImpl
public class MannWhitneyUTestImpl
An implementation of the Mann-Whitney U test (also called Wilcoxon rank-sum test).
| Constructor Summary | |
|---|---|
MannWhitneyUTestImpl()
Create a test instance using where NaN's are left in place and ties get the average of applicable ranks. |
|
MannWhitneyUTestImpl(NaNStrategy nanStrategy,
TiesStrategy tiesStrategy)
Create a test instance using the given strategies for NaN's and ties. |
|
| Method Summary | |
|---|---|
double |
mannWhitneyU(double[] x,
double[] y)
Computes the Mann-Whitney U statistic comparing mean for two independent samples possibly of different length. |
double |
mannWhitneyUTest(double[] x,
double[] y)
Ties give rise to biased variance at the moment. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MannWhitneyUTestImpl()
public MannWhitneyUTestImpl(NaNStrategy nanStrategy,
TiesStrategy tiesStrategy)
nanStrategy - specifies the strategy that should be used for Double.NaN'stiesStrategy - specifies the strategy that should be used for ties| Method Detail |
|---|
public double mannWhitneyU(double[] x,
double[] y)
throws java.lang.IllegalArgumentException
This statistic can be used to perform a Mann-Whitney U test evaluating the null hypothesis that the two independent samples has equal mean.
Let Xi denote the i'th individual of the first sample and Yj the j'th individual in the second sample. Note that the samples would often have different length.
Preconditions:
mannWhitneyU in interface MannWhitneyUTestx - the first sampley - the second sample
java.lang.IllegalArgumentException - if preconditions are not met
public double mannWhitneyUTest(double[] x,
double[] y)
throws java.lang.IllegalArgumentException,
MathException
Let Xi denote the i'th individual of the first sample and Yj the j'th individual in the second sample. Note that the samples would often have different length.
Preconditions:
mannWhitneyUTest in interface MannWhitneyUTestx - the first sampley - the second sample
java.lang.IllegalArgumentException - if preconditions are not met
MathException - if an error occurs computing the p-value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||