The geometric distribution models the number of trials required to achieve a first success in a sequence of independent Bernoulli trials, each with the same probability of success p. It is the fundamental distribution for waiting-time problems and is widely used in reliability engineering, sports analytics, epidemiology, and quality control.

The Formula

P(X = k) = (1 \u2212 p)k\u22121 \u00d7 p

Where p is the probability of success on a single trial and k is the trial number on which the first success occurs (k = 1, 2, 3, ...). A geometric distribution calculator computes this probability and provides the full distribution for any p value.

Key Properties

  • Support: k = 1, 2, 3, ... (positive integers)
  • Mean (expected trials): E(X) = 1/p
  • Variance: Var(X) = (1\u2212p)/p\u00b2
  • Standard Deviation: \u221a((1\u2212p)/p\u00b2)
  • Memoryless Property: P(X > n+m | X > m) = P(X > n)

Worked Example: First Success

You have a 25% chance of making a free throw. What is the probability that your first successful shot occurs on the 4th attempt? Here p = 0.25 and k = 4.

P(X = 4) = (0.75)\u00b3 \u00d7 0.25 = 0.4219 \u00d7 0.25 = 0.1055 \u2248 10.5%. The expected number of attempts is 1/0.25 = 4. The geometric probability calculator shows the full distribution with an interactive chart.

Negative Binomial Distribution (Nth Success)

The negative binomial distribution generalizes the geometric distribution to model the number of trials needed to achieve r successes. Its PMF is:

P(X = k) = C(k\u22121, r\u22121) \u00d7 pr \u00d7 (1\u2212p)k\u2212r

Where k is the trial number of the r-th success. The expected number of trials is E(X) = r/p. When r = 1, the negative binomial reduces to the geometric distribution. Use the "Nth Success" tab on this calculator to compute negative binomial probabilities for any r and p.

When to Use the Geometric Distribution

  • You are waiting for a single success to occur
  • Each trial is independent with the same success probability
  • The number of failures before the first success is of interest
  • The trials continue until success occurs (not a fixed number of trials)

The geometric distribution is closely related to the binomial distribution. While the binomial counts successes in a fixed number of trials, the geometric counts trials needed for a fixed number of successes. Understanding both gives you a complete toolkit for analyzing Bernoulli processes. For rare events with large counts, consider using the Poisson distribution calculator as an alternative modeling approach.

Applications of the Geometric Distribution

The geometric distribution appears throughout statistics and everyday life. Quality engineers use it to model the number of items inspected before finding a defective product. In healthcare, it describes the number of patients tested before a positive diagnosis. Gamblers use it to analyze waiting times for specific outcomes in games of chance.

In computer science, the geometric distribution models the number of cache misses before a hit, the number of packet retransmissions in a network, and the number of database queries before a successful lookup. Biologists use it to model the number of offspring needed to observe a particular genetic trait. Market researchers use it to estimate the number of sales calls needed before a conversion.

The memoryless property of the geometric distribution makes it unique among discrete distributions. This property means that the probability of needing additional trials does not depend on how many trials have already been attempted. This is analogous to the exponential distribution in continuous probability, which is the continuous counterpart to the geometric distribution. The negative binomial extension provides even more flexibility for modeling overdispersed count data where the variance exceeds the mean.

Common Mistakes

  • Confusing geometric with binomial: The binomial distribution counts successes in a fixed number of trials; the geometric counts trials until the first success. They answer fundamentally different questions.
  • Forgetting the (k\u22121) exponent: There are k\u22121 failures before the success on trial k, so the exponent on (1\u2212p) is k\u22121, not k.
  • Using geometric for non-independent trials: The independence assumption is critical. If the probability of success changes based on previous outcomes (like drawing cards without replacement), the geometric distribution does not apply.
What is the memoryless property of the geometric distribution?
The memoryless property means that P(X > n+m | X > m) = P(X > n). In other words, having already failed m trials does not change the probability distribution of remaining trials needed. This is unique to the geometric distribution among discrete distributions.
Can p be any value between 0 and 1?
Yes, but the expected number of trials (1/p) grows very large as p approaches 0. For very small p, the distribution becomes highly skewed with a long tail of possible trial numbers.
What is the relationship between geometric and exponential distributions?
The geometric distribution is the discrete analogue of the exponential distribution. Both are memoryless and model waiting times. The exponential is used for continuous time, while the geometric is used for discrete trial counts.
Geometric Parameters

Mean: 1/p

Variance: (1\u2212p)/p\u00b2

Std Dev: \u221a((1\u2212p)/p\u00b2)

Negative Binomial

Mean: r/p

Variance: r(1\u2212p)/p\u00b2

Special case: r=1 is geometric