Skip to main content
Module 9 · Lesson 5 of 545/56 in the course~20 min
Module lessons (5/5)

Anomaly detection

Lesson preview5 hands-on exercises readyMachine Learning: from first principles to practice · Module 9 — Unsupervised learning

Finding outliers with z-scores, multivariate distributions and IsolationForest.

What you'll learn in this lesson

  • Contrast supervised classification with unsupervised anomaly detection.
  • Identify single-feature outliers with z-scores and IQR.
  • Fit and tune IsolationForest with the contamination hyperparameter.

Overview

In fraud detection, medical imaging, network intrusion, and industrial monitoring, the events you care most about are exceptionally rare. You might have 1,000,000 normal credit card transactions and only 5 known fraudulent ones.

Supervised models struggle when positive labels are non-existent or constantly mutating. Unsupervised anomaly detection learns the normal baseline of healthy data and flags anything that deviates significantly.

Sections covered in this lesson

  1. 1Finding the needle in the haystack
  2. 2Univariate versus multivariate anomalies
  3. 3Try it: interactive outlier & Isolation Forest lab
  4. 4Isolation Forest
  5. 5Progressive examples: statistical fences and Isolation Forests
  6. 6Practice
Pro Lesson · Module 9 — Unsupervised learning

Unlock "Anomaly detection" and the full Machine Learning: from first principles to practice curriculum

Finding outliers with z-scores, multivariate distributions and IsolationForest.

Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.

  • Instant access to all advanced modules in Machine Learning: from first principles to practice plus 17 more courses
  • Hands-on browser exercises with automated test suites and solutions
  • 14-day money-back guarantee processed via Paddle.com

14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.