DBSCAN: Density-Based Spatial Clustering of Applications with Noise
The algorithm
Find the points which are \(\epsilon\)-neightbors of each other. That is, \(\mathbf x\) is an \(\epsilon\)-neightbor of \(\mathbf y\) if \(\|\mathbf x - \mathbf y\|_2 < \epsilon\)
Mark all points which have more than \(n_c\) neighbors as core points
Find the connected components of the core points. This tells you the number of clusters \(K\).
For non-core points, assign it to a nearest cluster if the cluster is an \(\epsilon\)-neighbor
Any leftover points are outliers
\(\varepsilon\): 0.30\(n_c\): 4
the data — core ●, border ○, outlier ×
Questions:
Are the results reasonable? Do they match what you would "eyeball"?
Can DBSCAN learn convex regions?
What is the affect of \(n_c\) on the clusters?
What is the affect of \(\epsilon\) on the clusters?
How do we evaluate if we picked good hyperparameters?