English

On the k-Means/Median Cost Function

Data Structures and Algorithms 2021-09-10 v2

Abstract

In this work, we study the kk-means cost function. Given a dataset XRdX \subseteq \mathbb{R}^d and an integer kk, the goal of the Euclidean kk-means problem is to find a set of kk centers CRdC \subseteq \mathbb{R}^d such that Φ(C,X)xXmincCxc2\Phi(C, X) \equiv \sum_{x \in X} \min_{c \in C} ||x - c||^2 is minimized. Let Δ(X,k)minCRdΦ(C,X)\Delta(X,k) \equiv \min_{C \subseteq \mathbb{R}^d} \Phi(C, X) denote the cost of the optimal kk-means solution. For any dataset XX, Δ(X,k)\Delta(X,k) decreases as kk increases. In this work, we try to understand this behaviour more precisely. For any dataset XRdX \subseteq \mathbb{R}^d, integer k1k \geq 1, and a precision parameter ε>0\varepsilon > 0, let L(X,k,ε)L(X, k, \varepsilon) denote the smallest integer such that Δ(X,L(X,k,ε))εΔ(X,k)\Delta(X, L(X, k, \varepsilon)) \leq \varepsilon \cdot \Delta(X,k). We show upper and lower bounds on this quantity. Our techniques generalize for the metric kk-median problem in arbitrary metric spaces and we give bounds in terms of the doubling dimension of the metric. Finally, we observe that for any dataset XX, we can compute a set SS of size O(L(X,k,ε/c))O \left(L(X, k, \varepsilon/c) \right) using D2D^2-sampling such that Φ(S,X)εΔ(X,k)\Phi(S,X) \leq \varepsilon \cdot \Delta(X,k) for some fixed constant cc. We also discuss some applications of our bounds.

Keywords

Cite

@article{arxiv.1704.05232,
  title  = {On the k-Means/Median Cost Function},
  author = {Anup Bhattacharya and Yoav Freund and Ragesh Jaiswal},
  journal= {arXiv preprint arXiv:1704.05232},
  year   = {2021}
}

Comments

This update includes minor improvements and a new section on Dimension Estimation

R2 v1 2026-06-22T19:19:47.693Z