Apache Commons logo Apache Commons Statistics
Apache Commons Statistics Inference ™
  • Last Published: 17 Sep 2025
  • |
  • Version: 1.2

Apache Commons Statistics: Inference

Apache Commons Statistics provides statistical hypothesis testing.

Example:

import org.apache.commons.statistics.inference.ChiSquaredTest;
double[] expected = ...
long[] observed = ...
double alpha = 1e-3;
// Fail if we can *reject* the null hypothesis with confidence (1 - alpha)
// that the observed match the expected
if (ChiSquareTest.withDefaults().test(expected, observed).reject(alpha)) {
 // Significant deviation from the expected ...
}

Browse the Javadoc for more information.

Copyright © 2018-2025 The Apache Software Foundation. All Rights Reserved.

Apache Commons, Apache Commons Statistics Inference, Apache, the Apache logo, and the Apache Commons project logos are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.

AltStyle によって変換されたページ (->オリジナル) /