Rev 4352 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4352 | Rev 4455 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | 2 | ||
3 | slib_title=Generation of binomial random data |
3 | slib_title=Generation of binomial random data |
4 | 4 | ||
5 | slib_out=Random data of <tt>m</tt> integers following a binomial law of parameters <tt>n</tt> and <tt>p</tt> \ |
5 | slib_out=Random data of <tt>m</tt> integers following a binomial law of parameters <tt>n</tt> and <tt>p</tt> \ |
6 | (<tt>n</tt> is an integer and <tt>p</tt> a real between 0 and 1). |
6 | (<tt>n</tt> is an integer and <tt>p</tt> a real between 0 and 1). |
7 | slib_comment= P(X=k)=binomial(n,k)*p^k*(1-p)^(n-k) |
7 | slib_comment= P(X=k)=binomial(n,k)*p^k*(1-p)^(n-k) for k=0,...,n |
8 | 8 |