diff --git a/src/spey/base/hypotest_base.py b/src/spey/base/hypotest_base.py index 6e19bee..5bf6a64 100644 --- a/src/spey/base/hypotest_base.py +++ b/src/spey/base/hypotest_base.py @@ -725,8 +725,7 @@ def maximize_likelihood( ) pvalues = [ - 1.0 - - chi2.cdf( + chi2.cdf( chi_square, 1 if isinstance(poi_test, (float, int)) else len(poi_test), )