11.1 C
London
Sunday, July 7, 2024
HomeSoftware TutorialsExcelHow to Use the Hypergeometric Distribution in Excel

How to Use the Hypergeometric Distribution in Excel

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

The hypergeometric distribution describes the probability of choosing k objects with a certain feature in n draws without replacement, from a finite population of size that contains objects with that feature.

If a random variable X follows a hypergeometric distribution, then the probability of choosing objects with a certain feature can be found by the following formula:

P(X=k) = KCk (N-KCn-k) / NCn

where:

  • N: population size
  • K: number of objects in population with a certain feature
  • n: sample size
  • k: number of objects in sample with a certain feature
  • KCknumber of combinations of K things taken k at a time

To calculate probabilities related to the hypergeometric distribution in Excel, we can use the following formula:

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

where:

  • sample_s: number of successes in sample
  • number_sample: size of sample
  • population_s: number of successes in population
  • number_pop: population size
  • cumulative: Whether to calculate the cumulative distribution function

The following examples show how to use this formula in practice.

Example 1: Picking Cards from a Deck

There are 4 Queens in a standard deck of 52 cards. Suppose we randomly pick a card from a deck, then, without replacement, randomly pick another card from the deck. What is the probability that both cards are Queens?

We can use the following formula in Excel to calculate the probability that both cards are Queens:

Hypergeometric distribution in Excel

The probability that both cards are Queens is .00452.

Example 2: Picking Balls from an Urn

An urn contains 3 red balls and 5 green balls. You randomly choose 4 balls. What is the probability that you choose exactly 2 red balls?

We can use the following formula in Excel to find this probability:

The probability that you choose exactly 2 red balls is .428571.

Example 3: Choosing Marbles from a Basket

A basket contains 7 purple marbles and 3 pink marbles. You randomly choose 6 marbles. What is the probability that you choose exactly 3 pink marbles?

We can use the following formula in Excel to find this probability:

The probability that you choose exactly 3 pink marbles is .16667.

Additional Resources

An Introduction to the Hypergeometric Distribution
Online Hypergeometric Distribution Calculator

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories