Anomaly Lab
Take anomaly detection past producing a score, through to the alerts that score raises and the decisions that follow. You first set the value of one alert and how many alerts a day you can handle, make the model compete with hand-written rules, evaluate it when the truth arrives late or never, and run it on the machine. The goal is less to know many techniques than to measure how much an alert actually improved a decision.
- Status
- Updated 2026-11-17 KST · 1 of 3 units written. A one-page plan is written. The structure, first volume, data and tools are all proposals not yet agreed and may change. The full unit list and the material are written just before writing begins
- Size
- A 3-unit common volume V00 + a first volume V01 of about 36 units, about 39 units in all. V01 includes one volume map and seven part maps. Each later volume adds 10–15 units plus its own map unit. Each unit is 60–90 minutes of lecture
- Structure
- A common volume, V00, shared by every problem, plus one volume per problem. A volume takes one business unit's problem once around the common skeleton defined in Data Culture Lab, from finding the problem to looking back. Units are numbered volume-part-chapter (V01-P02-C04), and 00 at each level is the map: V01-P00 is the volume map, and C00 in each part is that part's map
- First volume
- Holding card transactions for fraud review at the finance unit (V01) is recommended. The recommendation follows measuring three candidates on this machine; the course author makes the call. Group IT's operational alerts (V02) would be the second volume once a few weeks of operating metrics have built up; the factory's equipment failures and the media unit's fake accounts remain candidates
- Audience
- Analysts, data scientists and platform operators. Being able to read Python is enough
- Cases
- Business units of danny22.com, a fictional holding company. A volume goes only to the unit whose core business is that data. The companies, people and figures are made up and have nothing to do with real companies. Only Group IT is the real record of the machine that runs this site
- Data
- The candidate for V01 is a synthetic card transaction dataset published by IBM. Its fraud patterns were planted by a generator, so effect sizes are not used as conclusions. What the data lacks, such as when the truth arrives or how a review turned out, is filled with synthetic data with planted answers, and what was planted is stated
- Access
- anomaly-lab.danny22.com, open to signed-in readers. Get in touch to request access
- Language
- The course material is written in Korean
What you learn
- Telling problems apart by shape: see how evaluation and methods change with whether labels exist (yes, late, no), whether the data is a table, a time series or a log, and whether the anomaly is a rare failure, an adapting adversary or a shifting baseline.
- Setting the alert budget first: set thresholds from the cost of a missed anomaly, the cost of one false alarm and how many alerts a day can be handled. The verdict is not AUC but precision, money caught and detection delay within a fixed budget.
- Competing with rules: start from hand-written rules and climb a ladder through unsupervised methods (IsolationForest, ECOD) and supervised ones (logistic regression, boosting), deciding which rung to stop on for a given budget.
- Evaluating when the truth arrives late: rebuild training and scoring around the time each label arrives, and handle the labels that vanish for transactions you held or blocked.
- Running it and looking back: run it in shadow mode by replaying past records in time order, rescore whenever labels arrive, and watch the mix of fraud types and the hold rate. At the end you look back by decision month and hold a postmortem.
What a unit contains
- Theory: concepts and the reasons behind them; principles owned by other labs point to those labs.
- Hands-on notebook: work in time order using only what was known at decision time, judged by check cells.
- Pipeline code: replay, scoring, rescoring and monitoring as batch jobs that really run on the machine.
- Canvas: each unit fills at least one cell of the volume's canvas.
Course
V01 is the recommended option. If the first volume changes, the V01 rows below change too.
| Part | What you learn | Units |
|---|---|---|
| V00-P00 Common | The syllabus, a map of anomaly detection problems (five axes: labels, data shape, nature of the anomaly, decision, alert cost; and the volume map), and how to work (replaying in time order so only decision-time information is used) | 3 |
| V01-P00 Card fraud review hold map | The map of this volume: the business unit and its decision, the order of the seven parts and their lifecycle stages, what carries over from V00, and what this volume leaves behind | 1 |
| V01-P01 Finding the problem | Two teams' triggers, fraud losses versus friction for genuine customers; a gate on whether the problem is worth solving; a metric tree of missed fraud amount and holds; root-cause breakdown; a ladder of solutions comparing rules, card blocking procedures and models | 5 |
| V01-P02 Baseline and data | The cost of the current approach, data quality, building only features known at decision time, attaching synthetic label arrival times, and the limits of generated data | 6 |
| V01-P03 Evaluation design | Ranges for the alert budget and review cost, precision, money and incidents caught within budget, a time-ordered split by label arrival, and thresholds written down before seeing results | 4 |
| V01-P04 Methods | A ladder from rules to unsupervised, supervised, and an ordered list combining rules and models; sampling under extreme imbalance; late labels and new fraud types | 6 |
| V01-P05 Evaluation | Is the model right (by group: online, overseas, chip), did decisions improve (sensitivity to review cost and blocking policy), and the feedback where labels vanish for held transactions | 4 |
| V01-P06 Validation, approval and operation | Independent validation and approval, shadow operation, rescoring as labels arrive, monitoring fraud-type mix and hold rate, a fallback, and explanation through reason codes | 6 |
| V01-P07 Looking back | Looking back by decision month, a postmortem treating the shift in fraud types as an incident, and on to the next volume | 4 |