In OPTICS with and (counting the point itself) on the 1-D points , compute the core distance of points 4, 6 and 7.2 and the reachability distances of 6 from 4, of 7.0 from 6, and of 7.4 from 7.2. Why does OPTICS handle this data better than one DBSCAN run?
Unsupervised learning, OPTICS
Level L3 Intermediate. Length Long. Nature Th+Mat Both.
What's being asked
Whether you can compute core and reachability distances and read the reachability plot as a multi-density clustering.
Key idea
Core distance of is the distance to its -th nearest neighbour (the point itself counts as the first), if that is at most . The reachability of from a core point is . A reachability plot shows valleys for dense clusters, and valley depth tells the density.
Steps
- Core distance means the distance to the 3rd nearest point counting itself, so the 2nd nearest other point. Point 4: neighbours at distances 2 (points 2 and 6), so core-dist .
- Point 6: other points are at distances 1 (7), 1.2 (7.2), 1.4 (7.4), 1.6 (7.6), 2 (4). The 3rd point counting itself is 7.2, so core-dist . Point 7.2: others at 0.2 (7.0 and 7.4), so core-dist .
- Reachability of 6 from 4: . Reachability of 7.0 from 6: . Reachability of 7.4 from 7.2: .
- So while OPTICS walks through the sparse points, reachabilities are about 2. When it enters the dense group the first reachability is 1.2 (the jump from a sparse core), and then it falls to about 0.2–0.4. The plot has a shallow valley for the sparse group and a deep one for the dense group.
- One DBSCAN run needs a single . With the sparse points all become noise because their core distances are 2. With everything chains into one cluster, as 6 and 7 are only 1 apart. Cutting the OPTICS plot at height 0.4 recovers the dense cluster, and at 2 gives the merged one, so both views come from one run.
- Cost: about the same as DBSCAN, with a spatial index, and it needs only and a generous maximum .
Common mistakes
- Using the distance to the nearest neighbour as the core distance. It is the distance to the -th neighbour.
- Forgetting the with the core distance in the reachability definition.
- Thinking OPTICS outputs clusters. It outputs an ordering with reachability values, from which clusters are extracted.
How long your answer should be
One page; 6–8 minutes.
Last checked on 4 December 2026.
Read this
Previous in Unsupervised learning: BIRCH summarises a sub-cluster by a clustering feature . Why are these three numbers enough, and what are the CFs and radius when is merged with ? If the threshold is , is the merge allowed?
Next in Unsupervised learning: CURE represents each cluster by several well-scattered representative points that are shrunk towards the cluster centroid by a factor . In 2-D, a cluster with centroid has a representative at . With , where does it go? Why does the shrinking help, and what happens at and ?