Re: Trying to understand Distributions

Keith Sloan <[email protected]> Fri, 16 Jul 2021 15:05:18 +0100
Newsgroups gmane.comp.python.scientific.user
Message-ID <[email protected]>
Thanks

On 15/07/2021 18:08, Robert Kern wrote:
> On Thu, Jul 15, 2021 at 11:06 AM Keith Sloan <[email protected] 
> <mailto:[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.


johnsonsu seems to work just fine.

>     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 
> <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.

Looked at geom and did not see a fit function

Not sure I do want a discrete distribution as what I want to 
subsequently perform is fits for n sets of the three distributions
and see if I can find any correlation between the distribution fit 
parameters.

>
> --
> Robert Kern
>
> _______________________________________________
> SciPy-User mailing list
> [email protected]
> https://mail.python.org/mailman/listinfo/scipy-user

-- 
========== Art & Ceramics ===========
https://www.instagram.com/ksloan1952/

_______________________________________________
SciPy-User mailing list
[email protected]
https://mail.python.org/mailman/listinfo/scipy-user