milcent / benford_py

Python implementation of Benford's Law tests.
BSD 3-Clause "New" or "Revised" License
151 stars 52 forks source link

Kolmogorov-Smirnov test in Mantissas distribution #54

Closed milcent closed 3 years ago

milcent commented 3 years ago

Although implemented in the Test class, the Kolmogorov-Smirnov statistic is known to work for continuous distributions, not discrete ones, such as the ones from the digits tests (1, 2, 3…9, and so on). The Mantissas test, however, is made on a continuous distribution, since the ordered mantissas of the log10 of a Benford set numbers are expected to form a straight line from 0 to almost 1. So far, the mantissas test is more of a qualitative one, from eyeballing the plot. We should implement and test KS for the mantissas, and check it’s prospects.

milcent commented 3 years ago

implemented in commit sequence 153c996e139b168e6cfb3df0ffa42347df8fd64c to 446fdc6dd09ab7970d2f44a6a458e198f3438671 .