Probability, Probability Distributions, Probability Theory, Python, Statistics.
you can write in Python as follows: import numpy as np import matplotlib.pyplot as plt # Geometric Random Variable x = np.arange(1, 51) reject = 0.2 accept = 1 - reject px = reject * accept ** (x - 1) plt.bar(x, px) plt.xlabel('trial(x = 1, 2, ...)') plt.ylabel('probability') plt.title('The PMF of