liveBook · Manning

Elbow method

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.

How 5 Manning books explain it

Statistics Slam Dunk

The within-cluster sum of squares method selects a clustering count by examining how within-cluster squared distances decrease as the number of clusters increases.

How it is used
Selects a candidate cluster count for K-means instead of choosing K randomly.
How deep it goes
Explains scree plots and diminishing returns, but stops short of an objective rule when the elbow is ambiguous.
Examples
Uses NBA payrolls and regular-season wins to compare six elbow clusters, two silhouette clusters, and a chosen four-cluster solution.
What you can do after
Evaluate candidate K values and justify a K-means cluster count using a scree plot and a comparison criterion.

Read how Statistics Slam Dunk explains elbow method →

Data Without Labels

The elbow method is a heuristic for selecting a model complexity value by locating a sharp bend in a curve of objective performance versus that value.

How it is used
Selects a candidate cluster count before fitting K-means, which requires k as an input.
How deep it goes
Walks through a plotted selection and Python fitting loop, but leaves the final count subject to business judgment.
Examples
Uses standardized vehicle features and an average-distortion plot whose sharp bend suggests three clusters.
What you can do after
Apply it via scikit-learn KMeans to compare candidate cluster counts, then assess the choice against cluster sizes and business needs.

Read how Data Without Labels explains elbow method →

The Well-Grounded Data Analyst

The elbow method selects an approximate number of clusters by identifying where additional clusters produce diminishing improvement in a clustering criterion.

How it is used
Guides the approximate number of groups for mobile-user segmentation with k-means.
How deep it goes
Explains iterative fitting, inertia, plotting, and diminishing returns, while stopping short of treating the metric as a sufficient decision rule.
Examples
Uses mobile-user data, tests three through fourteen clusters, and highlights the transition from seven to eight clusters.
What you can do after
Apply it via scikit-learn and Matplotlib to compare candidate k values before assigning clusters.

Read how The Well-Grounded Data Analyst explains elbow method →

Advanced Algorithms and Data Structures

The elbow method is a model-selection technique that chooses a parameter value at the point where additional complexity yields diminishing improvement in an evaluation measure.

How it is used
Chooses clustering or machine-learning hyper-parameters by locating diminishing improvement in a plotted evaluation metric.
How deep it goes
Explains metric choice, repeated randomized runs, curve interpretation, and neighboring-clustering checks without formalizing an automatic elbow threshold.
Examples
Uses a customer dataset, intra-cluster average distance, k values of 5 through 7, and pseudocode for repeated k-means runs.
What you can do after
Evaluate clustering hyper-parameters by running repeated trials, plotting metric results, selecting an elbow, and checking the resulting clusters.

Read how Advanced Algorithms and Data Structures explains elbow method →

Cyber Threat Hunting

The elbow method is a clustering-validation technique that selects a cluster count by locating a point where additional clusters yield diminishing improvement in within-cluster distance.

How it is used
Selects a k value before using k-means to group network connections for anomaly investigation.
How deep it goes
Explains the SSE-versus-k procedure, visual bend interpretation, implementation, ambiguity, and range sensitivity without deriving k-means mathematics.
Examples
Demonstrates Yellowbrick KElbowVisualizer on one-hot-encoded network features and compares k ranges of 2–9 and 2–12.
What you can do after
Apply it via Yellowbrick KElbowVisualizer to estimate k and compare its result with Silhouette analysis.

Read how Cyber Threat Hunting explains elbow method →

Related concepts

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.