Run DBSCAN with and (counting the point itself) on the 1-D points . Label each point as core, border or noise. What happens to the point 5?
Unsupervised learning, DBSCAN
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can count neighbourhoods carefully, and whether you know that border points can be claimed by more than one cluster.
Key idea
A point is core if at least points (itself included) lie within distance . Cores that are within of each other join the same cluster. A border point is assigned to whichever cluster reaches it first.
Steps
- Count the points within distance 2 (inclusive): point 0 has , 3 points. Point 1 has , 4 points. Point 2 has , 4. Point 3 has , 4.
- Continue: point 5 has , 3. Point 7 has , 4. Points 8 and 9 each have 4 (for example ). Point 10 has , 3. Point 20 has only itself.
- Core points: . Non-core: .
- Cores 1, 2, 3 are within 2 of each other, so they form one cluster. Cores 7, 8, 9 form another. The cores 3 and 7 are 4 apart, so the two clusters do not join.
- Border points: 0 (within 2 of core 1) and 10 (within 2 of core 8). The point 5 is within 2 of both core 3 and core 7, so it is a border point of both clusters. DBSCAN gives it to whichever cluster is expanded first, so the label depends on the processing order. Noise: 20.
Common mistakes
- Forgetting to count the point itself, which changes which points are core.
- Joining the two clusters through the border point 5. Only core points propagate the cluster.
- Saying the result is fully order-independent. Core and noise labels are, but border points shared between clusters are not.
How long your answer should be
Half a page; 4 minutes.
Last checked on 4 December 2026.
Read this
Previous in Unsupervised learning: Three 1-D clusters are , and . Using the Euclidean distance, compute the Davies–Bouldin index. Is a larger or smaller value better?
Next in Unsupervised learning: Four items have dissimilarities , , , , , . If you run agglomerative clustering with single, complete and average linkage, what are the merge order and heights for each, and which linkage shows the chaining effect?