arXiv:2609.08234stat.MLSep 2026

Manuscript Offprint

arXiv:2609.08234

Distribution-free inference on the number of changepoints

Rohan Hore, Aaditya Ramdas

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Suppose we are given an ordered sequence of independent data whose distribution changes KK times at unknown locations, for some unknown K≥0K \geq 0. In this paper, we study the problem of performing distribution-free inference on KK. First, we show an impossibility result: any distribution-free upper confidence bound on KK must be trivial and uninformative. Then, using conformal pp-values, and under only the assumption that the data segments induced by the changepoints are exchangeable (within themselves) and mutually independent, we construct a finite-sample valid lower confidence bound on KK, which we call the Conformal Lower bound on Changepoint Count (CLOCC). We show that CLOCC is the only feasible way to provide a lower bound on KK under the stated assumptions, a property we refer to as its universality. We provide practical guidelines for choosing score functions that yield efficient and tight lower bounds. We evaluate CLOCC in several synthetic and real-data experiments, where it provides informative lower bounds on KK, demonstrating its practical applicability.

Keywords: Changepoint count, number of changepoints, conformal inference, conformal p-values, distribution-free inference.

1 Introduction

In this paper, we study the problem of distribution-free inference on the number of changepoints in an ordered data sequence. The changepoint count is an important modeling parameter. First, in real-world applications, both the number and locations of the changes are typically unknown. Therefore, estimating the full changepoint configuration can be statistically and computationally challenging. Knowledge of the changepoint count KK considerably simplifies this problem, since one then only needs to identify the most appropriate (K+1)(K+1)-segmentation of the timeline. Second, KK is itself a quantitative summary of the complexity of the underlying data-generating mechanism: larger values of KK indicate that more distinct regimes are needed to explain the observed sequence.

*Corresponding author: rhore@stanford.edu

Thus, reliable inference on KK can directly inform appropriate modeling assumptions. Finally, in some applications (Zhao and Pan, 2025; Vagnoli and Remenyte-Prescott, 2018), an unexpectedly large changepoint count can be treated as an early indication of failure in the underlying system. Given this practical relevance of the changepoint count, we therefore aim to quantify uncertainty about KK in a distribution-free and finite-sample valid manner, without imposing restrictive modeling assumptions or relying on large-sample approximations.

References (49)