def calc_sidak_correction(alpha_value, num_total_tests):
    """
    Calculates the Sidak correction for multiple hypothesis testing for
    a given alpha-value.

    See
    http://en.wikipedia.org/wiki/Bonferroni_correction#.C5.A0id.C3.A1k_correction
    for more detail.

    Returns the Sidak corrected p-value upon which one rejects the null
    hypothesis.

    :Parameters:
    - `alpha_value`: the alpha-value desired (e.g., 0.05)
    - `num_total_tests`: the total number of tests for significance
      being made

    """
    if alpha_value < 0 or alpha_value > 1:
        raise ValueError("alpha_value must be between 0 and 1, inclusive.")

    sidak_value = 1 - (1 - alpha_value) ** (1.0 / num_total_tests)
    return sidak_value