Alex Herbert created STATISTICS-98:
--------------------------------------

             Summary: SignificanceResult interface does not reject invalid 
p-values
                 Key: STATISTICS-98
                 URL: https://issues.apache.org/jira/browse/STATISTICS-98
             Project: Commons Statistics
          Issue Type: Bug
          Components: inference
    Affects Versions: 1.3
            Reporter: Alex Herbert


The SignificanceResult interface has a default method:
{code:java}
default boolean reject(double alpha) {
    Arguments.checkSignificance(alpha);
    return getPValue() < alpha;
} {code}
The p-value may be outside of the range [0, 1], or NaN. This will invalidate 
the rejection of a result.

In cases where a test computes a NaN p-value then the result will be silently 
accepted when testing using a critical alpha (i.e. not rejected).

Issue identified using a security scan.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to