Class MannWhitneyUTest.Result

    • Method Detail

      • getStatistic

        public double getStatistic()
        Returns the test statistic.

        This is the U1 statistic. Compute the U2 statistic using the original sample lengths n and m using:

         u2 = (long) n * m - u1;
         
        Specified by:
        getStatistic in interface SignificanceResult
        Returns:
        the statistic
      • hasTiedValues

        public boolean hasTiedValues()
        Return true if the data had tied values.

        Note: The exact computation cannot be used when there are tied values.

        Returns:
        true if there were tied values
      • getPValue

        public double getPValue()
        Description copied from interface: SignificanceResult
        Returns the test statistic p-value.

        The number returned is the smallest significance level at which one can reject the null hypothesis.

        Specified by:
        getPValue in interface SignificanceResult
        Returns:
        the p-value