🤖 Tune a fraud-detection model
Data & AIA bank model gives every payment a fraud score from 0 to 1. You choose the threshold. Out of 10,000 payments, 200 are fraud. A missed fraud costs ₹5,000; a false alarm costs ₹100 to check.
⭐ Level 1: Trainee0 XP · next level at 300
Recall (fraud caught)✗ 50 %
Precision (alarms that are real)✓ 96 %
Missed fraud / false alarms100 / 4
Total cost₹5,00,421
Costly: move the threshold and watch the trade-off.
📘 How it works
No threshold is perfect: catching more fraud (recall) means more false alarms (lower precision). The right threshold depends on what each mistake costs the business, not on "accuracy".
Recall = caught ÷ all fraud · Precision = caught ÷ all alarms · Cost = missed × ₹5,000 + false alarms × ₹100A simplified textbook model for learning. Real designs follow the full codes and standards.