Skip to content

Commit ad4a735

Browse files
set alpha to 0.1% in binom.ppf
1 parent b1a7325 commit ad4a735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_diagnostics/test_diagnostics_metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def run_sbc(N=N, S=S, D=D, bias=0):
127127
return in_interval
128128

129129
sbc_calibration = [run_sbc(N=N, S=S, D=D) for _ in range(100)]
130-
lower_expected, upper_expected = binom.ppf((0.0001, 0.9999), 100, 0.95)
130+
lower_expected, upper_expected = binom.ppf((0.0005, 0.9995), 100, 0.95)
131131

132132
# this test should fail with a probability of 0.1%
133133
assert lower_expected <= np.sum(sbc_calibration) <= upper_expected

0 commit comments

Comments
 (0)