{ } Raw JSON

bundles / scipy latest / scipy / stats / _multivariate / multivariate_hypergeom_gen / pmf

function

scipy.stats._multivariate:multivariate_hypergeom_gen.pmf

source: /scipy/stats/_multivariate.py :5890

Signature

def   pmf ( self x m n )

Summary

Multivariate hypergeometric probability mass function.

Parameters

x : array_like

Quantiles, with the last axis of x denoting the components.

m : array_like

The number of each type of object in the population. That is, is the number of objects of type .

n : array_like

The number of samples taken from the population.

Returns

pmf : ndarray or scalar

Probability density function evaluated at x

Notes

m must be an array of positive integers. If the quantile contains values out of the range where is the number of objects of type in the population or if the parameters are inconsistent with one another (e.g. x.sum() != n), methods return the appropriate value (e.g. 0 for pmf). If m or n contain negative values, the result will contain nan there.

Aliases

  • scipy.stats._multivariate.multivariate_hypergeom_gen.pmf