public class WilcoxonSignedRank extends HypothesisTest
Unlike the Student's t-test, the Wilcoxon signed rank test does not assume any distribution of the population.
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 |
|---|
WilcoxonSignedRank(double[] sample)
Perform the Wilcoxon Signed Rank test to test for the equality of medians.
|
WilcoxonSignedRank(double[] sample1,
double[] sample2)
Perform the Wilcoxon Signed Rank test to test for the equality of medians.
|
WilcoxonSignedRank(double[] sample1,
double[] sample2,
double mu,
boolean isExact)
Perform the Wilcoxon Signed Rank test to test for the equality of medians.
|
WilcoxonSignedRank(double[] sample,
int mu)
Perform the Wilcoxon Signed Rank test to test for the equality of medians.
|
| 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 WilcoxonSignedRank(double[] sample1,
double[] sample2,
double mu,
boolean isExact)
sample1 - sample 1sample2 - sample 2mu - the hypothetical median that the distribution is symmetric aboutisExact - true if to use the exact distribution; otherwise, normal approximation is usedpublic WilcoxonSignedRank(double[] sample1,
double[] sample2)
sample1 - sample 1sample2 - sample 2public WilcoxonSignedRank(double[] sample,
int mu)
sample - a samplemu - the hypothetical median that the distribution is symmetric aboutpublic WilcoxonSignedRank(double[] sample)
sample - a samplepublic java.lang.String getNullHypothesis()
HypothesisTestgetNullHypothesis in class HypothesisTestpublic java.lang.String getAlternativeHypothesis()
HypothesisTestgetAlternativeHypothesis in class HypothesisTest