# Ward's Hierarchical Clustering Method: Clustering Criterion and Agglomerative Algorithm

Ward 계층적 군집화의 두 구현 차이 정리

Fionn Murtagh, Pierre Legendre · arXiv · 2011년 11월 27일

- **연구 문제** Ward 계층적 군집화는 같은 이름으로 불리지만 문헌과 소프트웨어마다 구현이 달라 결과가 다르게 나옵니다.
- **연구 방법** 저자들은 Ward 기준을 분산 분해로 설명하고, 입력 제곱 여부와 높이 척도에 따른 두 구현을 Lance-Williams 형식으로 비교합니다.
- **주요 결과** 제곱 거리 입력에서 두 구현은 같은 기준을 최적화하며, 높이 값은 제곱근 관계로 바뀐다는 것을 실험으로 확인합니다.

## Ward 방법의 혼란과 연구 문제

Ward 계층적 군집화는 1963년 Ward의 논문 이후 널리 쓰였지만, 문헌과 소프트웨어에서 같은 이름 아래 서로 다른 구현이 공존합니다. 이 논문은 입력 dissimilarity를 제곱할지 여부, 출력 덴드로그램 높이에 제곱근을 취할지 여부, 그리고 단계적 agglomerative 알고리즘의 루프 구조에서 나타나는 미묘한 차이를 구분합니다. R에서 hclust의 method="ward" 옵션은 Lance-Williams 형식의 합 기반 갱신을 사용하며, 같은 Ward 이름의 agnes 옵션과 형식적으로 비슷한 알고리즘을 쓰지만 같은 dissimilarity 행렬을 넣어도 출력이 다르게 나타납니다. 따라서 이 글은 두 구현이 왜 형식적으로 같아 보이면서도 결과가 달라지는지를 기준과 알고리즘 수준에서 따라갑니다.

## Ward 기준과 분산 분해

이 논문은 Ward 기준을 군집 내 오차 제곱합과 분산의 관점에서 정리합니다. 군집 중심으로부터의 거리 제곱 합이 오차 제곱합이며, 전체 분산은 Huyghen 정리에 따라 군집 간 분산 B와 군집 내 분산 W의 합으로 분해됩니다. 두 군집을 합칠 때 감소하는 분산을 최소화하는 것이 Ward 기준의 핵심이며, 이는 군집 간 분산을 최대화하는 것과 같은 방향입니다. 다만 이 기준의 정확한 최적화는 NP-complete 문제이므로 실제 구현은 순차적 두 군집 병합이라는 휴리스틱을 사용합니다.

## Lance-Williams 갱신과 두 구현의 차이

Ward1은 Murtagh(1985)의 구현으로, 입력으로 제곱 유클리드 거리를 사용하고 합 기반 Lance-Williams 형식의 갱신식으로 군집 간 dissimilarity를 다시 정의합니다. 두 식은 서로 다른 δ 함수를 쓰지만, 제곱 dissimilarity로 다시 쓰면 같은 갱신 형태가 되어 두 구현이 같은 기준을 최적화할 수 있음이 보입니다. 이 설명은 Lance-Williams 형식의 틀과 구현별 입력·출력 차이를 함께 보여 줍니다.

## 실험 설계와 비교 결과

저자들은 무작위로 생성한 20×4 행렬(seed 19037561 고정)을 사용해 네 가지 실험을 수행합니다. 실험 1은 hclust.PL의 method="ward.D2"와 agnes의 method="ward"를 비교하며 높이 값이 동일하게 나타났다고 보고합니다. 실험 2는 제곱 입력에서 hclust의 ward와 hclust.PL의 ward.D를 비교해 같은 높이 값을 보였다고 보고합니다. 실험 3은 제곱하지 않은 입력으로 비-Ward 결과를 만들며, 그 높이 값은 실험 1과 2와 달리 단조적이지 않다고 보고합니다. 실험 4는 Ward1 결과의 높이에 제곱근을 취하면 Ward2 결과와 일치한다는 것을 보입니다.

이 결과들은 특정 무작위 행렬과 R 구현에서 얻은 것입니다.

## 해석의 범위와 한계

저자들은 Ward2 높이가 Ward1 높이의 제곱근과 단조 관계에 있으므로 덴드로그램 형태는 같고 높이 척도만 다르다고 해석합니다. 이 해석은 Ward2 기준이 거리 척도에 있어 코페네틱 상관과 같은 비교에 더 직접적이라는 주장으로 이어집니다. 또한 Ward 계열의 역전 없는 단조 변화를 보장하려면 Bruynooghe의 reducibility 성질이 필요하다고 설명됩니다. 다만 실험은 하나의 무작위 행렬과 특정 R 함수에 한정되어 있으므로 다른 데이터나 다른 소프트웨어 구현에 같은 결과가 그대로 적용된다고 볼 수는 없습니다.

## 논문 정보

- **저자**: Fionn Murtagh, Pierre Legendre
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2011년 11월 27일
- **등록일**: 2026년 11월 12일
- **수정일**: 2011년 12월 11일
- **버전**: v2
- **arXiv**: 1111.6285
- **DOI**: 10.1007/s00357-014-9161-z
- **분류**: stat.ML · cs.CV · stat.AP
- **원문 이용 조건**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **제공 범위**: 논문 정보, 해설

[논문 원문 ↗](https://arxiv.org/abs/1111.6285v2) · [원문 PDF ↗](https://arxiv.org/pdf/1111.6285v2)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 원문 인용

Fionn Murtagh, Pierre Legendre (2011). Ward's Hierarchical Clustering Method: Clustering Criterion and Agglomerative Algorithm. arXiv:1111.6285v2. https://doi.org/10.1007/s00357-014-9161-z

**BibTeX**

```
@article{murtagh2011ward,
  title = {{Ward's Hierarchical Clustering Method: Clustering Criterion and Agglomerative Algorithm}},
  author = {Fionn Murtagh and Pierre Legendre},
  year = {2011},
  eprint = {1111.6285},
  archivePrefix = {arXiv},
  doi = {10.1007/s00357-014-9161-z},
  url = {https://arxiv.org/abs/1111.6285v2}
}
```

## 다른 논문 해설

- [DARTS: Differentiable Architecture Search](https://refivu.com/papers/e93ed790-8383-46f1-928b-765de23e1c42-darts-differentiable-architecture-search.md)
- [Object Detection in 20 Years: A Survey](https://refivu.com/papers/72ea188e-7911-4728-bc60-13f2ecb6b448-object-detection-in-20-years-a-survey.md)
- [Residual Dense Network for Image Super-Resolution](https://refivu.com/papers/01bf3f14-f3f5-49d6-9844-02a897713390-residual-dense-network-for-image-super-resolution.md)
- [AutoAugment: Learning Augmentation Policies from Data](https://refivu.com/papers/4b6d74c6-1851-4ea4-8417-b325823c633e-autoaugment-learning-augmentation-policies-from-data.md)
- [CNN Features off-the-shelf: an Astounding Baseline for Recognition](https://refivu.com/papers/7a883e97-7894-49b3-9ad9-4cec774f4e63-cnn-features-off-the-shelf-an-astounding-baseline.md)
- [Learning without Forgetting](https://refivu.com/papers/3784f887-f12a-406c-9f7c-0b1573555ee3-learning-without-forgetting.md)
- [Simple and Scalable Predictive Uncertainty Estimation using Deep Ensembles](https://refivu.com/papers/e87c2499-044c-4894-99c5-2fcf0e56d999-simple-and-scalable-predictive-uncertainty-estimation-using.md)
- [StarGAN: Unified Generative Adversarial Networks for Multi-Domain Image-to-Image Translation](https://refivu.com/papers/b61e89a8-05ef-4482-bc67-b5bed59283d8-stargan-unified-generative-adversarial-networks-for-multi.md)
- [A Survey on Evaluation of Large Language Models](https://refivu.com/papers/46dfd405-ef56-4804-b283-8d9be353baaf-a-survey-on-evaluation-of-large-language-models.md)
- [Are Transformers Effective for Time Series Forecasting?](https://refivu.com/papers/a7a6536f-e2ff-47d4-b119-2c6e9038e858-are-transformers-effective-for-time-series-forecasting.md)
- [Knowledge Distillation: A Survey](https://refivu.com/papers/20b6ef99-85b3-42b7-9c02-384c6383f2ff-knowledge-distillation-a-survey.md)
- [Concrete Problems in AI Safety](https://refivu.com/papers/a0a18b13-f86b-4c61-807b-da6798f08495-concrete-problems-in-ai-safety.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/f6ffd1cf-34b4-43fb-8682-2d02bbee1019-ward-s-hierarchical-clustering-method-clustering-criterion)
