Re: Trying to understand Distributions
Robert Kern <[email protected]> Thu, 15 Jul 2021 13:08:25 -0400
| Newsgroups | gmane.comp.python.scientific.user |
|---|---|
| Message-ID | <CAF6FJismhG0t+nCgNSaWzRG=Jtx2ePXKqWfhYG8wySrLYV1+rA@mail.gmail.com> |
On Thu, Jul 15, 2021 at 11:06 AM Keith Sloan <[email protected]> wrote: > Okay I now have three fits > > I got rid of the clipping on Galaxy Count but gamma and norm still look > very similar. Is there another distribution like > gamma but instead of being fatter before the peak is fatter after the > peak and would be a better match? i.e in the area > between 2.3 and 2.4 > Sure, `johnsonsu` will probably fit. Depending on what you actually want to do with the fitted distribution, you might be better served with a nonparametric KDE instead. > I know there are similar distributions to expon but nor familiar with > them. 'Count In Cyl' are integer counts so bin set accordingly > but would prefer a distribution where the red line went through the > midpoint of each bar of the histogram > If the data is discrete, you probably want to fit one of the discrete distributions instead. https://docs.scipy.org/doc/scipy/reference/stats.html#discrete-distributions You can start with `geom`, but that first bin looks pretty tall for that. Maybe `zipf` or `logser` will work. -- Robert Kern _______________________________________________ SciPy-User mailing list [email protected] https://mail.python.org/mailman/listinfo/scipy-user
E0251947-5F5C-4320-BF54-DADE584B6C2C_4_5005_c.jpeg
(image/jpeg, 54.8 KB) - not displayed