Silhouette coefficient
The silhouette coefficient measures how well a sample fits its assigned cluster compared with the nearest alternative cluster, typically ranging from -1 to 1.
Statistics Slam Dunk
A silhouette coefficient measures an observation's relative cohesion within its assigned cluster and separation from the nearest other cluster, typically ranging from -1 to +1.
- How it is used
- Selects an appropriate number of clusters when the elbow plot is subjective or lacks a clear bend.
- How deep it goes
- Defines and derives the coefficient from dissimilarities, then uses plotted values to choose K without discussing implementation internals.
- Examples
- Evaluates NBA team clusters formed from standardized payroll and regular-season wins.
- What you can do after
- Apply it via factoextra's fviz_nbclust() to compare candidate cluster counts in R.
Read how Statistics Slam Dunk explains silhouette coefficient →
Cyber Threat Hunting
The silhouette coefficient is a clustering metric that compares an observation's cohesion within its assigned cluster with its separation from neighboring clusters, ranging from -1 to 1.
- How it is used
- Uses cohesion and separation to choose or validate k in k-means clustering.
- How deep it goes
- Defines per-point distances, gives the formula and range, and explains computational cost without deriving distance implementation.
- Examples
- Demonstrates k ranges 2–10 and 2–12 with plots, timing comparisons, and a k = 10 cluster-size countplot.
- What you can do after
- Evaluate candidate cluster counts with KElbowVisualizer and compare silhouette analysis against the elbow method.
Read how Cyber Threat Hunting explains silhouette coefficient →
Also covered in
Related concepts
- elbow methodalternative to · The elbow method is a heuristic for selecting model complexity or a parameter value by locating where increasing it yields diminishing improvement in an evaluation criterion.
- inter-cluster distanceuses · Inter-cluster distance is a measure of separation between different clusters based on distances among their members or representative points.
- intra-cluster distanceuses · Intra-cluster distance is a measure of dissimilarity among observations within the same cluster or between them and a representative point.
- clusteringmeasures · Clustering is the process of grouping data items so that items within a group are more similar to one another than to items in other groups.
- metrickind of · A metric is a quantitative measure that assigns values to a property or outcome so it can be assessed, compared, or monitored.
Questions about silhouette coefficient
What is silhouette coefficient?
The silhouette coefficient measures how well a sample fits its assigned cluster compared with the nearest alternative cluster, typically ranging from -1 to 1.
Which Manning books explain silhouette coefficient?
Statistics Slam Dunk and Cyber Threat Hunting.
What is the difference between silhouette coefficient and elbow method?
The silhouette coefficient measures how well a sample fits its assigned cluster compared with the nearest alternative cluster, typically ranging from -1 to 1. The elbow method is a heuristic for selecting model complexity or a parameter value by locating where increasing it yields diminishing improvement in an evaluation criterion.
What is silhouette coefficient a kind of?
Silhouette coefficient is a kind of metric. A metric is a quantitative measure that assigns values to a property or outcome so it can be assessed, compared, or monitored.
What is silhouette coefficient also called?
Silhouette coefficient is also called silhouette score.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

