Docsity

Clustering: Unsupervised Learning and Data Grouping, Slides of Pattern Classification and Recognition

Toggle sidebar
bg1
1
CLUSTERING
Basic Concepts
In clustering or unsupervised learning no training data,
with class labeling, are available. The goal becomes:
Group the data into a number of sensible clusters
(groups). This unravels similarities and differences among
the available data.
Applications:
• Engineering
• Bioinformatics
• Social Sciences
• Medicine
• Data and Web Mining
To perform clustering of a data set, a clustering
criterion must first be adopted. Different clustering
criteria lead, in general, to different clusters.
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b

Partial preview of the text

Download Clustering: Unsupervised Learning and Data Grouping and more Slides Pattern Classification and Recognition in PDF only on Docsity!

1

CLUSTERING

Basic ConceptsIn clustering or unsupervised learning no training data,with

class

labeling,

are

available.

The

goal

becomes:

Group

the

data

into

a

number

of

sensible

clusters

(groups).

This unravels similarities and differences among

the available data.^ 

Applications:

  • Engineering• Bioinformatics• Social Sciences• Medicine• Data and Web Mining

To

perform

clustering

of

a

data

set,

a

clustering

criterion must first be adopted.

Different clustering

criteria lead, in general, to different clusters.

2

A simple example

Blue shark,sheep, cat,

dog

Lizard, sparrow, viper, seagull, gold

fish, frog, red

mullet

  1. Two clusters2. Clustering criterion:

How mammals beartheir progeny

Gold fish, redmullet, blue

shark

Sheep, sparrow,dog, cat, seagull,lizard, frog, viper

  1. Two clusters2. Clustering criterion:

Existence of lungs

4

Depending on the similarity measure, the clusteringcriterion and the clustering algorithm different clustersmay result.

Subjectivity

is a reality to live with from

now on. 

A simple example:

How many clusters??

2 or 4 ??

5

Basic application areas for clustering

Data reduction. All data vectors within a cluster aresubstituted (represented) by the corresponding clusterrepresentative. 

Hypothesis generation. 

Hypothesis testing. 

Prediction based on groups.

7

Fuzzy clustering:

Each point belongs to all clusters up

to some degree.A fuzzy clustering of

X

into

m

clusters is characterized

by

m

functions

  • • •

m

j

x

u

j^

],

0 [

:^

 

m j

i j^

N

i

x

u

1



N i

i j^

m j N x u 1

,..., (^2) , 1

8

.

cluster to

of

membership

of

grade

high

1 to

close )

(

j

x

x

u

i

i

j^

membership

of

grade

low

to

close

(^

i

j^

x

u

m

j

x

u

i

j^

,..., (^2) , 1

),

(

These are known as membership functions.Thus, each

x

i^

belongs to any cluster “up to

some degree”, depending on the value of

10

X y x y x d d d 

 



 

,

,

) , (

:^

0

0

X y x x y d y x d

X x d x x d 

,

) , (^

0

PROXIMITY MEASURES

Between vectors

Dissimilarity measure

(between vectors of

X

) is a

function

with the following properties• • •

 

X

X

d

:

docsity.com

11

If in addition• •

(triangular inequality)

d

is called a metric dissimilarity measure.

y

x

if

only

and if

d

y x d

0

) , (

X z y x z y d y x d z x d 

, ,

), , ( ) , ( ) , (

13

If in addition• • s

is called a metric similarity measure.

Between setsLet

D

i^

X, i=

,…,k

and

U=

D

,…,D 1

}k

A proximity measure

on

U

is a function

A dissimilarity measure has to satisfy the relations ofdissimilarity measure between vectors, where

D

’ i

s are used ‘

in place of

x

,^

y (similarly for similarity measures).

y

x

if

only

and

if

s

y

x

s^

0

X z y x z x s z y s y x s z y s y x

s^

)]

, ( ) , ( [ ) , ( ) , (

U

U

14

PROXIMITY MEASURES BETWEEN VECTORS^ 

Real-valued vectors

Dissimilarity measures (DMs)•

Weighted

l

p

metric DMs

Interesting instances are obtained for

p

=

(

weighted Manhattan norm)

p

=

(

weighted Euclidean norm)

p=

∞

(

d

(x,y

)=

max

1 

i

l^

w

|xi

-yi

|^ i

)



l i

p

p i

i

i

p^

y x w y x d

1

/ 1

16

Similarity measures

Inner product

Tanimoto measure

l i

i i

T

inner

y x y x y x s

1

y x

y

x

y x

y x

s

T

T

T

2

2

||

||

||

||

) , (

||

||

||

||

) , ( 1 ) ,

(^

2

y

x

y x

d

y x

sT

17

Discrete-valued vectors

Let

F=

{

,^1

,…,k

-1}

be a set of symbols and

X

={

x^1

,…,x

}N

F

l

Let

A

(x,y

)=[

a ]ij

, i, j

=

,^1

,…,k

, where

a

ij^

is the number of places where

x^

has the

i

-th symbol and

y

has the

j

-th symbol.

NOTE:Several proximity measures can be expressed as combinations of theelements of

A(x,y)

.

Dissimilarity measures:

  • The Hamming distance (number of places where

x

and

y

differ)

  • The

l

1

distance

 

 

(^10)

1 0

k i

k j

ij^

l

a



 

  

(^10)

1 0

) , (

k i

k

i j j

ij

H

a

y x

d



l i

i

i^

y

x

y

x

d

1

1

19

Mixed-valued vectorsSome of the coordinates of the vectors

x

are real and the rest are

discrete.Methods for measuring the proximity between two such

x

i and

x

:j

Adopt a proximity measure (PM) suitable for real-valued vectors. 

Convert the real-valued features to discrete ones and employ adiscrete PM. The more general case of mixed-valued vectors: 

Here nominal, ordinal, interval-scaled, ratio-scaled features aretreated separately.

20

The similarity function between

x

i^ and

x

j^ is:

In the above definition:^ •

w

=0q

, if at least one of the

q

-th coordinates of

x

i^ and

x

j^ are

undefined or both the

q

-th coordinates are equal to

0

.

Otherwise

w

=1q

.

  • If the

q

-th coordinates are binary,

s

(q

x^ i

,x

)=1j

if

x

iq

x^ jq

=

and

0

otherwise.

  • If the

q

-th coordinates are nominal or ordinal,

s

(q

x^ i

,x

)=1j

if

x

iq

=

x^ jq

and

0

otherwise

.

  • If the

q

-th coordinates are interval or ratio scaled-valued

where

r

q^

is the interval where the

q

-th coordinates of the

vectors of the data set

X

lie.

, / | | 1 ) ,

(^

q

jq

iq

j

i

q^

r x x x x s

 

 

l q

q

l q

j i q

j i^

w x x s x x

s^

1

1

/ ) , ( ) , (