Hierarchical Clustering, Agglomerative Clustering & DBSCAN

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/31

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:14 AM on 7/25/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

32 Terms

1
New cards

What is hierarchical clustering

A clustering approach that builds a hierarchy of clusters, where each node is a cluster made up of its “daughter” clusters - often visualized as a dendogram

2
New cards

What are the two main types of hierarchical clustering

Agglomerative (bottom up, more popular) and Divisive (top down, dividing clusters)

3
New cards

What is the basic idea of agglomerative hierarchical clustering

Start with each object in its own cluster, then repeatedly merge the closest pair of clusters until only one cluster containing everything remains

4
New cards

What is a proximity (distance) matrix in agglomerative clustering?

A square using n*n matrix showing the distance between every pair of points, calculated using a distance formula like Euclidean distance; diagonal elements are always 0

5
New cards

What is the initial step of agglomerative clustering

Assign every point to its own individual cluster and compute the initial proximity/distance matrix

6
New cards

At each step of agglomerative clustering what do you do

Find the smallest distance in the (derived) proximity matrix, merge those two clusters, and update the matrix with the new inter cluster distances

7
New cards

What happens by the final step of agglomerative clustering

All clusters are merged into a single cluster containing every point - starting from n clusters and ending at 1

8
New cards

Do you need to specify the number of clusters upfront in hierarchical clustering

No instead you can decide “when to stop” merging, using a dendogram

9
New cards

What does the vertical distance in a dendrogram represent

The greater the distance the greater the distance between the clusters being merged at that point

10
New cards

How do you determine the number of clusters from a dendrogram using a threshold line

Draw a horizontal threshold line (often set to cut the tallest vertical line); the number of clusters equal the number of vertical lines the threshold line intersect

11
New cards

What is single linkage clustering

Inter cluster distance is defined as the minimum distance across all cross cluster point pairs

12
New cards

What is complete linkage clustering

Inter clustering distance is defined as the maximum distance across all cross cluster point pairs

13
New cards

What is average linkage clustering

Inter cluster distance is defined as the average distance across all cross cluster point pairs

14
New cards

What is centroid linkage clustering

Inter cluster distance is defined as the distance between the two clusters’ centroids (means)

15
New cards

What is Ward’s linkage method

It defines inter cluster distance as the increase in total within cluster variance (SSE) that would result in merging two clusters and chooses the merge that causes the smallest increase in SSE

16
New cards

How is SSE (sum of Squared Errors) defined for a cluster

The sum of squared distances of each point in the cluster from that cluster’s centroid

17
New cards

What is DBSCAN

Density Based Spatial Clustering of Applications with Noise - a clustering algorithm that groups points based on density rather than distance to a centroid

18
New cards

What are wo key drawbacks of K-Means that DBSCAN addresses

K-Means forces every point into some cluster (even outliers) and it requires you to pre specify K, DBSCAN doesn’t require specifying the number of clusters and can separate out noise/outliers

19
New cards

Why does DBSCAN tend to produce more reasonable clusters than K-Means on odd shaped data

Because it locates regions of high density and separates outliers, rather than assigning every point to a cluster based on mean distance

20
New cards

What are DBSCAN’s two key parameters

minPts (minimum number of points required for a region to be considered dense) and epochs (the distance threshold defining a point’s neighborhood)

21
New cards

What is “density reachability” in DBSCAN

A point is density reachable from another point if it lies within distance epoch of it

22
New cards

What is “density connectivity” in DBSCAN

A transitive, chaining relationship - points p and q are connected if there’s a chain p→r→ s→ t→ q where each point is in the nieghborhood of the previous one

23
New cards

What is a Core point in DBSCAN

A point that has at least minPts points within distance epoch (including itself)

24
New cards

What is a Border point in DBSCAN

A point with fewer than minPts neighbors within epoch, but that’s itself within epoch distance of a Core point

25
New cards

What is a Noise point in DBSCAN

A point that is neither a Core point nor a Border point

26
New cards

What are the main steps of the DBSCAN algorithm

1) Set epoch and minPts

2) mark all points unvisited

3) pick an unvisited point and retrieve it’s epoch neighborhood

4) if the neighborhood has >= minPts points, start a new cluster and expand it via density reachability, otherwise mark the points as noise

5) recursively expand cluster to density reachable neighbors

6) repeat until all points are visited

27
New cards

Why is a point marked “noise” only temporarily during DBSCAN

Because it could later turn out to be a Border point if it’s found to be within epoch of a Core point discovered later in the process

28
New cards

What is the rule of thumb minimum for minPts based on data dimensionality D

MinPts >= D + 1; minPts = 1 doesn’t make sense (every point becomes it’s own cluster), and minPts should be chosen at least 3, with minPts = 2 * dimension as a common rule

29
New cards

What happens with DBSCAN if minPts <= 2

The result becomes equivalent to hierarchical clustering with single linkage with the dendogram cut at height epoch

30
New cards

How can a good value of epoch be chosen

Using a k-distance graph, plotting the distance to th k = minPts - 1 nearest neighbor ordered from largest to smallest and picking the “elbow” point of that plot

31
New cards

What happens if epoch is chosen too small or too large

Too small: much of the data won’t get clustered (ends up as noise)

Too large: clusters merge together from largest to smallest, and picking “elbow point” of that plot

32
New cards

Why is the choice of distance function important for DBSCAN

It’s tightly linked to the choice of epoch and has a major impact on results, an appropriate similarity measure for the dataset must be identified first, since there’s no formulaic way to estimate the best distance function.