← Back to AI Glossary

AI Glossary

Confusion Matrix

A table that summarizes a model's correct and incorrect predictions.

Confusion Matrix

Overview

One of the challenges of evaluating AI systems is understanding exactly where mistakes occur.

A model might achieve high accuracy while still making important errors.

This is where the Confusion Matrix becomes valuable.

A Confusion Matrix is a table that breaks down a model’s predictions into different categories of correct and incorrect outcomes.

Rather than simply telling us whether a model performs well overall, it shows how predictions are distributed across true positives, true negatives, false positives, and false negatives.

This additional visibility helps analysts understand the strengths and weaknesses of a model.

For example, a medical screening system may correctly identify most healthy patients but miss some individuals who actually have a disease. A Confusion Matrix helps reveal these patterns.

Many performance metrics, including Precision, Recall, and F1 Score, are derived from information contained within a Confusion Matrix.

Understanding the Confusion Matrix helps explain why AI evaluation is about more than a single percentage score.

It provides the foundation for many of the performance metrics used throughout machine learning.

Why It Matters

The Confusion Matrix helps organizations understand exactly how a model is making mistakes and where improvements may be needed.

Real-World Example

A spam detection system uses a Confusion Matrix to measure how many spam emails are correctly detected and how many legitimate emails are incorrectly flagged.

Related Concepts

  • Precision
  • Recall
  • F1 Score
  • Classification
  • Accuracy