Hypergeometric Distribution Calculator

The hypergeometric distribution is much like the binomial distribution except the probabilities involved with a hypergeometric distribution are not constant from experiment to experiment. Instead, after each observation, it is not assumed that the state of the population is left untouched; rather, observations are not replaced and are removed from the set of possibilities. Take a card deck for example. If you draw a card from a deck, if a hypergeometric distribution is assumed, that card is not replaced to the deck for the next draw. If it were, we would have to look to the binomial distribution. That is the only difference.

The probability of observing x occurrences of some type from a population N that has k possible outcomes that could result in x where a sample of size n is taken is represented by the probability density function (pdf) P(X = x) = kCx * N-kCn-x / NCn.

The mean of such a distribution is n * k / N and the variance is n * k * (N - k) * (N - n) / ((N2 * (N - 1)). You can think of the mean of this distribution as the expected number of successes that occur out of your sample (n).

You can use the calculator below to calculate the probabilities under your own scenario using the assumptions you input. The probability density function yields probabilities for a specified number of successes out of your sample, whereas the cumulative density function yields probabilities for each and every number of successes out of your sample up to a specified number. The graphs generated are shaped in accordance with the assumptions you enter.



If you've found a bug, or would like to contact us please click here.

Calculate.co.nz is partnered with Interest.co.nz for New Zealand's highest quality calculators and financial analysis.

© 2019–2025 Calculate.co.nz. All rights reserved.
All content on this website, including calculators, tools, source code, and design, is protected under the Copyright Act 1994 (New Zealand). No part of this site may be reproduced, copied, distributed, stored, or used in any form without prior written permission from the owner.
All calculators and tools are provided for educational and indicative purposes only and do not constitute financial advice.
Calculate.co.nz is part of the realtor.co.nz, GST Calculator, GST.co.nz, and PAYE Calculator group.
Calculate.co.nz is also partnered with Health Based Building and Premium Homes to promote informed choices that lead to better long-term outcomes for Kiwi households.