[SciPy-User] scale parameter at 0
Mainak Jas
mainakjas at gmail.com
Sun May 28 19:58:46 EDT 2017
Hi everyone,
I was wondering if anyone had an insight into what happens in scipy when
the scale parameter becomes 0. In particular, I was looking into lévy
stable distribution. If we do in scipy:
>>> from scipy.stats import levy_stable
>>> levy_stable.rvs(alpha=0.99, beta=1, scale=0, loc=1, size=5)
I get:
>>> array([ 1., 1., 1., 1., 1.])
But when I look in wikipedia
<https://en.wikipedia.org/wiki/L%C3%A9vy_distribution>, it tells me that
the scale parameter should be greater than 0. Maybe it's a more general
question for all distributions, but I'm interested in this one
particularly. Why doesn't scipy throw an error when scale parameter is 0?
Thanks.
Best regards,
Mainak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-user/attachments/20170529/81f148ff/attachment.html>
More information about the SciPy-User
mailing list