ABSTRACT
Bayes’ Theorem provides a mathematical framework for updating the probability of a hypothesis (an event) as more evidence or information becomes available. It essentially allows us to “reverse” conditional probabilities.
The Formula
The theorem is derived from the definition of Conditional Probabilities. Since and , we can equate them to solve for :
Using the Law of Total Probability, we can expand the denominator to account for all possible scenarios (where occurs and where does not occur, denoted as ):
Step-by-Step Example: Steroid Testing
The Problem:
- A test detects steroids 95% of the time (True Positive).
- The test has a 15% false positive rate for clean athletes.
- Only 10% of athletes actually use steroids.
- Question: If an athlete tests positive, what is the probability they actually used steroids?
1. Identify the Variables
- : The athlete used steroids (The hypothesis).
- : The athlete tested positive (The evidence).
- : Prior probability of steroid use.
- : Prior probability of being clean.
- : Probability of testing positive given steroid use.
- : Probability of testing positive given no steroid use.
2. Apply the Theorem
Substitute the values into the expanded formula:
3. Visualizing the Result
Even though the test is “95% accurate” at detection, a positive result only means there is a 41% chance the athlete is guilty. This occurs because the number of “clean” athletes is much larger than the number of “users,” so the 15% false positive rate generates more total positive results than the 95% detection rate does.
Explanation
In the universal set, there are 2 possible associations
- Did use steroid ()
- Did not use steroid ()

When the company said “drug test will detect steroid use of the time,” It was really only looking at those who did use steroid (orange ). At the same time, the drug falsely tested positive on those who did not use steroids of the time.

The resulting is the percentage of those who used steroids given that the drug test came out positive

Common Use Cases
| Field | Application |
|---|---|
| Medical Testing | Determining the actual likelihood of a disease given a positive lab result. |
| Spam Filtering | Calculating the probability a message is spam given the presence of certain words. |
| Machine Learning | Naïve Bayes classifiers use these principles for categorization tasks. |
Related Notes
- Conditional Probabilities: The foundational logic for Bayes’ Theorem.
- Case Analysis: Bayes’ Theorem is often the final step after a case analysis of a multi-stage process.
- Independent Events: If and are independent, , and the evidence provides no new information.