Isolation Forest Decision Plot Calculator

Explore anomaly scores, tune Isolation Forest settings, visualize decision boundaries, compare thresholds, inspect unusual observations, and export clear diagnostic reports instantly online with confidence.

Analysis results
Run the calculator to generate anomaly scores and plots.
Decision visualization
Score distribution
Feature comparison
Observation results
No rows available.
Configuration comparison history
RunTreesSample sizeContaminationThresholdAnomaliesMean scoreSeed
No completed runs.
1. Data input
The first row may contain headers. An ID column is optional.
2. Column selection
Parse data to select features.
3. Isolation Forest settings
4. Decision plot controls
Formula used
Average path normalization: c(n) = 2H(n - 1) - 2(n - 1)/n
Anomaly score: s(x, n) = 2-E(h(x))/c(n)
Decision score: threshold - anomaly score

Isolation Forest isolates observations through repeated random feature splits. Anomalies usually require fewer splits than typical observations. Their average path lengths therefore produce larger anomaly scores.

The contamination setting determines the automatic classification threshold. A manual threshold can replace that quantile when needed. Positive decision scores indicate points below the anomaly threshold.

How to use
  1. Paste data or upload a CSV or TXT file.
  2. Parse the data, then choose an ID column and numeric features.
  3. Set tree count, sample size, contamination, scaling, and threshold options.
  4. Select a plot type and the X and Y features.
  5. Run the calculator, inspect anomalies, and export the required results.
Example data
IDFeature 1Feature 2Feature 3Expected pattern
P012.11.92.3Typical
P082.52.32.2Typical
P137.88.47.5Likely anomaly
P14-3.2-2.8-3.5Likely anomaly
P155.9-4.76.2Likely anomaly
Interpretation guide
Frequently asked questions

What does Isolation Forest detect?

It detects observations that are isolated with unusually short random-tree paths. These points differ from common data patterns. Detection does not prove that a record is wrong.

What contamination value should I use?

Use an estimate of the expected anomaly proportion. Lower values produce fewer flagged observations. Compare several settings before making operational decisions.

Why are scores different after changing the seed?

Isolation Forest uses randomized samples, features, and splits. Different seeds generate different tree ensembles. Stable anomalies should remain highly ranked across repeated runs.

Does feature scaling matter?

Random split trees are less scale-sensitive than distance methods. Scaling still improves comparability and interpretation. It also helps when inspecting standardized feature deviations.

What does a negative decision score mean?

This calculator defines decision score as threshold minus anomaly score. Negative values exceed the selected anomaly threshold. Positive values remain on the normal side.

Can I use more than two features?

Yes, the model can use many selected numeric features. Two features are displayed in contour and scatter views. Other features remain fixed at representative values.

Why is the contour only an approximation?

The contour evaluates a grid across two selected dimensions. Remaining features use their transformed means. The full model still scores every observation with all features.

How should duplicate rows be handled?

Duplicates can represent valid repeated events or accidental copies. Review their context before removal. Many duplicates can distort anomaly proportions and ranking.

Can results replace expert review?

No, unsupervised anomaly detection provides screening evidence. Domain context remains essential for interpretation. Confirm important findings before taking consequential action.

Related Calculators

Anomaly Score PlotTime-Series Anomaly PlotControl ChartReconstruction Error HistogramNormal-versus-Anomalous Scatter PlotThreshold Selection Curve

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.