Confusion Matrix Practice Questions
Question 1: Email Spam Classifier
Confusion Matrix:
| Reality: Spam | Reality: Not Spam |
-------------|---------------|--------------------|
Predicted: Spam | 70 | 20 |
Predicted: Not Spam | 10 | 100 |
Tasks:
1. How many wrong predictions did the model make?
2. Calculate:
a) Precision
b) Recall
c) F1 Score
Question 2: Disease Detection Model
Confusion Matrix:
| Reality: Disease | Reality: No Disease |
------------------|------------------|----------------------|
Predicted: Disease | 25 | 5 |
Predicted: No Disease | 15 | 55 |
Tasks:
1. What is the total number of actual positive cases?
2. Calculate precision, recall, and F1 score.
3. Is this model better at catching disease or avoiding false alarms?
Question 3: Loan Default Prediction
Confusion Matrix:
| Reality: Default | Reality: No Default |
---------------------|------------------|----------------------|
Confusion Matrix Practice Questions
Predicted: Default | 45 | 35 |
Predicted: No Default| 15 | 105 |
Tasks:
1. Total predictions made?
2. How many people were falsely predicted to default?
3. Calculate precision, recall, and F1 score.
Question 4: Churn Prediction (Customer Leaves Company)
Confusion Matrix:
| Reality: Churn | Reality: No Churn |
---------------------|----------------|-------------------|
Predicted: Churn | 60 | 30 |
Predicted: No Churn | 20 | 90 |
Tasks:
1. How many true negatives were there?
2. How accurate is the model?
3. Compute: Precision, Recall, and F1 Score.
Question 5: Face Recognition System
Confusion Matrix:
| Reality: Match | Reality: No Match |
----------------------|----------------|-------------------|
Predicted: Match | 95 | 25 |
Predicted: No Match | 5 | 75 |
Tasks:
1. How many predictions were correct?
2. What percentage of predicted matches were actually correct?
Confusion Matrix Practice Questions
3. Calculate: Precision, Recall, F1 Score.