Docsity

Clustering, matematyka, Publikacje z Informatyka

Podgląd częściowego tekstu

Pobierz Clustering, matematyka i więcej Publikacje w PDF z Informatyka tylko na Docsity!

Clustering

Lecture 3: Hierarchical Methods

Jing Gao

SUNY Buffalo

Outline

• Basics

– Motivation, definition, evaluation

• Methods

– Partitional

– Hierarchical

– Density-based

– Mixture model

– Spectral methods

• Advanced topics

– Clustering ensemble

– Clustering in MapReduce

– Semi-supervised clustering, subspace clustering, co-clustering,

etc.

Hierarchical Clustering

• Divisive Approaches

b

d

c

e

a

a b

d e

c d e

a b c d e

Step 4 Step 3^ Step 2^ Step 1^ Step 0^ Top-down

Initialization: All objects stay in one cluster Iteration: Select a cluster and split it into two sub clusters Until each leaf cluster contains only one object

Dendrogram

• A tree that shows how clusters are merged/split

hierarchically

• Each node on the tree is a cluster; each leaf node is a

singleton cluster

Agglomerative Clustering Algorithm

• More popular hierarchical clustering technique

• Basic algorithm is straightforward

1. Compute the distance matrix

2. Let each data point be a cluster

3. Repeat

4. Merge the two closest clusters

5. Update the distance matrix

6. Until only a single cluster remains

• Key operation is the computation of the distance between

two clusters

  • Different approaches to defining the distance between clusters

distinguish the different algorithms

Starting Situation

• Start with clusters of individual points and a distance matrix

p

p

p

p

p

p1 p2 p3 p4 p...

. .

. Distance Matrix

p1 p2 p3 p4 p9 p10 p11 p

Intermediate Situation

• We want to merge the two closest clusters (C2 and C5) and update

the distance matrix.

C

C

C2 C

C

C1 C

C

C

C

C

C

C3 C4 C

Distance Matrix

... p1 p2 p3 p4 p9 p10 p11 p

After Merging

• The question is “How do we update the distance matrix?”

C

C

C2 U C

C

C

U

C1 C

C

C

C

C2 U C

C3 C

Distance Matrix

p1 p2 p3 p4 p9 p10 p11 p

MIN or Single Link

  • Inter-cluster distance
    • The distance between two clusters is represented by the distance of the closest pair of data objects belonging to different clusters.
    • Determined by one pair of points, i.e., by one link in the proximity graph

( , ) min ( , ) min (^) , d C C d p q p Ci q Cj i j^   

MIN

Nested Clusters Dendrogram

1

2

3

4

5

6

1 2

3

4

5

(^03 6 2 5 4 )

Limitations of MIN

Original Points Two Clusters

  • Sensitive to noise and outliers

MAX or Complete Link

  • Inter-cluster distance
    • The distance between two clusters is represented by the distance of the farthest pair of data objects belonging to different clusters

( , ) max ( , ) min (^) , d C C d p q p Ci q Cj i j^   

Strength of MAX

Original Points Two Clusters

  • Less susceptible to noise and outliers

Limitations of MAX

Original Points

  • Tends to break large clusters