- Understand conditional probability and Bayes’ theorem
Bayes’ Theorem
In this section, we concentrate on the more complex conditional probability problems we began looking at in the last section.

Let’s look at an example of complex conditional probability!
Probability plays a crucial role in assessing the accuracy of medical tests, especially in diagnosing diseases. When a person undergoes a medical test, we expect the test to accurately detect the disease if the person has it, and to provide a negative result if the person is disease-free. This scenario embodies the concept of conditional probability.
Bayes’ Theorem is a mathematical tool used in such situations. It enables us to calculate the probability of a person having a disease given the test result, considering the probability of the test being accurate and the prior likelihood of the person having the disease. In other words, Bayes’ Theorem helps us update our beliefs about a person’s disease status based on the test outcome and existing information. This theorem is invaluable in medical diagnosis and various other fields where accurate predictions based on uncertain information are vital.
Bayes’ Theorem
Bayes’ Theorem is a fundamental concept in probability theory that allows us to update our beliefs about an event when new evidence or information becomes available.
Let’s consider an example of Bayes’ Theorem! We will discuss this theorem a bit later, but for now, we will use an alternative and, we hope, much more intuitive approach.
Suppose a certain disease has an incidence rate of 0.1% (that is, it afflicts 0.1% of the population). A test has been devised to detect this disease. The test does not produce false negatives (that is, anyone who has the disease will test positive for it), but the false positive rate is 5% (that is, about 5% of people who take the test will test positive, even though they do not have the disease).
Suppose a randomly selected person takes the test and tests positive. What is the probability that this person actually has the disease?
As we have seen in this hypothetical example, the most responsible course of action for treating a patient who tests positive would be to counsel the patient that they most likely do not have the disease and to order further, more reliable, tests to verify the diagnosis.
One of the reasons that the doctors and medical students in the study did so poorly is that such problems, when presented in the types of statistics courses that medical students often take, are solved by use of Bayes’ theorem.
Bayes’ Theorem
[latex]P(A|B) = \dfrac{P(B|A) \times P(A)}{P(B)}[/latex]
where
- [latex]P(A|B)[/latex] represents the probability of event [latex]A[/latex] occurring given that event [latex]B[/latex] has occurred
- [latex]P(B|A)[/latex] represents the probability of event [latex]B[/latex] occurring given that event [latex]A[/latex] has occurred
- [latex]P(A)[/latex] and [latex]P(B)[/latex] are the probability of events [latex]A[/latex] and [latex]B[/latex] occurring, respectively
Let’s look at the previous example and use the theorem to answer: What is the probability that this person actually has the disease?
Using the formula of Bayes’ Theorem, this translates to:
[latex]P(\text{disease} | \text{positive}) = \frac{P(\text{disease}) \times P(\text{positive} | \text{disease})}{P(\text{positive})} =\frac{P(\text{disease}) \times P(\text{positive} | \text{disease})}{P(\text{disease}) \times P(\text{positive} | \text{disease}) + P(\text{no disease}) \times P(\text{positive} | \text{no disease})}
[/latex]
Plugging in the numbers, we have:
[latex]P(\text{disease} | \text{positive}) = \frac{(0.001)(1)}{(0.001)(1) + (0.999)(0.05)} \approx 0.0196[/latex]
which is exactly the same answer as our original solution.