@staticmethod
    def _dunning_log_likelihood(count_a, count_b, count_ab, N):
        p1 = count_b / N
        p2 = 0.99

        null_hypo = (count_ab * math.log(p1) +
                     (count_a - count_ab) * math.log(1.0 - p1))
        alt_hypo  = (count_ab * math.log(p2) +
                     (count_a - count_ab) * math.log(1.0 - p2))

        likelihood = null_hypo - alt_hypo

        return (-2.0 * likelihood)
Gets the user given a user ID
dataset/ETHPy150Open nltk/nltk/nltk/tokenize/punkt.py/PunktTrainer._dunning_log_likelihood--crossover with--dataset/ETHPy150Open demianbrecht/django-sanction/django_sanction/backends.py/AuthenticationBackend.get_user