BIRCH summarises a sub-cluster by a clustering feature CF=(N,LS,SS). Why are these three numbers enough, and what are the CFs and radius when {1,2,3} is merged with {7,9}? If the threshold is T=3, is the merge allowed?

Unsupervised learning, BIRCH
Level L3 Intermediate. Length Long. Nature Th+Mat Both.

What's being asked

Whether you understand that CFs are additive sufficient statistics from which the centroid and radius follow, so a tree of CFs can be built in one pass.

Key idea

For points xi, N is the count, LS=∑ixi and SS=∑i∥xi∥2. CFs add: CF1+CF2=(N1+N2,LS1+LS2,SS1+SS2). The centroid is LS/N and the radius is R=SS/N−∥LS/N∥2.

Steps

  1. Show why the radius needs only the CF: R2=1N∑i∥xi−c∥2=1N(SS−2c⊤LS+N∥c∥2) with c=LS/N. This simplifies to SS/N−∥LS/N∥2.
  2. CF of {1,2,3}: N=3, LS=6, SS=1+4+9=14. CF of {7,9}: N=2, LS=16, SS=49+81=130.
  3. Add them without touching the raw points: CF=(5, 22, 144).
  4. Centroid =22/5=4.4. Radius R=144/5−4.42=28.8−19.36=9.44=3.07. (Check with the five points: squared deviations sum to 47.2, and 47.2/5=9.44.)
  5. Since 3.07>T=3, BIRCH refuses the merge and the new points start a separate leaf entry. The old sub-cluster's own radius is 14/3−4=0.82, well under T.
  6. Explain the role in the CF-tree: each non-leaf node stores the sums of its children's CFs, with branching factor B and leaf threshold T. One scan inserts each point into the closest leaf entry, which costs about O(log⁡n) per point for the tree descent. Then a global clustering (such as agglomerative) runs on the leaf CFs.

Common mistakes

How long your answer should be

One page; 6–8 minutes.

Last checked on 4 December 2026.

Read this

Previous in Unsupervised learning: A graph on four nodes has edge weights w12=1, w34=1, w23=0.1 and no other edges. Write the unnormalised Laplacian L=D−W and find its second-smallest eigenvalue and eigenvector. What clustering does the sign of that eigenvector give, and how does the eigenvalue compare with the RatioCut of that split?
Next in Unsupervised learning: In OPTICS with ε=3 and minPts=3 (counting the point itself) on the 1-D points {0,2,4,6,7,7.2,7.4,7.6}, compute the core distance of points 4, 6 and 7.2 and the reachability distances of 6 from 4, of 7.0 from 6, and of 7.4 from 7.2. Why does OPTICS handle this data better than one DBSCAN run?