Docsity

Lecture Notes on Automatic Cluster Detection | DSC 433, Exams of Humanities

Toggle sidebar
bg1
Data Mining Techniques
Chapter 11:
Automatic Cluster Detection
Clustering. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
k-Means Clustering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Similarity and distance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Data preparation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Distance calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Graphical view. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Hierarchical (agglomerative) clustering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Family gathering example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Hierarchical clustering considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Other clustering approaches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Evaluating clusters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1
pf3
pf4
pf5

Partial preview of the text

Download Lecture Notes on Automatic Cluster Detection | DSC 433 and more Exams Humanities in PDF only on Docsity!

Data Mining Techniques

Chapter 11:

  • Clustering Automatic Cluster Detection
  • k-Means Clustering
  • Similarity and distance
  • Data preparation
  • Distance calculations
  • Graphical view.
  • Hierarchical (agglomerative) clustering
  • Family gathering example
  • Hierarchical clustering considerations
  • Other clustering approaches
  • Evaluating clusters

Clustering

  • Clustering provides a way to learn about the structure of complex data by splitting it up into smaller pieces, each of which can be explained more simply (than the whole).
  • Clustering algorithms are undirected DM techniques used to search for groups of records (clusters) composed of records similar to each other.
  • Clustering results sometimes feed into follow-up analyses with a more specific focus, e.g., segmentation in marketing.
  • Examples: stellar evolution (p. 351), military clothing design (p. 352).

©c Iain Pardoe, 2006 2 / 12

k-Means Clustering

  • Algorithm looks for fixed number of clusters (k) defined in terms of proximity of data points to each other:
    1. (randomly) select k data points to be seeds for the cluster centers;
    2. assign each record to the “closest” seed (requires some measure of “distance”);
    3. (re)calculate centroids of each cluster;
    4. centroids become seeds for the next iteration (continue until no more changes).
  • What does k mean? Try solutions for different values of k to see which makes the most sense:

◦ smallest within-cluster distances relative to between-cluster distances; ◦ most useful from a business perspective.

©c Iain Pardoe, 2006 3 / 12

Similarity and distance

  • Clustering algorithms require a numeric measure of similarity or distance (between two records): ◦ quantitative variables (interval or ratio/true measures) can use geometric distance metrics, e.g., Euclidean distance; ◦ categorical (nominal) and rank (ordinal) variables require other metrics.
  • Some formal similarity measures:

◦ geometric distance between two points (Euclidean); ◦ angle between two vectors (e.g., figure 11.7 on p. 362)—related to correlation; ◦ Manhattan distance; ◦ for categorical variables, # features in common = # matches / # variables.

©c Iain Pardoe, 2006 4 / 12

Graphical view

© c Iain Pardoe, 2006 7 / 12

Hierarchical (agglomerative) clustering

  • Start with each point in its own cluster.
  • Gradually merge points that are close together into fewer, larger clusters.
  • Stop when remaining clusters are all well separated and joining any more would be counter-productive.
  • Steps:
    1. calculate all pairwise similarities/distances;
    2. find smallest and join these two points/clusters;
    3. update pairwise similarities and repeat.
  • Distance between clusters:

◦ single linkage (nearest neighbors); ◦ complete linkage (farthest neighbors); ◦ centroid distance.

  • Dendogram: tree showing results (e.g., next slide).

©c Iain Pardoe, 2006 8 / 12

Family gathering example

© c Iain Pardoe, 2006 9 / 12