def probability(self, x): return choose(self.n, x) * (self.p ** x) * \ (1.0 - self.p) ** (self.n - x)