Module lessons (5/5)
Anomaly detection
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
IsolationForestwith thecontaminationhyperparameter.
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
- 1Finding the needle in the haystack
- 2Univariate versus multivariate anomalies
- 3Try it: interactive outlier & Isolation Forest lab
- 4Isolation Forest
- 5Progressive examples: statistical fences and Isolation Forests
- 6Practice
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.