Unit 5 — feature engineering and tree models under 50ms
Fraud Detection & Risk Scoring
Before a charge from Unit 1 hits the card network, Stripe has to decide in under 50 milliseconds whether to let it through, challenge it, or block it. A stolen card can be tested in seconds; a legitimate customer on vacation looks suspicious if you only check the amount. The system that makes this call is a risk scorer — and the gap between a naive rule and a tree-based model is the difference between blocking real customers and letting fraud through.
This unit builds the feature pipeline, walks through decision trees and their ensembles, and benchmarks inference latency against accuracy.
