public class WilcoxonRankSum extends HypothesisTest
mu.
This test is also called the Mann-Whitney-Wilcoxon, Mann-Whitney-U, or Wilcoxon-Mann-Whitney test.
The R equivalent function is wilcox.test.| Constructor and Description |
|---|
WilcoxonRankSum(double[] sample1,
double[] sample2)
Perform the Wilcoxon Rank Sum test to test for the equality of means of two populations.
|
WilcoxonRankSum(double[] sample1,
double[] sample2,
double mu)
Perform the Wilcoxon Rank Sum test to test for the equality of means of two populations, or whether the means differ 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 populations, or whether the means differ 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 populations, or whether the means differ by an offset.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAlternativeHypothesis()
Get the description of the alternative hypothesis.
|
String |
getNullHypothesis()
Get a description of the null hypothesis.
|
double |
leftOneSidedPvalue()
Get the left, one-sided p-value.
|
double |
pValue()
Get the p-value for the test statistics.
|
double |
rightOneSidedPvalue()
Get the right, one-sided p-value.
|
double |
statistics()
Get the test statistics.
|
isNullRejected, nGroups, nObs, oneSidedPvaluepublic 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 hypothetical location that the (sample1 - sample2) is symmetric aboutpublic WilcoxonRankSum(double[] sample1,
double[] sample2)
sample1 - sample 1sample2 - sample 2public String getNullHypothesis()
HypothesisTestgetNullHypothesis in class HypothesisTestpublic String getAlternativeHypothesis()
HypothesisTestgetAlternativeHypothesis in class HypothesisTestpublic double statistics()
HypothesisTeststatistics in class HypothesisTestpublic double pValue()
HypothesisTestpValue in class HypothesisTestpublic double rightOneSidedPvalue()
public double leftOneSidedPvalue()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.