Class WilcoxonRankSum


  • public class WilcoxonRankSum
    extends HypothesisTest
    The Wilcoxon rank sum test tests for the equality of means of two populations, or whether the means differ by an offset. That is, it tests the null hypothesis that the distribution x - y is symmetric about mu. This test is also called the Mann-Whitney-Wilcoxon, Mann-Whitney-U, or Wilcoxon-Mann-Whitney test.

    The R equivalent function is wilcox.test.

    See Also:
    Wikipedia: Mann-Whitney U
    • Constructor Detail

      • WilcoxonRankSum

        public WilcoxonRankSum​(double[] sample1,
                               double[] sample2,
                               double mu,
                               boolean isExact,
                               boolean isCorrected)
        Perform the Wilcoxon Rank Sum test to test for the equality of means of two populations, or whether the means differ by an offset.
        Parameters:
        sample1 - sample 1
        sample2 - sample 2
        mu - the hypothetical location that the (sample1 - sample2) is symmetric about
        isExact - true if to use the exact distribution; otherwise, normal approximation is used
        isCorrected - true if to use the continuity correction for the normal distribution; otherwise, standard normal approximation is used
      • WilcoxonRankSum

        public WilcoxonRankSum​(double[] sample1,
                               double[] sample2,
                               double mu,
                               boolean isExact)
        Perform the Wilcoxon Rank Sum test to test for the equality of means of two populations, or whether the means differ by an offset.
        Parameters:
        sample1 - sample 1
        sample2 - sample 2
        mu - the hypothetical location that the (sample1 - sample2) is symmetric about
        isExact - true if to use the exact distribution; otherwise, normal approximation is used
      • WilcoxonRankSum

        public WilcoxonRankSum​(double[] sample1,
                               double[] sample2,
                               double mu)
        Perform the Wilcoxon Rank Sum test to test for the equality of means of two populations, or whether the means differ by an offset. The exact distribution is used for sample size < 50.
        Parameters:
        sample1 - sample 1
        sample2 - sample 2
        mu - the hypothetical location that the (sample1 - sample2) is symmetric about
      • WilcoxonRankSum

        public WilcoxonRankSum​(double[] sample1,
                               double[] sample2)
        Perform the Wilcoxon Rank Sum test to test for the equality of means of two populations.
        Parameters:
        sample1 - sample 1
        sample2 - sample 2