The COVID-19 pandemic was a sad but perfect opportunity to engage with mathematics. Suddenly, we were all confronted with incidence rates, overwhelmed with statistics, and had to deal with probabilities. On a very personal level, with the likelihood of getting infected or the question of how reliable the newly developed COVID-19 tests were. Questions that could decide on freedom, health, and for some even on life and death.
Without mathematical knowledge, however, none of these questions can be properly answered. Here is a concrete example:
«According to the manufacturer, a COVID-19 rapid test offers a 95 percent probability of correctly detecting a COVID-19 infection. Conversely, the test falsely indicates a positive result with a probability of 2 percent. Now let’s assume you test positive while COVID-19 currently has a prevalence (proportion of people in the population who are infected at that time) of one percent (a value quite realistic for the peaks of the COVID-19 waves): What do you think is the probability that the test is correct?»
At first glance and intuitively, many people would probably consider such a test quite reliable. Mathematically speaking, however, it is not — as the calculation using the so-called Bayes’ theorem shows, used to calculate the probability of an event occurring based on prior knowledge of related conditions or events. It states:
P(A|B) = (P(B|A) * P(A)) / P(B)
In our case:
- A represents the probability that you are actually infected with COVID-19.
- B represents the probability that the test comes back positive.
We are looking for P(A|B), the probability of actually having COVID-19 if the test is positive. Here are the necessary probabilities:
- P(A): The prevalence of COVID-19 in the population is 1%, so P(A) = 0.01.
- P(B|A): The probability that the test is positive if you actually have COVID-19 is 95%, so P(B|A) = 0.95.
- P(B): The probability that the test comes back positive, regardless of whether you are infected or not. To calculate this, we need to add the probabilities for false positive and correct positive results:
- P(B) = P(B|A) * P(A) + P(B|¬A) * P(¬A)
- P(B|¬A) is the probability that the test comes back positive even though you don’t have COVID-19 (false positive). This is 2%, so P(B|¬A) = 0.02.
- P(¬A) is the probability that you don’t have COVID-19. Since the prevalence is 1%, the probability of not being infected is 99%, so P(¬A) = 0.99.
- P(B) = 0.95 * 0.01 + 0.02 * 0.99 = 0.0095 + 0.0198 = 0.0293
Now we can apply Bayes’ theorem to calculate P(A|B):
P(A|B) = (P(B|A) * P(A)) / P(B) = (0.95 * 0.01) / 0.0293 ≈ 0.3242
According to Bayes’ theorem, the probability that the test is correct and you actually have COVID-19 is about 32.42 percent. A surprisingly low value for many.
Calculations like these demonstrate the importance of a basic understanding of mathematics and conditional probabilities for essential questions in our everyday lives — and for a multitude of decisions. Bayes’ theorem, developed in the 18th century by the English mathematician, statistician, philosopher, and Presbyterian minister Thomas Bayes, remains a crucial foundation to this day. It plays a significant role in data mining, spam detection, artificial intelligence development, or quality management. Last but not least, drawing conclusions from data, as Christoph Wassner, Stefan Krauss, and Laura Martignon emphasized in a 2002 paper, forms the basis for many professions: in medical diagnoses, judicial judgments, and economic decisions. «The same applies to the ‹informed citizen› who is confronted with media information on a daily basis.»
Some everyday examples may illustrate the practical applications of Bayes’ theorem in our lives. For instance, when choosing between different transportation options for our daily commute, we can use Bayes’ theorem to calculate the likelihood of delays based on past experiences, traffic conditions, and seasonal factors. This enables us to make more informed decisions about which mode of transportation offers the highest probability of arriving at work on time.
Similarly, Bayes’ theorem can assist us in making purchase decisions by incorporating additional information, such as the number of reviews or our specific requirements, to estimate our satisfaction with a product. Moreover, meteorologists employ this theorem to predict weather events like rain, based on current conditions and historical data, allowing us to plan our daily activities more effectively. By applying these fundamental mathematical principles, we can make more informed and rational decisions in various aspects of our lives. So, perhaps it’s time to re-engage with this formula that has been developed more than 250 years ago, but never gets old.
