STATISTICSDistributionsStatistics Calculator
๐Ÿ“Š

Hypergeometric Distribution Calculator

Free hypergeometric calculator. P(X=k) for sampling without replacement. PMF, CDF, mean, variance. P

Run CalculatorExplore data analysis and statistical calculations

Why This Statistical Analysis Matters

Why: Statistical calculator for analysis.

How: Enter inputs and compute results.

๐Ÿƒ
STATISTICSDistributions

Hypergeometric Distribution โ€” Sampling Without Replacement

Drawing k successes from N with K total. Poker hands, lottery odds, quality control, capture-recapture. PMF, CDF, mean nK/N.

Real-World Scenarios โ€” Click to Load

Inputs

hypergeom_results.sh
CALCULATED
$ hypergeom --N=52 --K=13 --n=5 --k=2
P(X=2)
27.4280%
Mean (nK/N)
1.2500
Variance
0.8640
ฯƒ
0.9295
Binomial approx valid: Use with caution
Share:
Hypergeometric (N=52, K=13, n=5)
P(X=2)
27.4280%
Mean = nK/N = 1.250Variance = 0.864Sampling w/o replacement
numbervibe.com/calculators/statistics/hypergeometric-distribution-calculator

PMF Bar Chart โ€” P(X=k)

CDF Step Chart โ€” P(Xโ‰คk)

Hypergeometric vs Binomial Approximation

When n โ‰ช N, binomial with p=K/N approximates hypergeometric.

Calculation Breakdown

SUMMARY
Mean (nK/N)
1.2500
5ร—13/52
Variance
0.8640
n imes (K/N) imes ((N-K)/N) imes ( rac{N-n}{N-1})
ฯƒ
0.9295
PROBABILITY
P(X=k)
27.4280%
C(13,2)ร—C(52-13,5-2)/C(52,5)

For educational and informational purposes only. Verify with a qualified professional.

Key Takeaways

  • โ€ข Hypergeometric models sampling without replacement from a finite population
  • โ€ข Each draw changes the composition of the remaining population
  • โ€ข Mean = nK/N; Variance includes finite population correction (N-n)/(N-1)
  • โ€ข When n โ‰ช N, binomial approximation with p=K/N works well
  • โ€ข Poker hands, lottery, quality control, capture-recapture all use hypergeometric

Did You Know?

๐ŸƒP(2 hearts in 5-card hand): N=52, K=13, n=5, k=2 โ€” classic hypergeometricSource: Poker
๐ŸŽฐLottery: pick 6 from 49. P(matching k numbers) follows hypergeometricSource: Gaming
๐Ÿ“ฆQuality control: inspect n from batch N with K defectives. P(k defectives) is hypergeometricSource: QC
๐ŸŸCapture-recapture ecology estimates population size using hypergeometricSource: Ecology
๐ŸงฌGene selection: drawing from finite gene pool without replacementSource: Genetics
๐Ÿ“ŠCommittee selection: k women from n when K women in pool of NSource: Sampling

How It Works

Sampling Without Replacement

Each draw removes an item. Probability of success changes with each draw.

PMF Formula

P(X=k) = C(K,k)ร—C(N-K,n-k)/C(N,n). Choose k successes from K, (n-k) failures from (N-K), divided by total ways to choose n from N.

Mean and Variance

Mean = nK/N. Variance smaller than binomial due to (N-n)/(N-1) finite population correction.

When to Use Binomial

When n/N is very small (<5%), binomial with p=K/N approximates hypergeometric well.

Valid Range for k

max(0, n-(N-K)) โ‰ค k โ‰ค min(n, K). Cannot draw more successes or failures than exist.

Expert Tips

Hypergeometric vs Binomial

Use hypergeometric when sampling without replacement; binomial when with replacement or nโ‰ชN.

Finite Population

The (N-n)/(N-1) factor reduces variance โ€” sampling depletes the population.

Poker Hands

Deck N=52. Hearts K=13. Draw 5: n=5. P(2 hearts) is hypergeometric.

Quality Control

Inspect n from batch N with K defectives. P(k defectives in sample) is hypergeometric.

Hypergeometric vs Binomial

FeatureHypergeometricBinomial
ReplacementWithoutWith
PopulationFinite (N)Infinite
Probability pChanges each drawConstant
VarianceSmaller (FPC)np(1-p)
Use caseCards, lottery, QCCoin flips, surveys

Frequently Asked Questions

When hypergeometric vs binomial?

Use hypergeometric when sampling without replacement from finite population. Use binomial when trials are independent (with replacement) or n/N < 5%.

What is finite population correction?

The factor (N-n)/(N-1) in variance. Reduces variance because drawing depletes the population โ€” you cannot draw the same item twice.

How to calculate P(X โ‰ค k)?

Sum P(X=i) for i from max(0, n-(N-K)) to k. This is the CDF.

Can binomial approximate hypergeometric?

Yes. When n โ‰ช N (e.g., n/N < 0.05), use binomial with p=K/N. The chart shows how close they are.

Valid values for k?

max(0, n-(N-K)) โ‰ค k โ‰ค min(n, K). Need enough successes and failures in population.

Poker: 2 hearts in 5 cards?

N=52, K=13 (hearts), n=5, k=2. P(X=2) = C(13,2)ร—C(39,3)/C(52,5).

Lottery 6/49?

N=49, K=6 (your numbers), n=6 (drawn). P(match k) = C(6,k)ร—C(43,6-k)/C(49,6).

Quality control example?

Batch of 100, 5 defectives. Inspect 10. P(1 defective) = C(5,1)ร—C(95,9)/C(100,10).

Hypergeometric by the Numbers

C(K,k)
Ways to choose k successes
nK/N
Mean
(N-n)/(N-1)
FPC factor
nโ‰ชN
Binomial approx

Disclaimer: This calculator provides hypergeometric probabilities for educational and professional reference. For critical applications (lottery, QC, ecology), verify against established statistical software. Ensure 0 โ‰ค K โ‰ค N, 1 โ‰ค n โ‰ค N, and max(0, n-(N-K)) โ‰ค k โ‰ค min(n, K).

๐Ÿ‘ˆ START HERE
โฌ…๏ธJump in and explore the concept!
AI

Related Calculators