Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Model Evaluation›Confusion Matrix
MCDMDiagnostic Tool

Confusion Matrix

Confusion Matrix (Error Matrix) · Also known as: Error Matrix, Contingency Table

The confusion matrix is a table that displays the counts of true positives, true negatives, false positives, and false negatives. It provides a complete picture of where a classifier makes correct and incorrect predictions, enabling calculation of all other classification metrics.

ScholarGate
  1. MCDM
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Confusion Matrix
AccuracyMatthews Correlation Coe…PrecisionRecall (Sensitivity)Specificity

When to use it

Always construct a confusion matrix as the first step in evaluating a classifier. Use it to understand error patterns before selecting specialized metrics. The matrix is essential for imbalanced datasets, multi-class problems, and any situation where you want a complete picture of classifier performance.

Strengths & limitations

Strengths
  • Provides a complete picture of classifier performance with full breakdown of all prediction types.
  • Enables calculation of any other classification metric.
  • Reveals error patterns and biases that aggregate metrics hide.
  • Makes imbalanced dataset issues visible.
  • Works for both binary and multi-class classification.
Limitations
  • Can be overwhelming to interpret for problems with many classes.
  • Does not itself provide a single performance number for comparison.
  • Raw counts depend on test set size, making comparison across different datasets challenging.
  • May obscure relationships between metrics if not normalized.

Frequently asked

What is the relationship between the confusion matrix and ROC curves?

The confusion matrix provides the raw data (TP, FP, FN, TN) from which ROC curves are constructed. An ROC curve plots the true positive rate (computed from the confusion matrix) against the false positive rate (also from the matrix) across different decision thresholds. The confusion matrix is for a single threshold; the ROC curve shows performance across all thresholds.

How do I interpret a confusion matrix for multi-class problems?

For multi-class problems, the confusion matrix is NxN where N is the number of classes. Diagonal elements are correct predictions for each class. Off-diagonal elements show which classes are confused with each other. To compute metrics like precision or recall for class i, treat class i as positive and all others as negative.

Should I normalize the confusion matrix?

Yes, for visual inspection and comparison. Normalize by dividing each row by the row sum to show the proportion of actual samples from each class that were predicted in each way. This makes imbalanced datasets easier to interpret visually.

Sources

  1. Everitt, B. S., & Hothorn, T. (2005). A Handbook of Statistical Analyses Using R. Chapman and Hall/CRC. link ↗
  2. Fawcett, T. (2006). An introduction to ROC analysis. Pattern Recognition Letters, 27(8), 861-874. DOI: 10.1016/j.patrec.2005.10.010 ↗

How to cite this page

ScholarGate. (2026, June 3). Confusion Matrix (Error Matrix). ScholarGate. https://scholargate.app/en/model-evaluation/confusion-matrix

Related methods

AccuracyMatthews Correlation CoefficientPrecisionRecall (Sensitivity)Specificity

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • AccuracyModel Evaluation↔ compare
  • Matthews Correlation CoefficientModel Evaluation↔ compare
  • PrecisionModel Evaluation↔ compare
  • Recall (Sensitivity)Model Evaluation↔ compare
  • SpecificityModel Evaluation↔ compare
Compare side by side →

Referenced by

Accuracy

Similar methods

AccuracyRecall (Sensitivity)PrecisionSpecificitySensitivity and SpecificityMatthews Correlation CoefficientF1-ScoreMicro-averaged F1

Related reference concepts

Performance MetricsReceiver Operating Characteristic CurveSensitivitySpecificityPositive Predictive ValueNegative Predictive Value

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Confusion Matrix (Confusion Matrix (Error Matrix)). Retrieved 2026-07-21 from https://scholargate.app/en/model-evaluation/confusion-matrix · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Statistical foundations
Subfamily
Diagnostic Tool
Year
20th century
Type
Evaluation visualization
Related methods
AccuracyMatthews Correlation CoefficientPrecisionRecall (Sensitivity)Specificity
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account