Re: Trying to understand Distributions
Robert Kern <[email protected]> Wed, 14 Jul 2021 10:56:25 -0400
| Newsgroups | gmane.comp.python.scientific.user |
|---|---|
| Message-ID | <CAF6FJiv+8aXiLBS28s-L9V7+eDT0L_tthGyrRA3n4eoypXmeiQ@mail.gmail.com> |
On Wed, Jul 14, 2021 at 10:47 AM Keith Sloan <[email protected]> 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 _______________________________________________ SciPy-User mailing list [email protected] https://mail.python.org/mailman/listinfo/scipy-user