Submitted:
24 November 2026
Posted:
26 November 2026
You are already at the latest version
Abstract
A data point can be anomalous because it is far from all data, has an extreme feature, breaks the relations between features, sits off the local shape of its cluster, or belongs to a small group cut off from the bulk; most detectors address only one of these cases. We present Copula–Flow Surprise (CFS), which computes one statistic per case, motivates each by the likelihood ratio of a standard anomaly mechanism, converts them to tail evidence and merges them by a weighted harmonic mean; a split-conformal threshold bounds false alarms in finite samples, even with contaminated calibration data. We prove that the dependence witness and, at component scale, the flow witness are Neyman–Pearson optimal for dependency and local anomalies, that clustered anomalies of equal mass are not identifiable from unlabelled data, and that a half-mass persistence witness separates them under a mass gap and a topological gap. On ADBench without duplicate rows (47 data sets, 28 comparators including six ensembles), CFS has the highest worst-type AUROC (0.851 versus 0.786 for the best ensemble) and is significantly better than every comparator; on natural labels no comparator is significantly better. In a pre-registered study on 19 KEEL data sets never used during development, CFS again has the highest worst-type AUROC (0.887 versus 0.848) and beats 21 of 28 comparators significantly, but is statistically tied with the z-score maximum and AOM ensembles and with ECOD, COPOD and Isolation Forest. With five labelled anomalies, a positive-unlabelled extension outperforms XGBOD on image embeddings.
Keywords:
anomaly detection
; outlier detection
; copula
; mean-shift flow
; persistent homology
; likelihood ratio
; conformal calibration
; pre-registration
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.