import math


def odd_improvement(lst):
    """Calculates the improvement of odds compared to their base values. The higher above 0, the more the odds
    improved from base-value. The lower under 0, the more the odds deteriorated. Used
    https://en.wikipedia.org/wiki/Logit as a source for this formula. """

    base_probability = lst[0]
    current_probability = lst[1]
    improvement = math.log(current_probability / (1 - current_probability)) - math.log(
        base_probability / (1 - base_probability))
    return improvement