Tabellab
AI & Data Science Intermediate

Clustering Methods by Hand: Hierarchical, k-Medoids, Silhouette & DBSCAN

Distance matrices, single vs complete linkage, dendrogram cuts, silhouette scores, elbow vs silhouette, a PAM swap and DBSCAN core/border/noise, every step computed cell by cell on 12 stores.

8 lessons 8 labs 2.5 h Certificate

The first lesson is free โ€” no account needed.

About this course

A clustering methods course that segments the stores of one fictional retail chain, Tallow, by hand in a spreadsheet, for data analysts, data science students and anyone who runs clustering in Python and wants to see each step. You scale two features to 0โ€“1 and build a 12 ร— 12 Euclidean distance matrix, run agglomerative clustering with single and complete linkage, cut a dendrogram at the largest gap, compute the silhouette score of every store and the average, compare the elbow rule with the best silhouette when choosing k, price the medoids and test one PAM swap, label core, border and noise points with DBSCAN using COUNTIF on the distance matrix, and profile the final segments with a scatter chart coloured by cluster. The first lab is free.

Lessons

  1. Distance Matrices: Euclidean, Manhattan & Why Scaling Comes FirstLab18 minFree
  2. Agglomerative Clustering: Single vs Complete Linkage, Step by StepLab20 min Pro
  3. Reading a Dendrogram: Merge Heights, the Largest Gap & Cluster LabelsLab18 min Pro
  4. Silhouette Score per Store: a, b, s and the AverageLab22 min Pro
  5. Choosing k: Elbow Rule vs SilhouetteLab16 min Pro
  6. k-Medoids (PAM): Total Cost and One Swap StepLab18 min Pro
  7. DBSCAN by Hand: eps, minPts and Core, Border & Noise PointsLab20 min Pro
  8. Cluster Profiling and a Scatter Chart Coloured by ClusterLab18 min Pro