run isolare-un-punto.bas
MDN-119:32
DEMO by Michele di Nuzzo

Isolating a point

MDN · LAB ISOLATING A POINT Anomaly detection · 2008
Cliccate un cassiere
click a cashier: chooses on the chart the point to isolate
Un taglio
one cut: random column and random threshold
Isola
isolate: keeps cutting until the cashier is left alone
Pianta 200 alberi
plant 200 trees: computes the average depth and colours the points
mostra gli infedeli veri
show the truly dishonest: circles the dishonest cashiers in red, to check the result

▶ Run ⬇ Download (.html)

Ordito’s 382 cashiers with at least 500 receipts, on two habits: how often they give a manual discount and how many returns they ring up without a receipt. Isolation Forest picks a random column and a random threshold and cuts, until a point is left alone. The number of cuts, averaged over many trees, is the measure: little depth, much anomaly. The lab’s interface is in Italian.

Things to try

  • A random cut. Isolate a cashier in the middle of the cloud, then one far from the group, and count the cuts.
  • The average of the cuts. With 200 trees the average depth becomes stable and the points are coloured.
  • The check. Turn on the truly dishonest cashiers: they are the twelve most isolated.

The article: Isolating a point.

The demo is a single HTML file: download it and use it offline, even without an internet connection. Licence: CC BY-NC 4.0 — you may share it, crediting the author and this page, but not for commercial purposes.