Statistics
Benford's Law Detector
Detect anomalies using Benford's Law
Data input
Paste numbers or upload a file and analyze the leading digit.
Upload file
Accepts .txt or .csv. Symbols, zeros, and negatives are ignored.
Preset datasets
Synthetic generator
Results and conformity
Traffic light based on mean absolute deviation.
Add data to evaluate the chi-square test.
Using a typical 5% significance level.Detail table
| Digit | Observed (n) | Observed (%) | Expected (%) | Difference |
|---|
About this tool
Benford's Law states that in many real-world datasets, the probability that the leading significant digit is follows the logarithmic distribution giving probabilities of 30.1%, 17.6%, 12.5%... down to 4.6% for digit 9. This law emerges in data spanning several orders of magnitude that result from multiplicative processes: prices, populations, financial transactions, physical constants.
The mathematical reason is that when multiplying random variables, their logarithms are added, and by the central limit theorem they tend to distribute approximately uniformly on a logarithmic scale, implying that leading digits follow Benford's distribution. Deviation from this law is quantified with the chi-squared statistic where is the observed frequency of digit .
This tool compares the distribution of leading digits in your data with Benford's theoretical distribution and calculates the goodness-of-fit statistic. Data fabricated by people tends not to follow this law because human intuition does not reproduce logarithmic patterns, making it a tool for detecting accounting fraud.
Articles published on the blog
