Hypergeometric Distribution Sample Generator
Enter the population size (\(N\)), number of successes in the population (\(K\)), and sample size (\(n\)) to generate a random sample.
* The generated value represents the number of successes in a sample of size \(n\).
Step 1: Enter Parameters
Total number of items in the population.
Total number of successes in the population.
Number of items drawn from the population.
How It Works
The hypergeometric sample represents the number of successes when drawing \( n \) items without replacement from a population of \( N \) items containing \( K \) successes.
The simulation uses the sequential algorithm: for each draw, the probability of drawing a success is $$ \frac{K – \text{current successes}}{N – i}, $$ where \( i \) is the current draw (starting at 0).