to your HTML Add class="sortable" to any table you'd like to make sortable Click on the headers to sort Thanks to many, many people for contributions and suggestions. Licenced as X11: http://www.kryogenix.org/code/browser/licence.html This basically means: do what you want with it. */ var stIsIE = /*@cc_on!@*/false; sorttable = { init: function() { // quit if this function has already been called if (arguments.callee.done) return; // flag this function so we don't do the same thing twice arguments.callee.done = true; // kill the timer if (_timer) clearInterval(_timer); if (!document.createElement || !document.getElementsByTagName) return; sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/; forEach(document.getElementsByTagName('table'), function(table) { if (table.className.search(/\bsortable\b/) != -1) { sorttable.makeSortable(table); } }); }, makeSortable: function(table) { if (table.getElementsByTagName('thead').length == 0) { // table doesn't have a tHead. Since it should have, create one and // put the first table row in it. the = document.createElement('thead'); the.appendChild(table.rows[0]); table.insertBefore(the,table.firstChild); } // Safari doesn't support table.tHead, sigh if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; if (table.tHead.rows.length != 1) return; // can't cope with two header rows // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as // "total" rows, for example). This is B&R, since what you're supposed // to do is put them in a tfoot. So, if there are sortbottom rows, // for backwards compatibility, move them to tfoot (creating it if needed). sortbottomrows = []; for (var i=0; i
Can you use Benford's Law to reliably detect election fraud?
This question has been raised often since the U.S. elections on 3 November 2020. The earliest mention of it we can find where it was used to question results in this election dates to 6 November 2020, at this Twitter thread, which featured this infographic looking at the city of Milwaukee's election results in the U.S. presidential race. That was followed by tweets looking at vote tallies in Michigan, Chicago, Allegheny County (Pittsburgh), and other cities and states with long reputations for election irregularities.
Much of the analysis behind these posts appears to have originated with Rajat Gupta's DIY Election Fraud Analysis Using Benford's Law tutorial from September 2020, which provides a guide for how to apply Benford's Law to evaluate election results using spreadsheet applications like Microsoft Excel.
As such tutorials go, it is relatively well done, providing step by step instructions that anyone with basic spreadsheet programming experience can follow to conduct their own analysis to see if their dataset of interest follows Benford's Law and generate a chart showing the outcome. But the tutorial has a huge problem, in that it skips over a huge factor that determines whether Benford's Law can even be successfully applied to evaluate whether the data represents the results of a natural outcome or has potentially been artificially manipulated.
To be successfully applied to detect potential fraud, the dataset must contain values that span several orders of magnitude. In the case of election results from voting precincts, the number of voters in individual precincts would have to number from the 10s, to the 100s, to the 1,000s, to the 10,000s, and so on.
But when you look at the precinct voting data covering the geographies in question, it most often covers data that predominantly falls within a single order of magnitude. This limitation makes Benford's Law an unreliable indicator for detecting potential fraud in this application.
Matt Parker, avid student of math gone wrong and currently the #1 best selling author in Amazon's Mathematics History subcategory, has put together the following video to explain why Benford's Law doesn't work well under these limiting circumstances. It is well worth the 18 minute investment of time to understand where Benford's Law can be successfully applied to detect potential fraud and where it cannot.
Benford's Law has recently been more successfully applied to challenge the validity of the number of coronavirus infections being reported by several nations. The difference in determining its success comes down to the virus' exponential rate of spread, which quickly generates an escalating number of cases that satisfies the requirement that the range of values subjected to analysis using Benford's Law span several orders of magnitude.
With that condition unmet for the raised election examples, we find that using Benford's Law to detect potential voter fraud is unreliable. If the authors of the analyses identifying voter fraud were aware of the deficiency of data used to support their findings, we would categorize these results as the product of junk science. We don't however think that harsh assessment applies for these cases, as most seem to be following an otherwise useful guide that omits presenting the conditions that must be satisfied to properly apply Benford's Law. That makes this situation different from other examples of junk science where the offenders clearly knew their data's deficiencies and failed to disclose them, sometimes with catastrophic effect.
We'll close by providing a short guide to our work covering related aspects of the topics we've discussed and pointing to academic work that provides more background.
Deckert, Joseph; Myagkov, Mikhail; and Ordeshook, Peter C. Benford's Law and the Detection of Election Fraud. Political Analysis, Volume 19, Issue 3, Summer 2011, pp. 245-268. DOI: 10.1093/pan/mpr014.
Mebane, Walter R. New Research on Election Fraud and Benford's Law. Election Updates. [Online Article]. 23 August 2011.
Mebane, Walter R. Inappropriate Applications of Benford's Law Regularities to Some Data from the Presidential Election in the United States. [Online Article (PDF Document)]. 10 November 2020.
Brown, Michelle. Does the Application of Benford's Law Reliably Identify Fraud on Election Day? Georgetown University Graduate Theses and Dissertations - Public Policy. [PDF Document]. 2012.
Labels: election, junk science, math, politics
Welcome to the blogosphere's toolchest! Here, unlike other blogs dedicated to analyzing current events, we create easy-to-use, simple tools to do the math related to them so you can get in on the action too! If you would like to learn more about these tools, or if you would like to contribute ideas to develop for this blog, please e-mail us at:
ironman at politicalcalculations
Thanks in advance!
Closing values for previous trading day.
This site is primarily powered by:
The tools on this site are built using JavaScript. If you would like to learn more, one of the best free resources on the web is available at W3Schools.com.