[SciPy-User] Trying to understand Distributions

Robert Kern robert.kern at gmail.com
Thu Jul 15 13:08:25 EDT 2021


On Thu, Jul 15, 2021 at 11:06 AM Keith Sloan <keith at sloan-home.co.uk> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/scipy-user/attachments/20210715/08f724c2/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: E0251947-5F5C-4320-BF54-DADE584B6C2C_4_5005_c.jpeg
Type: image/jpeg
Size: 56078 bytes
Desc: not available
URL: <https://mail.python.org/pipermail/scipy-user/attachments/20210715/08f724c2/attachment-0001.jpeg>


More information about the SciPy-User mailing list