def bt_adjusting(bt_value: float, epsilon: float, delta_finite_stat: int = 0) -> float:
    """Creates an adjustment value related to the probability of error due to finite stats.

    Args:
        bt_value: Bell value.
        epsilon: How close the output string is to that of a perfect distribution.
        delta_finite_stat: Set to zero to assume no finite statistical effects.

    Returns:
        Adjusted Bell value.
    """
    bt_adjusted = (bt_value + delta_finite_stat) / (8 * ((0.5 - epsilon)**3))
    return bt_adjusted