Statistics, Probability, Probability Distributions, Binomial, Bernoulli.
using the sample generated. import numpy as np import matplotlib.pyplot as plt import seaborn as sns #Simulate the random experiment 1000 times sample = np.random.binomial(n = 15, p = 0.5, size = 1000) #Plot the probabilities of each outcome using sample data sns.countplot(x=sample, stat="percent")