I used Benford’s law to analyze Covid-19 in 113 countries (2020)
kevinbasset.medium.com
kevinbasset.medium.com
For instance, to give the U.S. as an example, the national numbers are a sum of state numbers (plus territories), which are themselves in most cases probably a sum of numbers from counties, which are perhaps sums from individual hospitals.
For Benford's law to work well I think you have to be looking at the same level where the fake numbers were created. If you add up a whole lot of fake numbers or a combination of real and fake numbers, the frequency distribution of the most significant digit of the total will probably end up being about the same as real data. For example, if fake numbers were being generated at the state level in four states, and at the county level in 30 different counties, and at 20 hospitals, then the national numbers would probably still look fine.
If we don't know whether fake data might be injected at the national, state, or county level or from individual hospitals then we'd have to check all of them. And if the data at the granularity we need to be looking at just isn't available then we probably won't be able to detect it just by applying Benford's law.
Benford's law requires data that is distributed over a wide range--it's going to find problems with any data that is too granular. Hospital sizes aren't distributed over wide enough a range to apply Benford's law to.
This came up not too long ago in looking for voting irregularities--somebody who didn't understand what they were doing applied Benford's law to precinct-level voting data--and of course it failed horribly. Duh! Voting precincts have an optimum size and thus will be pretty clustered around that size. The percent going to each candidate generally won't vary too widely, either--thus giving a substantial clustering of the numbers voting for each candidate. There's nowhere near the range of data to apply Benford's law to.
Suppose 5 people died of covid in the Vactican state before they were able to get it under control. The cummulative series is going to look something like this:
0 0 0 0 0 0 1 2 2 2 2 3 3 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 ...
5 being way overrepresented - without there being anything unnatural in it.
> For example, if like China, you eventually eradicate the virus when you have about 80,000 cases, you may end up with hundreds of days with values starting with 8.
The article concludes by pointing out that for this reason, cumulative numbers aren't as suspicious, but anomalous daily numbers are...curious.
I would still say that it is somewhat silly to apply Benford's law here - also in the non-cumulative case.
The distribution of the daily number how much disease is circulating - where I am at the moment we have daily numbers stable at some 40-50 thousands, leading to 4 and 5 being overrepresented, without it being in any way being fraudulent or made up.
This is an interesting write-up, but would seem the diversity in both severity and duration of lock-downs, plus simple issues with quality of data collection mean here Benford's law anomalies, just help identify the lack of consistent approach between countries in handling the pandemic. Also the quality of their data collection process.
This more than fraud, and in any case the article also makes that case.
Sort of. Assuming a wave pattern, values will be close to neighbouring values and vary in an gradual manner.
Benford's law makes intuitive sense to me, in that as soon as you run through the leading digits 1-9, you then spend just as long as all those combined with a '1' in front of the "next set".
But I always figured even digits would be more probable, but uniform across the [0,2,4,6,8] set.
[27, 4, 12, 4, 12, 9, 12, 4, 12, 4]
So '0' has 27% probability, '5' has 9%, and the rest of the evens 12%, the rest of the odds 4%Since this is on the units digit, Benford's law doesn't apply and you can basically expect the distribution of units digits to be uniform.
If the range is too small, you fail. If the choice is not uniform, you may fail.
There is no uniform distribution over all integers, only finite subsets.
Your claim fails for other distributions.
The reason this mostly works is multiplying by something ending in zero gives zero, so it is the trailing digit the most. The leading digit is pretty much Benford's Law.
If you're just making up numbers, Benford's law could pick it up (unless you're aware of Benford's law and create numbers to follow it).
However, if you're just counting a sixth of all deaths, then your numbers will follow whatever pattern they were following before, just lower across the board.
The general form of Benford's law also fails in situations where numbers are capped for some reason. You'll wind up with a strong grouping around that particular number.
All in all, Benford's law can never prove anything. At most, it can give a good reason to look into a situation.
In any case, Benford's Law helps to detect fraud (made-up numbers), not necessarily just inaccuracy (a low detection percentage, for example).
It's fine to occasionally post links to your own work when it's relevant. But it's not fine to do it routinely or generically—HN readers consider that spamming.
Since you haven't posted a Show HN in two years, you should try again. "I built Kontxt.io to save, organize, and share the best parts of the web" is a good line - you should rework it (shortened) into your title. See https://news.ycombinator.com/item?id=22336638 for tips and https://news.ycombinator.com/yli.html for advice about how to present your work to HN. Email hn@ycombinator.com with a link when it's up, in case we can help. Good luck!