Confusion Matrix - "accuracy(metric)" flawed ?_post#2
Hello friends, this is my second post related to the confusion matrix measurement metric.
In my previous post, I explained how accuracy metrics may mislead judging the performance of a confusion matrix(an output from a classification model). We have also seen how Recall(True positive over Actual positive) metric in Example2 was able to catch the poor quality of positive class prediction.
We left the earlier post at this thought......
Does this mean we don't need precision?
The answer is No, let's see another example for the same use case
Example3: Consider the same class of 500 school students and you are trying to predict how many are affected because of covid and you can recommend them for isolation/quarantine.
This time you wanted to make sure there should not declare any student negative if he/she "may" be positive, you added some additional checks during testing, and the following was the result:
Actual | ||||
Positive | Negative | |||
Predicted | Positive | 10 | 10 | 20 |
Negative | 0 | 480 | 480 | |
10 | 490 | |||
Total sample size: 500
- Ground Truth:
- Actual positive: 10, Actual negative: 490
- Prediction:
- Predicted positive: 20, Predicted negative: 480
|
|
True +ve |
Total +ve (actual) |
Total +ve (predicted) |
Accuracy |
Precision (True+ve)/ Total +ve(predicted) |
Recall (True+ve)/ Total +ve(actual) |
|
|
Example1 |
250 |
250 |
|
90% |
|
100% |
|
|
Example2 |
5 |
10 |
|
99% |
|
50% |
|
|
Example3 |
10 |
10 |
20 |
98% |
50% |
100% |
|
|
|
Precision |
Recall |
|
ClassificationModel1 |
Good |
OK |
|
Classification Model2 |
OK |
Good |
Comments
Post a Comment