Articles → MACHINE LEARNING → Confusion Matrix In Machine Learning
Confusion Matrix In Machine Learning
Purpose
Confusion Matrix
| Total Population = P + N | Predicted: Positive | Predicted: Negative |
|---|
| Actual: Positive | True Positive (TP) | False Negative (FN) |
| Actual: Negative | False Positive (FP) | True Negative (TN) |
| Outcome | Description |
|---|
| True Positive (TP) | The actual classification is positive, and the predicted classification is also positive. |
| False Negative (FN) | The actual classification is positive, and the predicted classification is negative. |
| False Positive (FP) | The actual classification is negative, and the predicted classification is positive. |
| True Negative (TN) | The actual classification is negative, and the predicted classification is negative. |
Example
| Predicted: Spam | Predicted: Not Spam |
|---|
| Actual: Spam | 35 (TP) | 5 (FN) |
| Actual: Not Spam | 10 (FP) | 50 (TN) |
Classification Accuracy
35+50/35+50+10+5 = 85/100 = 0.85
| Posted By - | Karan Gupta |
| |
| Posted On - | Monday, June 9, 2025 |
| |
| Updated On - | Thursday, December 18, 2025 |