import math


def _pmi_odds_(p_p, p_n):
    """
        Computes the PMI with odds

        Args:
            p_p (float): p(x|y)
            p_n (float): p(x|not(y)

        Returns:
            float: PMI
        """
    #print (p_p, p_n)
    alfa = 0.5
    return math.log10(((p_p * (1-p_n))+alfa) / ((p_n* (1-p_p))+alfa))