I would like to report precision and recall for an existing binary classifier, which is a black box and which I cannot modify. I have a 1,000 test examples, sampled from a population of 100,000, and cannot obtain more. The confusion matrix looks as follows:
prediction
true false
label true 7 3
label false 0 990
Based on this, the precision is 7 / (7+0) = 1.0 and the recall is 7 / (7+3) = 0.7. However, given small number of positives in the test set, my confidence in those metrics, and in precision in particular, is low. What techniques can I use to quantify this confidence?
Intuitively, if I had not 7 but 700 true positives and still zero false positives then my confidence in the precision being close to 1.0 would be higher; if this intuition is correct, how can I translate it to numbers?
Note:
- The classifier only outputs a class prediction, not a probability.
- At this point I assume that I have to report precision and recall and cannot use alternative metrics that might be more approriate in the presence of such class imbalance.
- While I appreciate alternative suggestions, I am particularly interested in the answer to the question in bold.