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 , where is the core distance? What does this say about 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 is core at radius iff , where is the distance to its -th nearest neighbour (counting itself). Then iff and are both core and . So the DBSCAN* clusters are exactly the connected components of the threshold graph , which are the single-linkage clusters at height .
Steps
- 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).
- Characterise the edges. means all three of , and hold. That is the definition of two core points that are -neighbours.
- A non-core point has , so for every . 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.)
- Single-linkage clusters at height are precisely the connected components of the graph with edges (the standard threshold-graph view of single linkage). Therefore DBSCAN* at equals the single-linkage dendrogram of cut at , with the non-core singletons treated as noise.
- Consequence: one tree gives the clustering for all at once. It can be computed from the minimum spanning tree of , 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.
- Special case: with we get , so and DBSCAN* is exactly ordinary single-linkage clustering cut at .
- 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
- Forgetting the with core distances. With plain single linkage on , sparse outliers would join clusters.
- Saying DBSCAN* and DBSCAN give the same clusters including borders. They agree on the core points and noise only.
- Using the nearest neighbour for . It must be the -th neighbour, consistent with the core point definition.
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 , degrees and Laplacian , how do you derive the relaxation of the two-way normalised cut into the generalised eigenproblem ? How do you check the bound on the graph with , ?
Next in Unsupervised learning: For whitened data (zero mean, identity covariance), FastICA finds one independent component with the update followed by . How do you derive this fixed-point rule from the kurtosis contrast under using Newton's method?