Table of Contents

Machine Learning - Confusion Matrix

About

If a classification system has been trained a confusion matrix will summarize the results (ie the error rate (false|true) (positive|negative) for a binary classification).

This is training error, there is may be overfitting.

The main diagonal indicates correct classification whereas everything off the main diagonal indicates a classification.

Predicted class
Actual Class Yes No
Yes True Positive False Negative
No False Positive True Negative

Example

Titanic Data Set

With a simple rule: If most females survived, then assume every female survives

Survived: Yes or No

Predicted class
Actual Class Yes No
Yes 233 81
No 109 468

Documentation / Reference