# HYPGEOM.DIST Function

The HYPGEOM.DIST function is one of the statistical functions. It is used to return the hypergeometric distribution, the probability of a given number of sample successes, given the sample size, population successes, and population size.

The HYPGEOM.DIST function syntax is:

HYPGEOM.DIST(sample_s, number_sample, population_s, number_pop, cumulative)

where

sample_s is the number of the successes in the given sample, a numeric value greater than 0, but less than the lesser of number_sample or population_s.

number_sample - the size of the sample, a numeric value greater than 0, but less than number_pop.

population_s - the number of the successes in the population, a numeric value greater than 0, but less than number_pop.

number_pop - the size of the population, a numeric value greater than 0.

cumulative - is a logical value (TRUE or FALSE) that determines the function form. If it is TRUE, the function returns the cumulative distribution function. If it is FALSE, the function returns the probability mass function.

The numeric values can be entered manually or included into the cells you make reference to.

To apply the HYPGEOM.DIST function,

1. select the cell where you wish to display the result,
2. click the Insert function icon situated at the top toolbar,
   or right-click within a selected cell and select the Insert Function option from the menu,
   or click the icon situated at the formula bar,
3. select the Statistical function group from the list,
4. click the HYPGEOM.DIST function,
5. enter the required arguments separating them by commas,
6. press the Enter button.

The result will be displayed in the selected cell.