ROC Curve Calculator
Calculate sensitivity, specificity, PPV, NPV, accuracy, F1 score, and approximate AUC from a confusion matrix (TP, FP, TN, FN).
Inputs
Results
Sensitivity (Recall / TPR)
0.85
Specificity (TNR)
0.95
F1 Score
0.87
How to Use This Calculator
- Enter True Positives (TP), False Positives (FP), and True Negatives (TN).
- Set False Negatives (FN).
- Review Sensitivity (Recall / TPR), Specificity (TNR), and F1 Score.
- Use Positive Predictive Value (Precision) and Negative Predictive Value to inform your decision.
- Use the chart to visualize the results and explore different scenarios by adjusting inputs.
What each input means
- True Positives (TP)
- Number of correctly identified positive cases.
- False Positives (FP)
- Number of negative cases incorrectly classified as positive (Type I error).
- True Negatives (TN)
- Number of correctly identified negative cases.
- False Negatives (FN)
- Number of positive cases incorrectly classified as negative (Type II error).
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersTrue Positives (TP) = 85, False Positives (FP) = 10, True Negatives (TN) = 190, False Negatives (FN) = 15 = 4 input(s) provided
- Calculate SensitivitySensitivity0.85 = 0.85
- Calculate SpecificitySpecificity0.95 = 0.95
- Calculate F1 ScoreF1 Score = f10.8718 = 0.8718
- Calculate Positive Predictive ValuePositive Predictive Value0.8947 = 0.8947
- Calculate Negative Predictive ValueNegative Predictive Value0.9268 = 0.9268
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Bayesian Prior Calculator
Apply Bayes' theorem to update a prior probability given test sensitivity and false positive rate. Calculate the posterior probability after a positive or negative result.
StatisticsLogistic Regression Calculator
Calculate the predicted probability, odds, and odds ratio from logistic regression coefficients. Visualize the S-shaped probability curve.
Data ScienceConfusion Matrix Analyzer
Analyze classification model performance from confusion matrix values. Calculate precision, recall, F1 score, MCC, accuracy, specificity, and more.
Machine Learning & AIModel Performance Calculator
Complete ML model evaluation. Classification metrics, regression analysis, cross-validation, ROC/AUC curves, and model comparison.
StatisticsZ-Score Calculator
Calculate the z-score (standard score) for any value in a normal distribution. Find the percentile ranking and probability associated with your data point.
More in Math & Statistics.