Isolation of the forest: why can it be an unusual signal when it can easily be cut out
Explains the length of the path from random trajectories, distinguishing the abnormal fractions from the true probability of error.
Learning objectives and first steps2 objectives . 1 first fix
Try to do it after reading
- Explain path length from random trajectories
- Distinguishing abnormal scores from true probability of error
Suggested first
- Distinguishing Probability from Training Certification
Do not estimate the density of all normal areas first
Isolated forests use a geometric intuition: in some data structures, isolation points often require less random fractions to separate. Models randomly and repeatedly select features and cut values, record the length of the sample path and aggregate into fractions. It does not need known abnormal labels, but it does not automatically know what conduct is not permitted in the business.
A cut-off trajectory of four points
The one-dimensional point is [0,01.0.2,5]. If the first random threshold falls between 0.2 and 5, e.g. 3, 05 is separated by one single step; The remaining three intensity points require more cut-off. A short path suggests that the random tree can easily isolate it and that the average number of trees can reduce the impact of an occasional threshold. Common standardized scores are divided by the average path length by the benchmark associated with the sample volume, and the negative index at the bottom of 2. A shorter path usually means a higher degree of anomaly, but different software may return to the original fractions in the opposite direction, the decision value after deviation or the final label, which must be preceded by an interface semantic, not just by name.
What's the preference for geometry
Characteristics are scalded to be specific and non-modified under random fractions of certain axes, but non-linear variations, duplicate features and unrelated high-dimensional directions can still change the isolation structure. A rare but legal group may also be vulnerable to isolation; The intensity of systemic errors is not necessarily exceptional. Statistics are scarce and do not amount to operational errors or fraud.
Training samples and thresholds
The number of subsamples used to construct trees affects the path baseline and local coverage. The final anomaly threshold can be selected on the basis of the contamination scale, the validation label or the resource capacity, but the preset ratio does not represent a real anomaly rate that has been estimated. If a fixed proportion is mandatory daily, a corresponding number of warnings will arise when it is fully normal or when it is drifted, and this should be explained in the explanation.
How do we test your usefulness
The source, missing mode and time distribution of the high-scoring records are checked first to prevent the recovery of faults or new field coded control results. Where a real tag is verified, the cost of accuracy, recall and miscalculation under the fixed budget may be evaluated; In the absence of labels, only evidence such as manual spot checks and stability can be reported and cannot be described as having proven accuracy. On-line, you should monitor the distribution of fractions, enter overlays and rule versions. Anomalous detectors generally give high scores to certain categories of new users, possibly from inadequate training coverage, and need to distinguish between the unfamiliarness of the model and the unreasonableness of the user itself. The model gives an auditable geometry trail, not evidence to replace the findings of the investigation.
Self-measurement and provocator
Is 05 isolated in a single tree sufficient to determine its true anomaly?
Not enough. It also depends on multi-tree statistics, data coverage and operational verification; Very few legal points may also have short paths.
Can the default anomaly rate of 0.01 indicate that the real anomaly rate is 1 percent?
Can't. It can be used for thresholds or output controls, but not for automatic recognition of real anomalies.
Sources and reconciliations
Definitions, methods and interfaces are available.
- scikit-learn — Novelty and Outlier Detection
- An Introduction to Statistical Learning — author website
Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.