Skip to main content
3 of 6
cleaned up second to last paragraph
Cliff AB
  • 21.6k
  • 1
  • 51
  • 104

A tongue-in-cheek answer:

Outlier: a value that you predictably find in your data that indicates your model does not work properly

Anomaly: a value that against all odds you find in your data that indicates your model does work properly

A more serious, less cryptic answer:

The concept of outliers starts from the issue of building a model that makes assumptions about the data. Outliers are often indicators that the model does not describe the data properly and thus we should question the results of our model.

The concept of anomalies starts outside the theoretic world and inside the applied world: we want to look for unusual behavior in our data, typically motivated by the fact that we are interested in finding behavior that someone is trying to hide (like a virus in an email). The problem is that since people are trying to hide what they are doing, we don't really know what to look for. So we take a set of "good" data, and decide that whatever we find in our new dataset that doesn't look "good" is an anomaly and worth our time to checkout in more detail. Often, looking for anomalies means looking for outliers in your new data set. But note that these values may be very common in your new dataset, despite being rare in your old dataset!

In summary, the two concepts are very similar in terms of the statistics behind them (i.e. unusual values given your fitted model) but come at the idea from different angles.

Cliff AB
  • 21.6k
  • 1
  • 51
  • 104