Detection and Localization of Changes in Conditional Distributions

Lizhen Nie, Dan NicolaeNeurIPS 2022

TL;DR

This paper introduces a novel framework for detecting and localizing "change points" in the relationship between variables—specifically, when the conditional distribution of a target variable given a set of covariates shifts abruptly. By leveraging kernel methods and non-parametric estimators, the authors propose the KCD (Kernel-based change point analysis for Conditional Distributions) algorithm, which outperforms standard methods by isolating changes in the relationship itself rather than just shifts in the individual variables.

What Problem Does This Paper Address?

Change point (CP) detection is the task of finding the exact moment in a time series when the underlying statistical properties change. Most existing methods look for changes in the marginal distribution (e.g., "Did the average temperature suddenly rise?") or the joint distribution (e.g., "Did the combined behavior of temperature and humidity change?").

However, in many real-world scenarios, we care about the conditional distribution $p(y|x)$. For example, a sociologist might want to know if the relationship between education level ($x$) and income ($y$) has shifted over decades. If both education levels and incomes rise globally, a joint distribution test might flag a change, even if the "payoff" for a degree remains identical. This paper tackles the "random design" setting where covariates are not fixed, providing a way to detect when the fundamental "rule" connecting $x$ to $y$ breaks or evolves.

Methods

The authors build their solution in two steps:

  1. KCE (Kernel-based CP for Conditional Expectations): They first solve a simpler version of the problem—detecting changes in the conditional mean ($E[y|x]$). They use the Nadaraya-Watson (NW) estimator, a non-parametric way to estimate the relationship between variables. At every potential time point $t$, they compare a "left-side" estimate (using data before $t$) to a "right-side" estimate (using data after $t$).
  2. KCD (Kernel-based CP for Conditional Distributions): To capture changes in the entire distribution (like variance or shape, not just the mean), they generalize KCE using the "kernel trick." By mapping the conditional distributions into a Reproducing Kernel Hilbert Space (RKHS), they can calculate a distance metric similar to Maximum Mean Discrepancy (MMD).
Test statistic sequence under null (left) and alternative (right) hypotheses.

Key Innovation: The authors introduce a sophisticated standardization technique. Because the variance of these estimators changes depending on where you are in the sequence and how complex the covariate space is, they use Kolmogorov entropy to rescale the statistics, making them comparable across the entire time series.

Datasets

The researchers evaluated their methods using both synthetic simulations and real-world datasets:

  • Synthetic Data: Various non-linear relationships (e.g., $y = \cos(x) + \epsilon$) where the function or the noise distribution changes at a specific point.
  • UK Stock Index (FTSE 100): Analyzing the relationship between the FTSE 100 and international indices (NYSE and NIKKEI) around the time of the Brexit vote (June 2016).
  • Market Interest Rates: Examining the relationship between three-month T-bill yields and the Federal Reserve's discount rates between 1973 and 1989.

Key Insights and Ideas

  • Conditional vs. Joint: The paper argues convincingly that testing for changes in $p(y|x)$ is more robust than testing $p(x, y)$. If the distribution of covariates $p(x)$ changes but the relationship $p(y|x)$ stays the same, KCD correctly ignores the "distraction," whereas joint distribution methods would trigger a false positive.
  • Handling Non-Euclidean Data: Because KCD is kernel-based, it isn't limited to simple numbers. It can detect changes in relationships involving high-dimensional vectors or even more abstract data types, provided a suitable kernel exists.
  • The "Aha" Moment on Standardization: The realization that the complexity of the covariate space (its "topological complexity") directly impacts the variance of the change-point statistic is a major theoretical contribution. This allows the method to work in "random design" settings where $x$ is not neatly spaced.

Key Results

  • Superior Localization: In synthetic "Experiment B" (where the variance of the relationship changes), KCD achieved an $l_1$ localization error of 1.3 to 12.6, significantly lower than the baseline fixed-design method, which had errors ranging from 89 to 284.
Localization error comparison showing KCD significantly outperforming baselines.
  • Brexit Detection: In the UK stock data, KCD precisely identified June 23, 2016 (the day of the Brexit referendum) as the change point in the relationship between the UK market and global indices, with a high degree of statistical significance ($p < 0.01$).
  • Robustness: The method proved effective even when the conditional mean remained constant but the "volatility" (variance) of the relationship shifted.

Limitations and Future Work

  • Computational Complexity: The KCD algorithm has a time complexity of $O(n^3)$, where $n$ is the number of observations. This makes it difficult to apply to massive datasets (e.g., millions of rows) without further optimization.
  • Single Change Point: The primary framework is designed to find one major change point. While the authors suggest a "windowing" approach for multiple change points in the appendix, a native multi-point detection version is still a work in progress.
  • Kernel Selection: Like all kernel methods, performance depends on choosing the right kernel and bandwidth, which can require manual tuning or cross-validation.

Summary updated

BibTeX
@inproceedings{nie2022detection,
  author = {Lizhen Nie and Dan Nicolae},
  title = {{Detection and Localization of Changes in Conditional Distributions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure