def calculate_deviation_square(error, sl):
    """
    Calculate square deviation, e.g. between (observed) error and significance level

    Parameters
    ----------
    error :
        observed error rate
    sl :
        significance level

    Returns
    -------
    square deviation
    """
    return (error - sl) ** 2