MAD Comparative Analysis: compare Benford's Law conformity between two datasets
Comparing how closely two datasets, such as two periods or two locations, follow Benford's Law.
What it detects
Whether one dataset departs from Benford’s Law more than another. The tool measures each dataset’s Mean Absolute Deviation (MAD), the average gap between actual and expected first-digit shares, and tests whether the two datasets’ digit patterns differ.
How it works: Calculates each dataset's Mean Absolute Deviation (MAD) from the expected first-digit frequencies, rates conformity, and tests whether the two datasets' digit patterns differ.
What you get: MAD and a conformity rating for each dataset, the change between them, and the result of a between-dataset test.
When to use it
- To compare this period with a prior period, or one location with another.
- To check whether a change in a process or system changed the data, including a paired comparison when the same records appear in both files.
When not to use it
- As a pass/fail decision. Conformity ratings are guides, and a difference between datasets is not, by itself, evidence of a problem.
- On small files. The tool gives no rating below 500 records, and MAD naturally falls as records increase, so datasets of very different sizes are hard to compare.
Example
Synthetic example: last year’s 6,000 disbursements (the baseline) are compared with this year’s 5,500. Last year’s MAD is 0.004, close conformity; this year’s is 0.011, still acceptable but nearly three times higher. The between-dataset test finds a difference, and first digit 4 changed the most.
Next step: review this year’s disbursements beginning with 4 for the cause.
The example uses made-up data for illustration. Results identify items for follow-up; they are not audit evidence or conclusions about fraud or error.
Launch MAD Comparative AnalysisNeed more than a free tool?
Benford Analytics can run these tests on your data, interpret the results, and build custom procedures for your situation.
Fraud and financial analytics →Mean Absolute Deviation and its conformity ratings follow Mark J. Nigrini, Benford's Law: Applications for Forensic Accounting, Auditing, and Fraud Detection (Wiley, 2012). Benford Analytics is not affiliated with or endorsed by Dr. Nigrini.
