Package dev.nm.stat.test.rank
Class SiegelTukey
- java.lang.Object
-
- dev.nm.stat.test.HypothesisTest
-
- dev.nm.stat.test.rank.SiegelTukey
-
public class SiegelTukey extends HypothesisTest
The Siegel-Tukey test tests for differences in scale (variability) between two groups. The test is used to determine if one of two groups of data tends to have more widely dispersed values than the other. In other words, the test determines whether one of the two groups tends to move, sometimes to the right, sometimes to the left, but away from the center (of the ordinal scale).- See Also:
- Wikipedia: iegel-Tukey test
-
-
Constructor Summary
Constructors Constructor Description SiegelTukey(double[] sample1, double[] sample2)Perform the Siegel-Tukey test to test for differences in scale (variability) between two groups.SiegelTukey(double[] sample1, double[] sample2, double mu)Perform the Siegel-Tukey test to test for differences in scale (variability) between two groups.SiegelTukey(double[] sample1, double[] sample2, double mu, boolean isExact)Perform the Siegel-Tukey test to test for differences in scale (variability) between two groups.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlternativeHypothesis()Get the description of the alternative hypothesis.StringgetNullHypothesis()Get a description of the null hypothesis.doubleleftOneSidedPvalue()Get the left, one-sided p-value.doublepValue()Get the p-value for the test statistics.doublerightOneSidedPvalue()Get the right, one-sided p-value.doublestatistics()Get the test statistics.-
Methods inherited from class dev.nm.stat.test.HypothesisTest
isNullRejected, nGroups, nObs, oneSidedPvalue
-
-
-
-
Constructor Detail
-
SiegelTukey
public SiegelTukey(double[] sample1, double[] sample2, double mu, boolean isExact)Perform the Siegel-Tukey test to test for differences in scale (variability) between two groups.- Parameters:
sample1- sample 1sample2- sample 2mu- the hypothetical mean differenceisExact- indicate whether the exact Wilcoxon Rank Sum distribution is used
-
SiegelTukey
public SiegelTukey(double[] sample1, double[] sample2, double mu)Perform the Siegel-Tukey test to test for differences in scale (variability) between two groups.- Parameters:
sample1- sample 1sample2- sample 2mu- the hypothetical mean difference
-
SiegelTukey
public SiegelTukey(double[] sample1, double[] sample2)Perform the Siegel-Tukey test to test for differences in scale (variability) between two groups.- Parameters:
sample1- sample 1sample2- sample 2
-
-
Method Detail
-
getNullHypothesis
public String getNullHypothesis()
Description copied from class:HypothesisTestGet a description of the null hypothesis.- Specified by:
getNullHypothesisin classHypothesisTest- Returns:
- the null hypothesis description
- See Also:
- Wikipedia: Null hypothesis
-
getAlternativeHypothesis
public String getAlternativeHypothesis()
Description copied from class:HypothesisTestGet the description of the alternative hypothesis.- Specified by:
getAlternativeHypothesisin classHypothesisTest- Returns:
- the alternative hypothesis description
- See Also:
- Wikipedia: Alternative hypothesis
-
statistics
public double statistics()
Description copied from class:HypothesisTestGet the test statistics.- Specified by:
statisticsin classHypothesisTest- Returns:
- the test statistics
- See Also:
- Wikipedia: Test statistic
-
pValue
public double pValue()
Description copied from class:HypothesisTestGet the p-value for the test statistics.- Specified by:
pValuein classHypothesisTest- Returns:
- the p-value
- See Also:
- Wikipedia: P-value
-
rightOneSidedPvalue
public double rightOneSidedPvalue()
Get the right, one-sided p-value.- Returns:
- the right, one-sided p-value.
-
leftOneSidedPvalue
public double leftOneSidedPvalue()
Get the left, one-sided p-value.- Returns:
- the left, one-sided p-value.
-
-