'LOF vs k-NN in data with varying density

When the dataset is comprised of regions of varying densities, which technique is more effective for outlier detection Localised Outlier Factor(LoF) or K-Nearest neighbors (KNN)



Solution 1:[1]

Localised Outlier Factor(LoF) would be better for groups with varying densities. Pls check the formula for LOF https://en.wikipedia.org/wiki/Local_outlier_factor

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Venkat Dhulipala