Hypergeometric Distribution Calculator
Calculate probabilities for sampling without replacement with formula explanation and examples
What is the Hypergeometric Distribution?
The hypergeometric distribution is a discrete probability distribution that models the probability of obtaining a specific number of successes when drawing samples from a finite population without replacement. Unlike the binomial distribution, the probability of success changes with each draw because the population composition changes.
Key Parameters:
- N = Total population size
- K = Number of success items in the population
- n = Sample size (number of draws)
- k = Number of successes in the sample
Hypergeometric Distribution Calculator
📊 Calculate Hypergeometric Probability
Formula Explanation
Numerator Components
C(K,k) = Ways to choose k successes from K available successes
C(N-K,n-k) = Ways to choose (n-k) failures from (N-K) available failures
Denominator
C(N,n) = Total ways to choose n items from N items in the population
This represents all possible samples of size n
Combination Formula
C(n,r) = n! / (r!(n-r)!)
Where n! = n × (n-1) × (n-2) × ... × 1
Worked Examples
Practical Problem Examples
Problem: A deck has 52 cards with 13 hearts. If you draw 5 cards without replacement, what's the probability of getting exactly 2 hearts?
Solution:
- Identify parameters: N = 52, K = 13, n = 5, k = 2
- Calculate C(13,2) = 13!/(2!×11!) = (13×12)/2 = 78
- Calculate C(39,3) = 39!/(3!×36!) = (39×38×37)/(3×2×1) = 9,139
- Calculate C(52,5) = 52!/(5!×47!) = 2,598,960
- P(X = 2) = (78 × 9,139)/2,598,960 = 0.2743
Problem: A batch of 100 products contains 8 defective items. If 15 products are randomly selected for testing, what's the probability that exactly 1 is defective?
Solution:
- Parameters: N = 100, K = 8, n = 15, k = 1
- C(8,1) = 8
- C(92,14) = 92!/(14!×78!) = 3.77 × 10¹¹
- C(100,15) = 100!/(15!×85!) = 2.53 × 10¹⁴
- P(X = 1) = (8 × 3.77×10¹¹)/(2.53×10¹⁴) = 0.119
Problem: A class of 30 students has 18 females. If 6 students are randomly chosen for a committee, what's the probability that exactly 4 are female?
Solution:
- Parameters: N = 30, K = 18, n = 6, k = 4
- C(18,4) = 18!/(4!×14!) = 3,060
- C(12,2) = 12!/(2!×10!) = 66
- C(30,6) = 30!/(6!×24!) = 593,775
- P(X = 4) = (3,060 × 66)/593,775 = 0.340
Applications & When to Use
Quality Control
Testing products from batches without replacement to assess defect rates and quality standards
Survey Sampling
Polling specific demographics from finite populations without double-counting respondents
Market Research
Analyzing customer preferences when sampling from limited customer databases
Medical Testing
Selecting patients for clinical trials from specific population groups
Game Theory
Calculating probabilities in card games and lottery systems without replacement
Inventory Management
Predicting stock levels and demand patterns with finite inventory systems
Key Decision Criteria:
Use Hypergeometric when: Finite population, sampling without replacement, probability changes with each draw
Use Binomial when: Large population, sampling with replacement, constant probability of success