When Pattern-by-Pattern Works: Theoretical and Empirical Insights for Logistic Models with Missing Values

Christophe Muller, Erwan Scornet, Julie JossearXiv 2025 · DOI

Abstract

Missing data presents a significant hurdle for training predictive models. While the "Pattern-by-Pattern" (PbP) strategy—training a separate model for each unique missingness pattern—is often dismissed as theoretically inconsistent, this research demonstrates its efficacy as a powerful approximation of the Bayes optimal predictor for logistic regression. We provide theoretical proofs and empirical evidence showing that PbP is computationally efficient, robust to "Missing Not at Random" (MNAR) scenarios, and practically viable due to the structured nature of real-world missingness.

Introduction

In supervised learning, missing values typically prevent the direct application of standard logistic regression. Common remedies include Complete Case (CC) analysis, which discards incomplete rows, or various imputation techniques to fill missing entries. However, a "brute force" alternative exists: the Pattern-by-Pattern (PbP) approach. Despite its intuitive appeal, statisticians have historically been skeptical of PbP because it does not necessarily converge to the true underlying model parameters of the full data. This paper investigates why PbP performs remarkably well in practice and identifies the conditions under which it should be preferred.

Theoretical Foundation: The Probit-Logistic Bridge

The core theoretical contribution of this work is bridging the gap between Probit and Logistic models under missingness. While logistic regression lacks a closed-form solution for optimal prediction with missing values, Probit models—which use a Gaussian cumulative distribution function—do.

Under a Gaussian Pattern Mixture Model (GPMM), the authors prove that a Probit model remains well-specified for every missingness pattern. Because the logistic and Probit functions are nearly identical in shape, a PbP logistic approach serves as a near-optimal approximation of the Bayes classifier.

Figure 2: Comparison of the optimal predictor (purple) and its closest logistic approximation (dashed blue) for Normal and Exponential covariates.

As shown in the figure above, the logistic approximation remains extremely close to the expected sigmoid across different covariate distributions, with a maximum error of approximately 0.018.

Empirical Evaluation

The authors benchmarked PbP against several standard methods, including Mean Imputation, Multivariate Imputation by Chained Equations (MICE), and Stochastic Approximation EM (SAEM). These were tested across synthetic datasets (MCAR, MAR, and MNAR) and 20 real-world benchmarks.

Performance Across Metrics

The evaluation focused on four key areas: classification error, probability estimation (Brier score), calibration, and parameter inference.

Figure 5: Performance comparison of PbP against competing methods across four metrics as a function of training sample size.

Key findings from the empirical results include:

  • Sample Size Sensitivity: For large datasets, PbP (blue line) is a top performer, approaching the Bayes optimal error rate. For smaller datasets, simpler methods like Mean Imputation (red dashed line) are often more stable.
  • Robustness to MNAR: Unlike standard imputation methods that assume data is "Missing at Random," PbP naturally handles "Missing Not at Random" data by directly learning the relationship between the missingness pattern and the outcome.
  • Computational Efficiency: PbP is significantly faster than generative models like SAEM. In tests with 50,000 samples, PbP trained in roughly 5.6 seconds, compared to 275 seconds for SAEM.

The Reality of Missingness Patterns

A common critique of PbP is the "curse of dimensionality"—the theoretical $2^d$ possible patterns for $d$ features. However, analysis of 20 real-world datasets revealed that missingness is highly structured. In 90% of the datasets studied, the 10 most frequent patterns accounted for over 80% of the observations. This empirical finding confirms that PbP is not just a theoretical curiosity but a practically feasible strategy for most real-world applications.

Conclusion and Future Work

The Pattern-by-Pattern strategy is a robust, efficient, and near-optimal approach for logistic regression with missing values, particularly in large-scale or MNAR settings. While it requires sufficient samples per pattern and may struggle with highly non-linear relationships, its simplicity and speed make it a compelling alternative to complex imputation pipelines. Future research may focus on integrating non-linear learners into the PbP framework and developing regularization techniques for patterns with low sample counts.

Summary updated

BibTeX
@misc{muller2025when,
  author = {Christophe Muller and Erwan Scornet and Julie Josse},
  title = {{When Pattern-by-Pattern Works: Theoretical and Empirical Insights for Logistic Models with Missing Values}},
  year = {2025},
  eprint = {2507.13024},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.13024},
}
Figure