topskill.dev
CoursesTracks
All courses/Machine Learning FundamentalsChoosing and interpreting clusters
Clustering and other approaches
3 / 9
← Machine Learning Fundamentals
○What machine learning learns○Features and labels○Training and inference○Regression or classification○The machine learning process○Data quality and coverage○Representing data✦Module Quiz
○Linear regression○Try a tiny linear model○Logistic regression○Nearest neighbors○Decision trees○Random forests○Boosting○Naive Bayes○Support vector machines✦Module Quiz
○Clustering○K-means●Choosing and interpreting clusters○Principal component analysis○Neural networks and deep learning○Self-supervised learning○Transfer learning○Reinforcement learning✦Module Quiz
○Generalization and overfitting○Holding out evaluation data○Data leakage○Baselines○Bias and variance intuition○Reading learning curves✦Module Quiz
○Prediction errors and residuals○Measuring regression error○Squared error and large misses○The confusion matrix○Precision and recall○Try a held-out classifier✦Module Quiz
○Bias and limits○Monitoring and drift○Comparing models for a decision✦Module Quiz
Clustering and other approaches

Choosing and interpreting clusters

The number of clusters kkk is a modeling choice, not an answer that standard k-means discovers automatically. Here kkk counts the centers used to summarize the observations.

Read the two panels as alternative summaries of the same points. More centers can reduce the total squared distance to assigned centers. In the extreme, one center per distinct point can make that distance zero. A smaller distance therefore does not by itself prove that the grouping is more useful.

A plot of this distance against kkk may show an elbow: a point after which additional centers make smaller improvements. Many datasets have no clear elbow. Compare plausible choices using the intended purpose, stability across samples or initializations, and whether the groups are interpretable without inventing unsupported labels.

Scale changes the distance calculation. If one feature is measured in thousands and another in fractions, the first may dominate even when it is less informative. Appropriate scaling makes the numerical comparison more deliberate; it does not guarantee meaningful groups.

K-means tends to favor compact groups under its distance rule. Curved groups, outliers, or very unequal spreads can produce misleading results. A separate plot, another clustering method, or deciding not to assign hard groups may be more appropriate.

Check your understanding

Does a lower within-cluster distance after increasing kkk prove that more true categories exist?

Answer: No. Extra centers can fit the same points more closely without adding meaningful categories.

Fact 1
1 / 1
FACT 1

No. Extra centers can fit the same points more closely without adding meaningful categories.