Probability, Probability Distributions, Probability Theory, Python, Statistics.
follows: import numpy as np import matplotlib.pyplot as plt # Uniform Random Variable n = 30 x = np.arange(1, n + 1) p = 1 / n px = np.ones((n,)) * p plt.bar(x, px) plt.xlabel('trial(x = 1, 2, ...)') plt.ylabel('probability') plt.title('The PMF of Uniform Random Variable') plt.show() 3.6 Poisson