Probability, Probability Distributions, Probability Theory, Python, Statistics.
if the PMF of X has the form: Geometric distribution is used in a multiple-trial situation where the first occurrence of success is required after the k times failures or the first occurrence of failure is required after the k times success. Concrete example is as follows: In the coding example,