Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 1

Calculating Diagnostic Test Metrics from App Data

Recommended resources

Welcome to your first case, Detective. Before we dive in, a bit of context for this new series of investigations. You've established a successful consultancy built on a deep, quantitative understanding of human relationships. Now, we're going to apply that entire statistical toolkit to a series of mysteries, where data and logic are your primary weapons. Each module will present a new case, and each lesson will be a step toward solving it. The methods will be your own to command; my role is to present the case files and guide your analysis.

Case #1: The Screening Scandal - A Cold Opening

The buzz in your professional circles is all about "ErosEncore," a sleek new app promising to revolutionize the search for partners in the hotwife and cuckold lifestyle. Its marketing is aggressive, claiming a proprietary algorithm with "unprecedented accuracy" in identifying genuinely compatible partners.

The problem? Your desk is piling up with complaints from your own clients. One after another, they tell the same story: they trusted ErosEncore, got a "high-compatibility" match, and invested time and emotion, only to find the connection was a dud. The fallout ranges from simple disappointment to significant emotional distress. The app that promised to filter out the noise seems to be creating more of it.

Your mission is to get to the bottom of this. Is ErosEncore a revolutionary tool or just sophisticated snake oil? The first step in any investigation is to cut through the hype and establish the facts. We must scrutinize the app's claims against the real-world data from your client files. Today, we'll focus on extracting the three most fundamental metrics of any screening process to see if the app's performance is what it claims to be.


Establishing the Baseline: Key Diagnostic Metrics

In any screening or diagnostic scenario, whether in medicine, engineering, or relationship science, three numbers form the bedrock of our analysis: the base rate, sensitivity, and specificity. These metrics allow us to quantify a test's performance objectively. In our case, the "test" is the ErosEncore app, and the "condition" is genuine compatibility.

  • Base Rate (or Prevalence): This is the fundamental question: out of the entire population of potential matches, what percentage is actually compatible? It’s the background rate of the "condition" we're looking for, independent of any test. A low base rate can make even a good test seem unreliable, a concept you'll be familiar with from your work on imbalanced data.
  • Sensitivity: This measures the test's ability to correctly identify the "condition" when it's truly present. In our case: If a couple is genuinely compatible, what is the probability that ErosEncore will correctly flag them as a "Compatible" match? This is the true positive rate.
  • Specificity: This measures the test's ability to correctly rule out the "condition" when it's absent. If a couple is actually incompatible, what is the probability that ErosEncore will correctly flag them as "Incompatible"? This is the true negative rate.

To get a more formal handle on these concepts, the following video provides a clear introduction. It uses a medical context, but the logic is identical.

Biostatistics - Evaluation of Diagnostic Tests: Sensitivity & Specificity

This video, from the ATP channel, will walk you through the core definitions and the 2x2 table framework used to organize diagnostic test results.

Please watch the segments that define the sensitivity and specificity of a test. Pay close attention to how the presenter sets up the 2x2 table, as this structure is the standard for this type of investigation.


Unpacking the Evidence

Now, let's apply this framework to the ErosEncore case. We have two sources of "evidence": the company's promotional materials and your own internal case files.

Evidence File A: The ErosEncore Marketing Brochure

The brochure makes two bold claims:

  1. "Our algorithm is 98% effective at identifying your truly compatible matches!"
  2. "We successfully filter out 95% of incompatible pairings, saving you time and heartache."

From these marketing statements, we can extract the claimed performance metrics:

  • Claimed Sensitivity = 98%
  • Claimed Specificity = 95%

Note that the brochure cleverly omits any mention of the base rate of compatibility in the general population. This is a common tactic, and as we'll see, a critical omission.

Evidence File B: Your Client Complaint Records

You've done the hard work of reviewing the case files for 200 couples that were matched by ErosEncore. Through your own detailed analysis and follow-up interviews, you have established the "ground truth" for these pairings.

Here's the breakdown:

  • Total Couples Reviewed: 200
  • Genuinely Compatible: 30 couples
  • Genuinely Incompatible: 170 couples

From this data, we can immediately calculate the Base Rate of genuine compatibility in your client sample:

This is a crucial first finding. In the real world of your clients, only 15% of the potential matches are genuinely compatible. This is a classic imbalanced data scenario.

Now, let's look at how the app performed on these 200 cases:

  • Of the 30 genuinely compatible couples:
    • The app correctly labeled 27 as "Compatible" (True Positives, TP).
    • The app incorrectly labeled 3 as "Incompatible" (False Negatives, FN).
  • Of the 170 genuinely incompatible couples:
    • The app correctly labeled 136 as "Incompatible" (True Negatives, TN).
    • The app incorrectly labeled 34 as "Compatible" (False Positives, FP).

Using this "ground truth" data, we can calculate the app's actual performance and compare it to their claims.

For a precise definition of the formulas, let's consult a reference.

Sensitivity vs Specificity: Definition, Formulas & Interpreting

This article by statistician Jim Frost gives concise, clear definitions and formulas for our key metrics.

Please read the sections on Sensitivity and Specificity. Focus on the formulas provided for each.

Now, let's run the numbers for ErosEncore based on your client data.

Calculating Real-World Sensitivity:

Calculating Real-World Specificity:

The results of our initial analysis are stark:

  • Claimed Sensitivity: 98% vs. Observed Sensitivity: 90%
  • Claimed Specificity: 95% vs. Observed Specificity: 80%

The app is underperforming on both fronts, but the drop in specificity is particularly dramatic. This means the app is far worse at filtering out bad matches than it claims, which directly explains the flood of complaints from your clients who are being matched with incompatible partners.

Why such a discrepancy? The app's developers likely calculated their marketing numbers from a carefully selected sample, perhaps one where the base rate of compatibility was much higher.

This next reading explains why the characteristics of the sample population are so critical.

How to Interpret Sensitivity and Specificity

This article from WPS Publish discusses the practical interpretation of these metrics, particularly how they can be influenced by the study sample.

Read the section Interpreting the Statistics. The key insight here is how factors like sample size, diagnosis, and severity can profoundly impact the results, explaining why an company's internal study might not reflect real-world performance.


Conclusion: The First Cracks in the Facade

In this initial phase of our investigation, we've established a solid foundation. We've defined the core metrics of diagnostic accuracy—base rate, sensitivity, and specificity—and seen how they apply to the ErosEncore app. By contrasting the company's marketing claims with the hard data from your client files, we've uncovered a significant discrepancy. The app's real-world performance, especially its ability to screen out incompatible matches (specificity), is substantially lower than advertised.

Key Takeaways:

  • Base Rate, Sensitivity, and Specificity are the fundamental metrics for evaluating any screening tool.
  • Promotional claims often present a best-case scenario and may not reflect performance in a real-world, imbalanced population.
  • The base rate (prevalence) of a condition is a critical piece of context; without it, sensitivity and specificity can be misleading.
  • Our initial findings show ErosEncore's observed sensitivity (90%) and specificity (80%) are well below their claimed 98% and 95%, respectively.

This is a strong start, but to build an undeniable case, we need to go deeper. In our next session, we will organize these findings into a formal confusion matrix. From there, we will calculate a full suite of diagnostic metrics—like predictive values and accuracy—that will paint a complete, damning picture of the app's true reliability. This will provide the quantitative proof needed to understand the full scale of "The Screening Scandal."