def bonferroni_correction(pvals):
    """
    Bonferroni correction.
    
    Reference: http://en.wikipedia.org/wiki/Bonferroni_correction
    """
    n = len(pvals)
    return [min(x * n , 1.0) for x in pvals]