[Paper Review] Nearest Neighbor Imputation for Categorical Data by Weighting of Attributes
This paper proposes a novel weighted nearest neighbor imputation method, wNNSel_cat, for categorical data that leverages attribute associations through a kernel-based distance metric. By weighting attributes according to their associations, the method reduces imputation error compared to existing approaches, with wNNSel_dum (using dummy variables and correlation) outperforming wNNSel_cat on multi-categorical data, especially in real-world datasets like DNA promoter and lymphography data.
Missing values are a common phenomenon in all areas of applied research. While various imputation methods are available for metrically scaled variables, methods for categorical data are scarce. An imputation method that has been shown to work well for high dimensional metrically scaled variables is the imputation by nearest neighbor methods. In this paper, we extend the weighted nearest neighbors approach to impute missing values in categorical variables. The proposed method, called $\mathtt{wNNSel_{cat}}$, explicitly uses the information on association among attributes. The performance of different imputation methods is compared in terms of the proportion of falsely imputed values. Simulation results show that the weighting of attributes yields smaller imputation errors than existing approaches. A variety of real data sets is used to support the results obtained by simulations.
Motivation & Objective
- To address the scarcity of effective imputation methods for categorical data with missing values.
- To improve nearest neighbor imputation by incorporating associations among categorical attributes through weighted distance metrics.
- To develop a method that avoids the need for pre-specifying the number of neighbors (k) and reduces imputation error.
- To compare the performance of wNNSel_cat against existing methods like mode imputation, random forests, and wNNSel_dum using both simulations and real datasets.
Proposed method
- Proposes a weighted distance metric d_SelCat that uses kernel functions (Gaussian and triangular) to weight attributes based on their associations.
- Employs a cross-validation algorithm to automatically select optimal tuning parameters, eliminating the need to fix k in advance.
- Uses association information from contingency tables to assign higher weights to strongly correlated attributes in the distance computation.
- Applies kernel functions to transform distance values, with q controlling the bandwidth, and evaluates performance across different kernel types.
- Compares wNNSel_cat with wNNSel_dum, which transforms categorical variables into dummy variables and uses Pearson correlation for distance.
- Imputes missing values using a weighted mode of the nearest neighbors, where weights are derived from the kernel-weighted distances.
Experimental results
Research questions
- RQ1Can incorporating attribute associations into the distance metric improve nearest neighbor imputation for categorical data?
- RQ2Does the proposed wNNSel_cat method reduce imputation error compared to traditional k-NN and mode imputation?
- RQ3How do different kernel functions (Gaussian vs. triangular) and tuning parameters (q) affect imputation performance?
- RQ4Does wNNSel_dum, which uses dummy variables and correlation, outperform wNNSel_cat on multi-categorical data?
- RQ5How does the method perform across diverse real-world datasets with varying missingness rates?
Key findings
- The wNNSel_cat method significantly reduces imputation error by leveraging attribute associations through kernel-weighted distances.
- For multi-categorical data, the wNNSel_dum method (using dummy variables and correlation) produced lower imputation errors than wNNSel_cat, especially on DNA promoter and lymphography datasets.
- The Gaussian kernel yielded smaller imputation errors than the triangular kernel for DNA and lymphography data, while both performed similarly on SPECT data.
- The value of q had minimal impact on performance, with similar results across q=1 and q=2 for all datasets.
- For binary data (SPECT), both wNNSel_cat and wNNSel_dum performed nearly identically, confirming robustness in low-dimensional categorical settings.
- In real data applications, wNNSel_dum achieved the lowest PFC (proportion of falsely imputed values), particularly at 30% missingness in DNA promoter data (PFC = 0.4586), outperforming even random forests.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.