Skip to content

Commit

Permalink
pvalues are fixed for chi2 calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
jackaraz committed Oct 2, 2024
1 parent 4aca923 commit a4ff1fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/spey/base/hypotest_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down

0 comments on commit a4ff1fa

Please sign in to comment.