How to Use the HYPGEOMDIST Function in Excel

Today, we’ll explore the HYPGEOMDIST function, a statistical formula used both in Excel and Google Sheets for calculating the probability of achieving a certain number of successes within a sample size from a given population that has a specific number of successes.

How does it work?

The syntax for the HYPGEOMDIST function in Excel and Google Sheets is detailed below:

=HYPGEOMDIST(sample_s, number_sample, population_s, number_pop, cumulative)
  • sample_s: Represents the number of successes in the sample.
  • number_sample: Indicates the total number of observations in the sample.
  • population_s: Specifies the number of successes in the entire population.
  • number_pop: Describes the total population size.
  • cumulative: This logical argument determines the function’s output. If set to TRUE, the function provides the cumulative distribution function; if FALSE, it returns the probability mass function. This parameter is optional.

Examples of tasks where HYPGEOMDIST can be applied:

Example 1: Calculate the likelihood of drawing 2 aces from 5 cards out of a standard 52-card deck, which includes 4 aces.

sample_s number_sample population_s number_pop cumulative Formula Result
2 5 4 52 FALSE =HYPGEOMDIST(2, 5, 4, 52, FALSE) 0.1264

The probability of drawing 2 aces when selecting 5 cards from a standard deck of 52 cards is approximately 0.1264, or 12.64%.

Example 2: Assess the cumulative probability of obtaining no more than 3 heads when flipping a fair coin 5 times.

sample_s number_sample population_s number_pop cumulative Formula Result
0-3 5 2 2 TRUE =HYPGEOMDIST(3, 5, 2, 2, TRUE) 0.9688

Thus, the cumulative probability of getting up to 3 heads when flipping a fair coin 5 times is about 0.9688 or 96.88%.

As demonstrated in the examples, the HYPGEOMDIST function can be invaluable for various scenarios where you need to calculate probabilities based on specific samples and populations. Be sure to adjust the input values as necessary for your specific application.

More information: https://support.microsoft.com/en-us/office/hypgeomdist-function-23e37961-2871-4195-9629-d0b2c108a12e

Other functions
Returns the beta cumulative distribution function
Returns the inverse of the cumulative distribution function for a specified beta distribution
Returns the individual term binomial distribution probability
Returns the one-tailed probability of the chi-squared distribution
Returns the inverse of the one-tailed probability of the chi-squared distribution
Returns the test for independence
Returns the confidence interval for a population mean
Returns covariance, the average of the products of paired deviations
Returns the smallest value for which the cumulative binomial distribution is less than or equal to a criterion value
Returns the exponential distribution
Returns the F probability distribution
Rounds a number down, toward zero
Returns the result of an F-test
Returns the gamma distribution
Returns the inverse of the gamma cumulative distribution
Returns the inverse of the lognormal cumulative distribution
Returns the cumulative lognormal distribution
Returns the most common value in a data set
Returns the negative binomial distribution
Returns the inverse of the normal cumulative distribution
Returns the normal cumulative distribution
Returns the standard normal cumulative distribution
Returns the inverse of the standard normal cumulative distribution
Returns the k-th percentile of values in a range
Returns the percentage rank of a value in a data set
Returns the Poisson distribution
Returns the quartile of a data set
Returns the rank of a number in a list of numbers
Estimates standard deviation based on a sample
Calculates standard deviation based on the entire population
Returns the Student's t-distribution
Returns the inverse of the Student's t-distribution
Returns the probability associated with a Student's t-test
Estimates variance based on a sample
Calculates variance based on the entire population
Calculates variance based on the entire population, including numbers, text, and logical values
Returns the one-tailed probability-value of a z-test