def above_threshold(direction: str, correlation_value: float, threshold: float):
    """
        Compare correlation values with a threshold
    """
    if direction == 'correlation':
        return correlation_value > threshold
    if direction == 'anti-correlation':
        return correlation_value < threshold
    if direction == 'both':
        return abs(correlation_value) > abs(threshold)
    return correlation_value > threshold