Probability, Probability Distributions, Probability Theory, Python, Statistics.
20): p = (alpha ** i) * np.exp(-alpha) / math.perm(i) px.append(p) ax[0].bar(x, px) ax[0].set_xlabel('trial(x = 1, 2, ...)') ax[0].set_ylabel('probability') ax[0].set_title(f'The PMF of Poisson Random Variable alpha={alpha}') # Poisson Random Variable n = 20 alpha = 20 * 0.25 x = np.arange(1, n) px