top of page
Search

Trust but Verify Your Data Conversion with Benford's Law

Oct 18
4 min read

The system integrator validates its own conversion. Its reconciliations show that totals and record counts match, and its incentive is to show that on schedule. If you are the prime supporting a federal agency through a system conversion, you need your own check. Benford's Law gives you one. It runs on the full population, needs only an extract and Excel, and flags transactions worth a closer look.


It does not replace conversion controls: reconciliations, record counts, and sample testing still do the heavy lifting. It gives your team an independent view at conversion and after go-live that doesn't depend on the SI's tools or reports.


This matters to you and the agency. A faulty conversion leaves your client with manual workarounds long after the SI leaves, and your team is the one still on site. Catch problems before go-live to protect your client.


What Benford's Law says

In many sets of naturally occurring numbers, the first digits are not evenly distributed. About 30 percent of amounts start with 1, about 18 percent with 2, and fewer than 5 percent with 9. This holds for data like expense amounts, salaries, and river lengths. Zero is never a leading digit.

Leading Digit

Percentage

1

30.1%

2

17.6%

3

12.5%

4

9.7%

5

7.9%

6

6.7%

7

5.8%

8

5.1%

9

4.6%

The pattern holds when amounts span several orders of magnitude and are not assigned or capped. It does not apply to randomly created numbers.


At conversion: test beginning balances once

Beginning balances for obligations are the best place to start. The population runs into the thousands, so volume is not a problem, and you only run it once.

Run it on both sides. First, run the legacy extract before conversion. Spikes here point to data the agency should clean up before it moves, such as stale obligations or placeholder amounts. Second, run the converted balances after load. The two distributions should match almost exactly. A difference means records were dropped, duplicated, or changed on the way in.


If the SI ties every obligation from legacy to the new system, this test is a fast cross-check. It is trust but verify: the agency trusts the SI's work and still checks it independently.

Keep the evidence. In the first audit after conversion, auditors will ask how the agency knows its beginning balances are complete and accurate. A documented Benford's Law test, with the results and the follow-up on each spike, is part of that answer. It also supports the GAO Green Book's monitoring principle (Principle 16).


After go-live: test new activity weekly

Take commitments. Once the new system is live, pull an extract of every commitment created that week (if volume is low, do this monthly). Compare the first-digit distribution to the expected shares.

If it tracks, you have some assurance the data is coming through as expected. If a digit spikes, pull the transactions behind it. Common causes:

  • A conversion or interface error, such as an amount pulled from the wrong source field or a default amount loaded on many records.

  • A duplicate load.

  • Activity clustered just under an approval threshold, such as the micro-purchase threshold. This is why auditors use Benford's Law in fraud detection.

A spike is a lead, not a finding. Some have a business reason, like a recurring obligation for a fixed amount.


Two limits to plan for

Volume. Benford's Law needs a large population. With a few dozen records, random noise looks like a spike. Aim for at least several hundred records per run, and more is better. If daily volume is low, run it weekly or monthly.

Baseline. Some agency data never fits the curve because of standard rates or how a program is structured. Before go-live, run the same test on a year of legacy data. Then compare the new system to the legacy pattern, not only to the textbook curve. A shift from the legacy pattern is the signal you care about.


How to run it in Excel

  1. Extract the population with the amount column. Filter to positive amounts and run downward adjustments as a separate population. Assume column A contains our values.

  2. In a new column (Column B), pull the first digit: =VALUE(LEFT(TEXT(A2,"0.00E+0"),1)). A plain =LEFT(A2,1) returns 0 for amounts under $1. The scientific-notation format returns the first nonzero digit for any amount.

  3. Count each digit with =COUNTIF(B:B,1) through 9, or use a pivot table. Divide each count by the total to get the percentage.

  4. Add the expected share next to it: =LOG10(1+1/D2), where D2 holds the digit.

  5. Chart actual against expected as a column chart. Actual should fall from left to right and stay close to expected.


To track it with one number, calculate the average absolute difference between actual and expected shares. Watch it week over week. A jump means look closer.

Anyone with basic Excel skills can run this. Once the steps are stable, build it in Power Query, so the weekly refresh takes one click.


Start with your legacy data

The SI is measured on go-live. The agency needs a system that works, is complete, and is accurate. Benford's Law is one check your team can run on its own to spot differences, and it only takes an extract and a spreadsheet.


This week, run it on a year of the agency's legacy commitment data. That sets the baseline you will compare against at conversion and after go-live.


If you are supporting an agency through a financial system migration and want help building conversion monitoring, contact Persons Consulting at info@personsconsulting.com.


Persons Consulting LLC is a Service-Disabled Veteran-Owned Small Business (SDVOSB) and a licensed CPA firm in Virginia.

 
 
 

Comments


bottom of page