% -*- texinfo -*- % @deftypefn {Function File} {[@var{mn}, @var{v}] =} hygestat (@var{t}, @var{m}, @var{n}) % Compute mean and variance of the hypergeometric distribution. % % @subheading Arguments % % @itemize @bullet % @item % @var{t} is the total size of the population of the hypergeometric % distribution. The elements of @var{t} must be positive natural numbers % % @item % @var{m} is the number of marked items of the hypergeometric distribution. % The elements of @var{m} must be natural numbers % % @item % @var{n} is the size of the drawn sample of the hypergeometric % distribution. The elements of @var{n} must be positive natural numbers % @end itemize % @var{t}, @var{m}, and @var{n} must be of common size or scalar % % @subheading Return values % % @itemize @bullet % @item % @var{mn} is the mean of the hypergeometric distribution % % @item % @var{v} is the variance of the hypergeometric distribution % @end itemize % % @subheading Examples % % @example % @group % t = 4:9; % m = 0:5; % n = 1:6; % [mn, v] = hygestat (t, m, n) % @end group % % @group % [mn, v] = hygestat (t, m, 2) % @end group % @end example % % @subheading References % % @enumerate % @item % Wendy L. Martinez and Angel R. Martinez. @cite{Computational Statistics % Handbook with MATLAB}. Appendix E, pages 547-557, Chapman & Hall/CRC, % 2001. % % @item % Athanasios Papoulis. @cite{Probability, Random Variables, and Stochastic % Processes}. McGraw-Hill, New York, second edition, 1984. % @end enumerate % @end deftypefn