How do you show that DBSCAN* (DBSCAN without border points) at radius ε is the same as cutting a single-linkage tree built on the mutual reachability distance dm(x,y)=max⁡{c(x),c(y),d(x,y)}, where c(x) is the core distance? What does this say about minPts=1 and about the order-dependence of DBSCAN?

Unsupervised learning, DBSCAN
Level L5 Expert. Length Long. Nature Th+Mat Both.

What's being asked

Whether you can prove the equivalence with threshold graphs and see how HDBSCAN is built on it.

Key idea

A point x is core at radius ε iff c(x)≤ε, where c(x) is the distance to its minPts-th nearest neighbour (counting itself). Then dm(x,y)≤ε iff x and y are both core and d(x,y)≤ε. So the DBSCAN* clusters are exactly the connected components of the threshold graph {dm≤ε}, which are the single-linkage clusters at height ε.

Steps

  1. Define DBSCAN*: the clusters are the connected components of the core points, where two core points are linked if they are within ε. Non-core points are noise (no border points).
  2. Characterise the edges. dm(x,y)=max⁡{c(x),c(y),d(x,y)}≤ε means all three of c(x)≤ε, c(y)≤ε and d(x,y)≤ε hold. That is the definition of two core points that are ε-neighbours.
  3. A non-core point x has c(x)>ε, so dm(x,y)≥c(x)>ε for every y. It has no edge and is a singleton component, which DBSCAN* labels as noise. (A core point whose ε-neighbours are all non-core can also be a singleton, but that is a genuine one-point cluster, not noise.)
  4. Single-linkage clusters at height ε are precisely the connected components of the graph with edges dm≤ε (the standard threshold-graph view of single linkage). Therefore DBSCAN* at ε equals the single-linkage dendrogram of dm cut at ε, with the non-core singletons treated as noise.
  5. Consequence: one tree gives the clustering for all ε at once. It can be computed from the minimum spanning tree of dm, which is the first step of HDBSCAN. HDBSCAN then condenses the tree and keeps the most stable clusters, so the final clusters can have different densities.
  6. Special case: with minPts=1 we get c(x)=0, so dm=d and DBSCAN* is exactly ordinary single-linkage clustering cut at ε.
  7. Order-dependence: DBSCAN's border points may be reachable from several clusters and are given to whichever is expanded first. DBSCAN* has no border points, so its clusters are uniquely defined. Original DBSCAN equals DBSCAN* plus an arbitrary assignment of the border points.

Common mistakes

How long your answer should be

One page; 8–10 minutes.

Last checked on 4 December 2026.

Read this

Previous in Unsupervised learning: For a similarity graph with weights W, degrees D and Laplacian L=D−W, how do you derive the relaxation of the two-way normalised cut Ncut(A,B)=cut(A,B)(1vol(A)+1vol(B)) into the generalised eigenproblem Lf=λDf? How do you check the bound on the graph with w12=w34=1, w23=0.1?
Next in Unsupervised learning: For whitened data z (zero mean, identity covariance), FastICA finds one independent component with the update w+=E[z(w⊤z)3]−3w followed by w←w+/∥w+∥. How do you derive this fixed-point rule from the kurtosis contrast F(w)=E[(w⊤z)4]−3 under ∥w∥=1 using Newton's method?