AiTeky Original Interactive Learning & Practice Advanced
Fraud and anomaly detection at work: alerts, behaviour, drift and rings
Catch fraud with rules and scores under an alert budget, build behaviour features, evaluate honestly by time with delayed labels, spot outages in seasonal traffic, set the threshold by cost, and watch the method drift and link accounts into rings.
Fraud is rare, adaptive and expensive in both directions. About one transaction in a hundred is fraud, so a model that says "fine" every time is 99% accurate and useless. The people who work the alerts can read a few hundred a day, not thousands. The fraudsters change their method as soon as you catch the old one. And the label that says "this was fraud" arrives weeks after the purchase, when the customer finally disputes it.
The unsupervised learning course showed how to spot the odd one out. This course is about the rest of the job: fraud and anomaly detection in practice. You compare fixed rules with a score under an alert budget, build behaviour features from a card's own history, evaluate honestly by time with labels that arrive late, watch a traffic count for outages against a seasonal baseline, choose the threshold from the cost of a review and the loss from a miss, and see what happens when the fraud method changes. The last lesson links accounts that share devices into rings.
All the data are simulated with a fixed random seed: 1,200 cards over 90 days, about 36,000 purchases and 560 fraudulent ones in short bursts, with the method changing on day 70. The rupee figures (review cost, loss per fraud, analyst capacity) are assumptions that each lesson flags. Real fraud is messier and the numbers will differ, so measure your own history before you trust any of these.
You need the machine learning course and the one on unusual readings in unsupervised learning; the interpretability and imbalanced-data course is the natural companion.
- Learn lessons explain one idea at a time and let you compute it.
- Industry ready lessons decide and plan. Each ends with the interview questions that go with it.
- βΆ Run code in your browser. Nothing to install
- β Exercises that check themselves
- π Tap a word to see what it means
Locked. Sign up free
Learn
Understand each idea with everyday examples. No coding background needed.
- 01 50 min Free sample π AiTeky Pass Rules, scores and the alert budget Simulate 90 days of card purchases with rare bursts of fraud, test three hand-written rules, build a score with logistic regression, and compare them fairly by what matters to the people who review alerts, which is how many alerts they can read.
- 02 50 min π AiTeky Pass Behaviour features: what is normal for this card Build velocity and relative-amount features from each card's own earlier purchases, add them to the model of the last lesson, and measure how much they help at a fixed alert budget, including the case the new features still cannot catch.
- 03 50 min π AiTeky Pass Honest evaluation: split by time and wait for the labels Show that a random train-test split flatters a fraud model, evaluate by time instead, and then add the delay of real labels, where a purchase is called fraud only weeks later, and measure what training on matured labels costs.
- 04 50 min π AiTeky Pass Anomalies in time: seasonal baselines and the festival problem Watch an hourly count of payments for outages and card-testing spikes, show that an overall average and three-sigma rule misses most of them, build a seasonal baseline from the same hour of earlier weeks with a robust spread, and deal with a festival day that is unusual but not wrong.
Industry ready
Real problems from real jobs, and the questions interviewers ask about them.
- 05 55 min π AiTeky Pass On the job: where to put the threshold Turn a fraud score into an action by pricing both mistakes, a wasted review and a missed fraud, choose the threshold on one fortnight and test it on the next, check it against the analysts' capacity, measure how uncertain the saving is, and write the recommendation.
- 06 55 min π AiTeky Pass On the job: when the fraud changes, and linking accounts into rings Follow a fraud model as the attackers change their method on day 70, show that retraining on old signals barely helps while new longer-window features do, set up the weekly numbers that reveal the decay, and then link accounts that share devices into rings with a union-find, checking the false alarms from families and shops.

