SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.test.rank
Class SiegelTukey

java.lang.Object
  extended by com.numericalmethod.suanshu.stats.test.HypothesisTest
      extended by com.numericalmethod.suanshu.stats.test.rank.SiegelTukey

public class SiegelTukey
extends HypothesisTest

Siegel–Tukey 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

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
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
 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

pValue1SidedLess

public final double pValue1SidedLess
left, one-sided p-value


pValue1SidedGreater

public final double pValue1SidedGreater
right, one-sided p-value

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 1
sample2 - sample 2
mu - the hypothetical mean difference
isExact - 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 1
sample2 - sample 2
mu - 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 1
sample2 - sample 2
Method Detail

nullHypothesis

public java.lang.String nullHypothesis()
Description copied from class: HypothesisTest
Get a description of the null hypothesis.

Specified by:
nullHypothesis in class HypothesisTest
Returns:
the null hypothesis description
See Also:
Wikipedia: Null hypothesis

alternativeHypothesis

public java.lang.String alternativeHypothesis()
Description copied from class: HypothesisTest
Get a description of the alternative hypothesis.

Specified by:
alternativeHypothesis in class HypothesisTest
Returns:
the alternative hypothesis description
See Also:
Wikipedia: Alternative hypothesis

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.