How to use this tool
- Enter true positives, false positives, false negatives, true negatives.
- Select Calculate to view the result.
- Check the method and assumptions below before using the result.
The method, explained
Accuracy = (TP+TN)/N. Precision = TP/(TP+FP). Recall = TP/(TP+FN). Specificity = TN/(TN+FP). F1 = 2TP/(2TP+FP+FN).
Using true positives = 80, false positives = 10, false negatives = 20, true negatives = 90, the result is 0.85 probability. Change these example inputs to match your task; use the method above to check each step.
What to keep in mind
Binary labels only. Counts must come from the same evaluation set and decision threshold. This page does not diagnose medical conditions. A descriptive or probability calculation under the stated assumptions. Check the sample design and model before interpreting results.
Reference: NIST: statistical methods handbook
Common questions
What is the difference between precision and recall?
Precision asks how many predicted positives were actually positive. Recall asks how many actual positives were found. Their denominators differ, so one can be high while the other is low.
Why can a score be undefined?
A metric cannot be calculated when its denominator is zero. For example, precision is undefined if the model predicts no positive cases. The page labels this rather than silently substituting zero.
Methodology maintained by ClarityKit. How these tools are built and checked.