GATE DA 2024 · k-Means & k-Medoid Clustering

MCQ · 1 mark · Problem ML-CLUS-0015

Euclidean distance based \(k\)-means clustering algorithm was run on a dataset of 100 points with \(k=3\). If the points \([1, 1]^T\) and \([-1, 1]^T\) are both part of cluster 3, then which of the following points is necessarily also part of cluster 3?
  1. A
    \([0, 0]^T\)
  2. B
    \([0, 2]^T\)
  3. C
    \([2, 0]^T\)
  4. D
    \([0, 1]^T\)

Solve it on GATE DA practice →More Unsupervised Learning — Clustering problems

Show the worked solution\[\boxed{\text{a }k\text{-means cluster is the set of points nearest to its centroid: a convex Voronoi cell}}\]The points nearer to \(\mathbf c_3\) than to \(\mathbf c_j\) form the half-plane\[\|\mathbf x-\mathbf c_3\|^2\le\|\mathbf x-\mathbf c_j\|^2\iff 2(\mathbf c_j-\mathbf c_3)^T\mathbf x\le\|\mathbf c_j\|^2-\|\mathbf c_3\|^2,\]which is linear in \(\mathbf x\). The cell of \(\mathbf c_3\) is the intersection of two such half-planes, so it is convex: with any two of its points it contains the whole segment joining them.\([1,1]^T\) and \([-1,1]^T\) are in cluster 3, so their midpoint\[\tfrac12[1,1]^T+\tfrac12[-1,1]^T=[0,1]^T\]is in cluster 3 as well.The other three points are not on that segment, so a suitable placement of the other two centroids can put each of them in another cluster. For example, with \(\mathbf c_3=[0,1]^T\), \(\mathbf c_1=[0,-0.5]^T\) and \(\mathbf c_2=[3,0]^T\), the points \([0,0]^T\) and \([2,0]^T\) are nearer to \(\mathbf c_1\) and \(\mathbf c_2\) respectively; with \(\mathbf c_1=[0,2.5]^T\) instead, the point \([0,2]^T\) is nearer to \(\mathbf c_1\).Answer: D

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com