Choose a threshold under asymmetric cost
Type each count alongside the label that gives it meaning. · 177 words
A museum predicts whether attendance will pass 800 people, then decides whether to print extra posters. The model outputs a probability. A classification threshold turns it into a decision: predict 'over 800' when the probability is at least the threshold. A false positive predicts 'over 800' when attendance is lower, wasting 10 dollars. A false negative predicts 'at most 800' when attendance is higher, losing 50 dollars. These costs are asymmetric because one mistake is five times as costly as the other.
For a forecast of p = 0.45, compare expected costs. Predicting over 800 costs (1 - 0.45) x 10 = 5.50 dollars. Predicting at most 800 costs 0.45 x 50 = 22.50 dollars. Therefore, choose over 800. In general, predict positive when (1 - p) times the false-positive cost is no greater than p times the false-negative cost. With costs 10 and 50, the threshold is 10 / (10 + 50) = 0.167. The museum predicts over 800 whenever its probability is at least about 0.167. The threshold comes from business costs, not automatically 0.5.
Check your recall
What threshold should the museum use, and what decision does it make when the predicted probability is 0.45?
Check your answer
The threshold is 10 / (10 + 50) = 0.167. At p = 0.45, predicting over 800 has an expected cost of 5.50 dollars, compared with 22.50 dollars for predicting at most 800, so the museum predicts over 800.
Sources and credits
Original KeyTouch lesson. Background reading · Google · Classification metrics.