def logProbability(self, x): return logChoose(self.n, x) + x * numpy.log(self.p) + \ (self.n - x) * numpy.log(1.0 - self.p)