Selective inference for k-means clustering

Yiqun T. Chen, Daniela M. Witten
3/29/2022
88 citations
stat.MEstat.ML

Official code: yiqunchen/KmeansInference (10 stars, R, last commit 2026-06-24). 1 more implementation below.

Abstract

We consider the problem of testing for a difference in means between clusters of observations identified via k-means clustering. In this setting, classical hypothesis tests lead to an inflated Type I error rate.

Show full abstract

To overcome this problem, we take a selective inference approach. We propose a finite-sample p-value that controls the selective Type I error for a test of the difference in means between a pair of clusters obtained using k-means clustering, and show that it can be efficiently computed. We apply our proposal in simulation, and on hand-written digits data and single-cell RNA-sequencing data.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
yiqunchen/KmeansInferenceOfficial10R–2026-06-24
yiqunchen/KmeansInference-experimentsOfficial0RMIT2022-03-25

Quantifying uncertainty for k-means clustering

101R, CSSApr 20, 20215 months ago
MIT

Code and instructions to reproduce results and figures from the paper "Selective inference for k-means clustering"

00RFeb 27, 20224 years agoMIT

Similar Papers

Cite this paper

@article{chen2022selective,
  title  = {Selective inference for k-means clustering},
  author = {Yiqun T. Chen and Daniela M. Witten},
  year   = {2022},
  eprint = {2203.15267},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.15267}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.15267.svg)](https://codeofpaper.com/paper/2203.15267)

Discussion