HYPGEOM.DIST
Returns hypergeometric probabilities for successes drawn without replacement.
Use HYPGEOM.DIST for finite-population sampling where each draw changes remaining odds.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=HYPGEOM.DIST(sample_s, number_sample, population_s, number_pop, cumulative)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
sample_s | number | Required | — |
number_sample | number | Required | — |
population_s | number | Required | — |
number_pop | number | Required | — |
cumulative | number | Required | — |
How it works
For k sample successes among n draws from N items with K successes, the point probability is C(K,k) C(N−K,n−k) / C(N,n). The counts must support drawing without replacement. The cumulative option sums the feasible counts through k.
Remarks
- Count inputs are truncated to integers.
- Requires valid population/sample bounds and feasible success counts.
- Set
cumulativeto non-zero for CDF mode, or0for PMF mode.
Error cases
- Returns
#NUM!for invalid population setup; out-of-support PMF values return0.
Examples
Find the probability of two successes when sampling without replacement.
Formula =HYPGEOM.DIST(2,5,8,20,FALSE)
Expected result 0.397316821465427
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Accumulate probabilities for two or fewer successes.
Formula =HYPGEOM.DIST(2,5,8,20,TRUE)
Expected result 0.703818369453043
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Evaluate a sample with no successes.
Formula =HYPGEOM.DIST(0,5,8,20,FALSE)
Expected result 0.0510835913312692
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The sample size cannot exceed the entire population.
Formula =HYPGEOM.DIST(2,21,8,20,FALSE)
Expected result #NUM!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Find the probability of exactly one success in three draws from ten items, five of which count as successes.
Formula =HYPGEOM.DIST(1,3,5,10,FALSE)
Expected result 0.416666666666669
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Hypergeometric CDF
Formula =HYPGEOM.DIST(1,3,4,10,TRUE)
Expected result 0.666666666666668
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.