Docsity

Data Clustering: Techniques, Examples, and Algorithms, Slides of Database Management Systems (DBMS)

Partial preview of the text

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

Clustering in Data Mining

What is Data Clustering

  • Classification of objects into different groups.
  • Objects in each subset share some common trait.
  • Useful technique for Data Analysis and Data Mining.

Types of Clustering

• Hierarchichal: Successively determine

new clusters from previously

determined clusters (parent/child

clusters).

• Partitional: Establish all clusters at once,

at the same level.

Creating Clusters:

Break Up vs Build Up

  • Break Up: start from the bottom of the tree, divide the general population into smaller and smaller clusters.

 Build Up (Agglomerative Clustering): start from the top of the tree, merge individual elements into larger and larger clusters.

Distance Measure

  • Many ways to define distance measure.
  • Some elements may be close according to one distance measure and further away according to another.
  • Select a good distance measure is an important step in clustering.

Some Distance Functions

  • Euclidean distance (2-norm): the most commonly used, also called “crow distance”.
  • Manhattan distance (1-norm): also called “taxicab distance”.
  • In general: Minkowski Metric (p-norm):

K-Means Algorithm

  1. Place K points into the space of the objects being clustered. They represent the initial group centroids.
  2. Assign each object to the group that has the closest centroid.
  3. Recalculate the positions of the K centroids.
  4. Repeat Steps 2 & 3 until the group centroids no longer move.

K-Means

Algorithm:

Example

Output