Ward's Linkage Clustering
- Ward's linkage is a hierarchical clustering method that merges clusters by minimizing the increase in within-cluster variance (error sum of squares).
- It employs a size-weighted squared centroid distance to decide merges, aligning its approach closely with the k-means objective.
- The method is widely used in Euclidean settings to form compact clusters, though its performance can depend on dissimilarity scaling and data separation.
Ward's linkage, or Ward's method, is the agglomerative hierarchical clustering rule that at each step merges the pair of clusters whose fusion produces the smallest increase in total within-cluster heterogeneity, expressed as error sum of squares, within-cluster variance, or inertia. In Euclidean data, its merge cost is exactly the increase in within-cluster sum of squared errors caused by replacing two clusters by their union, which makes it the canonical greedy linkage associated with the -means objective. The method has been widely used since Ward's 1963 publication, but its interpretation, implementation, and theoretical status depend strongly on whether one emphasizes minimum-variance agglomeration, Lance–Williams updating, approximation to hierarchical -means, or recovery of a valid hierarchy under alternative axiomatic frameworks [(Murtagh et al., 2011); (Großwendt et al., 2019)].
1. Minimum-variance criterion and equivalent formulations
For a cluster with centroid also denoted , Ward's criterion is built from the error sum of squares
the variance
and, more generally, the inertia
where is squared Euclidean distance. The underlying decomposition is : total variance equals between-cluster variance plus within-cluster variance. Ward's method greedily minimizes the increase in at each agglomeration and, equivalently, maximizes the resulting 0 (Murtagh et al., 2011).
In the notation used for hierarchical 1-means, if 2, the centroid is
3
the one-cluster sum of squared errors is
4
and the Ward merge increment is
5
Ward chooses, among all current cluster pairs 6, one minimizing 7. A central identity gives the familiar centroid-size formula
8
with 9 and 0. The method can therefore be read either as minimum increase in within-cluster SSE or as a size-weighted squared centroid separation criterion (Großwendt et al., 2019).
Several equivalent identities clarify the geometry. Murtagh and Legendre write the same merge cost as
1
and give the pairwise-distance representation
2
Grosswendt–Rögling–Schmidt, as reported in the low-dimensional parallel HAC work, use the two-sided estimate
3
showing that Ward's distance is, up to a factor 4, the smaller cluster size times squared centroid distance. This makes explicit that Ward is not merely centroid linkage: the multiplicative size term is intrinsic to the minimum-variance interpretation (Bateni et al., 26 Jul 2025).
2. Agglomerative procedure, Lance–Williams updating, and software variants
Ward's method is a bottom-up hierarchical clustering algorithm. Starting from the partition into singleton clusters, it performs 5 merges. In the notation
6
one has 7, 8, and
9
For any target 0, the induced flat clustering is the partition at level 1. The hierarchy is therefore completely determined by the merge sequence 2 (Großwendt et al., 2019).
The agglomerative updates are usually expressed through the Lance–Williams recurrence
3
For Ward's method, 4, and with cluster weights 5,
6
In centroid/SSE notation, the corresponding update identity is
7
This recurrence is the source of several structural properties used in later theory [(Murtagh et al., 2011); (Bateni et al., 26 Jul 2025)].
A persistent implementation issue is the distinction between Ward1 and Ward2. The two formulations optimize the same minimum-variance criterion, but only when the dissimilarity scale is matched correctly to the recurrence.
| Variant | Input dissimilarities | Height scale and representative implementations |
|---|---|---|
| Ward1 | Squared Euclidean dissimilarities | Squared scale; older hclust(..., method="ward") corresponds to true Ward only if supplied dist(x)^2 |
| Ward2 | Euclidean distances | Distance scale; agnes(..., method="ward") and ward.D2-style implementations square internally and return square-rooted heights |
If one defines 8, the Ward2 recurrence becomes algebraically identical to Ward1. The distinction is therefore not a change of clustering principle but a change of representation. The practical warning is sharper: if ordinary Euclidean distances are fed into an implementation expecting squared Euclidean dissimilarities, the output is a well-defined hierarchy, but not Ward's method in the minimum-variance sense. The same caution applies to dendrogram heights: Ward1 reports heights on the squared scale, whereas Ward2 reports them on the distance scale; taking square roots of Ward1 heights recovers the Ward2 heights (Murtagh et al., 2011).
Two further technical cautions follow from the same analysis. First, even when the input is Euclidean, the evolving inter-cluster dissimilarities produced by the Lance–Williams updates are not themselves ordinary Euclidean distances between non-singleton clusters. Second, the Ward criterion
9
does not satisfy the triangle inequality. The output dendrogram therefore defines an ultrametric structure rather than a metric geometry on the original points (Murtagh et al., 2011).
3. Structural properties and algorithmic status
Classical HAC literature often treats Ward's linkage as a reducible linkage. The Chamfer-linkage study states that single-, complete-, average-, and Ward's linkages satisfy reducibility,
0
and notes that most classical linkage functions, including Ward's, admit 1-time exact algorithms using nearest-neighbor chain methods. In that same empirical comparison, Ward is grouped with the classical reducible linkages used as strong baselines (Gowda et al., 11 Feb 2026).
A more recent algorithmic perspective classifies Ward as a non-monotone linkage function in the context of approximate HAC. The low-dimensional parallel HAC paper identifies a class of well-behaved linkage functions defined by five properties: 2-packability, approximate triangle inequality, weight-stability, average-reducibility, and poly-bounded diameter. It proves that Ward's linkage is well-behaved, specifically 3-packable and satisfying the remaining four axioms, and uses this to obtain an efficient NC algorithm for 4-approximate HAC in low dimensions. The approximation notion is merge-wise: at each step the algorithm may merge any pair 5 with
6
rather than the exact closest pair. The paper further shows that any constant-approximate HAC for this class has hierarchy height at most 7 when the ambient dimension satisfies 8 (Bateni et al., 26 Jul 2025).
This algorithmic picture is distinct from the monotonicity of exact merge costs along a Ward dendrogram. The approximation-theoretic analysis of Ward's method proves that if 9 is the merge-cost increase in the 0-th step, then
1
A plausible implication is that two different notions of monotonicity are in play in the recent literature: exact Ward runs have nondecreasing merge increments, whereas Ward remains outside the class of globally monotone linkage functions that previously supported NC algorithms for approximate HAC (Großwendt et al., 2019, Bateni et al., 26 Jul 2025).
4. Approximation guarantees, separation conditions, and counterexamples
The most developed performance theory for Ward's linkage comes from its interpretation as a greedy heuristic for hierarchical 2-means. Under clusterability assumptions, the method has positive guarantees. If 3 satisfies weak 4-center separation or 5-center proximity, then Ward computes a 6-approximation for the 7-means objective,
8
If, in addition, the optimal clusters 9 satisfy the balance condition
0
and the input satisfies 1-center separation, then Ward exactly recovers the optimal 2-means clustering. These guarantees hold in arbitrary dimension (Großwendt et al., 2019).
The same analysis also gives strong negative results. Without sufficient separation, there are Euclidean instances in 3 for which
4
The bad family even satisfies strict separation, 5-separation for any 6, the Awasthi–Sheffet separation condition, and 7-center separation and center proximity, yet Ward still has exponentially bad approximation ratio in the dimension. The same paper also proves that for one-dimensional inputs 8, Ward always yields an 9-approximation, although the excerpt does not state the explicit constant (Großwendt et al., 2019).
A different limitation emerges in the framework of valid hierarchies. There, a cluster 0 is valid if every within-cluster similarity is strictly larger than every similarity from a point in 1 to a point outside 2, and the finest valid hierarchy is the greatest laminar family of such valid clusters. The two-step procedure analyzed in that paper first builds a binary linkage tree and then prunes internal vertices that are not valid with respect to the original item-level similarity. Single, complete, weighted average, and unweighted average linkage satisfy the necessary and sufficient recovery conditions; Ward does not. More precisely, Ward fails the dissimilarity-form version of Monotonicity across merges, and therefore its binary tree need not contain all valid clusters. Since pruning yields only
3
missing valid clusters cannot be added back in the pruning stage (Dreveton et al., 22 Nov 2025).
The same validity paper gives an explicit numeric counterexample on five items. The true valid hierarchy contains the nontrivial valid clusters 4, 5, and 6, but Ward's binary tree instead contains 7 and 8 as the top split before the root, so the valid cluster 9 never appears. This suggests that Ward's success depends materially on the recovery criterion being used: the method is well aligned with minimum-variance Euclidean clustering, but not with every formal notion of hierarchy consistency (Dreveton et al., 22 Nov 2025).
5. Functional Ward's linkage and robust generalizations
For functional data, Ward's minimum-variance idea has been reformulated in geometric terms. The functional-data paper starts from the classical Ward criterion
0
and rewrites cluster SSE as a kind of diameter or dispersion,
1
This yields the interpretation that homogeneous clusters produce a smaller increase in diameter/dispersion when merged than dissimilar clusters do. The paper then uses this geometric reading as the bridge to a functional analogue (Chen, 19 Jan 2025).
If a functional cluster consists of curves 2 on a domain 3, the band delimited by the curves is
4
and its average width is
5
Functional Ward's linkage is then defined by the increase in this band width under merging. As printed, the paper gives
6
The authors of the summary note that this appears to contain a typographical inconsistency in the subtracted terms; a plausible reconstruction, by direct analogy with classical Ward and with the later robust formulas, is to replace the two subtracted widths by 7 and 8. That reconstructed expression is interpretive rather than verbatim, but the conceptual point is explicit: the merge cost is the increase in cluster-wide band width after merging (Chen, 19 Jan 2025).
The same paper addresses robustness. Both classical Ward's SSE and raw functional band width are highly sensitive to outliers: a single extreme point can inflate SSE, and a single extreme curve can drastically enlarge the upper or lower envelope. The proposed robust functional Ward linkages therefore compute the band only from the most central curves in each cluster rather than from all curves. One variant is the magnitude-shape outlyingness linkage, or MS-linkage, whose centrality measure comes from the MS-plot based on directional outlyingness. For a function 9 with distribution 0, directional outlyingness is
1
where 2 is a depth notion and 3 is the unit vector pointing from the median of 4 to 5. The second robust linkage uses modified band depth. The contamination settings considered include magnitude contamination, shape contamination, covariance contamination, and the EEG artifact models eye-blink and eye-movement. In simulations and real EEG analysis, the proposed methods outperform other competitive approaches, particularly in the presence of outliers and contamination (Chen, 19 Jan 2025).
6. Empirical behavior and domain-specific use
Ward's linkage has often been favored when the scientific problem is naturally Euclidean and the target groups are compact. An astrophysical case study on the globular cluster NGC 2808 analyzes 2682 red-giant-branch stars in a two-dimensional chromosome-map plane built from the pseudo-colors 6 and 7. Using AGNES with Euclidean distance, the study compares single, average, complete, and Ward linkages. Among the tested linkage prescriptions, Ward's method performs best, and average linkage becomes comparable only if outliers are removed beforehand. Outlier removal is carried out with DBSCAN using 8 and 9. The authors' interpretation is that Ward's bias toward compact, somewhat round clusters matches the expectation that stellar populations in the chromosome map should be close to point-like except for broadening due to photometric errors (Pasquato et al., 2019).
The same study also clarifies what Ward is being preferred over. Single linkage fails because of chaining: sparse bridges can make visually distinct groups merge. Average linkage is less fragile but “always leads to a poor outcome in the presence of outliers,” whereas Ward gives similar results whether outliers are removed or not. Complete linkage improves after outlier removal but still often yields what the authors regard as unphysical partitions. The recommended practical takeaway is therefore AGNES with Ward's method or similar linkages for automatic identification of stellar populations in chromosome-map data (Pasquato et al., 2019).
Broader benchmark evidence paints a more mixed picture. In the Chamfer-linkage comparison over 19 benchmark datasets overall and 18 exact-evaluation datasets for detailed tables, Ward is the strongest classical baseline, but not the overall best method. On those 18 datasets, the ARI geomean is 00 for Ward's method versus 01 for the main Chamfer variant, and the NMI geomean is 02 for Ward versus 03 for Chamfer. The paper summarizes this by saying that Chamfer-linkage 04 “consistently outperforms all classical linkage functions,” while Ward, although the strongest classical baseline overall, can still be up to 05 worse than the best-performing method in ARI in the worst case and 06 worse on average (Gowda et al., 11 Feb 2026).
That comparison is nevertheless favorable to Ward in several respects. The same paper credits classical linkage methods such as complete, average, and Ward's with consistently producing low-height dendrograms; in its normalized height table, Ward scores 07, essentially tied for best with symmetric Chamfer 08 at 09. Ward is also implemented within the same nearest-neighbor-maintenance framework as the other exact methods and runs in essentially the same ballpark as the exact baselines, though slightly slower than the reported Chamfer implementation on the provided runtime examples. At the same time, Ward shares the standard exact-HAC 10-space scalability limit: on 11 and 12, all exact 13-space methods, including Ward, ran out of memory on a machine with 1.5TB RAM (Gowda et al., 11 Feb 2026).
Taken together, these empirical studies support a narrow but technically important characterization. Ward's linkage is often a strong default when compact Euclidean groups are scientifically plausible and a multiresolution dendrogram is desired. It is less compelling when the problem rewards representation of multiple internal “concepts” rather than compactness around a centroid, when robustness to atypical observations must be built into the linkage itself, or when the target notion of hierarchy is based on validity constraints that Ward's size- and variance-dependent updates do not preserve (Pasquato et al., 2019, Gowda et al., 11 Feb 2026).