Sensitivity and Specificity Calculator
Calculate sensitivity, specificity, and other diagnostic test performance metrics using this comprehensive calculator.
Calculate Your Sensitivity and Specificity Calculator
Sick people correctly identified as sick
Sick people incorrectly identified as healthy
Healthy people correctly identified as healthy
Healthy people incorrectly identified as sick
Understanding Sensitivity and Specificity
Sensitivity and specificity are statistical measures used to assess the performance of a binary classification test, such as a medical diagnostic test. These metrics help evaluate how well a test can identify true positives and true negatives.
Key Metrics Explained
Sensitivity (True Positive Rate)
Sensitivity measures the proportion of actual positives that are correctly identified as such. It answers the question: "If a person has the disease, how likely is the test to detect it?"
Sensitivity = True Positives / (True Positives + False Negatives)
Specificity (True Negative Rate)
Specificity measures the proportion of actual negatives that are correctly identified as such. It answers the question: "If a person doesn't have the disease, how likely is the test to give a negative result?"
Specificity = True Negatives / (True Negatives + False Positives)
Positive Predictive Value (PPV)
PPV is the proportion of positive test results that are true positives. It answers the question: "If the test is positive, what is the probability that the person actually has the disease?"
PPV = True Positives / (True Positives + False Positives)
Negative Predictive Value (NPV)
NPV is the proportion of negative test results that are true negatives. It answers the question: "If the test is negative, what is the probability that the person truly doesn't have the disease?"
NPV = True Negatives / (True Negatives + False Negatives)
Accuracy
Accuracy measures the proportion of all test results (both positive and negative) that are correct.
Accuracy = (True Positives + True Negatives) / Total Population
The Confusion Matrix
A confusion matrix is a table that visualizes the performance of a classification model. For a binary test, it shows:
Condition Positive | Condition Negative | |
---|---|---|
Test Positive | True Positive (TP) | False Positive (FP) |
Test Negative | False Negative (FN) | True Negative (TN) |
Trade-offs Between Sensitivity and Specificity
There's often a trade-off between sensitivity and specificity. Increasing one typically decreases the other.
- High sensitivity tests are useful for ruling out disease (fewer false negatives) and are preferred for screening.
- High specificity tests are useful for confirming a diagnosis (fewer false positives) and are preferred for confirmatory testing.
The optimal balance depends on the clinical context and the consequences of false positives versus false negatives.
Applications
- Medical diagnostics and screening tests
- Quality control in manufacturing
- Fraud detection systems
- Spam filtering
- Biometric authentication systems
Related Calculators
Frequently Asked Questions
Sensitivity and specificity measure different aspects of a diagnostic test:
- Sensitivity measures how well a test identifies people who actually have the condition (true positives). High sensitivity tests rarely miss people with the condition.
- Specificity measures how well a test identifies people who don't have the condition (true negatives). High specificity tests rarely give positive results for healthy people.
For both sensitivity and specificity:
- 90-100%: Excellent
- 80-90%: Good
- 70-80%: Fair
- 60-70%: Poor
- Below 60%: Fail
Remember: The ideal test would have both 100% sensitivity and 100% specificity, but in practice, there's usually a trade-off between the two.
These terms describe errors in test results:
- False positive: When a test incorrectly indicates someone has a condition when they don't. This is a Type I error.
- False negative: When a test incorrectly indicates someone doesn't have a condition when they actually do. This is a Type II error.
Share This Calculator
Found this calculator helpful? Share it with your friends and colleagues!