1

I found this package for R: https://rdrr.io/cran/BenfordTests/man/ks.benftest.html

It allows you to perform a Kolmogorov Smirnov test against the Benford distribution (https://en.wikipedia.org/wiki/Benford%27s_law) given a list of numbers.

I am looking for the equivalent in Python (preferrably, I could install it via conda) but my Google searches were so far in vain. Any input appreciated, thank you.

Johannes Walter
  • 1,069
  • 2
  • 10
  • 25

1 Answers1

1

I would recommend checking out this link: https://github.com/nyoshimizu/benfordspy. It's not downloadable via Conda, but you can install it directly from GitHub.

Elvira
  • 26
  • 2
  • 1
    Thank you, looks like this is what I was looking for! Looks like the package hasn't been published in a scientific paper like the one for R, but I can work with it for now. Cheers! – Johannes Walter Apr 29 '20 at 11:07