ECOD: Unsupervised Outlier Detection Using Empirical Cumulative Distribution Functions

Zheng Li, Yue Zhao, Xiyang Hu, Nicola Botta, Cezar Ionescu +1 more
1/2/2022
591 citations
cs.LGcs.DBstat.AP

Official code: yzhao062/pyod (10,082 stars, Python, BSD-2-Clause, last commit 2026-04-16).

Abstract

Outlier detection refers to the identification of data points that deviate from a general data distribution. Existing unsupervised approaches often suffer from high computational cost, complex hyperparameter tuning, and limited interpretability, especially when working with large, high-dimensional datasets.

Show full abstract

To address these issues, we present a simple yet effective algorithm called ECOD (Empirical-Cumulative-distribution-based Outlier Detection), which is inspired by the fact that outliers are often the "rare events" that appear in the tails of a distribution. In a nutshell, ECOD first estimates the underlying distribution of the input data in a nonparametric fashion by computing the empirical cumulative distribution per dimension of the data. ECOD then uses these empirical distributions to estimate tail probabilities per dimension for each data point. Finally, ECOD computes an outlier score of each data point by aggregating estimated tail probabilities across dimensions. Our contributions are as follows: (1) we propose a novel outlier detection method called ECOD, which is both parameter-free and easy to interpret; (2) we perform extensive experiments on 30 benchmark datasets, where we find that ECOD outperforms 11 state-of-the-art baselines in terms of accuracy, efficiency, and scalability; and (3) we release an easy-to-use and scalable (with distributed support) Python implementation for accessibility and reproducibility.

View on arXivView PDF

Code Implementations(1)

yzhao062/pyodOfficial100%
BSD-2-Clause

A Python library for anomaly detection across tabular, time series, graph, text, and image data. 60+ detectors, benchmark-backed ADEngine orchestration, and an agentic workflow for AI agents.

10,0821,520Python, Jupyter NotebookOct 3, 20177 months agoBSD-2-Clause
agentic-aianomaly-detectiondata-miningdata-sciencedeep-learning+14 more

Similar Papers

Cite this paper

@article{li2022ecod,
  title  = {ECOD: Unsupervised Outlier Detection Using Empirical Cumulative Distribution Functions},
  author = {Zheng Li and Yue Zhao and Xiyang Hu and Nicola Botta and Cezar Ionescu and George H. Chen},
  year   = {2022},
  eprint = {2201.00382},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.00382}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2201.00382.svg)](https://codeofpaper.com/paper/2201.00382)

Discussion