def get_weight(stats):
    """
    Return a data point weight for the result.
    """
    if stats is None or 'ci_99' not in stats:
        return None
    try:
        return 2 / abs(stats['ci_99'][1] - stats['ci_99'][0])
    except ZeroDivisionError:
        return None
