Difference between revisions of "Documentation/How Tos/Calc: HYPGEOMDIST function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(Initial content) |
m (→Syntax:) |
||
Line 10: | Line 10: | ||
: <tt>'''HYPGEOMDIST'''</tt> calculates the probability density function of the hypergeometric distribution: | : <tt>'''HYPGEOMDIST'''</tt> calculates the probability density function of the hypergeometric distribution: | ||
::[[Image:Calc_hypgeomdist_equation1.png]] | ::[[Image:Calc_hypgeomdist_equation1.png]] | ||
− | + | ||
+ | : which is | ||
+ | |||
::[[Image:Calc_hypgeomdist_equation2.png]] | ::[[Image:Calc_hypgeomdist_equation2.png]] | ||
Revision as of 20:37, 30 April 2008
HYPGEOMDIST
Calculates values for a hypergeometric distribution.
Syntax:
HYPGEOMDIST(x; n; M; N)
- The hypergeometric distribution is a discrete probability distribution giving the probability of x successes in a sequence of n draws (without replacement) from a finite population of size N which contains M successes.
- which is
Example:
HYPGEOMDIST(2; 3; 3; 6)
- returns 0.45. If an urn contains 3 red balls and 3 green balls, the probability that 2 red balls will be selected after 3 draws without replacement is 27/60 = 0.45.
See also:
Issues:
- The forthcoming international standatd ODFF adds an extra parameter to this function, allowing the possibility to calculate the cumulative distribution function.