def determine_trial_result(CI_lower, CI_upper, value):
    """
    :param CI_lower: confidence interval lower bound
    :param CI_upper: confidence interval upper bound
    :param value: value to check (does the confidence interval include the value?)
    :return: 1 if the CI covers the value, 0 otherwise
    """

    if value < CI_lower:
        return -1
    elif value > CI_upper:
        return 1
    else:
        return 0