Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M4175

Confusion Matrix

Confusion Matrix
DecideHigh supportDecision Science
Included
account_tree

Updated 2026-07-28

Loading revision record…

Summary

In the field of machine learning and statistical classification problems, the confusion matrix (English: confusion matrix) is a visualization tool, especially used in supervised learning, and is generally called a matching matrix in unsupervised learning. Each column of the matrix represents the predicted instances of a class, while each row represents the actual instances of a class. It is named this way because through this matrix, one can easily see whether the machine has confused two different classes (for example, mistaking one class for another).

Definition

In the field of machine learning and statistical classification problems, the confusion matrix (English: confusion matrix) is a visualization tool, especially used in supervised learning, and is generally called a matching matrix in unsupervised learning. Each column of the matrix represents the predicted instances of a class, while each row represents the actual instances of a class. It is named this way because through this matrix, one can easily see whether the machine has confused two different classes (for example, mistaking one class for another). The confusion matrix (also known as an error matrix) is a special type of contingency table with two dimensions (actual and predicted), and both dimensions have the same set of classes.

How to use

In the field of machine learning and statistical classification problems, the confusion matrix (English: confusion matrix) is a visualization tool, especially used in supervised learning, and is generally called a matching matrix in unsupervised learning. Each column of the matrix represents the predicted instances of a class, while each row represents the actual instances of a class. It is named this way because through this matrix, one can easily see whether the machine has confused two different classes (for example, mistaking one class for another).

Mechanism

A classification model evaluation table: rows/columns represent actual/predicted classes, and cells give TP, FP, FN, TN; from it, accuracy, precision, recall, F1, and AUC can be calculated, revealing error types.

Practice

In progress 0/4

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • Medical screening emphasizes recall (fewer missed diagnoses); spam filtering emphasizes precision (fewer false positives).

Common pitfalls

  • Only looking at accuracy ignores imbalance; confusing TP/FP definitions; ignoring asymmetric costs across classes.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    zh.wikipedia.orghttps://zh.wikipedia.org/wiki/%E6%B7%B7%E6%B7%86%E7%9F%A9%E9%98%B5ZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS