In OPTICS with ε=3 and minPts=3 (counting the point itself) on the 1-D points {0,2,4,6,7,7.2,7.4,7.6}, 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 p is the distance to its minPts-th nearest neighbour (the point itself counts as the first), if that is at most ε. The reachability of q from a core point o is max⁡{core-dist(o), d(o,q)}. A reachability plot shows valleys for dense clusters, and valley depth tells the density.

Steps

  1. 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 =2.
  2. 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 =1.2. Point 7.2: others at 0.2 (7.0 and 7.4), so core-dist =0.2.
  3. Reachability of 6 from 4: max⁡(2, d(4,6)=2)=2. Reachability of 7.0 from 6: max⁡(1.2, 1.0)=1.2. Reachability of 7.4 from 7.2: max⁡(0.2, 0.2)=0.2.
  4. 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.
  5. One DBSCAN run needs a single ε. With ε=0.4 the sparse points all become noise because their core distances are 2. With ε=2 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.
  6. Cost: about the same as DBSCAN, O(nlog⁡n) with a spatial index, and it needs only minPts and a generous maximum ε.

Common mistakes

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 CF=(N,LS,SS). Why are these three numbers enough, and what are the CFs and radius when {1,2,3} is merged with {7,9}? If the threshold is T=3, 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 (4,3) has a representative at (10,0). With α=0.2, where does it go? Why does the shrinking help, and what happens at α=0 and α=1?