public class WilcoxonRankSum extends HypothesisTest
mu.
This is also called the Mann–Whitney–Wilcoxon, Mann-Whitney-U, or Wilcoxon–Mann–Whitney test.
The R equivalent function is wilcox.test.
| Modifier and Type | Field and Description |
|---|---|
double |
pValue1SidedGreater
right, one-sided p-value
|
double |
pValue1SidedLess
left, one-sided p-value
|
k, N, pValue, testStatistics| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlternativeHypothesis()
Get a description of the alternative hypothesis.
|
java.lang.String |
getNullHypothesis()
Get a description of the null hypothesis.
|
isNullRejected, oneSidedPvalue, pValue, statisticspublic final double pValue1SidedLess
public final double pValue1SidedGreater
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 usedpublic 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 usedpublic WilcoxonRankSum(double[] sample1,
double[] sample2,
double mu)
sample1 - sample 1sample2 - sample 2mu - the hypotheical location that the sample1 - sample2 is symmetric aboutpublic WilcoxonRankSum(double[] sample1,
double[] sample2)
sample1 - sample 1sample2 - sample 2public java.lang.String getNullHypothesis()
HypothesisTestgetNullHypothesis in class HypothesisTestpublic java.lang.String getAlternativeHypothesis()
HypothesisTestgetAlternativeHypothesis in class HypothesisTest