Log inStart free
LESSON 4.32 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW

DBSCAN and HDBSCAN

Watch clusters grow from crowded points, and see why one radius cannot fit every cluster.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 2 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 4.32 · DENSITY BAYε = 0.85 · POINT 10: 8 WITHIN ε
01
Stage 1 of 6 · Count neighbors
DBSCAN counts the points within radius ε of each point, the point itself included.
Explain it simply

Each teal dot is one point. The ochre circle around a point has the radius ε, here 0.85. Point 10 sits in the dense blob, so its circle holds 8 points. A lone point's circle holds only itself. Where many circles overlap, the points are crowded.

Forty points: a dense blob, a ring around it, a long tilted looser blob and six lone points. Each has a faint circle of radius 0.85. Point 10 has 8 points within its circle, itself included. The bars on the right show every count.

points (solid: core point)radius ε, minPts, core distanceclusters A, B, Cnoise pointsspanning tree and dendrogram
DBSCAN · ε = 0.85 · minPts = 302468100246810points within ε, per point0510points, most neighbors first →DBSCAN · ε = 0.85 · minPts = 302468100246810points within ε, per point0510points, most neighbors first →
Toy: the 4.C3 points · 40 points · a dense blob, a ring around it, a long tilted looser blob, 6 lone points · Euclidean distance
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Nε(p)={ q:d(p,q)≤ε }\sy{N}{data}{N_{\varepsilon}}(\sy{p}{data}{p}) = \{\, q : \sy{d}{data}{d}(\sy{p}{data}{p}, q) \le \sy{eps}{param}{\varepsilon} \,\}
∣N0.85(p10)∣=8|N_{0.85}(p_{10})| = 8

The neighborhood of p holds every point within distance ε of p.

Common mix-ups

MYTHDBSCAN needs the number of clusters, like k-means.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01If ε grows from 0.85 to 1.25, what happens to the ring and the dense blob?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 2 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.