The nearest neighbor rule is considered for data samples obtained by selecting

independent samples with the conditional distribution corresponding to class

. It is shown that a weighted distance rule can The nearest neighbor nde is considered for data samples obtained by selecting

independent samples with the conditional distribution corresponding to class

. It is shown that a weighted distance rule can improve the performance when the ratio of

to the total sample size differs substantially from the

probability of class

.