Interface SignificanceResult

    • Method Detail

      • getStatistic

        double getStatistic()
        Returns the test statistic.
        Returns:
        the statistic
      • getPValue

        double getPValue()
        Returns the test statistic p-value.

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

        Returns:
        the p-value
      • reject

        default boolean reject​(double alpha)
        Returns true iff the null hypothesis can be rejected with 100 * (1 - alpha) percent confidence.

        The default implementation uses p < alpha.

        Parameters:
        alpha - Significance level of the test.
        Returns:
        true iff null hypothesis can be rejected with confidence 1 - alpha
        Throws:
        IllegalArgumentException - if alpha is not in the range (0, 0.5].