Data Mining Cluster Analysis: Basic Concepts and Algorithms. Lecture Notes for Chapter 8. Introduction to Data Mining



Similar documents
Data Mining Clustering (2) Sheets are based on the those provided by Tan, Steinbach, and Kumar. Introduction to Data Mining

Data Mining Cluster Analysis: Basic Concepts and Algorithms. Clustering Algorithms. Lecture Notes for Chapter 8. Introduction to Data Mining

Data Mining Cluster Analysis: Basic Concepts and Algorithms. Lecture Notes for Chapter 8. Introduction to Data Mining

DATA MINING CLUSTER ANALYSIS: BASIC CONCEPTS

Clustering. Adrian Groza. Department of Computer Science Technical University of Cluj-Napoca

Data Mining Cluster Analysis: Basic Concepts and Algorithms. Lecture Notes for Chapter 8. Introduction to Data Mining

Example: Document Clustering. Clustering: Definition. Notion of a Cluster can be Ambiguous. Types of Clusterings. Hierarchical Clustering

Clustering UE 141 Spring 2013

For supervised classification we have a variety of measures to evaluate how good our model is Accuracy, precision, recall

Cluster Analysis. Alison Merikangas Data Analysis Seminar 18 November 2009

Clustering. Data Mining. Abraham Otero. Data Mining. Agenda

Data Mining Cluster Analysis: Basic Concepts and Algorithms. Lecture Notes for Chapter 8. Introduction to Data Mining

Data Mining Cluster Analysis: Advanced Concepts and Algorithms. Lecture Notes for Chapter 9. Introduction to Data Mining

Data Mining Cluster Analysis: Advanced Concepts and Algorithms. Lecture Notes for Chapter 9. Introduction to Data Mining

Cluster Analysis: Advanced Concepts

K-Means Cluster Analysis. Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 1

Cluster Analysis: Basic Concepts and Algorithms

Data Mining. Cluster Analysis: Advanced Concepts and Algorithms

Clustering. Danilo Croce Web Mining & Retrieval a.a. 2015/201 16/03/2016

Unsupervised learning: Clustering

Cluster Analysis: Basic Concepts and Algorithms

Cluster Analysis. Isabel M. Rodrigues. Lisboa, Instituto Superior Técnico

An Introduction to Cluster Analysis for Data Mining

Data Mining Project Report. Document Clustering. Meryem Uzun-Per

SoSe 2014: M-TANI: Big Data Analytics

There are a number of different methods that can be used to carry out a cluster analysis; these methods can be classified as follows:

Cluster Analysis using R

Hierarchical Cluster Analysis Some Basics and Algorithms

Summary Data Mining & Process Mining (1BM46) Content. Made by S.P.T. Ariesen

. Learn the number of classes and the structure of each class using similarity between unlabeled training patterns

SPECIAL PERTURBATIONS UNCORRELATED TRACK PROCESSING

Chapter 7. Cluster Analysis

How To Cluster

0.1 What is Cluster Analysis?

Steven M. Ho!and. Department of Geology, University of Georgia, Athens, GA

Clustering Artificial Intelligence Henry Lin. Organizing data into clusters such that there is

Neural Networks Lesson 5 - Cluster Analysis

Cluster Analysis Overview. Data Mining Techniques: Cluster Analysis. What is Cluster Analysis? What is Cluster Analysis?

Hadoop SNS. renren.com. Saturday, December 3, 11

BIRCH: An Efficient Data Clustering Method For Very Large Databases

Territorial Analysis for Ratemaking. Philip Begher, Dario Biasini, Filip Branitchev, David Graham, Erik McCracken, Rachel Rogers and Alex Takacs

Performance Metrics for Graph Mining Tasks

Chapter ML:XI (continued)

PERFORMANCE ANALYSIS OF CLUSTERING ALGORITHMS IN DATA MINING IN WEKA

A comparison of various clustering methods and algorithms in data mining

OUTLIER ANALYSIS. Data Mining 1

Introduction to Clustering

Distances, Clustering, and Classification. Heatmaps

ARTIFICIAL INTELLIGENCE (CSCU9YE) LECTURE 6: MACHINE LEARNING 2: UNSUPERVISED LEARNING (CLUSTERING)

A Cluster Analysis Approach for Banks Risk Profile: The Romanian Evidence

Clustering & Visualization

Information Retrieval and Web Search Engines

CLASSIFYING SERVICES USING A BINARY VECTOR CLUSTERING ALGORITHM: PRELIMINARY RESULTS

Unsupervised Learning and Data Mining. Unsupervised Learning and Data Mining. Clustering. Supervised Learning. Supervised Learning

Linköpings Universitet - ITN TNM DBSCAN. A Density-Based Spatial Clustering of Application with Noise

CLUSTER ANALYSIS FOR SEGMENTATION

Cluster analysis Cosmin Lazar. COMO Lab VUB

Cluster Analysis: Basic Concepts and Methods

2 Basic Concepts and Techniques of Cluster Analysis

UNSUPERVISED MACHINE LEARNING TECHNIQUES IN GENOMICS

Concept of Cluster Analysis

Data Mining: Exploring Data. Lecture Notes for Chapter 3. Introduction to Data Mining

Visualizing non-hierarchical and hierarchical cluster analyses with clustergrams

MULTIPLE-OBJECTIVE DECISION MAKING TECHNIQUE Analytical Hierarchy Process

Comparison and Analysis of Various Clustering Methods in Data mining On Education data set Using the weak tool

How To Solve The Cluster Algorithm

A Comparative Study of clustering algorithms Using weka tools

Personalized Hierarchical Clustering

Forschungskolleg Data Analytics Methods and Techniques

Didacticiel Études de cas

COC131 Data Mining - Clustering

USING THE AGGLOMERATIVE METHOD OF HIERARCHICAL CLUSTERING AS A DATA MINING TOOL IN CAPITAL MARKET 1. Vera Marinova Boncheva

Movie Classification Using k-means and Hierarchical Clustering

Environmental Remote Sensing GEOG 2021

Categorical Data Visualization and Clustering Using Subjective Factors

CLUSTER ANALYSIS. Kingdom Phylum Subphylum Class Order Family Genus Species. In economics, cluster analysis can be used for data mining.

CONTENTS PREFACE 1 INTRODUCTION 1 2 DATA VISUALIZATION 19

Decision Support System Methodology Using a Visual Approach for Cluster Analysis Problems

Data Mining: Algorithms and Applications Matrix Math Review

STATISTICA. Clustering Techniques. Case Study: Defining Clusters of Shopping Center Patrons. and

Using multiple models: Bagging, Boosting, Ensembles, Forests

DHL Data Mining Project. Customer Segmentation with Clustering

Distances between Clustering, Hierarchical Clustering

Medical Information Management & Mining. You Chen Jan,15, 2013 You.chen@vanderbilt.edu

KNIME TUTORIAL. Anna Monreale KDD-Lab, University of Pisa

Time series clustering and the analysis of film style

Data Mining and Visualization

Statistical Databases and Registers with some datamining

Data Clustering Techniques Qualifying Oral Examination Paper

Machine Learning using MapReduce

FUZZY CLUSTERING ANALYSIS OF DATA MINING: APPLICATION TO AN ACCIDENT MINING SYSTEM

Classifying Large Data Sets Using SVMs with Hierarchical Clusters. Presented by :Limou Wang

They can be obtained in HQJHQH format directly from the home page at:

On Clustering Validation Techniques

Data Mining and Knowledge Discovery in Databases (KDD) State of the Art. Prof. Dr. T. Nouri Computer Science Department FHNW Switzerland

A successful market segmentation initiative answers the following critical business questions: * How can we a. Customer Status.

CI6227: Data Mining. Lesson 11b: Ensemble Learning. Data Analytics Department, Institute for Infocomm Research, A*STAR, Singapore.

Unsupervised Data Mining (Clustering)

Social Media Mining. Data Mining Essentials

Transcription:

Data Mining Cluster Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 8 Introduction to Data Mining by Tan, Steinbach, Kumar Tan,Steinbach, Kumar Introduction to Data Mining 4/8/2004

Hierarchical Clustering Produces a set of nested clusters organized as a hierarchical tree Can be visualized as a dendrogram A tree like diagram that records the sequences of merges or splits 6 5 0.2 0.5 0. 4 3 4 2 5 2 0.05 3 0 3 2 5 4 6

Strengths of Hierarchical Clustering 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 They may correspond to meaningful taxonomies Example in biological sciences (e g animal kingdom Example in biological sciences (e.g., animal kingdom, phylogeny reconstruction, )

Hierarchical Clustering Hierarchical clustering is most frequently performed in an agglomerative manner Start with the points as individual clusters At each step, merge the closest pair of clusters until only one cluster (or k custe clusters) s) left Traditional hierarchical algorithms use a similarity or distance matrix Merge or split one cluster at a time

Agglomerative Clustering Algorithm Most popular hierarchical clustering technique Basic algorithm is straightforward. Compute the proximity (distance) 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 Key operation is the computation of the proximity of two clusters Different approaches to defining the distance between clusters distinguish i the different algorithms

Starting Situation Start with clusters of individual points and a proximity matrix p p2 p3 p4 p5.. p p2 p3 p4 p5.... Proximity Matrix

Intermediate Situation After some merging steps, we have some clusters C C2 C C2 C3 C4 C5 C C3 C4 C3 C4 C5 Proximity Matrix C2 C5

Intermediate Situation We want to merge the two closest clusters (C2 and C5) and update the proximity matrix. C C2 C C2 C3 C4 C5 C C3 C4 C3 C4 C5 Proximity Matrix C2 C5

After Merging The question is How do we update the proximity matrix? C2 U C C5 C3 C4 C? C3 C4 C2 U C5 C3 C4?????? C Proximity Matrix C2 U C5

How to Define Inter-Cluster Similarity p p2 p3 p4 p5... Similarity? p p2 p3 p4 MIN. MAX. Group Average. Distance Between Centroids Other methods driven by an objective function Ward s Method uses squared error p5 Proximity Matrix

How to Define Inter-Cluster Similarity p p2 p3 p4 p p2 p3 p4 p5... MIN. MAX. Group Average. Distance Between Centroids Other methods driven by an objective function Ward s Method uses squared error p5 Proximity Matrix

How to Define Inter-Cluster Similarity p p2 p3 p4 p p2 p3 p4 p5... MIN. MAX. Group Average. Distance Between Centroids Other methods driven by an objective function Ward s Method uses squared error p5 Proximity Matrix

How to Define Inter-Cluster Similarity p p2 p3 p4 p p2 p3 p4 p5... MIN. MAX. Group Average. Distance Between Centroids Other methods driven by an objective function Ward s Method uses squared error p5 Proximity Matrix

How to Define Inter-Cluster Similarity p p p2 p3 p4 p5... p2 p3 p4 MIN. MAX. Group Average. Distance Between Centroids Other methods driven by an objective function Ward s method uses squared error p5 Proximity Matrix

Cluster Similarity: MIN or Single Link Similarity of two clusters is based on the two most similar (closest) points in the different clusters Determined by one pair of points, i.e., by one link in the proximity graph. I I2 I3 I4 I5 I.00 0.90 0.0 0.65 0.20 I2 0.90.00 0.70 0.60 0.50 I3 0.0 0.70.00 0.40 0.30 I4 0.65 0.60 0.40.00 0.80 I5 020 0.20 050 0.50 030 0.30 080 0.80 00.00 2 3 4 5

Hierarchical Clustering: MIN 3 5 5 2 2 3 6 0.2 0.5 0. 0.05 4 4 0 3 6 2 5 4 Nested Clusters Dendrogram

Strength of MIN Original Points Two Clusters Can handle non-elliptical shapes

Limitations of MIN Original Points Two Clusters Sensitive to noise and outliers

Cluster Similarity: MAX or Complete Linkage Similarity of two clusters is based on the two least similar (most distant) points in the different clusters Determined by all pairs of points in the two clusters I I2 I3 I4 I5 I.00 0.90 0.0 0.65 0.20 I2 0.90.00 0.70 0.60 0.50 I3 00 0.0 0.700 00.00 040 0.40 030 0.30 I4 0.65 0.60 0.40.00 0.80 I5 020 0.20 050 0.50 030 0.30 080 0.80 00.00 2 3 4 5

Hierarchical Clustering: MAX 4 5 2 5 2 0.4 0.35 03 0.3 0.25 3 4 3 6 0.2 0.5 0. 0.05 0 3 6 4 2 5 Nested Clusters Dendrogram

Strength of MAX Original Points Two Clusters Less susceptible to noise and outliers

Limitations of MAX Original Points Two Clusters Tends to break large clusters Biased towards globular clusters

Cluster Similarity: Group Average Proximity of two clusters is the average of pairwise proximity between points in the two clusters. pi Clusteri p Cluster proximity(p,p j j proximity(clusteri,clusterj) = Cluster Cluster Need to use average connectivity for scalability since total proximity favors large clusters I I2 I3 I4 I5 I.00 0.90 0.0 0.65 0.20 I2 090 0.90 00.00 070 0.70 060 0.60 050 0.50 I3 0.0 0.70.00 0.40 0.30 I4 0.65 0.60 0.40.00 0.80 I5 0.20 0.50 0.30 0.80.00 2 3 4 5 i i j j )

Hierarchical Clustering: Group Average 5 4 5 2 2 4 3 3 6 0.25 0.2 0.5 0. 0.05 0 3 6 4 2 5 Nested Clusters Dendrogram

Hierarchical Clustering: Group Average Compromise between Single and Complete Link Strengthsth Less susceptible to noise and outliers Limitations Biased towards globular clusters

Cluster Similarity: Ward s Method Similarity of two clusters is based on the increase in squared error when two clusters are merged Similar to group average if distance between points is distance squared Less susceptible to noise and outliers Biased towards globular clusters Hierarchical analogue of K-means Can be used to initialize K-means

Hierarchical Clustering: Comparison 2 5 4 5 3 5 MIN MAX 2 3 5 6 3 2 3 5 6 2 4 4 4 Ward s Method 2 5 2 5 4 2 5 2 5 Group Average 2 3 4 6 3 3 4 6 3 4 3

Hierarchical Clustering: Problems and Limitations Once a decision is made to combine two clusters, it cannot be undone No objective function is directly minimized Different schemes have problems with one or more of fthe following: Sensitivity to noise and outliers Difficulty handling different sized clusters and convex shapes Breaking large clusters

Cluster Validity For supervised classification we have a variety of measures to evaluate how good our model is Accuracy, sensitivity, specificity... 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 gpatterns in noise To compare clustering algorithms To compare two sets of clusters To compare two clusters

Clusters found in Random Data 0.9 0.9 0.8 0.8 Random Points y 0.7 0.6 0.5 0.4 0.3 y 0.7 0.6 0.5 0.4 0.3 DBSCAN (densitybased) 0.2 0.2 0. 0. 0 0 0.2 0.4 0.6 0.8 x 0 0 0.2 0.4 0.6 0.8 x 0.9 0.9 K-means 0.8 0.7 0.6 0.8 0.7 0.6 Complete Link y 0.5 y 0.5 0.4 0.4 0.3 0.3 0.2 0.2 0 0. 0 0. 0 0 0.2 0.4 0.6 0.8 x 0 0 0.2 0.4 0.6 0.8 x

Different Aspects of Cluster Validation. Determining the clustering tendency of a set of data, i.e., distinguishing whether non-random structure actually exists in the data. 2. Comparing the results of a cluster analysis to externally known results, e.g., to externally given class labels. 3. Evaluating how well the results of a cluster analysis fit the data without reference to external information. - Use only the data 4. Comparing the results of two different sets of cluster analyses to determine which is better. 5. Determining the correct number of clusters. For 2, 3, and 4, we can further distinguish whether we want to evaluate the entire clustering or just individual clusters.

Measures of Cluster Validity Numerical measures that are applied to judge various aspects of cluster validity, are classified into the following three types. External Index: Used to measure the extent to which cluster labels match externally supplied class labels. Entropy Internal Index: Used to measure the goodness of a clustering structure without respect to external information. Sum of Squared Error (SSE) 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 Sometimes these are referred to as criteria instead of indices However, sometimes criterion is the general strategy and index is the numerical measure that implements the criterion.

Measuring Cluster Validity Via Correlation Two matrices Proximity Matrix Incidence Matrix One row and one column for each data point An entry is 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 the two matrices Since the matrices are symmetric, only the correlation between n(n-) / 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. y 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0 0. 0 0 0.2 0.4 0.6 0.8 x y 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0 0. 0 0 0.2 0.4 0.6 0.8 x Corr = -0.9235 Corr = -0.580

Using Similarity Matrix for Cluster Validation Order the similarity matrix with respect to cluster labels and inspect visually. y 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0. 0 0 0.2 0.4 0.6 0.8 x Points 0 20 0.9 08 0.8 30 0.7 40 0.6 50 0.5 60 0.4 70 0.3 80 0.2 90 0. 00 20 40 60 80 00Similarity 0 Points

Using Similarity Matrix for Cluster Validation Clusters in random data are not so crisp 0 20 0.9 0.8 0.9 0.8 30 07 0.7 07 0.7 Points 40 50 60 0.6 0.5 0.4 y 0.6 0.5 0.4 70 0.3 0.3 80 90 00 20 40 60 80 00Similarity 0 Points 0.2 0. 0.2 0. 0 0 0.2 0.4 0.6 0.8 x DBSCAN

Using Similarity Matrix for Cluster Validation Clusters in random data are not so crisp 0 20 0.9 0.8 0.9 0.8 30 0.7 0.7 Points 40 50 60 0.6 0.5 0.4 y 0.6 0.5 0.4 70 0.3 0.3 80 90 00 20 40 60 80 00Similarity 0 Points 0.2 0. 0.2 0. 0 0 0.2 0.4 0.6 0.8 x K-means

Using Similarity Matrix for Cluster Validation Clusters in random data are not so crisp 0 20 0.9 0.8 0.9 0.8 30 07 0.7 07 0.7 Points 40 50 60 0.6 0.5 0.4 y 0.6 0.5 0.4 70 0.3 0.3 80 90 00 20 40 60 80 00Similarity 0 Points 0.2 0. 0.2 0. 0 0 0.2 0.4 0.6 0.8 x Complete Link

Using Similarity Matrix for Cluster Validation 0.9 2 6 4 3 500 000 500 0.8 0.7 0.6 0.5 0.4 2000 0.3 5 2500 02 0.2 7 3000 500 000 500 2000 2500 3000 0. 0 DBSCAN

Internal Measures: SSE Clusters in more complicated figures aren t well separated 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 0 6 4 9 8 7 2 6 0-2 SSE 5 4 3-4 2-6 5 0 5 0 2 5 0 5 20 25 30 K

Internal Measures: SSE SSE curve for a more complicated data set 2 6 4 3 5 7 SSE of clusters found using K-means