Probabilistic Missing Value Imputation for Mixed Categorical and Ordered Data

Yuxuan Zhao, Alex Townsend, Madeleine Udell · DOI

Abstract

Many real-world datasets contain missing entries and mixed data types including categorical and ordered (e.g. continuous and ordinal) variables. Imputing the missing entries is necessary, since many data analysis pipelines require complete data, but this is challenging especially for mixed data. This paper proposes a probabilistic imputation method using an extended Gaussian copula model that supports both single and multiple imputation. The method models mixed categorical and ordered data using a latent Gaussian distribution. The unordered characteristics of categorical variables is explicitly modeled using the argmax operator. The method makes no assumptions on the data marginals nor does it require tuning any hyperparameters. Experimental results on synthetic and real datasets show that imputation with the extended Gaussian copula outperforms the current state-of-the-art for both categorical and ordered variables in mixed data.

Introduction

Data scientists rarely encounter "clean" datasets. Most real-world data is a messy mix of continuous numbers, ordinal scales, and categorical labels, often riddled with missing entries. Standard imputation methods usually assume a "total order," which works for age or income but fails for categorical data like demographic groups. To address this, researchers often use one-hot encoding or assign arbitrary numbers to categories, but these hacks can introduce bias or fail to capture true relationships. Existing iterative methods like MICE or missForest are popular but can be computationally expensive on large datasets and often lack a solid probabilistic foundation for quantifying uncertainty.

Methodology

The authors introduce the Extended Gaussian Copula (EGC), a framework that assumes all observed data originates from a hidden (latent) multivariate Gaussian distribution.

The Argmax Trick

To handle categorical variables, the model uses a "Gaussian-Max" distribution. A categorical value is modeled as the index of the maximum entry in a latent Gaussian vector, explicitly respecting the unordered nature of categories. For ordered data (continuous and ordinal), the standard Gaussian copula handles marginal distributions separately from the correlation structure.

Parameter Estimation and Imputation

A robust Expectation-Maximization (EM) algorithm is used to fit the model. EGC is identifiable and hyperparameter-free, removing the need for manual tuning. Because the model is probabilistic, it supports multiple imputation, allowing researchers to generate several plausible versions of missing data to quantify uncertainty.

Algorithm 1: Multiple imputation via the extended Gaussian Copula

Experimental Setup

The authors evaluated EGC against competitors using:

  • Synthetic Datasets: Controlled tests with varying categories and samples.
  • UCI Machine Learning Repository: Six diverse real-world datasets (Abalone, Heart, CMC, Credit-g, Credit-a, and Colic) representing various features, sample sizes, and categorical-to-ordered ratios.

Results and Discussion

EGC consistently outperformed or matched state-of-the-art methods like MICE, missForest, and softImpute in terms of Misclassification Error (categorical) and Mean Absolute Error (ordered variables).

One of the most significant advantages is efficiency at scale. As shown in the performance comparison below, EGC scales much more gracefully than missForest as the number of samples ($n$) increases. On a dataset with 20,000 samples, EGC was nearly 18 times faster than missForest (202 seconds vs. 3714 seconds) while maintaining lower error rates across categorical, continuous, and ordinal variables.

Performance comparison between EGC and missForest across different sample sizes

Conclusion

The Extended Gaussian Copula provides a powerful, hyperparameter-free solution for mixed-data imputation. By avoiding artificial ordering of categorical data through the argmax operator, it achieves superior accuracy and speed. While the current model assumes data is Missing Completely At Random (MCAR) for marginal estimation, its empirical performance remains strong in MAR/MNAR scenarios. Future work may explore non-linear dependencies beyond the Gaussian structure and improve handling for extremely rare categories.

Summary updated

BibTeX
@inproceedings{zhao2022probabilistic,
  author = {Yuxuan Zhao and Alex Townsend and Madeleine Udell},
  title = {{Probabilistic Missing Value Imputation for Mixed Categorical and Ordered Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=h4kN_apci_R},
}
Figure