Interface SignificanceResult
- All Known Implementing Classes:
KolmogorovSmirnovTest.OneResult, KolmogorovSmirnovTest.TwoResult, MannWhitneyUTest.Result, OneWayAnova.Result, TTest.Result, UnconditionedExactTest.Result, WilcoxonSignedRankTest.Result
-
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the test statistic p-value.doubleReturns the test statistic.default booleanreject(double alpha) Returns true iff the null hypothesis can be rejected with100 * (1 - alpha)percent confidence.
-
Method Details
-
getStatistic
-
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
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].
-