[SciPy-dev] Error in stats/discrete.lyx

Otto Tronarp otttr440 at student.liu.se
Sun Jan 26 09:47:35 CST 2003


While writing the unit tests for the discrete distributions I looked a
little in discrete.lyx to fresh up my memory on some of the
distributions. And there seems to be an error in the section on negative
binomial distribution. It says "..can be defined as the number of
independent trials required to accumulate a total of n successes" which
gives a valid range for k as k>=n. However, I always thought it was the
number of failures before reaching n success and hence k>=0. The result
from stats.nbinom seems to agree with me, it seldom generates numbers
larger than n. I don't have a patch for this since the docs seems to be
written with an old version of lyx that I don't have. 

Regards,
Otto




More information about the Scipy-dev mailing list