@ConfidenceTestAssumptions(name="Mann-Whitney U-test", alsoKnownAs={"Mann-Whitney-Wolcoxon","Wilcoxon rank-sum test","Wilcoxon-Mann-Whitney test","U-test"}, description="A nonparameteric test to determine is two groups of data were drawn from the same underlying distribution.", assumptions={"The groups were sampled independently.","The data are orginal and we can determine which of two samples is greater than the other.","Although the two populations don\'t have to follow any particular distribution, the two distributions must have a similar shape."}, nullHypothesis="The data were drawn from the same distribution.", dataPaired=false, dataSameSize=false, distribution=UnivariateGaussian.CDF.class, reference=@PublicationReference(author="Wikipedia",title="Mann-Whitney U",type=WebPage,year=2009,url="http://en.wikipedia.org/wiki/Mann-Whitney_U")) public class MannWhitneyUConfidence extends AbstractCloneableSerializable implements NullHypothesisEvaluator<java.util.Collection<? extends java.lang.Number>>
Modifier and Type | Class and Description |
---|---|
static class |
MannWhitneyUConfidence.Statistic
Statistics from the Mann-Whitney U-test
|
Constructor and Description |
---|
MannWhitneyUConfidence()
Creates a new instance of MannWhitneyUConfidence
|
Modifier and Type | Method and Description |
---|---|
MannWhitneyUConfidence.Statistic |
evaluateNullHypothesis(java.util.Collection<? extends InputOutputPair<? extends java.lang.Number,java.lang.Boolean>> scoreClassPairs)
Performs a U-test on the score-class pairs.
|
MannWhitneyUConfidence.Statistic |
evaluateNullHypothesis(java.util.Collection<? extends java.lang.Number> data1,
java.util.Collection<? extends java.lang.Number> data2)
Computes the probability that two data were generated by
the same distribution.
|
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
public MannWhitneyUConfidence()
public MannWhitneyUConfidence.Statistic evaluateNullHypothesis(java.util.Collection<? extends InputOutputPair<? extends java.lang.Number,java.lang.Boolean>> scoreClassPairs)
scoreClassPairs
- Pairs of scores with the corresponding class "label" for the scorepublic MannWhitneyUConfidence.Statistic evaluateNullHypothesis(java.util.Collection<? extends java.lang.Number> data1, java.util.Collection<? extends java.lang.Number> data2)
NullHypothesisEvaluator
evaluateNullHypothesis
in interface NullHypothesisEvaluator<java.util.Collection<? extends java.lang.Number>>
data1
- First dataset to considerdata2
- Second dataset to consider