Statistics
DBSCAN Simulator
Place points on an interactive plane and watch DBSCAN discover arbitrary shapes, separate noise, and react in real time to ε and minPts.
Interactive plane
Click to add points. Right click or double click to remove the nearest one.
Execution mode
Parameters
Live status
Point generation
Use presets designed to expose DBSCAN strengths and limits, generate random clouds, or place points manually on the plane.
K-Means vs DBSCAN
Turn on the comparison to inspect DBSCAN next to K-Means with K set to the number of clusters found by DBSCAN.
Moons, rings, and elongated structures reveal very quickly when DBSCAN follows geometry while K-Means forces convex partitions.
About this tool
DBSCAN (Density-Based Spatial Clustering of Applications with Noise) defines clusters by local density rather than distance to centroids. A point is a core point if it has at least neighbors within radius : , where . Border points are within the radius of a core point but are not core points themselves. Noise points do not belong to any cluster.
This classification enables detecting clusters of arbitrary shape and, crucially, naturally identifying and discarding outliers — something K-Means cannot do. DBSCAN does not require specifying the number of clusters in advance, but does require parameters and , whose appropriate choice is critical. A common heuristic for is the elbow in the plot of distances to the -th nearest neighbor.
This tool lets you explore DBSCAN by adjusting and interactively. Observe how small changes in these parameters can merge or split clusters and how the algorithm handles outliers. Compare results with K-Means on non-convex distributions to understand when each algorithm is more appropriate.
