Docsity

Clustering Algorithms: Types, Distance Measures, and Techniques, Slides of Database Management Systems (DBMS)

Partial preview of the text

Download Clustering Algorithms: Types, Distance Measures, and Techniques and more Slides Database Management Systems (DBMS) in PDF only on Docsity!

Clustering Algorithms

Clustering - main features

 Clustering – a data mining technique  Def.: Classification of objects into sets by the common traits among the objects, but not between different sets.  Usage:  Statistical Data Analysis  Machine Learning  Data Mining  Pattern Recognition  Image Analysis  Bioinformatics

Concept of distance measure

  • Distance measure – determines how the

similarity of two elements is calculated.

  • Similarity is expressed in terms of a distance

function

  • Distance functions – vary significantly for

interval-scaled, categorical, and other

variables

  • Examples of Dist. Fcns: Euclidean distance,

Manhattan distance, etc.

Distance functions, in more detail.

  • Euclidean distance – aka “as the crow flies”, or 2- norm distance. The most commonly used one, the usually implied distance measurement (ruler, 2 dots).
  • Manhattan distance – aka “taxicab” or 1-norm distance. Going from A to B via intersections (sort of).
  • Maximum norm – explanation is too complicated for this presentation
  • Mahalanobis distance – similar to Euclidean, but it considers specifics of data sets, and is scale- invariant

Agglomerative Hierarchical

Clustering

    1. Place each instance of S in its own cluster (singleton),

creating the list of clusters L (initially, the leaves of T): L = S1, S2, S3, .., Sn.

    1. Compute a merging cost function between every pair of elements in L to find the two closest clusters {Si, Sj} which will be the cheapest couple to merge
  • Remove Si & Sj from L.
    1. Merge Si & Sj to create a new internal node Sij in T which

will be the parent of Sj & Sj in the result tree.

    1. Do (2) until there is only one set remaining.

K-Clustering

  • K-clustering algorithm
    • Result : Given the input set S and a fixed integer k , a partition of S into k subsets must be returned.
    • K-means clustering is the most common partitioning algorithm.

Self-Organized Maps

  • Def.: A group of several connected nodes

mapped into a k-dimensional space following

some specific geometrical topology (grids,

rings, lines, ...). Initially placed at random and

iteratively adjusted according to the

distribution of examples (input) along the k-

dimensional space.