12 Outlier
12 Outlier
12 Outlier
Gretzky, ...
◼ Outliers are different from the noise data
◼ Noise is random error or variance in a measured variable
◼ Customer segmentation
◼ Medical analysis
2
Types of Outliers (I)
◼ Three kinds: global, contextual and collective outliers
◼ Global outlier (or point anomaly) Global Outlier
o
◼ Ex. 80 F in Urbana: outlier? (depending on summer or winter?)
3
Types of Outliers (II)
◼ Collective Outliers
◼ A subset of data objects collectively deviate
significantly from the whole data set, even if the
individual data objects may not be outliers
◼ Applications: E.g., intrusion detection: Collective Outlier
◼ When a number of computers keep sending
denial-of-service packages to each other
◼ Detection of collective outliers
◼ Consider not only behavior of individual objects, but also that of
groups of objects
◼ Need to have the background knowledge on the relationship
◼ The border between normal and outlier objects is often a gray area
between normal objects and outliers. It may help hide outliers and
reduce the effectiveness of outlier detection
◼ Understandability
◼ Understand why these are outliers: Justification of the detection
◼ Model normal objects & report those not matching the model as
outliers, or
◼ Model outliers and treat those not matching the model as normal
◼ Challenges
◼ Imbalanced classes, i.e., outliers are rare: Boost the outlier class
◼ Problem 2: Costly since first clustering: but far less outliers than
normal objects
◼ Newer methods: tackle outliers directly
7
Outlier Detection III: Semi-Supervised Methods
◼ Situation: In many applications, the number of labeled data is often
small: Labels could be on outliers only, normal objects only, or both
◼ Semi-supervised outlier detection: Regarded as applications of semi-
supervised learning
◼ If some labeled normal objects are available
◼ Use the labeled examples and the proximate unlabeled objects to
train a model for normal objects
◼ Those not fitting the model of normal objects are detected as outliers
◼ If only some labeled outliers are available, a small number of labeled
outliers many not cover the possible outliers well
◼ To improve the quality of outlier detection, one can get help from
models for normal objects learned from unsupervised methods
8
Outlier Detection (1): Statistical Methods
◼ Statistical methods (also known as model-based methods) assume
that the normal data follow some statistical model (a stochastic model)
◼ The data not following the model are outliers.
◼ Example (right figure): First use Gaussian distribution
to model the normal data
◼ For each object y in region R, estimate g D(y), the
9
Outlier Detection (2): Proximity-Based Methods
◼ An object is an outlier if the nearest neighbors of the object are far
away, i.e., the proximity of the object is significantly deviates from
the proximity of most of the other objects in the same data set
◼ Example (right figure): Model the proximity of an
object using its 3 nearest neighbors
◼ Objects in region R are substantially different
from other objects in the data set.
◼ Thus the objects in R are outliers
◼ The effectiveness of proximity-based methods highly relies on the
proximity measure.
◼ In some applications, proximity or distance measures cannot be
obtained easily.
◼ Often have a difficulty in finding a group of outliers which stay close to
each other
◼ Two major types of proximity-based outlier detection
◼ Distance-based vs. density-based
10
Outlier Detection (3): Clustering-Based Methods
◼ Normal data belong to large and dense clusters, whereas
outliers belong to small or sparse clusters, or do not belong
to any clusters
◼ Example (right figure): two clusters
◼ All points not in R form a large cluster
◼ The two points in R form a tiny cluster,
thus are outliers
◼ Since there are many clustering methods, there are many
clustering-based outlier detection methods as well
◼ Clustering is expensive: straightforward adaption of a
clustering method for outlier detection can be costly and
does not scale up well for large data sets
11
Statistical Approaches
◼ Statistical approaches assume that the objects in a data set are
generated by a stochastic process (a generative model)
◼ Idea: learn a generative model fitting the given data set, and then
identify the objects in low probability regions of the model as outliers
◼ Methods are divided into two categories: parametric vs. non-parametric
◼ Parametric method
◼ Assumes that the normal data is generated by a parametric
distribution with parameter θ
◼ The probability density function of the parametric distribution f(x, θ)
gives the probability that object x is generated by the distribution
◼ The smaller this value, the more likely x is an outlier
◼ Non-parametric method
◼ Not assume an a-priori statistical model and determine the model
from the input data
◼ Not completely parameter free but consider the number and nature
of the parameters are flexible and not fixed in advance
◼ Examples: histogram and kernel density estimation
12
Distance-Based Outlier Detection
◼ For each object o, examine the # of other objects in the r-neighborhood
of o, where r is a user-specified distance threshold
◼ An object o is an outlier if most (taking π as a fraction threshold) of
the objects in D are far away from o, i.e., not in the r-neighborhood of o
◼ Once the cluster are obtained, need only compare any object
17
Summary
◼ Types of outliers
◼ global, contextual & collective outliers
◼ Outlier detection
◼ supervised, semi-supervised, or unsupervised
◼ Statistical (or model-based) approaches
◼ Proximity-base approaches
◼ Clustering-base approaches
◼ Classification approaches
◼ Mining contextual and collective outliers
◼ Outlier detection in high dimensional data
18