Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: unexpected -rbinomial- behaviour


From   Jeph Herrin <stata@spandrel.net>
To   statalist@hsphsun2.harvard.edu
Subject   st: unexpected -rbinomial- behaviour
Date   Tue, 14 Sep 2010 15:54:38 -0400


Am I wrong to expect rbinomial(n,0) = 0?

. di rbinomial(10,0)
.

I would think that if P(success)= 0, then E(successes)=0.


Jeph


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index