Leading digits tests whether amounts follow Benford’s law, overall and separately by unit if you choose one. Use it to find amounts or units that depart from the expected digit pattern, then investigate the records behind the result.
Who uses it
Fraud leads use this analysis. The Watching for risk group includes it among the analyses to run Every day for fraud and identity watches.
Data
The analysis needs records with an amount, from a mapped data intake or a portfolio. You can also provide a unit field, such as a store, agent or branch, to test units separately. See Data your analyses read for preparing data.
Inputs
| Input | What it means | Default |
|---|---|---|
| Portfolio or intake | Which data to read. | |
| Amount | The amount to test. | The field mapped as amount |
| Also by | A unit field to test each unit separately. This is optional and sits under More settings. | |
| Digits | Whether to test the first digit or the first two digits. Choose 1 or 2. | 1 |
| Largest mean absolute deviation | The limit for holding the hypothesis. If you enter a value, it is kept. | Empty. It follows Digits: 0.012 for 1, 0.0012 for 2 |
| Largest mean absolute deviation per unit | The limit for the per-unit watch-out. This optional input sits under More settings. | Empty. It follows Digits: 0.015 for 1, 0.0022 for 2 |
What the result shows
The Hypotheses section tests whether amounts follow the expected first digits. It reports held when the mean absolute deviation is at most Largest mean absolute deviation, and rejected above it. A rejected result means the amounts depart from the natural pattern. The verdict appears with the number behind it.
The Leading digits for the book table shows the overall results and, if you chose a unit, the Leading digits by unit tables show the results for each unit. Each table shows Digit, Records, Share, Expected share and z. The summary shows Records, Mean absolute deviation, Conformity, χ², p-value and Digits off.
If you chose a unit, Watch-outs warns when the unit with the largest deviation is above Largest mean absolute deviation per unit. The warning identifies that unit. The run finishes with a caveat beside the result.
How to read it
For the first digit, conformity bands are Close up to 0.006, Acceptable up to 0.012, Marginal up to 0.015 and Nonconforming above 0.015. Digits off counts digits whose share differs from Benford’s law at 95% confidence.
Amounts below 1 are left out of a first-digit test. For a first-two-digits test, amounts below 10 are left out. Amounts with set prices, caps or round limits do not follow Benford’s law. The result points to where to look. On its own, it proves nothing. See Analyses for how to read analysis results.
What to do next
Look at the unit that strays furthest, review its records and open a case. Running and repeating an analysis explains how to start and repeat an analysis, send it by email and open cases. For related checks, see Unit review, which checks units for outcome rate, growth and amounts over a reference, and Ratio over a limit, which checks the share of records past a limit.