Download Data Clustering Techniques in Data Mining | CS 4440 and more Study notes Computer Science in PDF only on Docsity!
Slides are adapted from the text book by Dr. M.H.Dunham, Data Mining, Introductory and Advanced Topics , And
Introduction to Data Mining, By Tan, Steinbach, Kumar.
Data Mining Part I:
Data Clustering Techniques
Ling Liu
Associate Professor
Distributed Data Intensive Systems Lab
College of Computing
Georgia Institute of Technology
What is Cluster Analysis?
Finding groups of objects such that the objects
in a group will be more similar (or related) to
one another and different from (or unrelated to)
the objects in other groups
Inter-cluster
distances are
maximized
Intra-cluster
distances are
minimized
How is Clustering done?
Given n data points in a d -dimensional metric
space, partition the data points into k clusters
such that the data points within a cluster are
more similar to each other than data points in
different clusters.
Similarity & distance
Cluster shape
Outliers (noise)
What is not Cluster Analysis?
Supervised classification
Have class label information
Simple segmentation
Dividing students into different registration groups
alphabetically, by last name
Results of a query (indexing or hashing of
data)
Groupings are a result of an external specification
Graph partitioning
Some mutual relevance and synergy, but areas are
not identical
Type of data in cluster
analysis
Interval-scaled variables
e.g., salary, height
Binary variables
e.g., gender (M/F), has_cancer(T/F)
Nominal (categorical) variables
e.g., religion (Christian, Muslim, Buddhist, Hindu, etc.)
Ordinal variables
e.g., military rank (soldier, sergeant, lutenant, captain, etc.)
Ratio-scaled variables
population growth (1,10,100,1000,...)
Variables of mixed types
multiple attributes with various types
Similarity and Dissimilarity
Between Objects
Distance metrics are normally used to measure
the similarity or dissimilarity between two data
objects
The most popular conform toMinkowski
distance:
where i = (xi ,xi , …,xin) andj = (xj ,xj , …,xjn) are
twon-dimensional data objects, andp is a positive
integer
Ifp =1,L
1
is the Manhattan (or city block)
distance:
p p
jn
x in
x
p
j
x i
x
p
j
x i
ij x p
L
⎟ ⎟
⎟
⎠
⎞
⎜ ⎜
⎜
⎝
⎛ = − + − + + −
(,) | | | |...| | 1 1 1 2 2 n^ jn
x i
x j
x i
x j
x i
L ij = x − + − + + −
Similarity and Dissimilarity
Between Objects (Cont.)
If p =2,L
is the Euclidean distance:
Properties
d(i,j) ≥ 0
d(i,i) = 0
d(i,j) =d(j,i)
d(i,j) ≤ d(i,k) +d(k,j)
Also one can use weighted distance:
2 2
2 2
2
1 1 n jn
x i
x j
x i
x j
x i
d ij = x − + − + + −
2 2
2 2
2
1 1 n jn
x i
x n
w j
x i
w x j
x i
d ij = w x − + − + + −
Distance Between Clusters
Single Link : smallest distance between points
Complete Link: largest distance between
points
Average Link: average distance between
points
Centroid: distance between centroids
How to Define Inter-Cluster
Similarity
p
p
p
p
p
p1 p2 p3 p4 p (^)...
.
.
. Proximity Matrix
MIN
MAX
Group Average
Distance Between Centroids
Other methods driven by an
objective function
Ward’s Method uses squared error
How to Define Inter-Cluster
Similarity
p
p
p
p
p
p1 p2 p3 p4 p (^)...
.
.
.
Proximity Matrix
MIN
MAX
Group Average
Distance Between Centroids
Other methods driven by an
objective function
Ward’s Method uses squared error
How to Define Inter-Cluster
Similarity
p
p
p
p
p
p1 p2 p3 p4 p (^)...
.
.
. Proximity Matrix
MIN
MAX
Group Average
Distance Between Centroids
Other methods driven by an
objective function
Ward’s Method uses squared error
× ×
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.
I1 I2 I3 I4 I
I1 1.00 0.90 0.10 0.65 0.
I2 0.90 1.00 0.70 0.60 0.
I3 0.10 0.70 1.00 0.40 0.
I4 0.65 0.60 0.40 1.00 0.
I5 0.20 0.50 0.30 0.80 1.00 1 2 3 4 5
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
I1 I2 I3 I4 I
I1 1.00 0.90 0.10 0.65 0.
I2 0.90 1.00 0.70 0.60 0.
I3 0.10 0.70 1.00 0.40 0.
I4 0.65 0.60 0.40 1.00 0.
I5 0.20 0.50 0.30 0.80 1.00 1 2 3 4 5
Hierarchical Clustering: MAX
Nested Clusters Dendrogram
3 6 4 1 2 5
0
Strength of MAX
Original Points Two Clusters
- Less susceptible to noise and outliers
Hierarchical Clustering: Group Average
Nested Clusters Dendrogram
3 6 4 1 2 5
0
Hierarchical Clustering: Group Average
Compromise between Single and
Complete Link
Strengths
Less susceptible to noise and outliers
Limitations
Biased towards globular clusters
Major Clustering Approaches
Partitioning algorithms: Construct random partitions and
then iteratively refine them by some criterion
Hierarchical algorithms: Create a hierarchical
decomposition of the set of data (or objects) using some
criterion
Density-based: based on connectivity and density
functions
Grid-based: based on a multiple-level granularity
structure
Model-based: A model is hypothesized for each of the
clusters and the idea is to find the best fit of that model
to each other
Types 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 exactly one
subset
Hierarchical clustering
A set of nested clusters organized as a hierarchical tree
Cluster Parameters
Partitional Clustering
Original Points A Partitional Clustering
Hierarchical Clustering
p
p p
p
p
p p
p
p1 p2 (^) p3p
p1 p2 p3p
Traditional Hierarchical Clustering
Non-traditional Hierarchical Clustering Non-traditional Dendrogram
Traditional Dendrogram
Other Distinctions Between Sets of
Clusters
Exclusive versus non-exclusive
In non-exclusive clusterings, points may belong to
multiple clusters.
Can represent multiple classes or ‘border’ points
Fuzzy versus non-fuzzy
In fuzzy clustering, a point belongs to every cluster
with some weight between 0 and 1
Weights must sum to 1
Probabilistic clustering has similar characteristics
Partial versus complete
In some cases, we only want to cluster some of the
data
Heterogeneous versus homogeneous
Cluster of widely different sizes, shapes, and densities
Types 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 a
cluster, than to the center of any 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
4 center-based clusters
Types of Clusters: Contiguity-Based
Contiguous Cluster (Nearest neighbor or
Transitive)
A cluster is a set of points such that a point in a
cluster is closer (or more similar) to one or more
other points in the cluster than to any point not in
the cluster.
8 contiguous clusters
Types of Clusters: Density-Based
Density-based
A cluster is a dense region of points, which is
separated by low-density regions, from other
regions of high density.
Used when the clusters are irregular or
intertwined, and when noise and outliers are
present.
6 density-based clusters
Types of Clusters: Conceptual Clusters
Shared Property or Conceptual
Clusters
Finds clusters that share some common
property or represent a particular concept.
2 Overlapping Circles