kNNSampler: Stochastic Imputations for Recovering Missing Value Distributions

Abstract

We study a missing-value imputation method, termed kNNSampler, that imputes a given unit's missing response by randomly sampling from the observed responses of the k most similar units to the given unit in terms of the observed covariates. This method can sample unknown missing values from their distributions, quantify the uncertainties of missing values, and be readily used for multiple imputation. Unlike popular kNNImputer, which estimates the conditional mean of a missing response given an observed covariate, kNNSampler is theoretically shown to estimate the conditional distribution of a missing response given an observed covariate. Experiments illustrate the performance of kNNSampler. The code for kNNSampler is made publicly available (https://github.com/SAP/knn-sampler).

Cite

Text

Pashmchi et al. "kNNSampler: Stochastic Imputations for Recovering Missing Value Distributions." Transactions on Machine Learning Research, 2025.

Markdown

[Pashmchi et al. "kNNSampler: Stochastic Imputations for Recovering Missing Value Distributions." Transactions on Machine Learning Research, 2025.](https://mlanthology.org/tmlr/2025/pashmchi2025tmlr-knnsampler/)

BibTeX

@article{pashmchi2025tmlr-knnsampler,
  title     = {{kNNSampler: Stochastic Imputations for Recovering Missing Value Distributions}},
  author    = {Pashmchi, Parastoo and Benoit, Jérôme and Kanagawa, Motonobu},
  journal   = {Transactions on Machine Learning Research},
  year      = {2025},
  url       = {https://mlanthology.org/tmlr/2025/pashmchi2025tmlr-knnsampler/}
}