是否有一个 Python 包帽子允许对我可以通过 conda 安装的 Newcomb-Benford 发行版执行 Kolmogorov Smirnov 测试?

Is there a Python package hat allows to perform a Kolmogorov Smirnov test against the Newcomb-Benford distribution that I can install via conda?

我为 R 找到了这个包:https://rdrr.io/cran/BenfordTests/man/ks.benftest.html

它允许您在给定数字列表的情况下针对 Benford 分布 (https://en.wikipedia.org/wiki/Benford%27s_law) 执行 Kolmogorov Smirnov 检验。

我正在 Python 中寻找等效项(最好是,我可以通过 conda 安装它)但是我的 Google 搜索到目前为止是徒劳的。感谢任何输入,谢谢。

我建议查看此 link:https://github.com/nyoshimizu/benfordspy。它不能通过 Conda 下载,但您可以直接从 GitHub.

安装