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.

P(X = k) = [C(K,k) × C(N-K,n-k)] / C(N,n)

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

Total number of items
Success items in population
Number of items drawn
Desired successes in sample
Enter parameters above to 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

🎴 Example 1: Card Drawing

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:

  1. Identify parameters: N = 52, K = 13, n = 5, k = 2
  2. Calculate C(13,2) = 13!/(2!×11!) = (13×12)/2 = 78
  3. Calculate C(39,3) = 39!/(3!×36!) = (39×38×37)/(3×2×1) = 9,139
  4. Calculate C(52,5) = 52!/(5!×47!) = 2,598,960
  5. P(X = 2) = (78 × 9,139)/2,598,960 = 0.2743
Answer: The probability is approximately 27.43%
📦 Example 2: Quality Control

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:

  1. Parameters: N = 100, K = 8, n = 15, k = 1
  2. C(8,1) = 8
  3. C(92,14) = 92!/(14!×78!) = 3.77 × 10¹¹
  4. C(100,15) = 100!/(15!×85!) = 2.53 × 10¹⁴
  5. P(X = 1) = (8 × 3.77×10¹¹)/(2.53×10¹⁴) = 0.119
Answer: The probability is approximately 11.9%
🎓 Example 3: Student Selection

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:

  1. Parameters: N = 30, K = 18, n = 6, k = 4
  2. C(18,4) = 18!/(4!×14!) = 3,060
  3. C(12,2) = 12!/(2!×10!) = 66
  4. C(30,6) = 30!/(6!×24!) = 593,775
  5. P(X = 4) = (3,060 × 66)/593,775 = 0.340
Answer: The probability is approximately 34.0%

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