Welcome to our next lesson. In our previous session, we defined the key diagnostic metrics of Positive Predictive Value (PPV) and False Discovery Rate (FDR). We established that the reliability of a positive test result is not just a function of the test's quality (its sensitivity and specificity), but is also heavily influenced by the prevalence of the condition in the population being tested.
Today, we will build directly on that foundation to fulfill a core aspect of your learning goal: demonstrating precisely how low prevalence degrades a test's predictive power. You'll see through concrete numerical examples how a perfectly good test can produce an alarming number of false alarms when applied to a population where the condition is rare. This phenomenon, often called the "false positive paradox," is a central challenge in working with imbalanced datasets.
The Mathematics of PPV Degradation
Let's revisit the formula for Positive Predictive Value:
The numerator represents the proportion of true positives in the total population. The denominator represents the proportion of all positive tests (both true positives and false positives).
The key to understanding the degradation of PPV lies in what happens when prevalence becomes very small. As Prevalence :
- The numerator () also approaches 0.
- In the denominator, the first term () approaches 0.
- However, the second term, which represents the false positives (), approaches , which is the false positive rate.
Essentially, as the condition becomes rarer, the absolute number of true positives shrinks. At the same time, the number of false positives remains a fixed percentage of a very large "healthy" population. Soon, the number of false positives can equal or even vastly outnumber the true positives, destroying the PPV.
Let's demonstrate this effect numerically with our two scenarios.
Application 1: Bra-Fit Screening Tool in a New Context
In our last lesson, your screening questionnaire was applied to clients who sought out your consultation service, a group with a high prevalence (80%) of wearing an ill-fitting bra.
Now, imagine you set up a booth at a general corporate wellness fair. Most attendees are not actively concerned about their bra fit. In this context, the prevalence of a poor fit is much lower, let's say 20%. The questionnaire itself remains unchanged, so its sensitivity and specificity are the same.
Parameters:
- Sensitivity (): 90% (0.90)
- Specificity (): 85% (0.85)
High Prevalence vs. Low Prevalence Calculation
Let's compare the PPV in the original high-prevalence setting to this new low-prevalence one.
Case 1: High Prevalence (Self-selected clients, P = 0.80)
\text{PPV} = \frac{0.80 \cdot 0.90}{0.80 \cdot 0.90 + (1-0.80) \cdot (1-0.85)} = \frac{0.72}{0.72 + (0.20 \cdot 0.15)} = \frac{0.72}{0.72 + 0.03} = \frac{0.72}{0.75} = \textbf{96.0%}Case 2: Low Prevalence (General population, P = 0.20)
\text{PPV} = \frac{0.20 \cdot 0.90}{0.20 \cdot 0.90 + (1-0.20) \cdot (1-0.85)} = \frac{0.18}{0.18 + (0.80 \cdot 0.15)} = \frac{0.18}{0.18 + 0.12} = \frac{0.18}{0.30} = \textbf{60.0%}Interpretation:
The PPV of your questionnaire has plummeted from 96% to 60%. In the original setting, a positive result was highly reliable. At the wellness fair, a positive result is correct only 60% of the time, meaning 40% of positive flags are false alarms. The test's inherent accuracy hasn't changed, but the context of its application has rendered its positive results far less trustworthy.
To make this more concrete, let's construct 2x2 contingency tables for a hypothetical population of 1,000 individuals in each scenario.
| Case 1: High Prevalence (P=80%) | Poor Fit (Present) | Good Fit (Absent) | Total |
|---|---|---|---|
| Test Positive | TP = 720 | FP = 30 | 750 |
| Test Negative | FN = 80 | TN = 170 | 250 |
| Total | 800 | 200 | 1000 |
PPV = TP / (TP + FP) = 720 / 750 = 96.0%
| Case 2: Low Prevalence (P=20%) | Poor Fit (Present) | Good Fit (Absent) | Total |
|---|---|---|---|
| Test Positive | TP = 180 | FP = 120 | 300 |
| Test Negative | FN = 20 | TN = 680 | 700 |
| Total | 200 | 800 | 1000 |
PPV = TP / (TP + FP) = 180 / 300 = 60.0%
Notice how in the low prevalence case, the number of False Positives (120) is a significant fraction of the True Positives (180). This is the degradation in action.
Application 2: Relationship Neglect Signal for a Rarer Event
Last time, your automated signal for "relationship neglect" was tracking an event with a 5% weekly prevalence. Let's now use the same system to detect a much rarer, more severe event: "critical relationship distress," which may only have a prevalence of 1%.
Parameters:
- Sensitivity (): 95% (0.95)
- Specificity (): 90% (0.90)
Moderate vs. Very Low Prevalence Calculation
Case 1: Moderate Prevalence (Neglect, P = 0.05)
\text{PPV} = \frac{0.05 \cdot 0.95}{0.05 \cdot 0.95 + (1-0.05) \cdot (1-0.90)} = \frac{0.0475}{0.0475 + 0.095} = \frac{0.0475}{0.1425} \approx \textbf{33.3%}Case 2: Very Low Prevalence (Critical Distress, P = 0.01)
\text{PPV} = \frac{0.01 \cdot 0.95}{0.01 \cdot 0.95 + (1-0.01) \cdot (1-0.90)} = \frac{0.0095}{0.0095 + (0.99 \cdot 0.10)} = \frac{0.0095}{0.0095 + 0.099} = \frac{0.0095}{0.1085} \approx \textbf{8.8%}Interpretation:
The degradation is even more stark here. The PPV falls from an already-low 33.3% to a nearly useless 8.8%. When monitoring for this very rare event, over 91% of the warning signals are false alarms. This highlights a critical lesson for any kind of anomaly detection: without an extremely high specificity (a very low false positive rate), a positive signal for a rare event carries very little information.
Reinforcing the Concept with External Examples
This principle is universal in statistics and diagnostics. The following resources provide further numerical demonstrations that confirm our findings.
First, let's look at an image showing a confusion matrix for a classic imbalanced classification problem. In machine learning, PPV is more commonly known as Precision.

Next, let's examine a real-world medical case study. The following reading walks through an example where the prevalence of heart failure is artificially changed from 47% to 5%, demonstrating the impact on PPV.
Sensitivity, Specificity, and Predictive Values in Diagnostic ...
This reading from the ADLM's "Pearls of Laboratory Medicine" provides a clear numerical example of PPV degradation.
Please start reading at the section marked "Slide 13". The author shows how, for a BNP test, a drop in prevalence from 47% to 5% causes the PPV to plummet from 77% to 16%, while sensitivity and specificity remain constant. This is the exact effect we have just calculated.
Finally, to see this effect across several prevalence levels, please review the table in the following resource.
Sensitivity, Specificity, Positive Predictive Value, and Negative ...
This research article on prostate cancer screening includes a powerful table illustrating the relationship between prevalence and predictive values.
Find Table 3 in the document. Examine the three scenarios presented: disease prevalence of 50%, 23%, and 10%. Note how as the prevalence decreases, the PPV drops from 54% to 26% to 11%, even though the test's sensitivity (98%) and specificity (16%) are held constant.
Conclusion
In this lesson, we have numerically and conceptually demonstrated one of the most important principles in diagnostic statistics and machine learning: the degradation of Positive Predictive Value in low-prevalence situations.
Key Takeaways:
- PPV is not an intrinsic property of a test; it is a function of the test's characteristics and the prevalence of the condition in the target population.
- As prevalence decreases, the number of false positives (a percentage of a large negative population) can quickly overwhelm the number of true positives (a percentage of a small positive population).
- This causes PPV to plummet, meaning a positive test result becomes a weak indicator of the true presence of the condition. This is the essence of working with imbalanced data.
The natural question that arises is, "If a low PPV is a problem, can we do anything about it?" Fortunately, the answer is yes. In our next lesson, we will explore how to adjust the classification threshold of a model to deliberately trade off sensitivity and specificity, allowing you to tune your test's performance to achieve a more useful outcome for your specific goals.