Mathematics.
distribution models the number of trials on which the first success occurs. If probability of success in a given trial is p, the probability distribution of x number of such trials is given by : n,p = 25, 0.2 x = np.arange(0,n+1,1,dtype=int) y = (1-p)**x * p plt.bar(x, y) plt.show() A geometric