@ConfidenceTestAssumptions(name="Wilcoxon Signed-Rank Sum Test", alsoKnownAs="Wilcoxon signed-rank test", description={"A nonparameteric statistical hypothesis test for the case of two related samples or repeated measurements on a single sample.","Wilcoxon Signed-Rank Sum Test does not assume that the data are generated according to a particular distribution.","Used as an alternative to a paired Student-t test when the data are not assumed to be Gaussian."}, assumptions={"The differences between paired samples are independent.","Each difference comes from a continuous population, identical for all differences, and is symmetric about a common median.","The data are oridinal variables such that comparisons such as greater than, less than, and equal to have meaning."}, nullHypothesis="The median difference between the paired samples is 0.0", dataPaired=true, dataSameSize=true, distribution=UnivariateGaussian.CDF.class, reference=@PublicationReference(author="Wikipedia",title="Wilcoxon signed-rank test",type=WebPage,year=2009,url="http://en.wikipedia.org/wiki/Wilcoxon_signed-rank_test")) public class WilcoxonSignedRankConfidence extends AbstractCloneableSerializable implements NullHypothesisEvaluator<java.util.Collection<? extends java.lang.Number>>
Modifier and Type | Class and Description |
---|---|
static class |
WilcoxonSignedRankConfidence.Statistic
ConfidenceStatistics associated with a Wilcoxon test
|
Modifier and Type | Field and Description |
---|---|
static WilcoxonSignedRankConfidence |
INSTANCE
Default instance since the class has no state.
|
Constructor and Description |
---|
WilcoxonSignedRankConfidence()
Creates a new instance of WilcoxonSignedRankConfidence
|
Modifier and Type | Method and Description |
---|---|
WilcoxonSignedRankConfidence.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.
|
static double[] |
ranks(java.util.Collection<? extends java.lang.Number> values)
Returns the ranks of the values in ascending order
|
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
public static final WilcoxonSignedRankConfidence INSTANCE
public WilcoxonSignedRankConfidence()
public WilcoxonSignedRankConfidence.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 considerpublic static double[] ranks(java.util.Collection<? extends java.lang.Number> values)
values
- Collection of values to rank