0.5 is almost never the right threshold
Default 0.5 is a convention, not a recommendation. The right threshold depends on false-positive cost, false-negative cost, positive prevalence, and team capacity. Select it after model training and defend it with an operating calculation rather than a vibe.
Write the cost matrix in real units
Estimate review time and customer harm for a false positive, loss for a false negative, and the cost and benefit of acting on a true positive. Multiply each threshold's confusion-matrix counts by those values. When costs are uncertain, test optimistic, central, and pessimistic scenarios.
Three honest threshold strategies
- Cost-minimizing chooses the threshold with minimum expected cost on representative validation data.
- Recall at a precision floor maximizes recall subject to a requirement such as precision at least 0.7.
- Top-K capacity scores everyone and sends only the highest K cases when downstream can process a fixed count.
Check sensitivity, not just the winner
If cost is nearly flat across a threshold range, prefer the simpler, more stable value. A sharp optimum may be validation noise. Report confidence intervals or fold variability and leave margin when a precision floor is mandatory.
Separate calibration data from final test data
Choose calibration and threshold settings without touching the frozen test set. Use the real production class prevalence, not a resampled training ratio. After every decision is fixed, evaluate expected cost and alert count once on test.
Logging and monitoring the threshold
Log the raw score, threshold, model version, policy version, and final action. Prevalence, costs, and capacity can move the best threshold even when model ranking is unchanged. Compare actual precision, recall, and alert volume with the intended operating point.
Change it as a product policy
Threshold updates need an owner, approval trail, staged rollout, and rollback just like model updates. A silent constant change can alter thousands of decisions without changing the model artifact, so policy history must remain independently auditable.