Be the first to rate this file! 15 downloads (last 30 days) File Size: 2.56 KB File ID: #25394

mhygepdf

by Antonio Trujillo-Ortiz

 

24 Sep 2009 (Updated 24 Sep 2009)

Code covered by BSD License  

Multivariate hypergeometric probability density function.

Download Now | Watch this File

File Information
Description

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--

Required Products Statistics Toolbox
MATLAB release MATLAB 7 (R14)
Zip File Content  
Other Files license.txt,
mhygepdf.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
24 Sep 2009

It was added an appropriate format to cite this file.

Tag Activity for this File
Tag Applied By Date/Time
multivariate Antonio Trujillo-Ortiz 24 Sep 2009 09:28:10
hypergeometric Antonio Trujillo-Ortiz 24 Sep 2009 09:28:10
probability density function Antonio Trujillo-Ortiz 24 Sep 2009 09:28:10
pdf Antonio Trujillo-Ortiz 24 Sep 2009 09:28:10
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com