mhygepdf

Multivariate hypergeometric probability density function.
781.0 次下载
更新时间 2009/9/24

查看许可证

This m-file returns the multivariate hypergeometric probability density function at M with integer parameters in N. Note: The density function is zero unless the elements in M are integers.

If there are m_i elements of class i in a population and you take n elements at random without replacement, then the number of elements ofeach class in the sample (x_1,x_2,...,x_c) has the multivariate hypergeometric distribution. This has the same relationship to the multinomial distribution that the hypergeometric distribution has to the binomial distribution--the multinomial distribution is the 'with-replacement' distribution and the multivariate hypergeometric is the 'without-replacement' distribution.

Syntax: function x = mhygepdf(m,n)

Inputs:
m - vector of total (population) elements of class i
n - vector of sampled elements of class i

Output:
x - multivariate hypergeometric probability for values x_1,x_2,...,x_c

--Con cariño para Ney--

引用格式

Antonio Trujillo-Ortiz (2025). mhygepdf (https://www.mathworks.com/matlabcentral/fileexchange/25394-mhygepdf), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

It was added an appropriate format to cite this file.

1.0.0.0