Free Hypergeometric Distribution Calculator
Results
Enter the parameters to compute probabilities
Introduction to the Hypergeometric Distribution Calculator
The hypergeometric distribution calculator is a dedicated tool for calculating probabilities associated with the hypergeometric probability distribution, a discrete probability distribution that models the number of successes in a fixed-size sample drawn without replacement from a finite population. This hypergeometric probability calculator computes both the probability mass function (PMF) and the cumulative distribution function (CDF) for given parameters, making it an indispensable resource for statistics, quality control, and games of chance.
What Is the Hypergeometric Distribution?
The hypergeometric distribution describes the probability of obtaining exactly successes (items with a particular attribute) in a sample of size drawn from a population of size that contains exactly successes. Critically, each item can be selected only once—sampling without replacement—so the probability of success changes as items are removed. This contrasts with binomial sampling, where replacement keeps probabilities constant.
The distribution appears naturally in many real-world contexts: drawing cards from a deck, selecting defective products from a batch, or in Fisher’s exact test for small contingency tables. The hypergeometric distribution probability calculation is essential whenever the population is finite and sampling is without replacement.
Parameters of the Hypergeometric Distribution
Four values define a specific hypergeometric scenario:
- – total number of items in the population.
- – number of “success” items in the population.
- – number of items drawn (sample size).
- – number of successes observed in the sample (used as input for the PMF).
A random variable following the hypergeometric distribution is denoted as .
Key Formulas
The probability of obtaining exactly successes is given by:
where is the binomial coefficient.
Equivalent factorial form:
The mean (expected value) of the hypergeometric distribution is:
The variance is:
The standard deviation is the square root of variance:
How to Use the Hypergeometric PMF and CDF Calculator
Operating this hypergeometric distribution calculator is straightforward:
- Enter the population size , number of successes in population , and sample size .
- Specify the number of observed successes .
- Select the probability type: PMF for , or CDF for cumulative probabilities like , , , or .
- The calculator instantly returns the requested probability. Below the result, it also displays the mean, variance, and standard deviation of the distribution for your parameters.
This tool eliminates tedious factorial computations, giving you accurate hypergeometric distribution probability results in seconds.
Worked Example
Consider a box containing 12 dark chocolate bars and 36 white chocolate bars (total , ). You draw 10 bars at random without replacement (). What is the probability of drawing exactly 4 dark bars?
Using the calculator, you can also find:
- Mean:
- Variance:
- Standard deviation:
The hypergeometric CDF calculator can quickly sum the individual probabilities for you.
Hypergeometric vs. Binomial Distribution
Both distributions count successes in trials, but they differ in sampling method:
| Feature | Hypergeometric | Binomial |
|---|---|---|
| Sampling | Without replacement | With replacement |
| Trial dependence | Dependent (population changes) | Independent (constant probability) |
| Population size | Finite, known | Infinite or very large |
| Success probability | Changes each draw | Constant |
When the population size is large relative to the sample size , the hypergeometric distribution approximates the binomial distribution, but they remain distinct.
Use the hypergeometric distribution when:
- Sampling without replacement.
- The population is finite and not extremely large compared to the sample.
Use the binomial distribution when:
- Sampling with replacement.
- Each trial is independent with constant probability.
Conclusion
The hypergeometric distribution probability calculator offers a fast and reliable way to compute probabilities, means, and variances for sampling without replacement problems. Whether you are analyzing quality control samples, card games, or performing Fisher’s exact test, this hypergeometric probability calculator and sampling without replacement calculator will handle the heavy math.
FAQ
1. How do I calculate a probability using the hypergeometric distribution calculator?
Enter the population size (N), number of successes in the population (K), sample size (n), and the desired number of successes (k). Choose whether you want P(X = k) or a cumulative probability (e.g., P(X ≥ k)). The calculator will return the probability along with the mean, variance, and standard deviation of the distribution.
2. What is the difference between the hypergeometric and binomial distributions?
The key difference is sampling: the hypergeometric distribution assumes sampling without replacement, so outcomes are dependent and probabilities change after each draw. The binomial distribution assumes sampling with replacement, giving constant success probability and independent trials.
3. When should I use the hypergeometric PMF vs. the hypergeometric CDF?
Use the PMF (P(X = k)) when you need the exact probability of a specific number of successes. Use the CDF for cumulative probabilities, such as P(X ≤ k) (probability of at most k successes) or P(X ≥ k) (probability of at least k successes). The hypergeometric CDF calculator can compute all four cumulative types.
4. What do the parameters N, K, n, and k mean in the hypergeometric distribution?
N = total items in the population. K = total number of “success” items in the population. n = number of items drawn in the sample (without replacement). k = number of successes observed in that sample. The hypergeometric probability calculator uses these four values to compute the probability of exactly k successes.
How to Use
- Enter the population size (N), number of success states in population (K), sample size (n), and number of success states in sample (k).
- Select the probability type: P(X = k), P(X > k), P(X ≥ k), P(X < k), or P(X ≤ k).
- View the probability result along with the mean, variance, and standard deviation of the hypergeometric distribution.