【问题标题】:How to identify the distribution of the given data in Python?如何在 Python 中识别给定数据的分布?
【发布时间】:2018-07-05 10:03:20
【问题描述】:

我有一些数据,想找到适合它们的分布。我在MATLAB 中找到了one postone postr 中。 This post 谈论 Python 中的一种方法。它正在尝试不同的分布,看看哪一个更适合。我想知道 Python 中是否有任何直接的方法(例如 MATLAB 中的 allfitdist())。

【问题讨论】:

  • It is trying different distributions and see which one fits better 你认为allfitdist 在内部做什么?
  • @SilvioMayolo,是的,我同意allfitdist 正在尝试不同的分布。我只是想知道 Python 中是否有任何类似的命令可以直接处理它。

标签: python


【解决方案1】:

Fitter 在 python 中提供了类似的功能。代码如下:

from fitter import Fitter
f = Fitter(data)
f.fit()

更多信息请关注https://pypi.python.org/pypi/fitter

【讨论】:

    猜你喜欢
    • 2015-10-22
    • 1970-01-01
    • 1970-01-01
    • 2010-11-02
    • 2013-05-12
    • 1970-01-01
    • 1970-01-01
    • 2020-01-24
    相关资源
    最近更新 更多