gpt4 book ai didi

python - SciPy 中的拟合优度检验

转载 作者:太空狗 更新时间:2023-10-29 17:15:45 25 4
gpt4 key购买 nike

我是 Python 的新手,来自 R 世界。我正在尝试使用 SciPy 使分布适合样本数据并取得了良好的成功。我可以让 distribution.fit(data) 返回合理的结果。我一直无法做的是创建拟合优度统计数据,我习惯于使用 R 中的 fitdistrplus 包。是否有一种通用方法可以比较多个“最佳拟合” SciPy 的不同发行版?

我正在寻找类似 Kolmogorov-Smirnov 检验或 Cramer-von Mises 或安德森宠儿检验

最佳答案

查看 scipy.stats 库:http://docs.scipy.org/doc/scipy/reference/stats.html

它包含 K-S 和 Anderson-Darling,尽管显然不是 Cramer-von Mises。

关于python - SciPy 中的拟合优度检验,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11268632/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com