CAB212 · Unit 5: Unsupervised learning
DBSCAN density-based clustering
6 practice questions
Key points
- Parameters eps and minPts
- Core, border, noise points
- Finds arbitrary shapes, flags outliers
- Struggles with varying density
DBSCAN groups points that are densely packed and marks isolated points as noise. Parameters:
- eps: neighbourhood radius.
- minPts: minimum points in a neighbourhood (including the point) to count as dense.
Point types: core (at least minPts within eps), border (within eps of a core point but not core itself), noise (neither).
Clusters grow by connecting core points whose neighbourhoods overlap. No need to give k; finds arbitrary shapes (crescents, rings) and labels outliers. Weak when clusters have very different densities or in high dimensions; sensitive to eps. A k-distance plot helps choose eps.
Exam pitfall: DBSCAN labels noise as -1 in scikit-learn; these points belong to no cluster.
Try two questions
A key advantage of DBSCAN over k-means is that it:
- Needs class labels to form clusters
- Has no parameters to tune
- Detects non-spherical clusters and outliers without specifying k
- Always runs faster on every dataset
Show the answer
C. Density-based, shape-agnostic.
A point with at least minPts points within eps is a:
- Centroid
- Noise point
- Border point
- Core point
Show the answer
D. Core points seed clusters.