Rev 4455 | Blame | Compare with Previous | Last modification | View Log | RSS feed
slib_lang_exists_tmp=yes
slib_title=Generation of multinomial random data
slib_out=Random data of <span class="tt">m</span> integers following a multinomial law of parameters \
<span class="tt">n</span> and p=[p1,...,pj] (n is an integer and pi are positive reals of sum <= 1; \
if the sum of the pi is less than 1, 1-sum(pi) is add to the list.
slib_comment= If p1+...+pj=1,\
P(X1=k1,X2=k2,..,Xj=kj)=(p1)^k1*...*(pj)^kj*n!/(k1!...kj!)\
for all ki so that k1+...+kj=n
Generated by GNU Enscript 1.6.5.90.