AnyLogic
Expand
Font size

hypergeometric

The Hypergeometric distribution is a discrete distribution bounded by [0,s]. It describes the number of defects, x, in a sample of size s from a population of size N which has m total defects. The ratio of m/N = p is sometimes used rather than m to describe the probability of a defect.

Defects may be interpreted as successes, in which case x is the number of failures until (s-x) successes. The sample is taken without replacement.

The Hypergeometric distribution is used to describe sampling from a population where an estimate of the total number of defects is desired. It has also been used to estimate the total population of species from a tagged subset. However, estimates of all three parameters from a data set are notoriously fickle and error prone, so use of these parameters to estimate a physical quantity without specifying at least one of the parameters is not recommended.

hypergeometric(int ss, int dn, int ps)

Description
Generates a sample of the Hypergeometric distribution.
Parameters
Name Type of value Description
ss int The sample size.
dn int The number of defects in the population.
ps int The size of the population.
Result
Type Description
int The generated sample.

hypergeometric(int ss, int dn, int ps, java.util.Random r)

Description
Generates a sample of the Hypergeometric distribution using the specified random number generator.
Parameters
Name Type of value Description
ss int The sample size.
dn int The number of defects in the population.
ps int The size of the population.
r java.util.Random The random number generator.
Result
Type Description
int the generated sample

This document includes content from the “Stat::Fit User’s Manual”. Copyright 2016 Geer Mountain Software Corp.

How can we improve this article?