Interface SignificanceResult
-
- All Known Implementing Classes:
KolmogorovSmirnovTest.OneResult,KolmogorovSmirnovTest.TwoResult,MannWhitneyUTest.Result,OneWayAnova.Result,TTest.Result,UnconditionedExactTest.Result,WilcoxonSignedRankTest.Result
public interface SignificanceResult
Contains the result of a test for significance.- Since:
- 1.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description doublegetPValue()Returns the test statistic p-value.doublegetStatistic()Returns the test statistic.default booleanreject(double alpha)Returns true iff the null hypothesis can be rejected with100 * (1 - alpha)percent confidence.
-
-
-
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 with100 * (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- ifalphais not in the range(0, 0.5].
-
-