Interface SignificanceResult
- All Known Implementing Classes:
BaseSignificanceResult
,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
Modifier and TypeMethodDescriptiondouble
Returns the test statistic p-value.double
Returns the test statistic.default boolean
reject
(double alpha) Returns true iff the null hypothesis can be rejected with100 * (1 - alpha)
percent confidence.
-
Method Details
-
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
- ifalpha
is not in the range(0, 0.5]
.
-