benfords-law/README.md

20 lines
775 B
Markdown
Raw Normal View History

2020-11-14 02:25:28 +00:00
# benfords-law
2020-11-14 15:44:42 +00:00
This was a test to determine if random numbers follow [Benford's Law](https://en.wikipedia.org/wiki/Benford%27s_law). I suspect it has more to do with the distribution real life data collected from than truly random numbers. If this is true, maybe this is why it works for fraud detection.
### Results
With One-Hundred-Million samples of random numbers between 0 and 9,999,999,999,999,999, the number of leading digits was the following:
1: 11105630
2: 11110535
3: 11112084
4: 11113667
5: 11120216
6: 11106549
7: 11108623
8: 11114813
9: 11107883
This shows that Benford's law only works when the data is not random, such as natural data gathered in real life. This is because natural data is generated following a power law, which is common in nature.