Evaluates the hypergeometric probability density function.
Namespace: Imsl.StatAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public static double Hypergeometric(
int k,
int sampleSize,
int defectivesInLot,
int lotSize
)
Public Shared Function Hypergeometric (
k As Integer,
sampleSize As Integer,
defectivesInLot As Integer,
lotSize As Integer
) As Double
public:
static double Hypergeometric(
int k,
int sampleSize,
int defectivesInLot,
int lotSize
)
static member Hypergeometric :
k : int *
sampleSize : int *
defectivesInLot : int *
lotSize : int -> float
Parameters
- k
- Type: SystemInt32
An int, the argument at which
the function is to be evaluated.
- sampleSize
- Type: SystemInt32
An int, the sample size, n.
- defectivesInLot
- Type: SystemInt32
An int, the number of defectives
in the lot, m.
- lotSize
- Type: SystemInt32
An int, the lot size, l.
Return Value
Type:
DoubleA
double, the probability that a
hypergeometric random variable takes on a value
equal to
k.
Remarks Method Pdf.Hypergeometric evaluates the probability
density function of a hypergeometric random variable with parameters
n, l, and m.
The hypergeometric random variable X can be thought
of as the number of items of a given type in a random sample of size
n that is drawn without replacement from a
population of size l containing m
items of this type. The probability density function is:
where i = max(0, n - l + m).
Pdf.Hypergeometric evaluates the expression using log
gamma functions.
See Also