Mahalanobis distance is most useful for quantitative variables only. Presence of categorical and discrete variables along with the continuous variables make it difficult to use the Mahalanobis distance for the purpose of discriminant analysis and classification.