Confusion Matrix

A confusion matrix, typically represented as a table, is a popular evaluation metric used to describe the performance of a classification model (or "classifier"). The table compares predicted and actual values. The basic components of the table are as follows:

  • True positives (TP): The prediction was yes, and the true value is yes

  • True negatives (TN): The prediction was no, and the true value is no

  • False positives (FP): The prediction was yes, but the true value was no

  • False negatives (FN): The prediction was no, but the the true value is yes

The confusion matrix is closely related to other metrics like Precision, Recall/Sensitivity, Specificity, and F1 Score. Those definitions are as follows:

Last updated