Course: Data Science and Database Technologies
Professors: Elena Baralis and Tania Cerquitelli, Politecnico di Torino, Data Base and Data Mining Group.
Source: Clustering fundamentals, local path 11-DMClustering-26-27.pdf, 96 PDF pages. Lecture number 11 follows the local course sequence and source filename.

Lecture summary

Clustering is unsupervised learning. It groups objects that are similar to one another and different from objects in other groups. Unlike classification, it starts without class labels. The meaning and usefulness of a discovered cluster must therefore be interpreted and validated rather than assumed.

The lecture distinguishes partitional and hierarchical clusterings, exclusive and fuzzy membership, and several meanings of cluster shape. K-means assigns points to centroids and minimizes within-cluster squared error, but its result depends on initialization and it prefers compact, globular clusters. Hierarchical clustering creates a dendrogram by merging or splitting clusters. Linkage determines how distance between clusters is measured. DBSCAN finds dense regions and labels isolated points as noise.

Cluster validity uses internal measures such as cohesion, separation, SSE and silhouette, external measures such as purity, entropy and Rand index, and relative comparisons between alternative clusterings.

Learning route

  1. Read Clustering Foundations and Cluster Types to distinguish clustering from classification and understand what a cluster can mean.
  2. Trace K-means Clustering and SSE with the centroid update and elbow method.
  3. Study Hierarchical Clustering and Linkage for dendrograms, agglomerative merging and the single-linkage chaining effect.
  4. Finish with DBSCAN and Cluster Validity for density-based clusters, noise, silhouette and validation.

Worked examples and clarifications

Customer groups

A retailer can cluster customers by spending and shopping frequency without predefined labels. The resulting groups might represent occasional high spenders, frequent budget shoppers and premium customers. These descriptions are interpretations after clustering, not labels supplied to the algorithm.

Linkage clarification

In agglomerative hierarchical clustering, linkage does not directly split groups. It decides which existing groups merge next. Single linkage uses the closest pair and can create a chain. Complete linkage uses the farthest pair and favours compact groups. Average linkage uses all cross-cluster pair distances. Ward’s method chooses the merge that least increases squared error. A dendrogram cut later determines the displayed groups.

Density and noise

DBSCAN can find irregularly shaped dense regions such as busy geographic areas and leave isolated observations as noise. It uses Eps and MinPts to distinguish core, border and noise points.

Common confusions

  • Clustering discovers groups; classification predicts a known category.
  • Linkage in agglomerative clustering chooses merges. Cutting a dendrogram produces the final groups.
  • A lower SSE is not automatically better because adding more clusters almost always lowers SSE.
  • A cluster is not automatically a real-world cause or category. Domain interpretation is still required.
  • Single linkage can join separate groups through a chain of close points, while complete linkage can keep elongated groups apart because their outer points are far away.

Revision prompts

  • Explain why the same dataset can reasonably produce two, four or six clusters.
  • Trace one iteration of k-means for a small set of two-dimensional points.
  • Explain why a poor initialization can lead k-means to a suboptimal result.
  • Given clusters A={1,2} and B={5,10}, calculate the single-link, complete-link and average-link distances.
  • Explain why complete linkage does not directly split a cluster in agglomerative clustering.
  • Identify core, border and noise points for a DBSCAN diagram.
  • Interpret a silhouette score near +1, near 0 and below 0.

Source map

PDF pagesMaterial
2-15Definition, applications, cluster types and algorithm families
16-40K-means, initialization, SSE, elbow method and limitations
41-70Hierarchical clustering, dendrograms and linkage methods
72-85Density-based clustering and DBSCAN
87-97Cluster validity, cohesion, separation, silhouette and Rand index

Source and scope

Elena Baralis and Tania Cerquitelli, Clustering fundamentals, Politecnico di Torino, Data Base and Data Mining Group, local path 11-DMClustering-26-27.pdf. The lecture and concept notes paraphrase the source. Everyday examples and the linkage clarification are added study explanations; the original PDF and figures remain local.