Geometric Distribution Calculator
Find exact and cumulative geometric probabilities, mean, variance, and a full distribution table for any k and p.
🎯 What is the Geometric Distribution?
The geometric distribution models the number of independent Bernoulli trials needed to obtain the first success. Each trial has two possible outcomes (success or failure), every trial is independent of the others, and the probability of success p remains constant across all trials. If you roll a die repeatedly until you get a six, or call customers until one agrees to a demo, or inspect products until you find a defect, the number of attempts follows a geometric distribution.
The probability mass function (PMF) is P(X = k) = (1 - p)^(k-1) times p for k = 1, 2, 3, and so on. The term (1 - p)^(k-1) is the probability of exactly k-1 consecutive failures, and the final p is the probability of success on the k-th trial. There is only one arrangement because the success must fall on the last trial, so no binomial coefficient appears in the formula.
The geometric distribution has three key properties that set it apart from other discrete distributions. First, it is memoryless: if the first success has not occurred by trial m, the conditional probability that it occurs on trial m + n is exactly the same as if you started fresh. Second, the support is infinite: unlike the binomial (which has fixed n), the geometric can take any positive integer value. Third, it belongs to the exponential family, making it the discrete analogue of the continuous exponential distribution.
Common real-world applications include modelling the number of free throws until a basketball player makes a shot, the number of network packets sent before one is successfully acknowledged, the number of customer calls until a sale, and the number of quality-control inspections until a defective unit is found. In each case the key assumption is that trials are independent and p is constant, which should be verified before applying the geometric model.
📐 Formula
📖 How to Use This Calculator
Steps
💡 Example Calculations
Example 1: Free Throw Shooting (p = 70%, k = 2)
A basketball player makes 70% of free throws. What is the probability the first made shot occurs on attempt 2?
Example 2: Sales Call Conversion (p = 10%, k = 5)
A salesperson closes a deal on 10% of calls. What is the probability the first sale happens on the 5th call?
Example 3: Quality Control Inspection (p = 5%, k = 1)
A production line has a 5% defect rate. What is the probability the first defective unit is the very first inspected?
❓ Frequently Asked Questions
🔗 Related Calculators
What is the geometric distribution formula?
P(X = k) = (1-p)^(k-1) times p, where k is the trial number of the first success (k = 1, 2, 3, ...) and p is the probability of success on each trial. C(n,k) is not needed here because there is only one way to get k-1 failures followed by one success.
What is the mean of the geometric distribution?
The mean (expected value) is mu = 1/p. For example, if each trial has a 25% success probability, the expected trial number of the first success is 1/0.25 = 4.
What is the variance of the geometric distribution?
The variance is sigma^2 = (1-p)/p^2 and the standard deviation is sigma = sqrt((1-p)/p^2). For p = 0.25, the variance is 0.75/0.0625 = 12 and the standard deviation is about 3.464.
What does memoryless mean for the geometric distribution?
Memoryless means P(X is greater than m+n | X is greater than m) = P(X is greater than n). Past failures carry no information about future trials. The geometric distribution is the only discrete memoryless distribution.
What is the difference between the geometric and negative binomial distribution?
The geometric distribution counts trials until the first success. The negative binomial counts trials until the r-th success. The geometric is a special case of the negative binomial with r = 1.
What is P(X greater than k) for the geometric distribution?
P(X is greater than k) = (1-p)^k. This is the probability of k consecutive failures. For example, with p = 0.3 and k = 4, P(X is greater than 4) = 0.7^4 = 0.2401, about 24%.
When should I use the geometric distribution?
Use the geometric distribution when you repeat independent Bernoulli trials (each with constant success probability p) and want to model the number of trials until the first success. Examples: quality control inspections, customer conversion funnels, and network packet retransmissions.
What is the cumulative distribution function (CDF) of the geometric distribution?
The CDF is P(X is less than or equal to k) = 1 - (1-p)^k. This gives the probability that the first success occurs by trial k. For p = 0.5 and k = 3, CDF = 1 - 0.5^3 = 0.875.