In machine learning classification, accuracy alone can be misleading when datasets are imbalanced. This phenomenon is called the accuracy paradox. For example, a model that predicts everyone as 'not spam' may achieve 99% accuracy if only 1% of emails are spam, but it fails to catch any actual spam.
To properly evaluate a model, we use the confusion matrix, which shows four outcomes:
- True Positives (TP): correctly predicted positive class
- True Negatives (TN): correctly predicted negative class
- False Positives (FP): incorrectly predicted positive (Type I error)
- False Negatives (FN): incorrectly predicted negative (Type II error)
From these, key metrics include:
- Precision = TP / (TP + FP) — how many predicted positives are correct
- Recall = TP / (TP + FN) — how many actual positives were caught
- F1 Score = harmonic mean of precision and recall
Always examine a confusion matrix and multiple metrics — not just accuracy — to gauge true model performance, especially in skewed datasets.
This short revision video highlights these concepts for CBSE Class 12 AI students (#cbse2026).