Docsity

Clustering Techniques and Network Modules - Lecture Slides | COMP 572, Study notes of Computer Science

Partial preview of the text

Download Clustering Techniques and Network Modules - Lecture Slides | COMP 572 and more Study notes Computer Science in PDF only on Docsity!

Clustering Techniques

and

Network Modules

COMP572, Spring 2008

Part 1: Clustering Algorithms in general

Part 2: Identification of network modules using clustering

Two Parts

The Problem

  • Learning the structure of multidimensional patterns from a set of unlabeled samples
  • Clustering is concerned with data description in terms of clusters or groups of data that possess strong internal similarities
  • Clustering procedures use a criterion function, such as the sum of the squared distances from the cluster centers, and seek the grouping that optimizes the criterion function
  • This is a very hard computational problem, so other procedures have been proposed that are intuitively appealing but that lead to solutions having few, if any, established properties

These four data sets have the same mean and covariance Data Clustering Structures of multidimensional patterns are important for clustering If we know that data come from a specific distribution, such data can be represented by a compact set of parameters ( sufficient statistics ) If samples are considered coming from a specific distribution, but actually they are not, these statistics give a misleading representation of the data

Two Issues

  • How should one measure the similarity between samples?

Similarity measures

How should one evaluate a partitioning of a set of samples into clusters? 

Criterion functions for clustering

Similarity Measures

  • The most obvious measure of the similarity (or dissimilarity) between two samples is the distance between them
  • One way to begin a clustering is to define a suitable metric and compute the matrix of distances between all pairs of samples. If the distance is a good measure of dissimilarity, then one would expect the distance between samples in the same cluster to be significantly less than the distance between samples in different clusters

The Euclidean Distance Is a Metric

  • The Euclidean formula for distance in d dimensions possesses all four properties of metric:

D(a, b) =

d

k=

(ak − bk )

2

2

Choice Of a Threshold

  • Suppose two samples belong to the same cluster if the Euclidean distance between them is less than some threshold distance d 0
  • It is obvious that:

if d 0 is very large, all of the samples will be assigned to one cluster

if d 0 is very small, each sample will form an isolated, singleton cluster

  • To obtain “natural” clusters, d 0 will have to be greater than the typical within-cluster distances and less than the typical between-cluster distances

Choice Of a Measure

  • Several metrics and similarity measures have been proposed, each with different properties that may be desirable under difference circumstances

d(x, x

′

d

k=

|xk − x

′ k

q

q Minkowski metric When q=1, this is the Manhattan metric When q=2, this is the Euclidean metric

s(x, x

′

x

t

x

′

‖ x ‖ ‖ x

′

Similarity function

(‖ x ‖=

x

t

x)

Criterion Functions for Clustering

  • Suppose we have a set X={x 1 ,x 2 ,...,xn} of n samples that we want to partition into exactly c disjoint subsets X 1 ,...,Xc
  • Each subset is to represent a cluster, with samples in the same cluster being somehow more similar to each other than they are to samples in other clusters
  • To achieve this, define a criterion function that measures the clustering quality of any partition of the data, then find the partition that optimizes the criterion function
  • We first present several criterion functions, and then address the question of how to find an optimal partition (using these criterion functions)

The Sum-of-Squared-Error Criterion

  • The measure is appropriate when the clusters form compact clouds that are rather well-separated from one another
  • When there are great differences in the number of samples in different clusters, it can happen that a partition that splits a large cluster is favored over one that maintains the integrity of the natural clusters

Related Minimum Variance Criteria

  • We can eliminate the mean vectors from the expression for and obtain the equivalent expression

Je =

c

i=

n i s¯i

where

s¯i =

n

2 i

x∈Xi

x ′ ∈Xi

‖ x − x

′

2

  • One can replace by the average, the median, or the maximum distance between points in a cluster

s¯i =

n

2 i

x∈Xi

x ′ ∈Xi

s(x, x

′

s¯i

More generally, one can replace s¯i by functions such as

Je

Clustering Procedures

  • Once a criterion function has been selected, clustering becomes a well-defined problem in discrete optimization: Find those partitions of the set of samples that optimize the criterion function
  • Because the sample set is finite, there are only a finite number of possible partitions
  • In theory the clustering problem can always be solved by exhaustive enumeration
  • However, the computational complexity renders such an approach unthinkable for all but the simplest problems
  • For example, an exhaustive search for the best set of 5 clusters in 100 samples requires considering more than 10 67 partitionings

Outline of the Rest of the Lecture

  • Iterative optimization approaches
  • Hierarchical clustering
  • The problem of validity
  • Graph-theoretic methods