Considering X and Y as two classes, which of the following statements is/are true?
["A","B"]
Step-by-Step Solution
Insight: Construct the confusion matrix by carefully mapping the text to TP, FN, FP, TN for one class, then derive all metrics symmetrically for the other.
Exam route: Total = 30. Correct = (20-6) + (10-2) = 14 + 8 = 22. Accuracy = 22/30 = 11/15. Precision X = 14/(14+2) = 14/16. Precision Y = 8/(8+6) = 8/14. Since 14/16 > 8/14, Precision X > Precision Y. Recall X = 14/20 = 0.7, Recall Y = 8/10 = 0.8, so Recall X < Recall Y.
Learning route:
- Define Class X as Positive, Class Y as Negative.
- Map counts from the text:
- Actual X = 20. Predicted Y = 6 (False Negatives, FN). Thus, Predicted X = 14 (True Positives, TP).
- Actual Y = 10. Predicted X = 2 (False Positives, FP). Thus, Predicted Y = 8 (True Negatives, TN).
- Calculate Accuracy: . (Option A is true, Option D is false).
- Calculate Precision for X: .
- Calculate Precision for Y (treating Y as Positive): , . Precision Y = .
Since , Precision of X is higher. (Option B is true).
- Calculate Recall for X: .
- Calculate Recall for Y: .
Since , Recall of X is lower. (Option C is false).