learn.howToCalculate
learn.whatIsHeading
Creates confusion matrix showing actual vs. predicted classifications. Basis for evaluation metrics.
Formule
Accuracy = (TP+TN) / total
- TP
- TN/(TN+FP) — TN/(TN+FP)
- TN
- TN value — Variable used in the calculation
Stapsgewijze handleiding
- 14 cells: TP (correct positive), FP (false positive), FN (false negative), TN (correct negative)
- 2Accuracy = (TP+TN) / total
- 3Sensitivity/Recall = TP/(TP+FN), Specificity = TN/(TN+FP)
- 4Precision = TP/(TP+FP)
Uitgewerkte voorbeelden
Invoer
TP/FP/TN/FN
Resultaat
Metrics calc
Veelgemaakte fouten om te vermijden
- ✕Using accuracy for imbalanced data (wrong)
- ✕Confusing sensitivity and specificity
- ✕Not balancing precision/recall tradeoff
Veelgestelde vragen
When use different metrics?
Accuracy: balanced classes; precision: minimize false positives; recall: minimize false negatives.
What about imbalanced classes?
Accuracy misleading; use precision, recall, F1-score, or AUC instead.
Klaar om te berekenen? Probeer de gratis Confusion Matrix-rekenmachine
Probeer het zelf →