Transforming variables to central normality
Jakob Raymaekers, Peter J. Rousseeuw
TL;DR
This paper tackles the susceptibility of Box-Cox and Yeo-Johnson transformation parameters to outliers by proposing a robust framework that targets central normality rather than full distributional normality. It introduces a robust objective for estimating $\lambda$, rectified transformations to avoid masking outliers, and a two-step reweighted maximum likelihood estimator (RewML) that downweights outliers while refining $\lambda$. Through extensive simulations and real-data examples, RewML consistently reduces bias and MSE in contaminated settings and reveals clearer structure in downstream analyses. The approach provides a practical preprocessing tool for anomaly detection and predictive modeling, available in the RR2020 package as transfo.
Abstract
Many real data sets contain numerical features (variables) whose distribution is far from normal (gaussian). Instead, their distribution is often skewed. In order to handle such data it is customary to preprocess the variables to make them more normal. The Box-Cox and Yeo-Johnson transformations are well-known tools for this. However, the standard maximum likelihood estimator of their transformation parameter is highly sensitive to outliers, and will often try to move outliers inward at the expense of the normality of the central part of the data. We propose a modification of these transformations as well as an estimator of the transformation parameter that is robust to outliers, so the transformed data can be approximately normal in the center and a few outliers may deviate from it. It compares favorably to existing techniques in an extensive simulation study and on real data.
