Download presentation
Presentation is loading. Please wait.
Published bySharlene Bell Modified over 8 years ago
1
Data Mining Cluster Analysis: Basic Concepts and Algorithms Lecture Notes Introduction to Data Mining by Tan, Steinbach, Kumar © Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 1
2
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 2 What is Cluster Analysis? l Finding groups of objects such that the objects in a group will be similar (or related) to one another and different from (or unrelated to) the objects in other groups Inter-cluster distances are maximized Intra-cluster distances are minimized
3
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 3 Types of Clusterings l A clustering is a set of clusters l Important distinction between hierarchical and partitional sets of clusters l Partitional Clustering –A division data objects into non-overlapping subsets (clusters) such that each data object is in exactly one subset l Hierarchical clustering –A set of nested clusters organized as a hierarchical tree
4
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 4 Partitional Clustering Original Points A Partitional Clustering
5
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 5 Hierarchical Clustering Traditional Hierarchical ClusteringTraditional Dendrogram
6
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 6 Types of Clusters: Well-Separated l Well-Separated Clusters: –A cluster is a set of points such that any point in a cluster is closer (or more similar) to every other point in the cluster than to any point not in the cluster. 3 well-separated clusters
7
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 7 Types of Clusters: Center-Based l Center-based – A cluster is a set of objects such that an object in a cluster is closer (more similar) to the “center” of a cluster, than to the center of any other cluster –The center of a cluster is often a centroid, the average of all the points in the cluster, or a medoid, the most “representative” point of a cluster 4 center-based clusters
8
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 8 Clustering Algorithms l Hierarchical clustering l K-means l Density-based clustering
9
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 9 Hierarchical Clustering l Produces a set of nested clusters organized as a hierarchical tree l Can be visualized as a dendrogram –A tree like diagram that records the sequences of merges or splits
10
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 10 DEMO http://home.deib.polimi.it/matteucc/Clustering/tutorial_html/AppletH.html
11
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 11 Strengths of Hierarchical Clustering l Do not have to assume any particular number of clusters –Any desired number of clusters can be obtained by ‘cutting’ the dendogram at the proper level
12
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 12 Hierarchical Clustering l Two main types of hierarchical clustering –Agglomerative: Start with the points as individual clusters At each step, merge the closest pair of clusters until only one cluster (or k clusters) left –Divisive: Start with one, all-inclusive cluster At each step, split a cluster until each cluster contains a point (or there are k clusters) l Traditional hierarchical algorithms use a similarity or distance matrix –Merge or split one cluster at a time
13
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 13 Agglomerative Clustering Algorithm l More popular hierarchical clustering technique l Basic algorithm is straightforward 1.Compute the proximity matrix 2.Let each data point be a cluster 3.Repeat 4.Merge the two closest clusters 5.Update the proximity matrix 6.Until only a single cluster remains l Key operation is the computation of the proximity of two clusters –Different approaches to defining the distance between clusters distinguish the different algorithms
14
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 14 Starting Situation l Start with clusters of individual points and a proximity matrix p1 p3 p5 p4 p2 p1p2p3p4p5......... Proximity Matrix
15
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 15 Intermediate Situation l After some merging steps, we have some clusters C1 C4 C2 C5 C3 C2C1 C3 C5 C4 C2 C3C4C5 Proximity Matrix
16
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 16 Intermediate Situation l We want to merge the two closest clusters (C2 and C5) and update the proximity matrix. C1 C4 C2 C5 C3 C2C1 C3 C5 C4 C2 C3C4C5 Proximity Matrix
17
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 17 After Merging l The question is “How do we update the proximity matrix?” C1 C4 C2 U C5 C3 ? ? ? ? ? C2 U C5 C1 C3 C4 C2 U C5 C3C4 Proximity Matrix
18
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 18 How to Define Inter-Cluster Similarity p1 p3 p5 p4 p2 p1p2p3p4p5......... Similarity? l MIN l MAX l Group Average l Distance Between Centroids Proximity Matrix
19
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 19 How to Define Inter-Cluster Similarity p1 p3 p5 p4 p2 p1p2p3p4p5......... Proximity Matrix l MIN l MAX l Group Average l Distance Between Centroids
20
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 20 How to Define Inter-Cluster Similarity p1 p3 p5 p4 p2 p1p2p3p4p5......... Proximity Matrix l MIN l MAX l Group Average l Distance Between Centroids
21
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 21 How to Define Inter-Cluster Similarity p1 p3 p5 p4 p2 p1p2p3p4p5......... Proximity Matrix l MIN l MAX l Group Average l Distance Between Centroids
22
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 22 How to Define Inter-Cluster Similarity p1 p3 p5 p4 p2 p1p2p3p4p5......... Proximity Matrix l MIN l MAX l Group Average l Distance Between Centroids
23
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 23 Hierarchical Clustering: Problems and Limitations l Once a decision is made to combine two clusters, it cannot be undone
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.