Change-point detection in multinomial data with a large number of categories

Wang Guang-Hui, Changliang Zou, Guosheng YinThe Annals of Statistics 2018

Abstract

This paper addresses the challenge of detecting abrupt changes in the probability distributions of multinomial data sequences, particularly when the number of categories ($p$) is comparable to or exceeds the number of subjects ($n$). In such high-dimensional settings, classical methods like Pearson’s chi-squared test often fail due to data sparsity. We propose a novel change-point detection procedure that utilizes a hybrid test statistic combining $L_2$-norm and max-norm approaches. This method allows the number of categories to tend toward infinity and establishes asymptotic normality for the test statistic. By minimizing a penalized objective function via dynamic programming, we can consistently estimate the number and locations of multiple change-points. Simulation studies and an analysis of Chicago restaurant recommendation data demonstrate the method's superior power and accuracy compared to traditional benchmarks.

Introduction

Multinomial data—where observations are classified into discrete, mutually exclusive categories—is ubiquitous in modern data science. Examples include tracking product popularity on e-commerce platforms or analyzing the evolving vocabulary of news cycles. However, the "big data" era has introduced a significant hurdle: the "large $p$, small $n$" problem. When the number of categories is massive, the resulting contingency tables are often sparse, with many categories containing zero or very few counts.

Standard statistical tools, such as Pearson’s chi-squared test and the deviance test, were designed for low-dimensional settings where expected counts are sufficiently large. In high-dimensional scenarios, these tests break down because they involve dividing by expected category proportions. If these proportions are near zero, the statistics become unstable or undefined. This paper introduces a robust framework for identifying when the underlying probability distribution of these categories shifts without relying on fragile classical assumptions.

Methodology

The Hybrid Test Statistic

The core of the proposed method is a novel test statistic, $Q_{p, \hat{\mathcal{A}}}$, designed to remain stable in the presence of sparsity. The authors employ three primary strategies:

  1. Removing Standardization: Unlike the chi-squared test, the proposed $L_2$-norm statistic ($L_\tau$) avoids dividing by individual category proportions. This ensures the statistic remains well-defined even when many categories have zero counts.
  2. Feature Screening (The Hybrid Approach): Structural changes in multinomial data can be "dense and faint" (small shifts across many categories) or "sparse and strong" (dramatic shifts in a few categories). To address both, the method partitions categories into two sets:
  3. Set $\mathcal{A}$ (Significant): Categories with relatively high probabilities. These are analyzed using a max-norm test, which is highly sensitive to large, isolated changes.
  4. Set $\mathcal{B}$ (Diminishing): The "long tail" of low-probability categories. These are analyzed using an $L_2$-norm test with a bias-correction term to aggregate subtle signals across the tail.
  5. Asymptotic Normality: The authors prove that as the number of categories ($p$) tends toward infinity, the null distribution of the test statistic converges to a normal distribution. This allows for the reliable calculation of p-values and significance thresholds in high-dimensional contexts.

Multiple Change-Point Estimation

To detect multiple shifts across a time series, the authors utilize a penalized objective function based on segmentation. The process involves:

  • Global Optimization: The number of change-points is determined by minimizing the objective function.
  • Dynamic Programming: The locations of these change-points are estimated efficiently using the PELT (Pruned Exact Linear Time) algorithm, which maintains computational feasibility even as the sequence length grows.

Empirical Results

Simulation Studies

The researchers evaluated the method against classical Pearson and Hellinger tests using sequences with up to 5,000 categories and 1,000 samples. The results indicated:

  • Superior Power: The $Q_{p, \hat{\mathcal{A}}}$ test consistently outperformed traditional methods in detecting both dense and sparse signals.
  • Size Stability: While classical tests suffered from significant "size distortion" (falsely identifying changes due to high dimensionality), the proposed method maintained a stable 5% error rate.
  • Estimation Accuracy: The estimators for change-point locations proved highly accurate, with standard deviations decreasing as the sample size increased, regardless of the magnitude of $p$.

Real-World Application: Entree Chicago Data

The method was applied to the Entree Chicago Recommendation dataset, which tracks user interactions with a restaurant recommendation system over 134 weeks ($p=617$ restaurant IDs). The analysis identified five distinct change-points (at weeks 53, 54, 62, 63, and 90). These shifts represent significant changes in consumer preferences, potentially reflecting seasonal trends or specific external events impacting the catering industry in Chicago.

Discussion and Limitations

While the proposed method offers a significant advancement in high-dimensional change-point detection, certain limitations remain. The theory assumes that "significant" and "diminishing" categories can be clearly separated by a threshold; however, in datasets with a very smooth transition between categories, this binary split may be sub-optimal. Additionally, while the PELT algorithm is efficient, extremely large datasets with millions of categories may require further algorithmic optimization.

Future research could focus on variable selection to identify which specific categories drive a detected change, providing deeper interpretability for practitioners in fields like genomics, finance, and e-commerce.

Summary updated

BibTeX
@article{guanghui2018change,
  author = {Wang Guang-Hui and Changliang Zou and Guosheng Yin},
  title = {{Change-point detection in multinomial data with a large number of categories}},
  journal = {The Annals of Statistics},
  year = {2018},
  doi = {10.1214/17-aos1610},
}
Figure