holehouse.org Blog Machine learning notes

15: Anomaly Detection

Anomaly detection - problem motivation

Applications

The Gaussian distribution (optional)

Parameter estimation problem

Anomaly detection algorithm

Algorithm

1.Choose featuresxithat might be indicative of anomalous examples. 2.Fit parametersμ1,…,μn,σ12,…,σn2 μj=1m∑i=1mxj(i) σj2=1m∑i=1m(xj(i)−μj)2 3.Given a new examplex,computep(x): p(x)=∏j=1np(xj;μj,σj2)=∏j=1n12πσjexp(−(xj−μj)22σj2) Anomaly ifp(x)<ε

Anomaly detection example

Developing and evaluating an anomaly detection system

Anomaly detection vs. supervised learning

Anomaly detection

Supervised learning

Choosing features to use

Error analysis for anomaly detection

Multivariate Gaussian distribution

Multivariate Gaussian distribution model

Applying multivariate Gaussian distribution to anomaly detection

Anomaly detection algorithm with multivariate Gaussian distribution

Original model vs. Multivariate Gaussian

Original Gaussian model

Multivariate Gaussian model