Statistics, Probability, Probability Distributions, Binomial, Bernoulli.
plt.xlabel('Number of Successes') plt.ylabel('Probability Percentage') plt.title('Binomial Distribution for Number of Successes in 15 Trials') plt.show() Every time you run this code, there will be a slight variation in the probabilities but they will be pretty close to the theoretical