When would you prefer an asymmetric business cost matrix over frequency-based inverse class weights?

Last updated 15 November 2026

  • Use a cost matrix when error consequences are known and asymmetric. Inverse-frequency weights reflect rarity, not cost (e.g. $500 missed fraud vs $5 review is 100:1 regardless of prevalence).

  • It also handles pair-specific multiclass confusions, example-dependent costs and profit objectives. Inverse frequency is fine as a baseline when costs are unknown or the target is balanced accuracy or macro-F1.

  • Prefer applying costs at decision time: with calibrated probabilities, predict positive if p > C_FP / (C_FP + C_FN), which lets thresholds change without retraining.

  • https://medium.com/@cmshameer712/class-weights-vs-cost-sensitive-learning-train-your-model-to-think-like-a-human-8d3e26254857
  • https://blog.trainindata.com/cost-sensitive-learning-for-imbalanced-data/
  • https://medium.com/@eric.likp/imbalanced-datasets-cost-sensitive-modeling-ensemble-metacost-adacost-391e6757420c
All Imbalanced Datasets interview questions