|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.statcato.statistics.inferential.nonparametrics.WilcoxonRankSumTest
public class WilcoxonRankSumTest
Wilcoxon Rank Sum test. A nonparametic test that uses ranks of samples from two independent populations to test a claim about the medians of two populations. The two independent samples are combined into one sample, are sorted in ascending order and are ranked based on its place in the one sample. The sum of the ranks corresponding to one of the two samples are computed and is used as test statistics.
Field Summary | |
---|---|
double |
significance
Significance of the test. |
Constructor Summary | |
---|---|
WilcoxonRankSumTest(java.util.Vector<java.lang.Double> data1,
java.util.Vector<java.lang.Double> data2,
int testType,
double significance)
Constructor, given two samples of data values. |
Method Summary | |
---|---|
double |
criticalValue_R()
|
double |
getRankSum(java.util.Vector<java.lang.Double> data1,
java.util.Vector<java.lang.Double> data2)
Returns the rank sum, which is the sum of ranks for the first sample. |
double |
mu_R()
Returns the mean of the distribution of rank sum, mu = n1 * (n1 + n2 + 1) / 2. |
double |
pValue_R()
Returns the p-value. |
double |
sigma_R()
Returns the standard deviation of the distribution of rank sum, sigma = (n1 * n2 * (n1 + n2 + 1) / 12)^0.5 |
double |
testStatistic_R()
Returns the test statistic z = (R - mu) / sigma, where R is the rank sum of the first same, mu the mean of the distribution of rank sum, and sigma the standard deviatioin of the distribution of rank sum. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double significance
Constructor Detail |
---|
public WilcoxonRankSumTest(java.util.Vector<java.lang.Double> data1, java.util.Vector<java.lang.Double> data2, int testType, double significance)
data1
- vector of double values (sample 1)data2
- vector of double values (sample 2)testMedian
- hypothesized mediantestType
- type of alternative hypothesisMethod Detail |
---|
public double testStatistic_R()
public double mu_R()
public double sigma_R()
public double pValue_R()
public double criticalValue_R()
public java.lang.String toString()
toString
in class java.lang.Object
public double getRankSum(java.util.Vector<java.lang.Double> data1, java.util.Vector<java.lang.Double> data2)
data
- vector of Double values
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |