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

2014-02-25 Thread Alan G Isaac
Just got momentarily snagged by not checking the
excellent documentation, which clearly says that
numpy provides the shifted geometric.  I'm wondering
why? Who else does?  (Not Mathematica, Matlab, Maple,
or Octave.)

Thanks,
Alan Isaac
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


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

2014-02-25 Thread Robert Kern
On Tue, Feb 25, 2014 at 4:06 PM, Alan G Isaac alan.is...@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
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion