You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Alex Herbert (Jira)" <ji...@apache.org> on 2026/08/27 12:23:00 UTC

[jira] [Created] (STATISTICS-98) SignificanceResult interface does not reject invalid p-values

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)