Description Usage Arguments Details Value Examples
Hypergeometric distribution where we have a sample of k balls from an urn containing N, of which m are white and n are black.
1 2 3 |
N |
Total number of balls (white and black) in the urn. N = n + m |
m |
Number of white balls in the urn. |
n |
Number of black balls in the urn. Can specify n instead of N. |
k |
Number of balls drawn from the urn, k = 0, 1, ..., m + n. |
The Hypergeometric distribution for N total items of which m are of one type and n of the other and from which k items are picked has probability mass function :
((m)C(k) (n)C(k - x)) / ((N)C(k))
for x = 0, 1, ..., min(k, m).
Function :
expValErl
gives the expected value.
varErl
gives the variance.
Invalid parameter values will return an error detailing which parameter is problematic.
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.