spectral_connectivity.statistics.Bonferroni_correction#

Bonferroni_correction(p_values: ndarray, alpha: float = 0.05)[source]#

Corrects for multiple comparisons and returns the significant p-values by controlling the false discovery rate at level alpha using the Bonferroni procedure.

Parameters:
  • p_values (np.ndarray, shape (n_p_values,)) –

  • alpha (float, optional) – critical threshold, by default 0.05

Returns:

is_significant

Return type:

np.ndarray, shape (n_p_values,)