Research Article  Open Access
Agostino Tarsitano, Marianna Falcone, "MissingValues Adjustment for MixedType Data", Journal of Probability and Statistics, vol. 2011, Article ID 290380, 20 pages, 2011. https://doi.org/10.1155/2011/290380
MissingValues Adjustment for MixedType Data
Abstract
We propose a new method of single imputation, reconstruction, and estimation of nonreported, incorrect, implausible, or excluded values in more than one field of the record. In particular, we will be concerned with data sets involving a mixture of numeric, ordinal, binary, and categorical variables. Our technique is a variation of the popular nearest neighbor hot deck imputation (NNHDI) where “nearest” is defined in terms of a global distance obtained as a convex combination of the distance matrices computed for the various types of variables. We address the problem of proper weighting of the partial distance matrices in order to reflect their significance, reliability, and statistical adequacy. Performance of several weighting schemes is compared under a variety of settings in coordination with imputation of the least power mean of the BoxCox transformation applied to the values of the donors. Through analysis of simulated and actual data sets, we will show that this approach is appropriate. Our main contribution has been to demonstrate that mixed data may optimally be combined to allow the accurate reconstruction of missing values in the target variable even when some data are absent from the other fields of the record.
1. Introduction
Missing values are pieces of information which are omitted, lost, erroneous, inconsistent, patently absurd, or otherwise not accessible for a statistical unit about which other useful data are available. Failures in data collection are a matter of major concern both because they reduce the number of valid cases for analysis which, in turn, may result in a potential loss of valuable knowledge, and because, when there is a wide difference between complete and incomplete records, they introduce bias into the estimation/prediction process.
The problems posed by observations that are truly missing or considered as such can be handled by using different strategies. These include additional data collection; application of likelihoodbased procedures that allow modeling of incomplete data; deductive reconstruction; the use of only part of the available data (listwise or pairwise deletion); weighting records; imputation, that is, revision of the data set in an attempt to replace the missing data with plausible values. The present paper is centered on the latter method.
Imputation techniques have been extensively studied over the last few decades, and a number of approaches have been proposed. For an overview of the methods, see, for example, Little and Rubin [1] and Kalton and Kasprzyk [2]. Some of these methods are nowadays available in standard statistical software (or can easily be implemented) although there is little consensus as to the most appropriate technique to use for a particular situation. It is not our intention to provide an exhaustive review of data imputation methods; instead, we discuss just the nearest neighbor hot deck imputation (NNHDI) which has been used for a number of years and enjoys high prestige for its theoretical and computational characteristics.
The NNHDI method involves a nonrandom sample without replacement from the current data set (this explains the term “hot deck” in the name of the method). More specifically, the NNHDI looks for the nearest subset of records which are most similar to the record with missing values, where nearness is specified according to the minimization of the distances between the former and the latter. With this aim, a general distance measure for the comparison of two records that share some, but not necessarily all, auxiliary variables has to be derived. Actually, this is only a part of the problem. Another is the fact that realworld data sets frequently involve a mixture of numerical, ordinal, binary, and nominal variables.
To deal with the simultaneous presence of variables with different measurement scales, we take our point of departure from the computation of a distance matrix which is restricted to nonmissing components for each type of variable. In this way, a compromise distance can be achieved using a combination of all the partial distances (“partial” because each of them is linked to a specific type of variable and not to the globality of the issues reported in the data set). We address the problem of specifying differential weights for each type of variable in order to reflect their significance, reliability, and statistical adequacy for the NNHDI procedure.
The remainder of the paper is organized as follows. The next section gives a brief overview of the NNHDI method. Here, we introduce an imputation technique in which the missing value of the target variable is replaced with the least power mean of the BoxCox transformation applied to the observed values from selected donors. In Section 3, we give a description of the methodology used to compute distances with an emphasis on the measure of distance for mixed data. In Section 4, we devise a compromise distance between records. In Section 5, an application of the various systems of weighting is given, followed by an evaluation of our approach. Finally, in Section 6, we highlight some areas for future work.
2. Nearest Neighbor Hot Deck Imputation
Let be a data set consisting of records in which an interval or ratioscaled variable (the target variable or variable of interest) is recorded together with other auxiliary or matching variables . We assume that of the records have a valid observation for the target variable forming the set of the first records of . In practical applications, many factors influence which value is missing and which is not, so that lacunae in the data are usually not confined to particular fields but can be at any position within the record. As a consequence, one or more auxiliary variables may be missing although records which have a missing value for all the auxiliary variables are excluded from usable data.
For each receptor record , and missing, the NNHDI selects a neighborhood or reference set of similar records or donors where is the fixed size of all the reference sets. To be a donor, the record must have a valid value both for and for at least one of the auxiliary variables fully present in the receptor.
The donors provide a basis for determining imputed values. If the cardinality of the th reference set is , then the value of the nearest record can simply be copied into , or a transformation from the auxiliary variables in can be applied to the correspondent data on to determine the imputed value from . Bankier et al. [3, 4] pointed out that the imputed values of a recipient record should come from a single record donor if possible rather than from two or more donors. Welniak and Coder [5] noted that if , then all missing information is imputed from the same donor so favoring the preservation of the interrelationships between variables. However, when the attributes include a large number of qualitative and quantitative variables at the same time or when there are auxiliary variables with many distinct values, it is extremely difficult to find a single donor record that precisely matches the recipient record.
The idea of the NNHDI method is that each receptor record is not an isolated case but belongs to a certain cluster and will therefore show a certain pattern. In fact, the NNHDI first collects records that are similar to the receptor by making use of the auxiliary variables and then integrates the data of alternative records into a consistent and logically related reference set. Hence, several donors may be involved in completing a single deficient record. Sande [6] observed that this may be a source of some concern, but such a worry diminishes if one takes into account the fact that the best donor for a segment of the recipient record may be different from the best donor for another segment when incompleteness also affects auxiliary variables. For example, the perfect neighborhood obtained using nominal variables might turn out to be an inadequate cluster for numerical variables. Wettschereck and Dietterich [7] noted that, in noisy data sets, the nearest neighbor algorithm performs better than simple nearest neighbor.
The possibility of reducing bias with the NNHDI may be reinforced if unreported values are characterized by a missing at random (MAR) mechanism. In the phraseology of this field, this means that missing values on the target variable follow a pattern that does not depend on the unreported data in , but only on observed data. Let be a vector of indicator variables for the ith record such that Under an MAR dynamic, the selection probabilities verify the following condition: . This is equivalent to saying that, given the observed data, the inability to observe a realization from is not a consequence of the data that are not observed. The missingness pattern, however, may depend on auxiliary variables that may be the reason for missingness or are joint causes and can thus contribute to filling the voids. In fact, the values observed for the auxiliary variables both for the donee and for the donors are compared under the tacit assumption that if distances, however defined, are small for the auxiliary variables, the records will also be close to one another for the target variable. Consequently, the existence of strong relationships between target and auxiliary variables has a positive impact on the ability of the NNHDI to determine more compact and homogeneous reference sets which, as a result, increase the quality of the imputed values. See Abbate [8]. Unfortunately, the validation of the MAR assumption is difficult because there is not usually much information regarding the unobserved data. However, the more relevant and related the auxiliary variables are to the target variable, the more likely the MAR hypothesis is.
2.1. Formation of the Reference Sets
The NNHDI method is implemented as a twostage procedure. In the first stage, the data set is searched to form the neighborhood or reference set for each receptor in . In the next stage, the values of observed in the reference set are used to compute the replacement value. The reference set is built simultaneously for following the rule: record is added to if or if where is the distance between two records in terms of the auxiliary variables. At the end of the process, the records corresponding to the first distances become the neighborhood of . The solutions form mathematical (nonrandom) samples of fixed size . We admit that the s are artificial and that they may be nonrepresentative samples of the target variable population because each is a subset of a subset of the observed records (to be precise, records similar to with an effective value for ). It should be emphasized, however, that imputation of missing values is one of those circumstances in which a biased selection may be preferable to probability sampling. See Deming [9, pages 3233].
A peculiar characteristic of NNHDI is the restriction to a predefined cardinality of , that cannot be changed later (see [10]). Such a constraint may cause perplexity since a priori there can be no firm experimental evidence that each receptor belongs to a compact and homogeneous cluster formed by at least records which are to be validly employed as donors; in addition, the fact that NNHDI inexorably finds donors, even if none of them is actually near to the receptor, increases the risk of irrelevant records in the reference set.
Although there are some rules which link to the size of the data set, the cardinality remains somewhat arbitrary. The value of should be kept small enough to improve the speed of the algorithm and to bring process values derived by the most similar records into the imputation. On the other hand, if is very small and the donors are not found nearby due to data sparseness, the imputed value tends to be very poor. The robustness of the NNHDI to noisy data is expected to improve with the number of donors used for imputation, but too many donors increase the computational cost and may enlarge the variability of imputed values out of proportion. Moreover, as increases, the mean distance between the receptor and the donors becomes larger, especially if a significant proportion of the data is missing. In the literature, only small values, have been tested. Wettschereck and Dietterich [7] chose on the basis of the performance of the imputation algorithm by trying all possible over a vast range and broking ties in favor of the smaller value of . Friedman et al. [11] found empirically that values ranging from to work well when searching for a nearest neighbor. To determine in our experiments, we have used Sturge's rule discussed, for example, in Hyndman [12].
A computational drawback of the NNHDI is that the algorithm searches for donors through the entire data set, and this limitation can be serious in the case of large databases. To form the neighborhoods , the NNHDI considers distances (although only a minority of them have to be kept in memory) and compares , with the most distant element in each neighborhood. With the vast improvement in computers, NNHDI methods are not nearly as prohibitive as they used to be. Nevertheless, if the data set is judged to be too large to be treated within an acceptable time limit, the search for the donors can be confined to a subset of . See, for example, Wilson and Martinez [13].
The NNHDI does not necessarily produce distinct reference sets; may be greater than zero for . Moreover, it leaves unused records that do not fit into any neighborhood. For this reason, one objection to the NNHDI is that data from some records could be used many times as donors and other records are excluded from “donation,” thus depriving the imputation of the benefits which might have been derived using more information. According to Sande [6], this will increase the variance while possibly reducing the bias of the estimate. Furthermore, it may imply inflating the size of certain subpopulations in the data set. Kaiser [14] pointed out that the excessive use of a single donor leads to poor estimates, and Schieber [15] recommended that each complete record was only allowed to be a donor once. If repeated donations and omitted contributions are a problem to be alleviated, one may apply the strategy proposed by Colledge et al. [16] or Giles [17].
2.2. Imputing for Missing Data
Let be the reference set of formed in the first stage. The information on contained in has to be synthesized into an estimate for the missing value. This operation should be carried out with care and control since imputed values will be treated as actually observed values, and statistical analysis is carried out using the standard procedures developed for data without any missing observations.
Since , then a synthesis of all the evidence acquired is needed. Many proposals for estimating have been advanced. A common imputation technique is the use of a mean of the values observed in the reference set. In this paper, attention is concentrated on the least power mean estimator that minimizes with respect to . A classic choice is the simple mean imputation obtained for . If we set , , and , we obtain the median imputation. For , (2.3) yields the midrange. In our procedure, is not fixed but must be optimized to fit the observed values of the target variable for . With this aim, we have used the procedure developed by Mineo and Ruggieri [18] (see also [19]) centered on the exponential power probability density function The symbols , and denote, respectively, the location, scale, and shape parameters of the density. If , the curves generated by (2.4) are “bell” shaped. In an attempt to enhance the reliability of (2.4) for asymmetrical empirical distributions, we have applied the BoxCox power transformation in order to achieve distributional symmetry of the target variable The value of has been estimated minimizing the standardized third central moment within the compact interval . See Taylor [20]. Once found the value of , model (2.4) is fitted to the target variable in the transformed scale taking into account the relationship between in (2.3) and the tail behavior of the exponential power distribution. See Mineo and Ruggieri [18].
Missing values must be imputed on the original scale, while (2.5) provides a replacement value in the BoxCox scale so that the estimate must be transformed back to the original. However, when transforming back, the least power mean undergoes a bias unless (because the transformation is linear) or unless because the median is invariant under monotone transformation. Based on preliminary work, not reported here, a heuristic biascorrection factor has been devised as follows: where GM and AM are the geometric and the arithmetic mean of the target variable in the original scale and is a tuning constant. The factor in (2.6) is a monotone decreasing function of its exponent: the larger , is the smaller the factor is, and, hence, the greater the biascorrection is. In our experiments, we tried (2.6) with in a discrete interval and selected the one whose relative mean error of imputation in the first records was the smallest.
3. Distance Measurement for Mixed Data
Let be an objectbyvariable data matrix containing measurements of objects of a mixture of variables types. Without loss of generality, we may assume that variables are interval or ratio scaled; are ordinal variables which rank records in terms of degree without establishing the numeric difference between data points; variables are binary symmetric (00 and 11 matches are treated as equally indicative of similarity); are binary asymmetric (00 or 11 matches are not regarded as indicative of similarity since 1 is used to indicate the presence of some feature and 0 its absence). It is important to distinguish between the two situations: if two records have few copresences in a large number of binary variables which are considered symmetric, then the similarity between them may be judged as quite large even if they have very little in common. Conversely, if the variables are considered binary asymmetric, then a large number of coabsences could be judged insignificant. Finally, variables are nominal with three or more categories and a potentially different number of states . Of course, some of the groups may be empty, and some others may be split into groups of variables of the same type. In each case, .
Let be the number of nonempty subsets of variables. The measurement of the dissimilarity through a distance function that considers all types of variables can be achieved in many ways. To begin with, it is possible to perform a separate analysis for each group and then to compare and synthesize imputation results from alternative sources. A conflict may occasionally emerge because of irreconcilable differences between the patterns discovered in the different distance matrices. In real applications, it is unlikely that separate imputations will generate compatible results; furthermore, the cost of repeated analysis of large data sets may be too high.
The simplest way to deal with a mixture of variable types is to divide the variables into types and confine the analysis to the dominant type. Even though it would be easy to judge which type is “dominant,” this practice cannot be recommended because it discards data that may be correct and relevant but is produced in the wrong scale. When simultaneously handling nominal, ordinal, binary, and so forth characteristics, one may be tempted to ignore their differences and use a distance measure which is suitable for quantitative variables but is inappropriate for other types. Naturally, this is an absurd solution, but in practice, it often works.
Another approach is to convert one type of variable to another, while retaining as much of the original information as possible, and, then, to use a distance function suitable for the selected type. Anderberg [21, page 94] argued that the primary question to be faced is which variable type should be chosen. For instance, nominal variables can be transformed into classes which are coded with 1s and 0s thus treating them as asymmetric binary variables along with the original binary variables; subsequently, the records which now only consist of numerical variables can be compared using traditional distance functions for quantitative variables (see [22, page 92]). An evident drawback is the use of a large number of binary variables that are highly interdependent because they imply a choice between mutually exclusive possibilities. Alternatively, quantitative variables could be dichotomized at a fixed level so that the new values can be treated using distance functions that are devised for binary variables. A consequence is that a large number of records will be considered alike, thus reducing the influence of the quantitative variables. In any event, conversion between scales involves a loss of information and knowledge.
3.1. General Distance Coefficient
The performance of the NNHDI method depends critically on the distance used to form the reference sets. A particularly promising approach consists of processing all the variables together and performing a single imputation procedure based on a coefficient of dissimilarity explicitly designed for mixed data. In this work, we have adopted the following measure of global distance: with where is the th partial distance between the records and . Usually, the distances are scaled to vary in the unit interval where zero is achieved only when the two records are identical in all nonempty fields, and one is achieved when the two records differ maximally in all of the fields validly compared. Condition (3.3) is necessary, otherwise a combined representation of the distances would copy the structure of the indicator with the greatest distances.
Since donors may have missing values themselves, distances are, necessarily, computed for variables which have complete information for both records, while values contained in one record but missing from the other are ignored. The indicator in the expression (3.1) is zero if the comparison of and is valid with respect to the th variable, whereas if either of the fields is empty. Conventionally, we set . If , then (3.1) becomes the allpurpose measure of dissimilarity proposed by Gower [23]. See also Kaufman and Rousseeuw [24, page 19], Di Ciaccio [25], Murthy et al. [26], and Seber [27, pages 357358].
Imputation will fail if there is not at least one donor with a valid datum regarding at least one variable which is not missing in the receptor. In passing, we note that missing values in the auxiliary variables can reduce the neighborhood of donors to the point where imputation becomes impossible, at least for a subset of cases. See Enders [28, page 50]. In this situation, the receptor should perhaps be excluded from the set of usable records and treated using a different method.
The global distance (3.1) is in line with the principle that the reliability of a distance decreases with the reduction of meaningful comparisons. Consequently, records having less valid fields are penalized in order to compensate for their lower usability. This choice has in addition the desirable effect of deterring the selection of donors that share too few features with the receptor.
A limitation of (3.1) is that variables can substitute each other, that is, a higher distance in one variable can compensate for a lower value in another. The influence of can be increased or decreased by rescaling its contribution proportionally to and grading it in the range . If the number of variables is high, however, a very complex process is needed to amalgamate all the partial distance matrices into a global matrix of distance. To keep computations to a manageable level, we decided to assign distinct weights to the groups of the variables, but not to each single variable where , . Here, is a matrix of 1s, and indicates the Hadamard product between two matrices. The choice of (3.4) reduces the flexibility of the general dissimilarity coefficient, but the search for an optimal weighting system is simplified. It is important to emphasize here that if the partial distance matrices have a similar structure, they generate overlapping reference sets, and no advantage can be gained by combining them as (3.4).
Gower [23] requires that each is a dissimilarity coefficient which generates a Euclidean distance matrix . Pavoine et al. [29] show that if the s are Euclidean, then is also Euclidean. Nonetheless, the status of being a Euclidean matrix could be modified by (3.1). If is not Euclidean, it is possible to determine constants such that a matrix with elements , , is Euclidean. See Gower and Legendere [30,Theorem 7].
3.2. Distances Involved in the General Coefficient
In general, it is not possible to design a coefficient that can be recommended given a particular type of variable because, besides the intrinsic properties of the coefficients, the number and the values of auxiliary variables have a determinant role. For the present paper, we have selected some commonly used distance functions which have a range of , irrespective of the number of variables so that distances are unaffected by the number of fields. (1)Ratio and Interval Scale. Euclidean distance where is the observed range of the th variable. (2)Ordinal Scale. Linear disagreement index where . The values of the th ordinal variables are integers in . (3)Binary Symmetric. Number of such variables in which records have different values divided by the total number of binary symmetric variables: (4)Binary Asymmetric. Number of binary asymmetrical variables in which both records have a positive value to the total number of these variables (5)Nominal. Number of states of the polytomies in which the two records under comparison have the same state, divided by the total number of states across all the politomies where . Each comparison can be scored as different dichotomies by setting of these to 1 when and coincide on the th politomy or to 0 when and are different.
All the proposed indices generate a Euclidean distance matrix.
4. Combining Distances
To use the combined distance function (3.4), a user must supply proper weights for the various types of variables. Bankier et al. [31] hypothesized that weights should be smaller for variables when it is considered less important that they match or variables considered more likely to be in error or to be affected by missingness. Istat [32] determined, with respect to the MAR dynamic of missing values, the weights according to the degree of association between the target and the auxiliary variables in complete records. For the moment, we ignore these weighting schemes although they should be considered seriously in future research.
4.1. Equal and Proportional Weighting
The weights could be determined on the basis of an a priori judgment of what is important and what should be prioritized with regard to the partial distance matrices. In other words, investigators give weights to types based on an intuitive understanding of the data, but if they do not know the context well, the assessment may be inadequate and introduce bias. Chiodi [33] found equal weighting to be more valuable for his data: . This formula regards all the types of variables to be equally effective when determining the global distance matrix. Such a solution may be perfectly acceptable given that we rarely know a priori if some types are more helpful than others. In fact, equal weighting appears to be a valid practice when there are no theoretical or empirical grounds for choosing a different scheme. However, it is inadvisable to equate the weight of the variables without further studying their contribution to the variability of the data set as a whole.
Romesburg [34] based the weights on the proportion of each type of variable: , . If all the auxiliary variables were assumed to have equal efficacy, independently of the scale on which they are measured, then this option would be the right choice. An obvious example is when all the auxiliary variables are strongly associated with the target variables. The original version of the Gower's coefficient is a weighted average of three different measures of dissimilarity where the weights are the proportions of each type of variable.
4.2. Equalizing Standard Deviations of Partial Distances
The significance of a type of variable in determining the global distance depends, among other things, on the variability of so that types leading to a high variance of pairwise distances will, thus, be more likely to have great influence into the global distance. To ensure the respect for this principle, we can use the reciprocal of a measure of “variability for the partial distances.” For example, where is the standard deviation of the distances in the strictly lower triangular part of . If is based on (4.1), then the elements of the lower triangular part of are normalized to have a standard deviation of one.
4.3. Equalizing Mean of Partial Distances
Clearcut variables such as binary and categorical variables tend to have more of an impact on the calculation of the global distance. Kagie et al. [35] observe that there is no reason to assume, without reference to specific aspects of the problem at hand, that nominal variables are more important than quantitative ones. Therefore, an adaptation is necessary. Following Kagie et al. [35] and Lee et al. [36], the distances in the strictly lower triangular part of can be normalized to have an average value of one where is the average distance in the strictly lower triangular part of the th partial distance matrix.
4.4. Distatis Weighting
To obtain an optimal system of weights, we need an expression for how much a certain type of variable affects the global distance. This can be derived from the total sum of the squares of the elements in the partial distance matrices choosing the weights so as to maximize the variance of the elements in the global distance matrix which, in turn, leads to the Distatis procedure as developed by Abdi et al. [37] (see also [38]).
In the first step of Distatis, each is transformed into the crossproduct matrix which has the same information content as but is more suitable to the eigendecomposition. Let be an vector of 1s, and let be the identity matrix of order . A normalized crossproduct matrix for is where is the matrix whose th element is the square of , and indicates the largest eigenvalue of . It is well known (see, e.g., [39]) that is symmetric, positive semidefinite and has zero row sums.
Let be the column vector obtained by stacking the column of on top of one another and organizing them into an matrix . The central step of Distatis is to create the matrix , where is a diagonal matrix whose elements are the square roots of the reciprocal values in the diagonal of . The generic element of is the vectorial correlation coefficient [40] between the crossproduct matrix derived from the partial distance matrices and , , Naturally, and . Since (4.4) verifies the relationship and since and are symmetric and positive semidefinite, then , where is the smallest eigenvalue of (see [41]); it follows that .
The scope of Distatis is to find a convex linear combination of the vectors in that explains the maximum amount of variance of possible. In this sense, Distatis is simply the principal component analysis of , that is, with . Since is positive or, at least, nonnegative irreducible, then the PerronFrobenius theorem (see, e.g., [42]) ensures that there is a single eigenvalue, say , that is, positive and greater than or equal to all other eigenvalues in modulus and that there is a strictly positive eigenvector corresponding to . The global crossproduct matrix can now be found using The weights are such that the types of variables which are more similar to the others get higher weights than those which disagree with most of the rest of the variables. The related global distance matrix is Distatis weights are demanding from a computational point of view because they involve an eigenanalysis of potentially very large matrices. (Only if are the weights (4.6) easy to compute: 0.5 and 0.5). However, the computational task can be simplified by performing the onetime determination of the weighs on a sufficiently large random sample of complete records.
5. Experimental Results
In this section, we present results of a numerical experiment to test how well the NNHDI reconstructs missing values. More specifically, we examine the five different weighting methods discussed in Section 4 to obtain a global distance matrix in connection with the imputing of the least power mean of donors. It is of particular interest to determine which weighting scheme for partial matrices would have the smallest detrimental effect on the accuracy of data when using imputed values. In this sense, we have used data sets with variables which are completely known for all units (where necessary, we have removed incomplete records). We then simulated missing values according to a MAR mechanism to evaluate the bias of our NNHDI algorithm. All simulations were performed using [43].
5.1. Description of Data Sets Used in the Experiments
Our experiments were carried out using ten data sets to represent different sized files that are commonly encountered. These data sets are interesting because they exhibit a wide variety of characteristics and have a good mix of attributes: continuous, binary, and nominal. In our study, we have employed actual data sets because of their realism and the ease with which they could be adapted to the experimental setting. In some cases, we have not used the entire data set, but a subset obtained by drawing without replacement a random sample from the data set. (a)Heart Disease Cleveland Database (UCIrvine Repository) Frank and Asuncion [44]. The publicly available Cleveland heartdisease database was used to test the kernel methods. It consists of 303 cases where the disorder is one of four types of heartdisease or its absence. This database contains 76 attributes, but all published experiments refer to using a subset of 14 of them. Experiments with the Cleveland database have concentrated on simply attempting to distinguish presence from absence of disease. The variables summarizing the medical symptoms considered as important indicators of a patient's condition were classified as metric: , ordinal: , binary symmetric: , binary asymmetric: , and nominal: . The “goal” field or outcome refers to the presence of heart disease in the patient. The problem is to predict the outcome given the other 13 values of the characteristics. To make things more apt to our purposes, we changed the problem slightly and used the serum cholesterol in mg/dL as the target variable. The original data set contains 270 complete records, but we have analyzed a random subset of records. (b)Car Data Set (Package MASS of ). Data from cars on sale in the USA in 1993. Cars were selected at random from among 1993 passenger car models that were listed in both the consumer reports issue and the PACE buying guide. Pickup trucks and sport/utility vehicles were eliminated due to incomplete information in the consumer reports source. Duplicate models (e.g., Dodge Shadow and Plymouth Sundance) were listed at most once. The variables have been classified as metric: , ordinal: , binary symmetric: , binary asymmetric: , and nominal: ; the target variable is maximum price. Further description can be found in Lock [45]. (c)Demand for Medical Care (NMES 1988, Package AER of ). Crosssection data originating from the US National Medical Expenditure Survey (NMES) conducted in 1987 and 1988 to provide a comprehensive picture of how Americans use and pay for health services. The NMES is based upon a representative, national probability sample of the civilian population and individuals admitted to longterm care facilities during 1987. The data refer to individuals of ages 66 and over, all of whom are covered by Medicare (a public insurance program providing substantial protection against healthcare cost). These data were verified by crosschecking information provided by survey respondents with providers of healthcare services. In addition to healthcare data, NMES provides information on health status, employment, sociodemographic characteristics, and economic status. The version of the data set used in our experiment contains variables which we have classified as follows: metric: , ordinal: , binary symmetric: , binary asymmetric: , and nominal: . The income of the individual was chosen as the target variable . To keep the volume of data within reasonable limits, we have randomly selected records. Details are given by Cameron and Trivedi [46]. (d)Fatalities, in Package AER of . US traffic fatalities panel data annually from 1982 to 1988 for the 48 contiguous states (excluding Alaska, Hawaii, and the District of Columbia). Researchers using this data set investigate the impact of beer taxes and a variety of alcoholcontrol policies on motor vehicle fatality rates. Special attention is paid to bias resulting from failing to adequately control for grassroots efforts to reduce drunk driving, the enactment of other laws which simultaneously operate to reduce highway fatalities, and the economic conditions existing at the time the legislation is passed. Among the most interesting characteristics of traffic fatalities found in the data set are the drinking age variable, a factor indicating whether the legal drinking age is 18, 19, or 20; two binary punishment variables which describe the state's minimum sentencing requirements for an initial drunk driving conviction; per capita death rates from accidents occurring at night and for 18 to 20 year olds. The data set comprises 336 observations on variables. However, record 28 has been excluded because of a lack of valid observations in two fields. All in all records without missing values are considered. The classification of the variables is metric: , ordinal: , binary symmetric: , binary asymmetric: , and nominal: . The number of alcoholinvolved vehicle fatalities is used as target variable. See Stock and Watson [47] for more details. (e)Australian Credit Data Set (UCIrvine Repository) Frank and Asuncion [44]. This file concerns credit card applications. Each case concerns an application for credit card facilities described by 16 attributes. Metric: , ordinal: , binary symmetric: , binary asymmetric: , and nominal: . The first metric variable was selected as the target variable. The data frame contains 690 observations but 37 cases have one or more missing values, and they were consequently removed from further analysis. Hence, the effective number of records is . This data set is considered both scanty and noisy and, probably because of this, has become very popular in the testing algorithms for building classification trees. From our point of view, this dataset is interesting because there is a good mix of attributes: continuous, nominal with small numbers of values, and nominal with larger numbers of values. There are also a few missing values. More information can be found in Quinlan [48].
5.2. Experiment: Random Percentage of Missing Values in All the Variables
In a first phase, we omitted a fraction ensuring that no row contains more than incomplete fields. The records in which the value of the auxiliary variables has to be removed were chosen by drawing a simple random sample without replacement from the first records, once the data set had been sorted in ascending order of . This step was repeated for each auxiliary variable. In this way, a mild association could be observed between and because the largest half of could rely on a richer source of information in terms of auxiliary variables. In the second phase, we omitted a proportion of the target variable, after randomly permuting the auxiliary variables. Records were resorted in ascending order of allocating the missing values of in the last positions. Records with a missing were chosen to be a random sample without replacement of size , where The omission continued until the total number of missing values is reached. The sample of was drawn with the Midzuno's method. The factors of proportionality were which are inversely related to the order of appearance of the records in the current arrangement of the data set. Consequently, the values of the target variable are more likely to be missing for cases with low values of the auxiliary variable. The above process is iterated for a number of auxiliary variables , sufficient to complete the number of missing values to be injected into the target variable. By operating in this manner, the missing values in have a probabilistic link with the maximum possible number of auxiliary variables. Furthermore, the simultaneous presence of missing values in and is deterred. The double relationship between and makes the existence of an MAR mechanism in the simulated patterns of missingness plausible. Each combination of has been repeated times to reduce irregular variations. The efficiency of the reconstruction process of the NNHDI algorithms is measured by the mean relative error (MRE) where is the value obtained from one of the five NNHDI procedures in which the value of the target variable was considered missing. The index is related to the size of the discrepancies between predicted and observed values. Clearly, a small value of represents a successful method. The results are reported in Table 1.

No strong evidence has been found in the experiment in favor of or against one of the five weighting systems of the partial matrices discussed in Section 4 when both the target and the auxiliary variables are affected by missingness. This implies that practices of using aprioristic system of weights to combine the partial distance matrices do not, apparently, penalize the accuracy of imputed values too greatly, especially for larger data sets. One potential reason for this finding is that the impact of each single variable on the global distance is rather small compared with the effect of the other variables in the same category or with the effect of a dominant group. In these cases, the flexibility in the choice of weights is not very helpful in comparing two records, and Monte Carlo experiments confirm that no algorithm is significantly more efficient than others under these data conditions. However, in measuring the overall quality of missing value estimates produced by a given NNHDI variation, the weighting proportional to the number of variables in the groups and the equalization of the mean partial distance performed slightly better than the other NNHDI algorithms.
In general, one would expect that with the increase in the proportion of incomplete records, or in the number of missing values in a record, or both, the quality of estimates would diminish due to the reduction of potentially useful information. Indeed, this seems to be confirmed by the high values of . Nonetheless, the values of the index for experiments in which the percentage of missing values in the is are not much higher, and in many cases are lower, than for experiments in which the percentage is .
Table 2 shows the average of over all weighting systems for the nine combinations of missing percentages in the target and in the auxiliary variables. The trends of the total mean relative error are not in line with what would be a logical response to the reduced quantity of information, that is, effectively handled. This can be explained in a number of ways. It is plausible that the impact of the missing values in the auxiliary variables is reduced because they are less present in records with a missing value in . It is also plausible that the interactions have a solid MAR mechanism so that the increase in the percentage of missing values in has moderate detrimental effects on the accuracy of the reconstruction process; on the other hand, high percentages of missing values in and may even strengthen the cohesion of the available values in the records concerned. In the light of our experiment, the proportion of missing data does not appear to be the major determinant of imputation errors.

6. Conclusions and Suggestions for Future Research
Missing values often occur in realworld applications and represent a significant challenge in the field of data quality, particularly when the data set variables have mixed types. In this paper, we have conducted an extensive study of the nearest neighbor hot deck imputation (NNHDI) methodology where, for each recipient record with incomplete data for the target variables, a set of donors is selected so that the donors are similar to their recipient with regards to the auxiliary variable. The known values of the donors are then used to derive a value for the missing data by computing the least power mean (together with the BoxCox transformation) of the target variable in the set of donors.
The particular focus of this paper is on “problematic” data sets containing missing values both in the target and the auxiliary variables and involving a mixture of numeric, ordinal, binary, and nominal variables. It has become increasingly apparent that efficacy and effectiveness of the NNHDI hinges crucially on how the distance between records is measured and different ways of measuring distances lead to different solutions. In this work, we have devised a new global distance function based on the partial distance matrices obtained from the various types of variables appearing in (or missing from) the records of the data set. The separate distance matrices are combined as a weighted average, and the resulting global distance matrix is then used in the search for donors. The contribution of each group of variables to the global distance is scaled with a weight which contracts/expands the influence of the group. In this study, we have compared the performance of five weighting schemes.
To judge the accuracy of the reconstruction process, we have considered a performance indicator which is related to the size of the discrepancies between predicted and observed values. More specifically, the relative absolute mean error was calculated for each method based on five real data sets in three different experiments: leaving one out, incompleteness in the target variables, and incompleteness in all variables. The missing values in the last two experiments were inserted according to an MAR mechanism.
The empirical findings suggest that datadriven weights for the partial distance matrices are moderately preferable to aprioristic weights although the reasons are more theoretical than objective, as the experiments presented in this work give little evidence in support of a specific weighting system. This is mostly due to the strong relationships among the variables of the tested data sets; also, the low variability showed by the least power mean used for imputing missing values might have given a nonmarginal contribution to the insufficient degree of discernability of the weighting systems. On the other hand, the investigations carried out using the NNHDI demonstrate the ability of this method to compensate for missing values when several type of variables occur in the same data set, even if some of the records have lacunae in the auxiliary variables. The key benefit of the NNHDI combined with the new global distance and the least power mean estimator is that the good results achievable in terms of low reconstruction error should not be compensated by strong distributional assumptions or sophisticated modeling.
Our results have also shown that the choice of weights does not significantly affect the quality of imputed values, but we cannot exclude that alternative weights might achieve a superior performance. Perhaps, it is not insignificant that the highest impact of the missing values was in data sets where the metric variables were overrepresented. We plan to study weighting systems based on the degree of interdependency between the target and the auxiliary variables, so we can understand better the implications of such differences for diverse NNHDI algorithms.
The quality of the results of the NNHDI is closely related to the specific observations to be analyzed. Therefore, instead of using a fixed value of over the entire data set, a locally adaptive choice of the cardinality of the reference sets may be more useful in practice. Alternatively, the value of can be determined by performing a preliminary analysis of some subsets of the data set at hand. An evaluation of alternative strategies of constructing the reference sets might offer a promising line for further research into the NNHDI.
References
 R. J. A. Little and D. B. Rubin, Statistical Analysis with Missing Data, Wiley Series in Probability and Statistics, John Wiley & Sons, New York, NY, USA, 2nd edition, 2002.
 G. Kalton and D. Kasprzyk, “Imputing for missing survey responses,” in Proceedings of the Section on Survey Research Methods, pp. 22–31, 1982. View at: Google Scholar
 M. Bankier, J. M. Fillion, M. Luc, and C. Nadeau, “Imputing numeric and qualitative variables simultaneously,” in Proceedings of the Section on Survey Research Methods, pp. 242–247, American Statistical Association, 1994. View at: Google Scholar
 M. Bankier, M. Luc, C. Nadeau, and P. Newcombe, “Additional details on imputing numeric and qualitative variables simultaneously,” in Proceedings of the Section on Survey Research Methods, pp. 287–292, American Statistical Association, 1995. View at: Google Scholar
 E. J. Welniak and J. F. Coder, “A measure of the bias in the march CPS earning imputation system and results of a simple bias adjustment procedure,” Tech. Rep., U.S. Census Bureau, 1980. View at: Google Scholar
 I. G. Sande, “Imputation in surveys: coping with reality,” The American Statistician, vol. 36, pp. 145–152, 1982. View at: Publisher Site  Google Scholar
 D. Wettschereck and T. G. Dietterich, “An experimental comparison of the nearestneighbor and nearesthyperrectangle algorithms,” Machine Learning, vol. 19, no. 1, pp. 5–27, 1995. View at: Publisher Site  Google Scholar
 C. Abbate, “La completezza delle informazioni e l'imputazione da donatore con distanza mista minima,” Quaderni di Ricerca dell'ISTAT, vol. 4, pp. 68–102, 1997. View at: Google Scholar
 W. E. Deming, Sample Design in Business Research, A Wiley Publication in Applied Statistics, John Wiley & Sons, New York, 1960.
 A. K. Ghosh, “On nearest neighbor classification using adaptive choice of k,” Journal of Computational and Graphical Statistics, vol. 16, no. 2, pp. 482–502, 2007. View at: Publisher Site  Google Scholar
 J. H. Friedman, J. L. Bentley, and R. A. Finkel, “An algorithm for finding best matches in logarithmic expected time,” Association for Computing Machinery Transactions on Mathematical Software, vol. 3, pp. 209–226, 1977. View at: Google Scholar  Zentralblatt MATH
 R. J. Hyndman, “The problem with Sturges' rule for constructing histograms,” Business, July, 12, 1995. View at: Google Scholar
 D. R. Wilson and T. R. Martinez, “Reduction techniques for instancebased learning algorithms,” Machine Learning, vol. 38, no. 3, pp. 257–286, 2000. View at: Publisher Site  Google Scholar  Zentralblatt MATH
 J. Kaiser, “The effectiveness of hotdeck procedures in small samples,” in Proceedings of the Annual Meeting of the American Statistical Association Javaid Kaiser, University of Kansas Kalton G., Compensating for Missing Survey Data. Ann Arbor, MI: Survey Research Center, University of Michigan, 1983. View at: Google Scholar
 S. J. Schieber, “A comparison of three alternative techniques for allocating unreported social security income on the survey of the lowincome aged and disabled,” in Proceedings of the Section on Survey Research Methods, American Statistical Association, 1978. View at: Publisher Site  Google Scholar
 M. J. Colledge, J. H. Johnson, R. Pare, and I. J. Sande, “Large scale imputation of survey data,” in Proceedings of the Section on Survey Research Methods, pp. 431–436, American Statistical Association, 1978. View at: Google Scholar
 P. Giles, “A model for generalized edit and imputation of survey data,” The Canadian Journal of Statistics, vol. 16, pp. 57–73, 1988. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 A. M. Mineo and M. Ruggieri, “A software tool for the exponential power distribution: the normalp package,” Journal of Statistical Software, vol. 12, pp. 1–24, 2005. View at: Google Scholar
 P. Jönsson and C. Wohlin, “Benchmarking knearest neighbour imputation with homogeneous Likert data,” Empirical Software Engineering, vol. 11, no. 3, pp. 463–489, 2006. View at: Publisher Site  Google Scholar
 J. M. G. Taylor, “Power transformations to symmetry,” Biometrika, vol. 72, no. 1, pp. 145–152, 1985. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 M. R. Anderberg, Cluster Analysis for Applications, Academic Press, New York, NY, USA, 1973.
 I. E. Franck and R. Todeschini, The Data Analysis Handbook, Elsevier, Amsterdam, The Netherlands, 1994.
 J. C. Gower, “A general coefficient of similarity and some of its properties,” Biometrics, vol. 27, pp. 623–637, 1971. View at: Google Scholar
 L. Kaufman and P. J. Rousseeuw, Finding Groups in Data, Wiley Series in Probability and Mathematical Statistics: Applied Probability and Statistics, John Wiley & Sons, New York, NY, USA, 1990. View at: Publisher Site
 A. Di Ciaccio, “Simultaneous clustering of qualitative and quantitative with missing observations,” Statistica Applicata, vol. 4, pp. 599–609, 1992. View at: Google Scholar
 M. N. Murthy, E. Chacko, R. Penny, and M. Hossain, “Multivariate nearest neighbour imputation,” Journal of Statistics in Transition, vol. 6, pp. 55–66, 2003. View at: Google Scholar
 G. A. F. Seber, Multivariate Observations, Wiley Series in Probability and Mathematical Statistics: Probability and Mathematical Statistics, John Wiley & Sons, New York, NY, USA, 2004. View at: Publisher Site
 C. K. Enders, Applied Missing Data Analysis, The Guilford Press, New York, NY, USA, 2010.
 S. Pavoine, J. Vallet, A. B. Dufour, S. Gachet, and H. Daniel, “On the challenge of treating various types of variables: application for improving the measurement of functional diversity,” Oikos, vol. 118, no. 3, pp. 391–402, 2009. View at: Publisher Site  Google Scholar
 J. C. Gower and P. Legendre, “Metric and Euclidean properties of dissimilarity coefficients,” Journal of Classification, vol. 3, no. 1, pp. 5–48, 1986. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 M. Bankier, M. Lachance, and P. Poirier, “2001 Canadian census minimum change donor imputation methodology,” in Proceedings of the Work Session on Statistical Data Editing, (UNECE), Cardiff, Wales, 2000. View at: Google Scholar
 Istat, CONCORD V. 1.0: Controllo e Correzione dei Dati. Manuale Utente e Aspetti Metodologici, Istituto Nazionale di Statistica, Roma, Italy, 2004.
 M. Chiodi, “A partition type method for clustering mixed data,” Rivista di Statistica Applicata, vol. 2, pp. 135–147, 1990. View at: Google Scholar
 H. C. Romesburg, Cluster Analysis for Researchers, Krieger Publishing, Malabar, Fla, USA, 1984.
 M. Kagie, M. van Wezel, and P. J. F. Groenen, “A graphical shopping interface based on product attributes,” Decision Support Systems, vol. 46, no. 1, pp. 265–276, 2008. View at: Publisher Site  Google Scholar
 R. C. T. Lee, J. R. Slagle, and C. T. Mong, “Towards automatic auditing of records,” IEEE Transactions on Software Engineering, vol. 4, no. 5, pp. 441–448, 1978. View at: Publisher Site  Google Scholar  Zentralblatt MATH
 H. Abdi, A. J. O'Toole, D. Valentin, and B. Edelman, “DISTATIS: the analysis of multiple distance matrices,” in Proceedings of the the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pp. 42–47, San Diego, Calif, USA, 2005. View at: Google Scholar
 P. D'Urso and M. Vichi, “Dissimilarities between trajectories of a threeway longitudinal data set,” in Advances in Data Science and Classification, A. Rizzi, M. Vichi, and H.H. Bock, Eds., pp. 585–592, Springer, Berlin, Germany, 1998. View at: Google Scholar
 C. J. Albers, F. Critchley, and J. C. Gower, “Group average representations in Euclidean distance cones,” in Selected Contributions in Data Analysis and Classification, P. Brito, P. Bertrand, G. Cucumel, and F. de Carvalho, Eds., Studies in Classification, Data Analysis, and Knowledge Organization, pp. 445–454, Springer, Berlin, Germany, 2007. View at: Publisher Site  Google Scholar  Zentralblatt MATH
 Y. Escoufier, “Le traitement des variables vectorielles,” Biometrics, vol. 29, pp. 751–760, 1973. View at: Google Scholar
 Y. G. Fang, K. A. Loparo, and X. Feng, “Inequalities for the trace of matrix product,” IEEE Transactions on Automatic Control, vol. 39, no. 12, pp. 2489–2490, 1994. View at: Publisher Site  Google Scholar  Zentralblatt MATH  MathSciNet
 K. Y. Lin, “An elementary proof of the PerronFrobenius theorem for nonnegative symmetric matrices,” Chinese Journal of Phisics, vol. 15, pp. 283–285, 1977. View at: Google Scholar
 R Development Core Team, R: A Language and Environment for Statistical Computing, R Foundation for Statistical Computing, Vienna, Austria, 2009.
 A. Frank and A. Asuncion, UCI Machine Learning Repository, University of California, School of Information and Computer Sciences, Irvine, Calif, USA, 2010, http://archive.ics.uci.edu/ml.
 R. H. Lock, “New car data,” Journal of Statistics Education, vol. 1, no. 1, 1993, http://www.amstat.org/publications/jse/v1n1/datasets.lock.html. View at: Google Scholar
 A. C. Cameron and P. K. Trivedi, Regression Analysis of Count Data, vol. 30 of Econometric Society Monographs, Cambridge University Press, Cambridge, Mass, USA, 1998.
 J. H. Stock and M. W. Watson, Introduction to Econometrics, Addison Wesley, Boston, Mass, USA, 2nd edition, 2007.
 J. R. Quinlan, “Simplifying decision trees,” International Journal of ManMachine Studies, vol. 27, no. 3, pp. 221–234, 1987. View at: Publisher Site  Google Scholar
Copyright
Copyright © 2011 Agostino Tarsitano and Marianna Falcone. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.