Cluster Analysis: Basic Concepts and Algorithms



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

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

Data Mining Cluster Analysis: Basic Concepts and 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. Clustering Algorithms. Lecture Notes for Chapter 8. Introduction to Data Mining

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

Cluster Analysis: Basic Concepts and Algorithms

Clustering UE 141 Spring 2013

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

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

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

Unsupervised learning: Clustering

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

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

Chapter 7. Cluster Analysis

Cluster Analysis: Advanced Concepts

Cluster Analysis. Alison Merikangas Data Analysis Seminar 18 November 2009

An Introduction to Cluster Analysis for Data Mining

Data Mining. Cluster Analysis: Advanced Concepts and Algorithms

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

Information Retrieval and Web Search Engines

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

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

How To Cluster

Clustering. Clustering. What is Clustering? What is Clustering? What is Clustering? Types of Data in Cluster Analysis

UNSUPERVISED MACHINE LEARNING TECHNIQUES IN GENOMICS

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

PERFORMANCE ANALYSIS OF CLUSTERING ALGORITHMS IN DATA MINING IN WEKA

Neural Networks Lesson 5 - Cluster Analysis

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

A Survey of Clustering Techniques

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

Cluster Analysis: Basic Concepts and Methods

Using Data Mining for Mobile Communication Clustering and Characterization

Social Media Mining. Data Mining Essentials

Distances, Clustering, and Classification. Heatmaps

Unsupervised Data Mining (Clustering)

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

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

Machine Learning using MapReduce

An Analysis on Density Based Clustering of Multi Dimensional Spatial Data

Statistical Databases and Registers with some datamining

Clustering Connectionist and Statistical Language Processing

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

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

Data Mining 資 料 探 勘. 分 群 分 析 (Cluster Analysis)

SoSe 2014: M-TANI: Big Data Analytics

Data Mining K-Clustering Problem

Chapter ML:XI (continued)

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

Introduction to Clustering

A comparison of various clustering methods and algorithms in data mining

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

Clustering. Chapter Introduction to Clustering Techniques Points, Spaces, and Distances

Clustering Techniques: A Brief Survey of Different Clustering Algorithms

BIRCH: An Efficient Data Clustering Method For Very Large Databases

Cross-validation for detecting and preventing overfitting

HES-SO Master of Science in Engineering. Clustering. Prof. Laura Elena Raileanu HES-SO Yverdon-les-Bains (HEIG-VD)

Data Mining. 1 Introduction 2 Data Mining methods. Alfred Holl Data Mining 1

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

Comparative Analysis of EM Clustering Algorithm and Density Based Clustering Algorithm Using WEKA tool.

Index Contents Page No. Introduction . Data Mining & Knowledge Discovery

Clustering methods for Big data analysis

K-Means Clustering Tutorial

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

Cluster Analysis using R

Classification Techniques (1)

Cluster analysis Cosmin Lazar. COMO Lab VUB

ANALYSIS OF VARIOUS CLUSTERING ALGORITHMS OF DATA MINING ON HEALTH INFORMATICS

Hierarchical Cluster Analysis Some Basics and Algorithms

Personalized Hierarchical Clustering

Standardization and Its Effects on K-Means Clustering Algorithm

On Clustering Validation Techniques

K-means Clustering Technique on Search Engine Dataset using Data Mining Tool

not possible or was possible at a high cost for collecting the data.

A Comparative Study of clustering algorithms Using weka tools

Data Clustering Techniques Qualifying Oral Examination Paper

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

Data Mining for Knowledge Management. Clustering

Cluster analysis with SPSS: K-Means Cluster Analysis

Clustering Data Streams

Client Based Power Iteration Clustering Algorithm to Reduce Dimensionality in Big Data

CLUSTER ANALYSIS FOR SEGMENTATION

ANALYSIS & PREDICTION OF SALES DATA IN SAP- ERP SYSTEM USING CLUSTERING ALGORITHMS

DATA MINING USING INTEGRATION OF CLUSTERING AND DECISION TREE

Use of Data Mining Techniques to Improve the Effectiveness of Sales and Marketing

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

IMPROVISATION OF STUDYING COMPUTER BY CLUSTER STRATEGIES

A Relevant Document Information Clustering Algorithm for Web Search Engine

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

Solving Quadratic Equations by Graphing. Consider an equation of the form. y ax 2 bx c a 0. In an equation of the form

Data Mining Process Using Clustering: A Survey

Comparision of k-means and k-medoids Clustering Algorithms for Big Data Using MapReduce Techniques

The Big Picture. Correlation. Scatter Plots. Data

OUTLIER ANALYSIS. Data Mining 1

Transcription:

Cluster Analsis: Basic Concepts and Algorithms What does it mean clustering? Applications Tpes of clustering K-means Intuition Algorithm Choosing initial centroids Bisecting K-means Post-processing Strengths and weaknesses What s net? Sections., 8., 8. of course book TNM: Introduction to Data Mining What is Cluster Analsis? 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 Intra-cluster distances are minimized Inter-cluster distances are maimized TNM: Introduction to Data Mining

Applications of Cluster Analsis Understanding Group related documents for browsing, group genes and proteins that have similar functionalit, or group stocks with similar price fluctuations Summarization Reduce the size of large data sets Discovered Clusters Applied-Matl-DOWN,Ba-Network-Down,-COM-DOWN, Cabletron-Ss-DOWN,CISCO-DOWN,HP-DOWN, DSC-Comm-DOWN,INTEL-DOWN,LSI-Logic-DOWN, Micron-Tech-DOWN,Teas-Inst-Down,Tellabs-Inc-Down, Natl-Semiconduct-DOWN,Oracl-DOWN,SGI-DOWN, Sun-DOWN Apple-Comp-DOWN,Autodesk-DOWN,DEC-DOWN, ADV-Micro-Device-DOWN,Andrew-Corp-DOWN, Computer-Assoc-DOWN,Circuit-Cit-DOWN, Compaq-DOWN, EMC-Corp-DOWN, Gen-Inst-DOWN, Motorola-DOWN,Microsoft-DOWN,Scientific-Atl-DOWN Fannie-Mae-DOWN,Fed-Home-Loan-DOWN, MBNA-Corp-DOWN,Morgan-Stanle-DOWN Baker-Hughes-UP,Dresser-Inds-UP,Halliburton-HLD-UP, Louisiana-Land-UP,Phillips-Petro-UP,Unocal-UP, Schlumberger-UP Industr Group Technolog-DOWN Technolog-DOWN Financial-DOWN Oil-UP Clustering precipitation in Australia TNM: Introduction to Data Mining What is not Cluster Analsis? Supervised classification Have class label information Simple segmentation Dividing students into different registration groups alphabeticall, b last name Results of a quer Groupings are a result of an eternal specification SELECT dept, division, AVG(salar) FROM Table GROUP BY dept, division TNM: Introduction to Data Mining

Eample: Churn problem Problem: Predict whether a customer is like to churn Attributes: international plan, voice mail, number of voice mail messages, total da minutes, total evening minutes, Class attribute: Churn (es, no) Model : build a classifier that predicts Churn attribute in terms of the other attributes E.g. decision trees, rule based classifiers TNM: Introduction to Data Mining 5 Churn Problem with Data Segmentation Model : Segment the customers in order to get groups of customers with similar use of compan services Use clustering a new attribute Cluster is added to each record indicating its cluster In Weka, ou can get class to clusters evaluation Describe the clusters: set the class attribute to Cluster and build a classifier that predicts the cluster in terms of the other attributes (do not use Churn) Use the data enriched with the Cluster attribute to build a classifier predicting Churn Do we get a better classifier than in Model? TNM: Introduction to Data Mining 6

Weka: Class to clusters evaluation Attribute Full Data C = C = C = () () (9) (9) =============================================================== Inter Plan no no no no no ( 9%) 7 ( 9%) 6 ( 89%) 8 ( 9%) es ( 9%) ( 8%) 7 ( %) 9 ( 9%) VoiceMail Plan no no no es es 9 ( 7%) ( %) ( %) 9 (%) no ( 7%) (%) 9 (%) ( %) No of Vmail Mesgs.588.57 +/-.68 +/- +/- +/-.8 Median Standard deviation TNM: Introduction to Data Mining 7 Notion of a Cluster can be Ambiguous How man clusters? Si Clusters Two Clusters Four Clusters TNM: Introduction to Data Mining 8

Tpes of Clusterings A clustering is a set of clusters Important distinction between hierarchical and partitional sets of clusters Partitional Clustering A division data objects into non-overlapping subsets (clusters) such that each data object is in eactl one subset Hierarchical clustering A set of nested clusters organized as a hierarchical tree TNM: Introduction to Data Mining 9 Partitional Clustering Original Points A Partitional Clustering TNM: Introduction to Data Mining

Hierarchical Clustering p p p p p p p p Hierarchical Clustering Dendrogram p p p p p p p p Hierarchical Clustering Dendrogram TNM: Introduction to Data Mining How to Define a Cluster But, what is a cluster? There are different was to answer to this question TNM: Introduction to Data Mining

Tpes of Clusters: Center-Based Center-based A cluster is a set of objects such that an object in a cluster is closer (more similar) to the center of its cluster, than to the center of an 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 center-based clusters TNM: Introduction to Data Mining Tpes of Clusters: Densit-Based Densit-based A cluster is a dense region of points, which is separated b lowdensit regions, from other regions of high densit. Used when the clusters are irregular or intertwined, and when noise and outliers are present. 6 densit-based clusters TNM: Introduction to Data Mining

Clustering Algorithms K-means and its variants K-means is available in Weka Parameters: Distance function (e.g. Euclidian, Manhattan) and number of clusters Hierarchical clustering Densit-based clustering (DBSCAN) Available in Weka TNM: Introduction to Data Mining 5 K-means: intuition. Select K= initial centroids (seeds). K = number of clusters K is a user-specified parameter TNM: Introduction to Data Mining 6

K-means: intuition. Select K= initial centroids (seeds).. Assign data points to the closest seed. Recompute the centroids of each cluster. Reassign data points to the closest centroid. If no points are shifting from one cluster to another (centroids do not change) then STOP. TNM: Introduction to Data Mining 7 Clustering and Objective Functions Clusters defined b an objective function Finds clusters that minimize (or maimize) an objective function. Most common measure is Sum of Squared Error (SSE) For each point, the error is the distance to the nearest centroid To get SSE, we square these errors and sum them. is a data point in cluster C i and m i is the centroid for cluster C i can show that m i corresponds to the center (mean) of the cluster How to compute? Enumerate all possible was of dividing the points into clusters and evaluate the `goodness' of each potential set of clusters b using the given objective function. Not feasible : problem is NP Hard!!! TNM: Introduction to Data Mining 8

K-means Clustering Partitional clustering approach Each cluster is associated with a centroid (center point) Each point is assigned to the cluster with the closest centroid Number of clusters, K, must be specified The basic algorithm is ver simple TNM: Introduction to Data Mining 9 K-means Clustering Details Initial centroids are often chosen randoml Clusters produced var from one run to another. The centroid is (tpicall) the mean of the points in the cluster Closeness is measured b Euclidean distance, cosine similarit, correlation, etc K-means will converge for common similarit measures mentioned above Most of the convergence happens in the first few iterations Often the stopping condition is changed to Until relativel few points change clusters Compleit is O( n * K * d * I ) n = number of points, K = number of clusters, I = number of iterations, d = number of attributes TNM: Introduction to Data Mining

Getting K Right Tr different k, looking at the change in the average distance to centroid, as k increases. Average falls rapidl until right k, then changes little. Average distance to centroid k Best value of k TNM: Introduction to Data Mining Two different K-means Clusterings.5.5 Original Points.5 - -.5 - -.5.5.5.5.5.5.5.5.5 - -.5 - -.5.5.5 Optimal Clustering - -.5 - -.5.5.5 Sub-optimal Clustering TNM: Introduction to Data Mining

Importance of Choosing Initial Centroids Iteration 56.5.5.5 - -.5 - -.5.5.5 TNM: Introduction to Data Mining Importance of Choosing Initial Centroids Iteration Iteration Iteration.5.5.5.5.5.5.5.5.5 - -.5 - -.5.5.5 - -.5 - -.5.5.5 - -.5 - -.5.5.5 Iteration Iteration 5 Iteration 6.5.5.5.5.5.5.5.5.5 - -.5 - -.5.5.5 - -.5 - -.5.5.5 - -.5 - -.5.5.5 TNM: Introduction to Data Mining

Importance of Choosing Initial Centroids Iteration 5.5.5.5 - -.5 - -.5.5.5 TNM: Introduction to Data Mining 5 Importance of Choosing Initial Centroids Iteration Iteration.5.5.5.5.5.5 - -.5 - -.5.5.5 - -.5 - -.5.5.5 Iteration Iteration Iteration 5.5.5.5.5.5.5.5.5.5 - -.5 - -.5.5.5 - -.5 - -.5.5.5 - -.5 - -.5.5.5 TNM: Introduction to Data Mining 6

Clusters Eample 8 Iteration 6 - - -6 5 5 Starting with two initial centroids in one cluster of each pair of clusters TNM: Introduction to Data Mining 7 Clusters Eample 8 Iteration 8 Iteration 6 6 - - - - -6-6 5 5 Iteration 8 5 5 Iteration 8 6 6 - - - - -6-6 5 5 5 5 Starting with two initial centroids in one cluster of each pair of clusters TNM: Introduction to Data Mining 8

Clusters Eample 8 Iteration 6 - - -6 5 5 Starting with some pairs of clusters having three initial centroids, while other have onl one. TNM: Introduction to Data Mining 9 Clusters Eample 8 Iteration 8 Iteration 6 6 - - - - -6-6 5 5 Iteration 8 5 5 Iteration 8 6 6 - - - - -6-6 5 5 5 5 Starting with some pairs of clusters having three initial centroids, while other have onl one. TNM: Introduction to Data Mining

Solutions to Initial Centroids Problem Multiple runs Select the set of clusters with least SSE Ma not help! Select a first point as the centroid of all points. Then, select (K- ) most widel separated points Problem: can select outliers Solution: Use a sample of points Post-processing Bisecting K-means Not as susceptible to initialization issues TNM: Introduction to Data Mining Pre-processing and Post-processing Pre-processing Normalize the data Attribute values fall roughl into the same range Eliminate outliers Centroids ma not be good representatives SSE will be also higher Post-processing Eliminate small clusters that ma represent outliers Split loose clusters, i.e., clusters with relativel high SSE or high standard deviation for an attribute Merge clusters that are close and that have relativel low SSE TNM: Introduction to Data Mining

Bisecting K-means Bisecting K-means algorithm Variant of K-means that can produce a partitional or a hierarchical clustering TNM: Introduction to Data Mining Bisecting K-means Eample TNM: Introduction to Data Mining

Strengths and Weaknesses of K-means Strengths Efficient for medium size data BIRCH and CURE for ver large data sets Bisecting K-means not so susceptible to initialization problems Weaknesses Not suitable for all data tpes Clusters are of differing sizes Densities Non-globular shapes Outliers are a problem Choice of seeds (initial centroids) TNM: Introduction to Data Mining 5 Limitations of K-means: Differing Sizes Original Points K-means ( Clusters) TNM: Introduction to Data Mining 6

Limitations of K-means: Differing Densit Original Points K-means ( Clusters) TNM: Introduction to Data Mining 7 Limitations of K-means: Non-globular Shapes Original Points K-means ( Clusters) TNM: Introduction to Data Mining 8

Net Similarit measures Is Euclidian distance appropriate for all tpes of problems? Hierarchical clustering DBSCAN algorithm Cluster validation TNM: Introduction to Data Mining 9