PROBHYPR Function

Returns the probability from a hypergeometric distribution.

Category: Probability
Returned data type: DOUBLE

Syntax

PROBHYPR(N, K, n, x[, r])

Arguments

N

is an integer population size parameter.

Range N ≥ 1
Data type INTEGER

K

is an integer number of items in the category of interest parameter.

Range 0 ≤ KN
Data type INTEGER

n

is an integer sample size parameter.

Range 0 ≤ nN
Data type INTEGER

x

is an integer random variable.

Range max(0, K + nN) ≤ xmin(K,n)

r

is a numeric odds ratio parameter.

Range r ≥ 0
Data type DOUBLE

Details

The PROBHYPR function returns the probability that an observation from an extended hypergeometric distribution, with population size N, number of items K, sample size n, and odds ratio r, is less than or equal to x. If the optional parameter r is not specified or is set to 1, the value returned is from the usual hypergeometric distribution.

Example

The following statement illustrates the PROBHYPR function:
Statements
Results
select probhypr(200,50,10,2);
0.5236734081
Last updated: February 23, 2017