Tabellab
AI & Data Science Intermediate

Anomaly Detection Basics: Z-Scores, IQR, Seasonality & Alert Precision

Flag fraud and outages the way monitoring and risk teams do: z-scores, robust z with median and MAD, IQR fences, rolling ±kσ bands, seasonal baselines, multivariate distance, precision/recall against labelled incidents and the cost of alert fatigue, in 8 graded labs.

8 lessons 8 labs 1.8 h Certificate

The first lesson is free — no account needed.

About this course

An anomaly detection course that flags fraud and outages the way monitoring and risk teams do, on one fictional payments company's data in a spreadsheet, for data analysts, fraud and risk analysts, SRE and monitoring engineers and data science students. You standardise card payments and flag |z| ≥ 3 and see how one huge outlier masks another, catch the hidden one with a robust z-score built on the median and MAD, set Tukey's IQR fences on API latency, draw rolling mean ± 3σ bands around a traffic metric, compare a same-hour-last-weeks seasonal baseline with a flat rule, combine three standardised features into one distance score, score a detector against labelled incidents with precision, recall and F1 at each threshold and pick the threshold with the lowest cost of false alarms and missed incidents that an on-call team can handle. The first lab is free.

Lessons

  1. Z-Score Flags: How Far from Normal Is a Transaction?Lab12 minFree
  2. Robust Z-Scores with the Median & MADLab12 min Pro
  3. IQR Fences: Box-Plot Outliers in Server LatencyLab12 min Pro
  4. Rolling Mean ± k·σ Bands for a Live Metric (with a Chart)Lab15 min Pro
  5. Seasonal Baselines: Same Hour, Last WeeksLab14 min Pro
  6. Multivariate Outliers: Standardised Distance (Mahalanobis-Lite)Lab15 min Pro
  7. Labelled Anomalies: Precision & Recall at Each Threshold (with a Chart)Lab15 min Pro
  8. Alert Fatigue & Cost: Choosing the ThresholdLab14 min Pro