Anomalies: Isolated in Fewer Random Splits

Random partitioning isolates anomalies faster because outliers are by nature 'few and different,' requiring significantly fewer random cuts to separate them into a distinct branch in an isolation tree compared to normal data points. This results in characteristically shorter average path lengths for anomalies.

The top 3

  1. Shorter Path Lengths Yield Higher Anomaly Scores: Anomalies are isolated closer to the root of isolation trees, resulting in significantly shorter path lengths compared to normal points, which require more splits. This path length is directly used to calculate an anomaly score, where shorter paths yield higher scores, indicating a greater likelihood of being an outlier.
  2. Outperforming Distance-Based Algorithms with Speed: By isolating anomalies through random partitioning rather than calculating distances or densities, Isolation Forest avoids the O(n²) computational complexity of many traditional methods. This allows it to achieve linear time complexity (O(n log n)), making it 10x to 100x faster and more scalable, especially for large, high-dimensional datasets.
  3. Statistical Rarity Simplifies Anomaly Isolation: Anomalies are inherently few and distinct from the majority of normal data points, making them easier to separate with random data partitions. This statistical rarity means fewer random splits are needed to isolate an anomaly into its own leaf node, compared to the many splits required for clustered normal points.

Sources

Open the full topic