pygsti.tools.hypothesis.generalized_bonferroni_correction#
- generalized_bonferroni_correction(significance, weights, numtests=None, nested_method='bonferroni', tol=1e-10)#
Generalized Bonferroni correction.
- Parameters:
significance (float) – Significance of each individual test.
weights (array-like) – An array of non-negative floating-point weights, one per individual test, that sum to 1.0.
numtests (int) – The number of hypothesis tests performed.
nested_method ({'bonferroni', 'sidak'}) – Which method is used to find the significance of the composite test.
tol (float, optional) – Tolerance when checking that the weights add to 1.0.
- Return type:
float