Why does precision depend on class prevalence in the test set while recall and specificity do not?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks why a classifier's precision changes with the share of positives in the test set while recall and specificity stay fixed. Tests conditional probability, Bayes' rule for classification metrics, and how to evaluate models honestly when positives are rare in production.