Lecture 20: Cluster Validation

Slides:



Advertisements
Similar presentations
AMCS/CS229: Machine Learning
Advertisements

HW 4 Answers.
Unsupervised Learning
Data Mining Cluster Analysis Basics
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/ What is Cluster Analysis? l Finding groups of objects such that the objects in a group will.
Data Mining Cluster Analysis: Basic Concepts and Algorithms
Clustering V. Outline Validating clustering results Randomization tests.
Cluster Analysis. Midterm: Monday Oct 29, 4PM  Lecture Notes from Sept 5, 2007 until Oct 15, Chapters from Textbook and papers discussed in class.
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/ What is Cluster Analysis? l Finding groups of objects such that the objects in a group will.
Data Mining Cluster Analysis: Basic Concepts and Algorithms
unsupervised learning - clustering
Data Mining Cluster Analysis: Basic Concepts and Algorithms
Data Mining Cluster Analysis: Basic Concepts and Algorithms
University at BuffaloThe State University of New York Cluster Validation Cluster validation q Assess the quality and reliability of clustering results.
Cluster Analysis.  What is Cluster Analysis?  Types of Data in Cluster Analysis  A Categorization of Major Clustering Methods  Partitioning Methods.
Cluster Analysis (1).
Data Mining Cluster Analysis: Basic Concepts and Algorithms
Cluster Validation.
CSCE822 Data Mining and Warehousing
© University of Minnesota Data Mining CSCI 8980 (Fall 2002) 1 CSci 8980: Data Mining (Fall 2002) Vipin Kumar Army High Performance Computing Research Center.
What is Cluster Analysis?
Math 5364 Notes Chapter 8: Cluster Analysis Jesse Crawford Department of Mathematics Tarleton State University.
DATA MINING LECTURE 8 Clustering Validation Minimum Description Length Information Theory Co-Clustering.
Clustering Basic Concepts and Algorithms 2
Data Mining Cluster Analysis: Basic Concepts and Algorithms Adapted from Lecture Notes for Chapter 8 Introduction to Data Mining by Tan, Steinbach, Kumar.
Critical Issues with Respect to Clustering Lecture Notes for Chapter 8 Introduction to Data Mining by Tan, Steinbach, Kumar © Tan,Steinbach, Kumar Introduction.
Data Mining Cluster Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 8 Introduction to Data Mining by Tan, Steinbach, Kumar 10/30/2007.
Data Mining Cluster Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 8 Introduction to Data Mining by Minqi Zhou Minqi Zhou Introduction.
Computational Biology Clustering Parts taken from Introduction to Data Mining by Tan, Steinbach, Kumar Lecture Slides Week 9.
Data Mining Cluster Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 8 Introduction to Data Mining by Tan, Steinbach, Kumar © Tan,Steinbach,
Data Mining Cluster Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 8 Introduction to Data Mining by Minqi Zhou © Tan,Steinbach, Kumar.
Data Mining Cluster Analysis: Basic Concepts and Algorithms.
Data Mining Cluster Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 8 Introduction to Data Mining by Tan, Steinbach, Kumar © Tan,Steinbach,
Clustering/Cluster Analysis. What is Cluster Analysis? l Finding groups of objects such that the objects in a group will be similar (or related) to one.
Data Mining Cluster Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 8 Introduction to Data Mining by Tan, Steinbach, Kumar © Tan,Steinbach,
Data Mining Cluster Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 8 Introduction to Data Mining by Tan, Steinbach, Kumar © Tan,Steinbach,
DATA MINING: CLUSTER ANALYSIS (3) Instructor: Dr. Chun Yu School of Statistics Jiangxi University of Finance and Economics Fall 2015.
CSE4334/5334 Data Mining Clustering. What is Cluster Analysis? Finding groups of objects such that the objects in a group will be similar (or related)
Data Mining Cluster Analysis: Basic Concepts and Algorithms.
Clustering. What is Clustering? Unsupervised learning Seeks to organize data into “reasonable” groups Often based on some similarity (or distance) measure.
Data Mining Cluster Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 8 Introduction to Data Mining by Tan, Steinbach, Kumar © Tan,Steinbach,
Cluster Validity For supervised classification we have a variety of measures to evaluate how good our model is Accuracy, precision, recall For cluster.
Data Mining Cluster Analysis: Basic Concepts and Algorithms
Data Mining Cluster Analysis: Basic Concepts and Algorithms
Hierarchical Clustering: Time and Space requirements
Clustering 28/03/2016 A diák alatti jegyzetszöveget írta: Balogh Tamás Péter.
Clustering Techniques for Finding Patterns in Large Amounts of Biological Data Michael Steinbach Department of Computer Science
What Is the Problem of the K-Means Method?
CSE 5243 Intro. to Data Mining
Cluster Analysis: Basic Concepts and Algorithms
Clustering Evaluation The EM Algorithm
Data Mining Cluster Analysis: Basic Concepts and Algorithms
CSE 4705 Artificial Intelligence
Data Mining Cluster Techniques: Basic
Data Mining Cluster Analysis: Basic Concepts and Algorithms
Data Mining Cluster Analysis: Basic Concepts and Algorithms
Critical Issues with Respect to Clustering
Clustering 23/03/2016 A diák alatti jegyzetszöveget írta: Balogh Tamás Péter.
Computational BioMedical Informatics
Data Mining Cluster Analysis: Basic Concepts and Algorithms
Clustering Analysis.
Data Mining Cluster Analysis: Basic Concepts and Algorithms
Data Mining Cluster Analysis: Basic Concepts and Algorithms
Cluster Validity For supervised classification we have a variety of measures to evaluate how good our model is Accuracy, precision, recall For cluster.
Data Mining Cluster Analysis: Basic Concepts and Algorithms
Data Mining Cluster Analysis: Basic Concepts and Algorithms
Data Mining Cluster Analysis: Basic Concepts and Algorithms
Data Mining Cluster Analysis: Basic Concepts and Algorithms
Data Mining Cluster Analysis: Basic Concepts and Algorithms
Data Mining Cluster Analysis: Basic Concepts and Algorithms
Presentation transcript:

Lecture 20: Cluster Validation CSE 881: Data Mining Lecture 20: Cluster Validation

Cluster Validity For supervised classification we have a variety of measures to evaluate how good our model is Accuracy, precision, recall For cluster analysis, the analogous question is how to evaluate the “goodness” of the resulting clusters? But “clusters are in the eye of the beholder”! Then why do we want to evaluate them? To avoid finding patterns in noise To compare clustering algorithms To compare two sets of clusters To compare two clusters

Clusters found in Random Data DBSCAN Random Points K-means Complete Link

Measures of Cluster Validity Internal Index (Unsupervised): Used to measure the goodness of a clustering structure without respect to external information. Sum of Squared Error (SSE) External Index (Supervised): Used to measure the extent to which cluster labels match externally supplied class labels. Entropy Relative Index: Used to compare two different clusterings or clusters. Often an external or internal index is used for this function, e.g., SSE or entropy

Unsupervised Cluster Validation Cluster Evaluation based on Proximity Matrix Correlation between proximity and incidence matrices Visualize proximity matrix Cluster Evaluation based on Cohesion and Separation

Measuring Cluster Validity Via Correlation Two matrices Proximity Matrix “Incidence” Matrix One row and one column for each data point An entry is 1 if the associated pair of points belong to the same cluster An entry is 0 if the associated pair of points belongs to different clusters Compute the correlation between proximity and incidence matrices Since the matrices are symmetric, only the correlation between n(n-1) / 2 entries needs to be calculated. High correlation indicates that points that belong to the same cluster are close to each other. Not a good measure for some density or contiguity based clusters

Measuring Cluster Validity Via Correlation Correlation of incidence and proximity matrices for the K-means clusterings of the following two data sets. Corr = -0.9235 Corr = -0.5810

Using Similarity Matrix for Cluster Validation Order the similarity matrix with respect to cluster labels and inspect visually

Using Similarity Matrix for Cluster Validation Clusters in random data are not so crisp DBSCAN

Using Similarity Matrix for Cluster Validation Clusters in random data are not so crisp K-means

Using Similarity Matrix for Cluster Validation Clusters in random data are not so crisp Complete Link

Using Similarity Matrix for Cluster Validation DBSCAN

Internal Measures: SSE Internal Index: Used to measure the goodness of a clustering structure without respect to external information SSE SSE is good for comparing two clusterings or two clusters (average SSE). Can also be used to estimate the number of clusters

Internal Measures: SSE SSE curve for a more complicated data set SSE of clusters found using K-means

Unsupervised Cluster Validity Measure More generally, given K clusters: Validity(Ci): a function of cohesion, separation, or both Weight wi associated with each cluster I For SSE: wi = 1 validity(Ci) =

Internal Measures: Cohesion and Separation Cluster Cohesion: Measures how closely related are objects in a cluster Cluster Separation: Measure how distinct or well-separated a cluster is from other clusters

Graph-based versus Prototype-based Views

Graph-based View Cluster Cohesion: Measures how closely related are objects in a cluster Cluster Separation: Measure how distinct or well-separated a cluster is from other clusters

Prototype-Based View Cluster Cohesion: Cluster Separation: Equivalent to SSE if proximity is square of Euclidean distance Cluster Separation:

Unsupervised Cluster Validity Measures

Prototype-based vs Graph-based Cohesion For SSE and points in Euclidean space, it can be shown that average pairwise difference between points in a cluster is equivalent to SSE of the cluster

Total Sum of Squares (TSS) c: overall mean ci: centroid of each cluster Ci mi: number of points in cluster Ci c c1 c2 c3

Total Sum of Squares (TSS)    1 m1 2 3 4 m2 5 K=1 cluster: K=2 clusters: TSS = SSE + SSB

Total Sum of Squares (TSS) TSS = SSE + SSB Given a data set, TSS is fixed A clustering with large SSE has small SSB, while one with small SSE has large SSB Goal is to minimize SSE and maximize SSB

Internal Measures: Silhouette Coefficient Silhouette Coefficient combine ideas of both cohesion and separation, but for individual points, as well as clusters and clusterings For an individual point, i Calculate a = average distance of i to the points in its cluster Calculate b = min (average distance of i to points in another cluster) The silhouette coefficient for a point is then given by s = 1 – a/b if a < b, (or s = b/a - 1 if a  b, not the usual case) Typically between 0 and 1. The closer to 1 the better. Can calculate the Average Silhouette width for a cluster or a clustering

Unsupervised Evaluation of Hierarchical Clustering Distance Matrix: Single Link

Unsupervised Evaluation of Hierarchical Clustering CPCC (CoPhenetic Correlation Coefficient) Correlation between original distance matrix and cophenetic distance matrix Cophenetic Distance Matrix for Single Link Single Link

Unsupervised Evaluation of Hierarchical Clustering Single Link Complete Link

Supervised Cluster Validation: Entropy and Purity

Supervised Cluster Validation: Precision and Recall Precision for cluster i w.r.t. class j = Recall for cluster i w.r.t. class j = Cluster i mi1: class 1 mi2: class 2 Overall Data m1: class 1 m2: class 2

Supervised Cluster Validation: Hierarchical Clustering Hierarchical F-measure:

Framework for Cluster Validity Need a framework to interpret any measure. For example, if our measure of evaluation has the value, 10, is that good, fair, or poor? Statistics provide a framework for cluster validity The more “atypical” a clustering result is, the more likely it represents valid structure in the data Can compare the values of an index that result from random data or clusterings to those of a clustering result. If the value of the index is unlikely, then the cluster results are valid For comparing the results of two different sets of cluster analyses, a framework is less necessary. However, there is the question of whether the difference between two index values is significant

Statistical Framework for SSE Example: 2-d data with 100 points Suppose a clustering algorithm produces SSE = 0.005 Does it mean that the clusters are statistically significant?

Statistical Framework for SSE Generate 500 sets of random data points of size 100 distributed over the range 0.2 – 0.8 for x and y values Perform clustering with k = 3 clusters for each data set Plot histogram of SSE (compare with the value 0.005)

Statistical Framework for Correlation Correlation of incidence and proximity matrices for the K-means clusterings of the following two data sets. Corr = -0.9235 (statistically significant) Corr = -0.5810 (not statistically significant)

Final Comment on Cluster Validity “The validation of clustering structures is the most difficult and frustrating part of cluster analysis. Without a strong effort in this direction, cluster analysis will remain a black art accessible only to those true believers who have experience and great courage.” Algorithms for Clustering Data, Jain and Dubes