Local Outlier Factor Anomaly Detection
The local outlier factor compares the local reachability density of each observation with that of its k nearest neighbours, so values well above 1 mark points that are sparse relative to their neighbourhood.
국소 이상치 요인(LOF)은 각 관측의 국소 도달 밀도를 k개 최근접 이웃의 밀도와 견주는 비율로, 1보다 훨씬 크면 주변보다 성긴 국소 이상치로 봅니다.
Which observations in my multivariate data are unusual compared with the points around them, even when clusters have different densities?
여러 변수로 이루어진 자료에서 주변 점들에 비해 유독 동떨어진 관측을 찾아낼 수 있을까요?
For each observation the method finds its k nearest neighbours, computes a local density from reachability distances, and divides the neighbours' average density by the observation's own density. Ratios near 1 indicate a typical point, and large ratios flag local outliers; by default points with a factor above 1.5 are flagged.
When to use Local Outlier Factor Anomaly Detection
- You want to screen numeric records for anomalies without labels.
- The data contain clusters of different density, so a single global distance cut-off would fail.
- You want a ranked list of the most unusual rows to inspect.
When to use something else
- You need a model that scores new data quickly at scale; use an isolation forest instead.
- You have labelled anomalies; use a supervised classifier instead.
Assumptions and requirements
- Euclidean distance on (by default standardised) features is meaningful.
- The chosen k is larger than the size of any small group of outliers you want to detect.
- There are few exact duplicate rows.
What the analysis reports
- LOF, local reachability density and k-distance for the 60 most extreme rows
- Number and share of flagged rows and the flagging threshold
- Distribution summary of LOF values (median, 90th and 99th percentiles, maximum)
- Histogram of LOF values
How to report it
Local outlier factors (k = [value]) ranged up to [value] (median [value]); [value] of [value] observations ([value]%) exceeded the threshold of [value] and were flagged as local outliers.
Related methods
How this method is validated
이 방법의 검증 근거
- Automated tests. Checked by automated run tests; no external reference comparison is recorded yet.
자동 시험. 자동 실행 시험을 거칩니다. 외부 참조값과 대조한 기록은 아직 없습니다.
Run Local Outlier Factor Anomaly Detection on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Automated run tests; no external reference comparison yet
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.