← Back to Modules Directory

Module 11 - Binary Evaluation Confusion Matrix

This study reference evaluates diagnostic metrics for supervised binary classification models. It maps out the contingency structures used to cross-tabulate true factual classes against algorithmic predictions, defining criteria to calibrate operational decision thresholds.

1. The Contingency Matrix Foundation

2. Primary Cell Quantifiers & Classical Statistical Errors

Every instance processed through a binary model lands inside one of four distinct cross-classification quadrants:

3. Global Classification Rates

By aggregating the cell counts from the confusion matrix quadrants, engineers calculate standard performance ratios:

Accuracy

The global proportion of correctly classified instances out of the total collection of processed evaluation records. While intuitive, it can be highly misleading when deployed on severely imbalanced datasets.

Accuracy = (TP + TN) / (TP + FP + TN + FN)
Precision (Positive Predictive Value)

The true positive prediction accuracy proportion calculated relative to the total volume of instances flagged as positive by the model. It quantifies the cost of false alarms, acting as a crucial metric when False Positives introduce severe operational risks.

Precision = TP / (TP + FP)
Recall (Sensitivity / True Positive Rate)

The proportion of true positive predictions captured out of the absolute universe of true positive instances. It quantifies the system's ability to catch missing targets, serving as a critical metric when False Negatives carry high penalties (e.g., medical diagnostics).

Recall = TP / (TP + FN)
F1 Score

The mathematical harmonic mean connecting precision and recall rates. It yields a single unified metric that penalizes extreme imbalances between the two rates, serving as a balanced goodness-of-fit indicator for asymmetric or imbalanced classification tasks.

F1 Score = 2 * ((Precision * Recall) / (Precision + Recall))

4. Optimization Tradeoffs & Threshold Curves