|
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.test.HypothesisTest
com.numericalmethod.suanshu.stats.test.rank.wilcoxon.WilcoxonRankSum
public class WilcoxonRankSum
The Wilcoxon rank sum test tests for the equality of means of two population, or whether the means differs by an offset.
That is, it tests the null hypothesis that the distribution x - y is symmetric about mu.
This is also called the Mann–Whitney–Wilcoxon, Mann-Whitney-U, or Wilcoxon–Mann–Whitney test.
The R equivalent function is wilcox.test.
| Field Summary | |
|---|---|
double |
pValue1SidedGreater
right, one-sided p-value |
double |
pValue1SidedLess
left, one-sided p-value |
| Fields inherited from class com.numericalmethod.suanshu.stats.test.HypothesisTest |
|---|
k, N, pValue, testStatistics |
| Constructor Summary | |
|---|---|
WilcoxonRankSum(double[] sample1,
double[] sample2)
Perform the Wilcoxon Rank Sum test to test for the equality of means of two population. |
|
WilcoxonRankSum(double[] sample1,
double[] sample2,
double mu)
Perform the Wilcoxon Rank Sum test to test for the equality of means of two population, or whether the means differs by an offset. |
|
WilcoxonRankSum(double[] sample1,
double[] sample2,
double mu,
boolean isExact)
Perform the Wilcoxon Rank Sum test to test for the equality of means of two population, or whether the means differs by an offset. |
|
WilcoxonRankSum(double[] sample1,
double[] sample2,
double mu,
boolean isExact,
boolean isCorrected)
Perform the Wilcoxon Rank Sum test to test for the equality of means of two population, or whether the means differs by an offset. |
|
| Method Summary | |
|---|---|
java.lang.String |
alternativeHypothesis()
Get a description of the alternative hypothesis. |
java.lang.String |
nullHypothesis()
Get a description of the null hypothesis. |
| Methods inherited from class com.numericalmethod.suanshu.stats.test.HypothesisTest |
|---|
oneSidedPvalue, pValue, rejectNull, testStatistics |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final double pValue1SidedLess
public final double pValue1SidedGreater
| Constructor Detail |
|---|
public WilcoxonRankSum(double[] sample1,
double[] sample2,
double mu,
boolean isExact,
boolean isCorrected)
sample1 - sample 1sample2 - sample 2mu - the hypothetical location that the sample1 - sample2 is symmetric aboutisExact - true if to use the exact distribution; otherwise, normal approximation is usedisCorrected - true if to use the continuity correction for the normal distribution; otherwise, standard normal approximation is used
public WilcoxonRankSum(double[] sample1,
double[] sample2,
double mu,
boolean isExact)
sample1 - sample 1sample2 - sample 2mu - the hypothetical location that the sample1 - sample2 is symmetric aboutisExact - true if to use the exact distribution; otherwise, normal approximation is used
public WilcoxonRankSum(double[] sample1,
double[] sample2,
double mu)
The exact distribution is used for sample size < 50.
sample1 - sample 1sample2 - sample 2mu - the hypotheical location that the sample1 - sample2 is symmetric about
public WilcoxonRankSum(double[] sample1,
double[] sample2)
sample1 - sample 1sample2 - sample 2| Method Detail |
|---|
public java.lang.String nullHypothesis()
HypothesisTest
nullHypothesis in class HypothesisTestpublic java.lang.String alternativeHypothesis()
HypothesisTest
alternativeHypothesis in class HypothesisTest
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||