Worked Example: Worked Mathematical Example: Hypergeometric Probability
Compute exact probability P(X=k) when drawing n items without replacement from population N.
- Specify the function parameters, matrix entries, or confusion matrix counts.
- Apply the closed-form or iterative formula: P(X = k) = [ C(K, k) × C(N − K, n − k) ] / C(N, n); Mean = n × (K / N).
- Examine the primary result, error bounds, and 3 interactive SVG plots.
Result: Computes Hypergeometric Probability via P(X = k) = [ C(K, k) × C(N − K, n − k) ] / C(N, n); Mean = n × (K / N).
Mathematics & Statistics · Probability Distributions & Survival Analysis
Hypergeometric Distribution (Sampling Without Replacement / Lottery & Audit) Calculator: inputs, method, and how to read the result
Compute exact probability P(X=k) when drawing n items without replacement from population N.
Choose inputs for the case you are checking
The defaults are illustrative. Replace them with values for your case and keep the units shown beside each field.
- Population Size N: Total finite population size N (e.g., 52 cards in a deck).
- Success States In Pop K: Total success items K in the population (e.g., 13 hearts).
- Sample Draws Count Small N: Number of items drawn without replacement (n).
- Observed Successes Small K: Target number of successes k in the sample.
What the calculation includes
With the default values shown, Hypergeometric Probability P(X = 2) is 27.428 %. The calculation follows Hypergeometric Probability Formula; the formula and variable definitions above show how the inputs combine.
One-input check: With the other defaults held constant, changing Population Size N from 52 N to 57 N changes Hypergeometric Probability P(X = 2) from 27.428 % to 24.672 %. This is a comparison inside the calculator's stated model, not a prediction.
Where to use caution
- Uses exact analytical or standard numerical analysis formulations from NIST DLMF.
- Double-precision floating-point arithmetic has ~15–17 significant decimal digits of precision.
Scope: Global Mathematical & Statistical Standard Check the assumptions and limitations against your situation before relying on the estimate.
More in Mathematics & Statistics: Scientific Calculator, Statistics & Standard Deviation Calculator, Permutations, Combinations, Probability, Sample Size & P-Value Calculator.