Histogram-Based Outlier Score (HBOS)
The histogram-based outlier score builds one histogram per variable, scales each so its tallest bar is 1, and gives every row the sum over variables of log(1 / height of the bar it falls in). Rows that sit in rare bins on one or more variables get high scores. Bins can have equal width or hold about the same number of values.
히스토그램 기반 이상치 점수는 변수마다 히스토그램을 하나씩 만들어 가장 높은 막대를 1로 맞춘 뒤, 각 행이 속한 막대 높이의 역수에 로그를 취해 변수별로 더한 값을 점수로 줍니다. 한 변수 이상에서 드문 구간에 놓인 행일수록 점수가 높습니다. 구간은 너비를 같게 하거나 값의 개수를 같게 나눌 수 있습니다.
Which rows in a large table have unusual values, using a method fast enough for millions of rows?
수백만 행에도 쓸 수 있을 만큼 빠른 방법으로, 큰 표에서 값이 특이한 행을 찾을 수 있습니까?
The method reports an outlier score for every row, flags the rows above the chosen contamination share, and shows which variable contributed most to each high score and how much each variable contributes on average.
When to use Histogram-Based Outlier Score (HBOS)
- You need a very fast first screen for unusual records in a large data set.
- Unusual values on single variables are the main concern and variables can be judged one at a time.
When to use something else
- Outliers are unusual only in combination of variables: use Isolation Forest Anomaly Detection
- Local density around each point matters: use Local Outlier Factor Anomaly Detection
Assumptions and requirements
- Variables contribute independently (dependencies between variables are ignored)
- Enough rows per bin for stable bar heights
- The contamination share is set to a sensible value
What the analysis reports
- Outlier score per row and flagged rows
- Main contributing variable per row
- Mean contribution of each variable
- Score threshold
How to report it
HBOS with [value] static bins per feature flagged [value] of [value] rows ([value]%) above the [value]th score percentile (threshold = [value]).
Related methods
- Isolation Forest Anomaly Detection
- Local Outlier Factor Anomaly Detection
- Copula-Based Outlier Detection (COPOD)
- Angle-Based Outlier Detection (ABOD)
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with NumPy.
독립 계산. NumPy 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Histogram-Based Outlier Score (HBOS) on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.