Papers
Topics
Authors
Recent
Search
2000 character limit reached

Ward's Linkage Clustering

Updated 7 July 2026
  • 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 kk-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 kk-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 qq with centroid also denoted qq, Ward's criterion is built from the error sum of squares

iqd2(i,q),\sum_{i \in q} d^2(i,q),

the variance

1qiqd2(i,q),\frac{1}{|q|}\sum_{i\in q} d^2(i,q),

and, more generally, the inertia

iqp(i)d2(i,q),\sum_{i\in q} p(i)\, d^2(i,q),

where d2(i,i)=ii2=j(ijij)2d^2(i,i')=\|i-i'\|^2=\sum_j (i_j-i'_j)^2 is squared Euclidean distance. The underlying decomposition is T=B+WT=B+W: total variance equals between-cluster variance plus within-cluster variance. Ward's method greedily minimizes the increase in WW at each agglomeration and, equivalently, maximizes the resulting kk0 (Murtagh et al., 2011).

In the notation used for hierarchical kk1-means, if kk2, the centroid is

kk3

the one-cluster sum of squared errors is

kk4

and the Ward merge increment is

kk5

Ward chooses, among all current cluster pairs kk6, one minimizing kk7. A central identity gives the familiar centroid-size formula

kk8

with kk9 and qq0. 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

qq1

and give the pairwise-distance representation

qq2

Grosswendt–Rögling–Schmidt, as reported in the low-dimensional parallel HAC work, use the two-sided estimate

qq3

showing that Ward's distance is, up to a factor qq4, 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 qq5 merges. In the notation

qq6

one has qq7, qq8, and

qq9

For any target qq0, the induced flat clustering is the partition at level qq1. The hierarchy is therefore completely determined by the merge sequence qq2 (Großwendt et al., 2019).

The agglomerative updates are usually expressed through the Lance–Williams recurrence

qq3

For Ward's method, qq4, and with cluster weights qq5,

qq6

In centroid/SSE notation, the corresponding update identity is

qq7

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 qq8, 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

qq9

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,

iqd2(i,q),\sum_{i \in q} d^2(i,q),0

and notes that most classical linkage functions, including Ward's, admit iqd2(i,q),\sum_{i \in q} d^2(i,q),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: iqd2(i,q),\sum_{i \in q} d^2(i,q),2-packability, approximate triangle inequality, weight-stability, average-reducibility, and poly-bounded diameter. It proves that Ward's linkage is well-behaved, specifically iqd2(i,q),\sum_{i \in q} d^2(i,q),3-packable and satisfying the remaining four axioms, and uses this to obtain an efficient NC algorithm for iqd2(i,q),\sum_{i \in q} d^2(i,q),4-approximate HAC in low dimensions. The approximation notion is merge-wise: at each step the algorithm may merge any pair iqd2(i,q),\sum_{i \in q} d^2(i,q),5 with

iqd2(i,q),\sum_{i \in q} d^2(i,q),6

rather than the exact closest pair. The paper further shows that any constant-approximate HAC for this class has hierarchy height at most iqd2(i,q),\sum_{i \in q} d^2(i,q),7 when the ambient dimension satisfies iqd2(i,q),\sum_{i \in q} d^2(i,q),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 iqd2(i,q),\sum_{i \in q} d^2(i,q),9 is the merge-cost increase in the 1qiqd2(i,q),\frac{1}{|q|}\sum_{i\in q} d^2(i,q),0-th step, then

1qiqd2(i,q),\frac{1}{|q|}\sum_{i\in q} d^2(i,q),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 1qiqd2(i,q),\frac{1}{|q|}\sum_{i\in q} d^2(i,q),2-means. Under clusterability assumptions, the method has positive guarantees. If 1qiqd2(i,q),\frac{1}{|q|}\sum_{i\in q} d^2(i,q),3 satisfies weak 1qiqd2(i,q),\frac{1}{|q|}\sum_{i\in q} d^2(i,q),4-center separation or 1qiqd2(i,q),\frac{1}{|q|}\sum_{i\in q} d^2(i,q),5-center proximity, then Ward computes a 1qiqd2(i,q),\frac{1}{|q|}\sum_{i\in q} d^2(i,q),6-approximation for the 1qiqd2(i,q),\frac{1}{|q|}\sum_{i\in q} d^2(i,q),7-means objective,

1qiqd2(i,q),\frac{1}{|q|}\sum_{i\in q} d^2(i,q),8

If, in addition, the optimal clusters 1qiqd2(i,q),\frac{1}{|q|}\sum_{i\in q} d^2(i,q),9 satisfy the balance condition

iqp(i)d2(i,q),\sum_{i\in q} p(i)\, d^2(i,q),0

and the input satisfies iqp(i)d2(i,q),\sum_{i\in q} p(i)\, d^2(i,q),1-center separation, then Ward exactly recovers the optimal iqp(i)d2(i,q),\sum_{i\in q} p(i)\, d^2(i,q),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 iqp(i)d2(i,q),\sum_{i\in q} p(i)\, d^2(i,q),3 for which

iqp(i)d2(i,q),\sum_{i\in q} p(i)\, d^2(i,q),4

The bad family even satisfies strict separation, iqp(i)d2(i,q),\sum_{i\in q} p(i)\, d^2(i,q),5-separation for any iqp(i)d2(i,q),\sum_{i\in q} p(i)\, d^2(i,q),6, the Awasthi–Sheffet separation condition, and iqp(i)d2(i,q),\sum_{i\in q} p(i)\, d^2(i,q),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 iqp(i)d2(i,q),\sum_{i\in q} p(i)\, d^2(i,q),8, Ward always yields an iqp(i)d2(i,q),\sum_{i\in q} p(i)\, d^2(i,q),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 d2(i,i)=ii2=j(ijij)2d^2(i,i')=\|i-i'\|^2=\sum_j (i_j-i'_j)^20 is valid if every within-cluster similarity is strictly larger than every similarity from a point in d2(i,i)=ii2=j(ijij)2d^2(i,i')=\|i-i'\|^2=\sum_j (i_j-i'_j)^21 to a point outside d2(i,i)=ii2=j(ijij)2d^2(i,i')=\|i-i'\|^2=\sum_j (i_j-i'_j)^22, 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

d2(i,i)=ii2=j(ijij)2d^2(i,i')=\|i-i'\|^2=\sum_j (i_j-i'_j)^23

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 d2(i,i)=ii2=j(ijij)2d^2(i,i')=\|i-i'\|^2=\sum_j (i_j-i'_j)^24, d2(i,i)=ii2=j(ijij)2d^2(i,i')=\|i-i'\|^2=\sum_j (i_j-i'_j)^25, and d2(i,i)=ii2=j(ijij)2d^2(i,i')=\|i-i'\|^2=\sum_j (i_j-i'_j)^26, but Ward's binary tree instead contains d2(i,i)=ii2=j(ijij)2d^2(i,i')=\|i-i'\|^2=\sum_j (i_j-i'_j)^27 and d2(i,i)=ii2=j(ijij)2d^2(i,i')=\|i-i'\|^2=\sum_j (i_j-i'_j)^28 as the top split before the root, so the valid cluster d2(i,i)=ii2=j(ijij)2d^2(i,i')=\|i-i'\|^2=\sum_j (i_j-i'_j)^29 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

T=B+WT=B+W0

and rewrites cluster SSE as a kind of diameter or dispersion,

T=B+WT=B+W1

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 T=B+WT=B+W2 on a domain T=B+WT=B+W3, the band delimited by the curves is

T=B+WT=B+W4

and its average width is

T=B+WT=B+W5

Functional Ward's linkage is then defined by the increase in this band width under merging. As printed, the paper gives

T=B+WT=B+W6

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 T=B+WT=B+W7 and T=B+WT=B+W8. 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 T=B+WT=B+W9 with distribution WW0, directional outlyingness is

WW1

where WW2 is a depth notion and WW3 is the unit vector pointing from the median of WW4 to WW5. 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 WW6 and WW7. 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 WW8 and WW9. 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 kk00 for Ward's method versus kk01 for the main Chamfer variant, and the NMI geomean is kk02 for Ward versus kk03 for Chamfer. The paper summarizes this by saying that Chamfer-linkage kk04 “consistently outperforms all classical linkage functions,” while Ward, although the strongest classical baseline overall, can still be up to kk05 worse than the best-performing method in ARI in the worst case and kk06 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 kk07, essentially tied for best with symmetric Chamfer kk08 at kk09. 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 kk10-space scalability limit: on kk11 and kk12, all exact kk13-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).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Ward's Linkage.