Anomaly detection

Anomaly detection is the identification of observations that differ markedly from the rest of a dataset or from an expected pattern. It marks values, records or events for review. It does not decide whether a flagged item is an error, a fraud or a genuine change.

Also called: outlier detection · anomaly analysis

What it is

Anomaly detection is the search for observations that stand apart from the rest of a dataset, or from the pattern a model expects. Statisticians call such points outliers. The result is a list of flagged items for a person to examine, not a verdict.

A flagged item can be a data error, a process failure, a misconduct signal or a real but unusual event. The cause is established afterwards, by root cause analysis.

Three kinds of anomaly are usual in textbooks:

Rule-based checks compare a value with a fixed limit. Statistical methods measure distance from the centre of the data. Model-based methods flag large gaps between a value and its prediction. Clustering, density and isolation methods, from the family of machine learning models, score how isolated a record is.

A common statistical score is the z-score:

z = (x - m) / s

Here x is the observed value, m is the mean of the comparison data and s is its standard deviation. The analyst chooses the threshold of |z| above which a value is flagged.

Why it matters

Large datasets cannot be read line by line. Anomaly detection reduces them to a short list for review.

The ECB has published a method for automated outlier detection in high-dimensional supervisory data. The BIS report on the governance of AI in central banks lists anomaly detection among use cases, including data quality and incorrect reporting.

Too low a threshold floods reviewers with false alerts. Too high a threshold lets real errors through. The threshold is a judgement about the cost of each type of miss.

Worked example

Illustrative numbers. Daily payment totals over a period have a mean of 200 and a standard deviation of 20, in thousands of euro. The analyst flags any day with |z| above 3.

The reviewer checks the flagged day against the source system. The cause may be a duplicated file, a genuine large settlement or a missing decimal point. Only the check decides which.

How to read it

A high score means the value is far from the comparison data. It does not say why. Earlier errors in the comparison data distort the mean and standard deviation and can mask real anomalies.

Assumptions

Who uses it

Common confusions

8Roles that need it

9Skills behind it

Sources behind this page (3) · Updated 5 Nov 2026

Concept