- Year not given
Short note: Distance-based anomaly detection
Short answer
Distance-based anomaly detection flags objects far from most others using Euclidean distance. Methods include k-th nearest-neighbour distance, DB(p,D) outliers, and distance to cluster centroid. It is simple and distribution-free but costs O(n^2), depends on parameters, and fails with varying-density clusters or high dimensions.
Write a short note on distance based approaches for anomaly detection.
The distance-based (proximity-based) approach says that an object is an anomaly if it is far away from most other objects. It uses a distance (dissimilarity) measure such as Euclidean distance; no assumption about the data distribution is needed. It is simple and works for multi-dimensional data.
Methods
- Distance to the k-th nearest neighbour: the outlier score of an object is its distance to its k-th nearest neighbour (or average distance to the k nearest neighbours). A large score means an outlier.
- DB(p, D)-outlier (Knorr and Ng): an object o is an outlier if at least a fraction p of the objects in the data set lie at a distance greater than D from o (i.e. fewer than (1 − p)·n objects are within D).
- Distance to the cluster centroid (clustering-based): after clustering, an object far from the centroid of its cluster, or in a very small cluster, is an outlier.
Example
Points on a line: 1, 2, 2, 3, 3, 4, 20. The 1-nearest-neighbour distance of the value 20 is 16 while for the others it is 0 or 1, so 20 is the outlier.
Advantages
Simple, no distribution assumptions, can handle multi-dimensional data.
Disadvantages
- The cost is O(n²) because of computing all distances (indexing or sampling helps).
- Sensitive to the choice of the parameters k, p and D.
- Cannot detect outliers in data with clusters of different density (global threshold); density-based methods like LOF are better.
- Distances lose meaning in high dimensions.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Anomaly detection and importance · Data Mining, chapter 6
- Anomaly detection challenges and schemes · Data Mining, chapter 6
- Graphical drawbacks; statistical approaches · Data Mining, chapter 6
- Natural resource management approaches and sustainability · Energy Resources, chapter 8
- Intersection sight distance numerical · Transportation Engineering I, chapter 3
- Redundancy, Hamming distance, linear vs cyclic · Data Communication, chapter 8