[Numpy-discussion] numpy.random.geometric is shifted

Robert Kern robert.kern at gmail.com
Tue Feb 25 11:28:27 EST 2014


On Tue, Feb 25, 2014 at 4:06 PM, Alan G Isaac <alan.isaac at gmail.com> wrote:
> Just got momentarily snagged by not checking the
> excellent documentation, which clearly says that
> numpy provides the shifted geometric.  I'm wondering
> why?

As with most such questions, because the reference I was working from
defined it that way and gave the algorithms with that convention.

http://luc.devroye.org/rnbookindex.html
http://luc.devroye.org/chapter_ten.pdf

Page 498.

-- 
Robert Kern



More information about the NumPy-Discussion mailing list