I have some data and want to find the distribution that fits them well. I found one post inMATLAB
and one post in r
. This post talks about a method in Python. It is trying different distributions and see which one fits better. I was wondering if there is any direct way (like allfitdist()
in MATLAB
) in Python.
Asked
Active
Viewed 7,693 times
3

desertnaut
- 57,590
- 26
- 140
- 166

Shannon
- 985
- 3
- 11
- 25
-
`It is trying different distributions and see which one fits better` What do you think `allfitdist` does internally? – Silvio Mayolo Jan 26 '18 at 02:42
-
1@SilvioMayolo, yes, I agree that `allfitdist` is trying different distribution. I was just wondering if there is any similar command in Python that take care of it directly. – Shannon Jan 26 '18 at 02:48
1 Answers
8
Fitter
in python provides similar functionality. The code looks like:
from fitter import Fitter
f = Fitter(data)
f.fit()
For more information, please take a look at https://pypi.python.org/pypi/fitter

v.coder
- 1,822
- 2
- 15
- 24