Investigating and preventing scientific misconduct with Benford’s law
researchintegrityjournal.biomedcentral.com
researchintegrityjournal.biomedcentral.com
Thus if a data set doesn’t have the same distribution, it might be suspect.
Reminds me of a fun use for second digit analysis:
"This study applies Benford’s law to detect anomalies in county-level vote data for the 2020 US presidential election. Most prominent distribution violations are observed with Republican vote counts in blue states, all vote counts in states won by the Democratic candidate, and Democratic vote counts in swing states. Distributions are anomalous in swing states won by the Democratic nominee and not anomalous in swing states won by the Republican nominee. The results are robust to two-digit analysis, Monte Carlo simulations of p-values, broad or narrow swing state definitions, and when compared to distributions observed in 2008, 2012, and 2016 elections." - ["Detecting Anomalies in the 2020 US Presidential Election Votes with Benford’s Law" (2020)](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3728626)
So I wish they had instead grouped counties by how they voted (since certifying votes is done on the county level, typically), and run the analysis that way.
I'd also like to see an analysis based on county size (by population density, and by absolute population). As you get non-random effects based on density.
It's also interesting that in certain cases they use a 10%-level for confidence.
Edit to add a question: Does the registered voting population of these districts follow Benford's Law?
See https://en.m.wikipedia.org/wiki/Benford's_law > Benford's law has also been misapplied to claim election fraud. When applying the law to Joe Biden's election returns for Chicago, Milwaukee, and other localities in the 2020 United States presidential election, the distribution of the first digit did not follow Benford's law. The misapplication was a result of looking at data that was tightly bound in range, which violates the assumption inherent in Benford's law that the range of the data be large. The first digit test was applied to precinct-level data, but because precincts rarely receive more than a few thousand votes or fewer than several dozen, Benford's law cannot be expected to apply. According to Mebane, "It is widely understood that the first digits of precinct vote counts are not useful for trying to diagnose election frauds."
The other examples on this page used the second digit for their election analysis.
Wikipedia cites this article:
https://physicsworld.com/a/benfords-law-and-the-2020-us-pres...
> In a working paper published on 10 November, Mebane looks deeper at the US election data using a 2BL test, based on the second digits and Benford’s law digit probabilities, along with other statistical tools.
> The bottom line: there are no signs of irregularity in the officially declared precinct vote counts data from Fulton County, GA, Allegheny County, PA, Milwaukee, WI, and Chicago, IL, as some have claimed.
That article cites this paper:
http://www-personal.umich.edu/~wmebane/inapB.pdf
> The vote counts from the four jurisdictions are not final, so one should treat them cautiously. Nonetheless preliminary analysis shows little that suggests there are problems.
Presumably a more up to date source exists now that the votes are finalized. The paper also has a link to the data they used on GitHub if you'd like to see for yourself (and both this & the paper below say they downloaded it from the Secretary of State websites of each state, so presumably you could do that too if you didn't trust this random GitHub).
This paper from MITRE is interesting but doesn't use 2BL. (They don't find any evidence of fraud. They do discuss 2BL in an appendix.)
I was curious about 2020 after the pop science emerged and checked all of these precincts' trailing digits (as well as a few other statistics), and they looked totally fine.
If you wouldn't mind reviewing https://news.ycombinator.com/newsguidelines.html and taking the intended spirit of the site more to heart, we'd be grateful.