pdf_hypergeometric



On 09/27/2011 03:15 PM, Hans W. Hofmann wrote:
> Hallo,
>
> how to calculate 6/49 Lotto distribution,
> pdf_hypergeometric?

Hallo,

(%i10) display2d:false$
(%i11) p: makelist(pdf_hypergeometric(x, 6, 43, 6), x, 0, 6);
(%o11) [435461/998844,68757/166474,44075/332948,8815/499422,645/665896,
         43/2330636,1/13983816]
(%i12) apply("+", p);
(%o12) 1


> maxima help: what means x,n1,n2,n?
>

If you have n1 white balls and n2 red balls in an urn, and n balls is 
the number of balls drawn from the urn, pdf_hypergeometric(x, n1, n2, n) 
is the probability for event "x balls are white".

--
Mario