Mathematics.
is 1-p. We conduct n such trials that are independent of each other. We now want the probability of getting x number of successes in those n trials. The probability is given by : def factorial(n): if n > 0: return n*factorial(n-1) return 1 n,p = 100, 0.3 x = np.arange(0,n+1,1,dtype=int) y = [] for