Is COVID-19 Data tampered?

Testing Benford's Law on COVID-19 Data Reported by Countries

February 15, 2021. Updated May 23, 2021.

Are COVID-19 numbers reported by countries altered? I test the validity of COVID-19 new daily cases for every country using Benford's Law. Since the pandemic gained global centre stage, there has been a surge in data manipulation accusations. Independent media agencies questioned country-level data, and all of us made our own conclusions if the data is correct.

Benford's law tells us that in many naturally occurring collections of numbers, the leading digit is likely to be small (Wikipedia).

Take any naturally occurring dataset. If you count the frequency of the first digits, 1 appears around 30 per cent of the time, 2 appears for 18% of the time, ..., and 9 appears around 5 per cent of the time. This amazingly simple "law" can be an authoritative proof to start an investigation — following natural justice, we shouldn't call anyone guilty of manipulation just on this violation.

Mathematically, the digits' occurrence probability can be modelled using Benford's Distribution, with the following probability distribution function.

The probability of each digit comes out exactly as the following.

The law is so universal that the Income Tax Department uses it to detect fraud, legal cases have admitted it as evidence, regulators analyse prices to see cartel-like behaviour, forensics use it to identify deep-fakes and doctored videos, among others, and in our case, COVID-19 data reported by countries. The Netflix TV-series "Connected" did an episode "Digits" on Benford's Law. It is absolutely brilliant and you should watch it.

Approach

My approach is simple and direct. Using the COVID-19 data available at Our World in Data (John Hopkins University), I modelled each country's daily cases using R and found first-digit distribution using the benford package in R. I measured how much they differed from the expected proportion as Root-Mean-Square-Error (RMSE). A lower RMSE value would mean more accurate data reporting. As you can see from the figure below, most countries reported their COVID-19 data correctly — including China.

Note: the map plots use the data as of May 23, 2021. The app below uses the live data to date.

As of May 23, 2021:

The countries with very little evidence of manipulation — RMSE less than 3 — are the following.


Comoros, Somalia, Dominica, Republic of Congo, Vatican, Solomon Islands, United Republic of Tanzania, Samoa, Vanuatu, Marshall Islands, Federated States of Micronesia.


The countries with very strong evidence of manipulation — RMSE more than 22 — are the following.

Belarus, Tajikistan, Netherlands, Russia, Egypt, Iran, Iraq, Qatar, South Korea, Colombia, Italy, Turkey, Honduras, Brazil, China, Kuwait, Mexico, Algeria, El Salvador.


My home, India, doesn't show strong evidence of manipulation (RMSE = 7.32). China (RMSE = 22.6) and Russia (RMSE = 28.9) show major evidence of manipulation. These results are as on May 23, 2021 and can change in future. Use the app below for live results.

If you are curious about any specific country, I made a Shiny app for each country on live data. Check it out below or here.

The above app takes in live COVID-19 cases data from Our World in Data and analyses using R Shiny. Therefore, the numbers and graphs are updated frequently.

Here is the complete list of countries and their RMSE values (as of February 16, 2021). The codes for the Shiny app and generating the plots, etc. are included in this Github repository.

Of course, much detailed analysis is required to conclude anything confidently. Benford's Law can give misleading conclusions like 2020 US Elections, and it might as well be the case here. This is only a first-level analysis. Beyond first-order, expert eyes are required to find how fair is Benford in this case.

Are Countries Manipulating COVID-19 Data?