Conditional Selective Inference for Robust Regression and Outlier Detection using Piecewise-Linear Homotopy Continuation

Toshiaki Tsukurimichi, Yu Inatsu, Vo Nguyen Le Duy, Ichiro TakeuchiarXiv 2021

Abstract

In practical data analysis, researchers often employ robust methods to identify and remove outliers before performing final statistical modeling. However, conducting inference on a model after such data-driven selection introduces "selection bias," rendering standard statistical tests invalid. This paper presents a novel conditional selective inference (SI) framework for robust regression. By utilizing piecewise-linear homotopy continuation, we characterize the complex selection events associated with robust estimators like Least Absolute Deviation (LAD) and Huber regression. Our method enables the calculation of exact p-values that account for the outlier removal process, ensuring statistical validity. We demonstrate that this approach maintains the False Positive Rate (FPR) and provides superior power compared to traditional corrections in both synthetic and real-world datasets.

Introduction: The Hidden Cost of Data Cleaning

A standard workflow in data science involves identifying outliers using robust methods, removing them, and then fitting a final model to the "clean" data. While intuitive, this process constitutes a form of "double-dipping." Because the data itself was used to decide which points to exclude, the remaining sample is no longer a random sample from the original population.

Standard statistical tests, such as p-values, assume that the model structure was determined independently of the data. When this assumption is violated through outlier removal, the resulting p-values become "anti-conservative"—they appear much more significant than they actually are. This selection bias leads to a high rate of false discoveries, where random noise is mistaken for a meaningful effect.

The Challenge of Selective Inference in Robust Regression

Selective Inference (SI) is a framework designed to correct for this bias by conditioning the statistical test on the selection event—the fact that a specific subset of data was identified as outliers. While SI techniques have been successfully developed for methods like the Lasso, they typically require the selection process to be described by simple linear or quadratic constraints.

Robust regression methods, such as LAD or Huber regression, do not fit these simple geometric descriptions. Their selection boundaries are significantly more complex, making it difficult to characterize the "event" of choosing a specific set of outliers. Consequently, valid inference after robust outlier detection has remained a major challenge in the field.

Methodology: Piecewise-Linear Homotopy Continuation

The authors propose a conditional SI method that leverages the mathematical structure of robust estimators. The core innovation is the use of Piecewise-Linear Homotopy Continuation to navigate the data space.

1. Characterizing the Selection Event

Instead of attempting to map the entire high-dimensional space of possible datasets, the method focuses on a one-dimensional line in the data space that passes through the observed data point. This line is parameterized by a scalar $z$. As we move along this line, the "optimal" solution for the robust regression changes.

2. Tracking the Solution Path

Because robust estimators (like LAD and Huber) can be framed as parametric Linear Programming (LP) or Quadratic Programming (QP) problems, their solution paths are piecewise-linear. The authors use a homotopy method to efficiently identify all "breakpoints" along the 1D line where the set of detected outliers changes.

3. Constructing the Truncated Distribution

By identifying the specific intervals of $z$ that result in the same set of outliers being selected, the researchers can construct a "truncated" Normal distribution. The final p-value is calculated relative to this truncated distribution. This effectively "subtracts out" the bias introduced by the selection process, providing a test that is conditional on the outlier detection step.

Experimental Validation

The framework was evaluated using synthetic simulations and classic benchmark datasets, including Brownlee’s Stack Loss Plant Data and the Scottish Hill Races dataset.

Key Findings

  • FPR Control: In synthetic experiments, "naive" inference (ignoring the selection step) failed to control the False Positive Rate, with errors far exceeding the 5% target. In contrast, the proposed Piecewise-Linear Homotopy SI (PLH-SI) method controlled the FPR perfectly at 0.05 across all tested settings.
  • Statistical Power: Compared to the Bonferroni correction—a standard but often overly conservative method for handling multiple testing—the PLH-SI method demonstrated significantly higher power (True Positive Rate). It successfully identified real outliers that the Bonferroni method missed.
  • Real-World Application: On the Stack Loss and Hill Races datasets, the method identified known influential outliers with statistically significant p-values. In several cases, the PLH-SI method confirmed outliers that were deemed non-significant by Bonferroni-adjusted tests, demonstrating its practical utility in identifying subtle but important data anomalies.

Discussion and Future Work

The PLH-SI framework represents a significant step forward in making data cleaning statistically rigorous. By moving beyond simple linear constraints and utilizing the piecewise-linear nature of robust estimators, it avoids the "over-conditioning" trap that often plagues other SI methods, thereby preserving statistical power.

However, some challenges remain. The computational complexity of tracking many breakpoints may increase as the number of data points ($n$) grows very large. Additionally, the current method assumes that tuning parameters (such as the outlier threshold) are fixed beforehand. Future research may explore "approximate" parametric programming for non-linear or non-convex robust estimators, further expanding the reach of valid selective inference.

Summary updated

BibTeX
@misc{tsukurimichi2021conditional,
  author = {Toshiaki Tsukurimichi and Yu Inatsu and Vo Nguyen Le Duy and Ichiro Takeuchi},
  title = {{Conditional Selective Inference for Robust Regression and Outlier Detection using Piecewise-Linear Homotopy Continuation}},
  year = {2021},
  eprint = {2104.10840},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.10840},
}
Figure