[SciPy-User] Trying to understand Distributions
Robert Kern
robert.kern at gmail.com
Wed Jul 14 10:56:25 EDT 2021
On Wed, Jul 14, 2021 at 10:47 AM Keith Sloan <keith at sloan-home.co.uk> wrote:
> Thanks for all the help but still experiencing further problems, maybe it
> is just me but there seems inconsistencies between distributions and fit,
> ppt and pdf calls.
>
> 1) Trying to fit exponential, fit does not give scale but pdf seems to
> accept a scale value
>
> ae, be = stats.expon.fit(RErange1[xfield].data)
loc=ae, scale=be
The last two parameters in the fit() results are always loc and scale.
> xe0, xe1 = stats.expon.ppf([0.01, 0.99])
Don't forget to pass in the fitted parameters.
2) Also a gamma plot of a second distribution is not showing curve
>
Stop using int(ag) for the number of points in the linspace(). It's usually
an inappropriate value. In that second case, int(ag)==1.
--
Robert Kern
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/scipy-user/attachments/20210714/b760abb1/attachment.html>
More information about the SciPy-User
mailing list