|
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.WilcoxonSignedRank
public class WilcoxonSignedRank
The Wilcoxon signed rank test tests, for the one-sample case, the median of the distribution against a hypothetical median, and for the two-sample case, the equality of median of groups.
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.
| 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 | |
|---|---|
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. |
|
| 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 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 used
public WilcoxonSignedRank(double[] sample1,
double[] sample2)
sample1 - sample 1sample2 - sample 2
public WilcoxonSignedRank(double[] sample,
int mu)
sample - a samplemu - the hypothetical median that the distribution is symmetric aboutpublic WilcoxonSignedRank(double[] sample)
sample - a sample| 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 | |||||||