Geometric Distribution

The geometric distribution, also known as the discrete waiting time distribution, models the number of failures before the first success in a series of Bernoulli trials. A Bernoulli trial is an experiment with two possible outcomes, labeled 'success' and 'failure,' where the probability of success has a fixed value for all trials.

Definition

The geometric distribution has one parameter p (0 ≤ p ≤ 1), which represents the probability of success. The probability mass function (PMF) is given by:

P(X=k)=(1p)kp

The cumulative distribution function (CDF) is:

F(k)=1(1p)k+1

The domain of the geometric distribution is k{0,1,2,}. The parameter p must satisfy 0p1.

Applications

The geometric distribution is widely used in various fields due to its simplicity and fundamental nature. Common applications include:

  • The number of successive hits by a baseball player (assuming the probability of a hit is constant) has a geometric distribution with parameter p=1(batting average).

  • The number of attempts made by a player to hit a target has a geometric distribution.

Properties

The geometric distribution has several important statistical properties:

Statistical Properties
PropertyValue
Mean1pp
Variance1pp2
Skewness2p1p
Kurtosis6+p21p
Median1log2(1p)
Mode0
Support{0,1,2,}
Entropyplog(p)+(1p)log(1p)p

Relationships to Other Distributions

The geometric distribution is closely related to several other distributions:

  • The Negative Binomial Distribution is a generalization of the geometric distribution, modeling the number of failures before the nth success in a series of Bernoulli trials.

  • The Binomial Distribution models the number of successes in a fixed number of Bernoulli trials.

The GeometricDistribution class

The geometric distribution is implemented by the GeometricDistribution class. It has one constructor which takes one argument: the probability of success of a trial. The probability must be between 0 and 1. The following constructs a geometric distribution with a probability of success 0.4:

C#
var geometric = new GeometricDistribution(0.4);

The GeometricDistribution class has one specific property, ProbabilityOfSuccess, which returns the probability of success of a trial.

GeometricDistribution has one static (Shared in Visual Basic) method, Sample, which generates a random sample using a user-supplied uniform random number generator.

C#
var random = new Pcg32();
int sample = GeometricDistribution.Sample(random, 0.4);

The above example uses the Pcg32 class to generate uniform random numbers.

For details of the properties and methods common to all discrete probability distribution classes, see the topic on Discrete Probability Distributions.

References

  • "Introduction to Probability Models" by Sheldon M. Ross.

  • "Probability and Statistics" by Morris H. DeGroot and Mark J. Schervish.

See Also