 Research
 Open Access
 Published:
Robustness of the Quadratic Discriminant Function to correlated and uncorrelated normal training samples
SpringerPlus volume 5, Article number: 102 (2016)
Abstract
This study investigates the asymptotic performance of the Quadratic Discriminant Function (QDF) under correlated and uncorrelated normal training samples. This paper specifically examines the effect of correlation, uncorrelation considering different sample size ratios, number of variables and varying group centroid separators (\(\delta\), \(\delta = 1; 2; 3; 4; 5\)) on classification accuracy of the QDF using simulated data from three populations (\(\pi _{i}, i=1,2,3\)). The three populations differs with respect to their mean vector and covariance matrices. The results show the correlated normal distribution exhibits high coefficient of variation as \(\delta\) increased. The QDF performed better when the training samples were correlated than when they were under uncorrelated normal distribution. The QDF performed better resulting in the reduction in misclassification error rates as group centroid separator increases with non increasing sample size under correlated training samples.
Background
Discriminant analysis (DA) as a topic in Multivariate Statistical Analysis has attracted much research interest over the years, with the evaluation of discriminant functions when the covariances matrices are unequal with moderate sizes being well explained by Wahl and Kronmal (1977). Linear discriminant function (LDF) is commonly used by researchers because of its simplicity of form and concept. In spite of theoretical evidence supporting the use of the Quadratic Discriminant Function (QDF) when the covariance matrices are heterogeneous, its actual employment has been sporadic because there are unanswered questions regarding its performance in the practical situation where the discriminant function must be constructed using training samples that do not satisfy the classical assumption of the model. The pioneering work on quadratic discrimination was by Smith (1947) using Fisher’s Iris data. He provided a full expression for the QDF and his results showed the QDF outperforming the LDF when the homogeneity of variance covariance structure was violated.
Marks and Dunn (1974) approached the problem of discrimination by comparing the asymptotic and small sample performance of the QDF, best linear and Fisher’s LDF for both proportional and nonproportional covariance differences under the assumption of normality and unequal covariance matrices. Two populations were used and sample sizes were chosen from 10 to 100. The number of variables selected were 2 and 10. They employed the application of Monte Carlo simulation. Their results indicated that for small samples the QDF performed worse than the LDF when covariances were nearly equal with large dimensions (ie LDF was satisfactory when the covariance matrices were not too different).
Lawoko (1988) studied the performance of the LDF and QDF under the assumption of correlated training samples. The researcher aimed at allocating an object to one of two groups on the basis of measurements on the object. He found that the discriminant functions formed under the model did not perform better than W and Z formed under the assumption of independent training observation. Asymptotic expected error rate for W under the model (\(W_m\)) and W were equal when the training observations followed an autoregressive process but there was a slight improvement in the overall error rate when \(W_m\) was used instead of W for numerical evaluations of the asymptotic expansions. He concluded that the efficiency of the discriminant analysis estimator is generally lowered by positively correlated training observations. Mardia et al. (1995) reported that it might be thought that a linear combination of two variables would provide a better discriminator if they were correlated than when they were uncorrelated. However, this is not necessarily so. To show this they considered two bivariate populations \(\pi _{1}\) and \(\pi _{2}\). Supposing \(\pi _{1}\) is \(N_{2}(0,\Sigma )\) and \(\pi _{2}\) is \(N_{2}(\mu ,\Sigma )\) where \(\mu =(\mu _{1},\mu _{2})'\) and with known \(\Sigma\). They indicated that discrimination is improved unless \(\rho\) lies between zero and \(2f/{(1 + f^{2}})\) but a small value of \(\rho\) can actually harm discrimination.
Adebanji and Nokoe (2004) have considered evaluating the quadratic classifier. They restricted their attention to two multivariate normal populations of independent variables. In addition to some theoretical result, with known parameters, they conducted a Monte Carlo simulation in order to investigate the error rates. Results indicated that the total error rate computed showed that there was an increase in the error rate with resubstitution estimator for all K values. On the other hand, there was a decline across K. The crossvalidation estimator showed a steady decline for and across all values K and the recorded value showed a substantially low error rate estimates than resubstitution estimator for \(K=4\) and \(K=8\).
Kakaï and Pelz (2010) studied the asymptotic error rates of linear, quadratic rules and conducted a Monte Carlo study in 2, 3 and 5group discriminant analysis. Hyodo and Kubokawa (2014) studied a variable selection criterion for linear discriminant rule and its optimality in high dimensional data where a new variable procedure was developed for selecting the true variable set.
An enormous deal of study has been made since Fisher’s (1936) original work on discriminant analysis as well as several other researchers tackling similar problem. Some estimation methods have been proposed and some sampling properties derived. However, there is little investigation done on large sample properties of these functions. Also a considerable number of studies had been carried out on discriminant analysis but not much is done on the effect or the performance of the QDF under correlated and uncorrelated data with varying sample size ratios, different variable selections and with different centroid separators for three populations.
In this study we therefore investigate the performance of classification functions (i.e Quadratic Discriminant Functions) when the covariance matrices are heterogeneous with the data of interest being correlated, sample size ratios being unequal, considering different number of variables and varying values of group centroid separator (\(\delta\)).
Methods
Simulation design
To evaluate the performance of QDF for correlated and uncorrelated training samples of distributions, we considered a Monte Carlo study with multivariate normally correlated random data generated for three populations with their mean vector \(\mu _1=(0, \ldots , 0)\), \(\mu _2=(0, \ldots , \delta )\) and \(\mu _3=(0, \ldots , 2\delta )\) respectively. The covariance matrices, \(\Sigma _i\) (i = 1, 2, 3). Where \(k\ne l,\) \(\sigma _{kl}=0.7\) for all groups except the diagonal entries given as \(\sigma _{k}^2 =i\), for \(i=1,2,3\). The covariance matrices were transformed to be uncorrelated to generate the uncorrelated data. The QDF was then performed in each case and the leaveoneout method was used to estimate the proportion of observations misclassified.
Factors considered in this study were:

1.
Mean vector separator which is set at \(\delta\) from 1 to 5 where \(\delta\) is determined by the difference between the mean vectors.

2.
Sample sizes which are also specified. Here 14 values of \(n_1\) set at 30, 60, 100, 150, 200, 250, 300, 400, 500, 600, 700, 800, 1000, 2000 and the sample size of \(n_2\) and \(n_3\) are determined by the sample ratios at 1:1:1, 1:2:2 and 1:2:3 and these ratios also determine the prior probabilities to be considered.

3.
The number of variables for this study is also specified. The number of variables are set at 4, 6 and 8 following Murray (1977) who considered this in selection of variables in discriminant analysis.

4.
The size of population 1 \((n_1)\) is fixed throughout the study and the sizes of population 2 and population 3, \(n_2\) and \(n_3\) respectively are determined by the sample size ratio under consideration.
Subroutine for QDF
Series of subroutines were written in MatLab to perform the simulation and discrimination procedures on QDF. Below are the important ones.
Classification into several populations
Generalization of classification procedure for more than two discriminating groups (ie from 2 to \(g\ge 2\)) is straight forward. However, not much is known about the properties corresponding sample classification function, and in particular, their error rates have not been fully investigated. Therefore, we focus only on the Minimum ECM classification with equal misclassification cost and Minimum TPM for multivariate normal population with unequal covariance matrices (quadratic discriminant analysis).
Minimum ECM classification with equal misclassification cost
Allocate \({\mathbf {x}}_0\) to \(\Pi _k\) if
or, equivalently, Allocate \({\mathbf {x}}_0\) to \(\Pi _k\) if
Note that the classification rule in Eq. (1) is identical to the one that maximizes the posterior probability \(P(\Pi _i{\mathbf {x}})=\) P(\({\mathbf {x}}\) comes from \(\Pi _i\) given that \({\mathbf {x}}\) is observed) where
Therefore, one should keep in mind that in general minimum ECM rule must have the prior probability, misclassification cost and density function before it can be implemented.
Minimum TPM rule for unequalcovariance normal populations
Suppose that the \(\Pi _i\) are multivariate normal populations, with different mean vectors \({\mathbf {\mu }}\) and covariance matrices \({\Sigma }_i \, (i=1,\ldots ,g)\). An important special case occurs when the
with \(c(i\mid i)=0\), \(c(k\mid i)=1, k\ne i\) then
The constant \((p/2)\ln (2\pi )\) can be ignored in Eq. (4), since it is the same for all population. Therefore, quadratic discriminant score for ith population is defined as
The quadratic score \(d_{i}^{Q}({\mathbf {x}})\) is composed of contributions from the generalized variance \({\Sigma }_i\), the prior probability \(p_i\), and the square of the distance from x to the population mean \(\mu _i\).
Allocate x to \(\Pi _k\) if the quadratic score
In practice, the \(\mu _i\) and \(\Sigma _i\) are unknown, but a training set of correctly classified observations if often available for the construction of estimates. The relevant sample quantities for population \(\Pi _i\) are the sample mean vector, \(\bar{x}_i\), sample covariance matrix, \(S_i\) and sample size, \(n_i\). The estimate of the quadratic discriminant score (6) is then
The quadratic classifier (\(\Sigma _1\ne \Sigma _2\))
Suppose that the joint densities of \(X'=[X_1,X_2,\ldots ,X_p] \text{ for } \text{ population } \Pi _1\) and \(\Pi _2\) are given by
The covariance matrices as well as the mean vectors are different from one another for the two populations. The regions of minimum expected cost misclassification (ECM) and minimum total probability of misclassification (TPM) depends on the ratio of the densities, \((f_1({\mathbf {x}}))/(f_2({\mathbf {x}})\), or equivalently, the natural logarithm of the density ratio, \(\ln [(f_1({\mathbf {x}})/(f_2({\mathbf {x}})]=\ln [f_1({\mathbf {x}})]\ln [f_2({\mathbf {x}})]\) when the multivariate normal densities have different covariance structures, the terms in the density ratio involving \(\left \Sigma _{i}^{1/2}\right\) do not cancel as they do when we have equal covariance matrices and also the quadratic forms in the exponents of \(f_i({\mathbf {x}})\) do not combine. Therefore substituting multivariate normal densities with different covariance matrices into Eq. (1) and after taking the natural logarithms and simplifying, the likelihood of the density ratios gives the quadratic function in \({\mathbf {x}}\in \Pi _1\) if
where
otherwise, \({\mathbf {x}}\in \Pi _1\).
This function is easily extended to the 3 group classification where 2 cut off points are required for assigning observations to the 3 groups (Johnson and Wichern 2007).
Results
This section presents the performance of QDF when the training data are correlated and then when they are uncorrelated.
Effects of sample size on QDF under correlated and uncorrelated normal distribution
Evaluating the effect of sample size on QDF with respect to the correlated normal distribution for \(\delta = 1\) is present in Fig. 1. From Fig. 1 it was observed that the average error rate for 4, 6 and 8 variables with \(\delta =1\) were higher as compared to the other values of the \(\delta\) and among the sample size ratios used, sample size ratio 1:1:1 gives the lowest average error rates as the sample size increases asymptotically. Results also show that \(n_1=30\) gave highest average error rates and lower average error rate are for \(n_1=2000\) for variables 4, 6 and 8. There is a rapid decrease in the average error rate from total sample size of 90–180 of sample size ratio (1:1:1) of 8 variables for all \(\delta\). The results of 4 variables were higher than the other number of variables. \(\delta =5\) gave the lowest average error rates as the sample size increases. It was also observed that the average error rates of sample size ratio 1:1:1 and 1:2:2 were marginal for \(\delta =1\). The difference between the ratios decreased as \(\delta\) increased and with maintained total sample size and the average error rates decreased as the number of variables increased. In \(\delta =5\) the performance of the three sample size ratios were marginal.
From Table 1, the effects of the sample size on the QDF for the various group centroids (\(\delta =1,2,3,4,5\)) for the correlated samples gave an indication that, generally as the sample size increases with increasing group centroids, the mean error rates decreases marginally in that order. The standard deviation of the error rate for the correlated normal distribution reveals that as the sample size increases, standard deviation of the error rate for sample size ratio 1:1:1 exhibit low standard deviations for \(\delta =1\). For a particular \(\delta\), the standard deviation decreases as the number of variables also increases. From \(\delta =2\) to \(\delta =5\), the standard deviations decreases as the sample size increases asymptotically. There is a sharp decrease of the standard deviation of sample size ratio 1:1:1.
For the uncorrelated distribution from Table 2 the average error rate was similar to the results obtained in the correlated normal distribution with the exception of the average error rate of sample size ratio 1:1:1 which decreased rapidly from total sample size of 90–180 for 8 variables in all \(\delta\)s. The average error rate decreased as the total sample size increased asymptotically. And it reduced when \(\delta\) also increased. The graphical representation of this result for \(\delta =1\) is shown in Fig. 2.
The coefficients of variation generally increased exponentially and stabilized with increasing total sample size and number of variables in \(\delta =1\) exhibited lower variations as compared with the remaining \(\delta\)s as shown in Fig. 3. For \(\delta =4\), the coefficients of variation in sample size ratio 1:1:1 decreased while the remaining ratios did not give any particular pattern for the 4 variable situation. For 4 variable situation with \(\delta =5\), the coefficients of variation decreased as the total sample size increased. The coefficient of variation of the other 6 and 8 variables situations did not show any particular pattern as the total sample size increased.
The coefficients of variation in correlated normal distribution in Fig. 2 increased exponentially and then stabilized with averagely lower variations in sample size ratio 1:2:2 and with higher variations in sample size ratio 1:2:3 as the total sample size increases asymptotically. The variations also increased as \(\delta\) increased. \(\delta =3\) gives a steady coefficients of variation as the total sample size increased for variable 4 while it gave a little increase and then stabilized in variables 4 and 6. There was a decline in the coefficients of variation for \(\delta =4\) as the total sample size increased asymptotically in variable 4. The coefficients of variation increased from total sample size 150 to 500 and from 180 to 360 for sample size ratios 1:2:2 and 1:2:3 respectively for variables 6 and 8 and then decreased as the total sample size increased asymptotically. From Fig. 4, for \(\delta =1\), there was a sharp decrease in the coefficients of variation in sample size ratio 1:1:1 for all number of variables as the total sample size increased.
Effect of number of variables on QDF (under correlated and uncorrelated normal distribution)
The effect of number of variables on the QDF under the correlated and uncorrelated normal distribution are discussed under this subsection.
The graphs of the results for sample size ratio 1:1:1 of the situations of 4, 6 and 8 variables are shown in Fig. 5. It was observed that as the number of variables increased, the average error rate reduced in the correlated normal distribution. The rate at which it reduces in \(\delta =1\) for ratio 1:1:1 is better than that of the other \(\delta\)s. For increasing sample size ratio, as the number of variables increased, the decrease in the average error was marginal as \(\delta\) increased.
The coefficients of variation in this distribution for ratio 1:1:1 in Fig. 6 reveals that as the number of variables increased the coefficients of variation increased for variables 4, 6 and 8 from \(\delta =1\) to 3 except \(\delta =4\) and 5 in which it reduced. Yet the in the case of 8 variables the variabilities exhibited were higher than the rest in this case. For ratio 1:2:2 the coefficients of variation increased from total sample size of 150–2000 and stabilized for all \(\delta\)s as the number of variables increased except \(\delta =4\) which showed a decline in the coefficients of variation for the case of 4 and 6 variables. In \(\delta =5\), there was declination in the coefficients of variation as the number of variables increased. Sample size ratio 1:2:3 gave similar result as ratio 1:2:2
From Fig. 7, there was a sharp decline in the average error rate from total sample size 90–180 as the number of variables increase for all \(\delta\)s. It also revealed that as the number of variables increased the average error rate reduced for all sample size ratios.
The coefficients of variation shown in Fig. 8 indicates that the variabilities increased exponentially for all \(\delta\)s with the exception of \(\delta =4\) and 5 for which variable 4 declined. In the case of 8 variables, about 9.65 and 11.91 % increase in variations from total sample size of 90–180 for all \(\delta =1\) and 2. For \(\delta =4\) and 5, the coefficients of variation for variables 4 declined from total sample size of 90–6000 while variables 6 and 8 increased. For \(\delta =5\), the coefficients of variations for 8 variables increased from 90 to 750 and declined to 6000. The coefficients of variation in general for this distribution increased as the number of variables increased.
Effect of group centroid separator on QDF under correlated and uncorrelated normal distribution
This section presents the results of our investigation on the effect of the Mahalanobis distance on QDF for correlated normal distribution. Considering the correlated normal distribution in Fig. 9, it was observed that with increasing total sample size, the average error rate reduces as the \(\delta\) increased and also reduced as the number of variables increased. It can be observed that there was about 2.37 % drop in the average error rate from total sample size 90–180 for all \(\delta =1\)s in the case of 8 variables. The average error rate reduced as the total sample size increased for all sample size ratios with increasing \(\delta\).
The coefficients of variation of sample size ratio 1:1:1 with increasing total sample size in Fig. 10, uniform behaviour of \(\delta\) was not portrayed. As coefficients of variation for \(\delta =5\) and 4 were declining, that of the rest of the \(\delta\)s may be increasing or reducing depending on the particular sample size ratio. Therefore, with increasing \(\delta\), \(\delta =5\) gives higher coefficients of variation.
From Fig. 11, we observed that the average error rates of the individual \(\delta\)s reduce as the sample size increases. There was about 3.19, 5.09, 6.81 % drop of the average error rate for \(\delta =1\), variables 4, 6 and 8 respectively. The average error rates of \(\delta =2\) for variables 4–6 exhibited about 2.00, 3.99, 6.65 % drop in the average error rates. In general, the average error rates decreased as \(\delta\) increased irrespective of the number of variables and sample size ratios. The coefficient of variation of this distribution of sample size ratio 1 : 1 : 1 in Fig. 12 did not show any uniform pattern in the variabilities as \(\delta\) increased but in general as \(\delta\) increased, the variabilities also increased.
Conclusion
The study focussed on the asymptotic performance of the QDF under correlated and uncorrelated normally distributed training samples. Under this distribution, the performance of the QDF under varying sampling ratios, selected number of variables and different group centroid separators were extensively studied. The QDF recorded minimum misclassification error rates and high variability as the sample size increased asymptotically under correlated normal distribution, thereby increasing the accuracy of classification of observations with the function. The performance of the QDF deteriorated when the sample size ratio was 1:2:3 as \(\delta\) increased with increasing sample size. However, the performance of the function was appreciably good under both correlated and uncorrelated normal distributions when their estimated average misclassification error rate decreased with increasing number of variables (from 4 to 8). This results shows some partial conformity with the study of Lawoko (1988) where the researcher found that the efficiency of the QDF and other classifiers are generally lowered by positively correlated training observations. Generally, the study found that, the QDF performed better resulting in the reduction in misclassification error rates as group centroid separator increases with non increasing sample size and under correlated training samples. This results therefore shows some partial conformity with the studies by Marks in 1974. Marks approached the problem of discrimination by comparing the performance of QDF with other classifiers. Although he considered only two populations, the QDF performance was abysmal under small sample size selection when covariance matrices were nearly equal with large dimensions.
References
Adebanji AO, Nokoe S (2004) Evaluating the quadratic classifier. In: Proceedings of the third international workshop on contemporary problems in mathematical physics
Fisher RA (1936) The use of multiple measurements in taxonomic problems. Ann Eugen 7:179–188
Hyodo M, Kubokawa T (2014) A variable selection criterion for linear discriminant rule and its optimality in high dimensional and large sample data. J Multivar Anal 123:364–379
Johnson RA, Wichern DW (2007) Applied multivariate statistical analysis, sixth edn. Pearson Education, Inc, NJ
Kakaï GR, Pelz DR (2010) Asymptotic error rate of linear, quadratic and logistic rules in multigroup discriminant analysis. Int J Appl Math Stat 18(10):70–81
Lawoko CR (1988) Discriminant analysis with correlated training samples. Bull Aust Math Soc 37:313–315
Mardia KV, Kent JT, Bibby JM (1995) Multivariate analysis. Academic Press, Harcourt Brace and Company, New York
Marks S, Dunn OJ (1974) Discriminant functions when covariance matrices are unequal. J Am Stat Assoc 69(346):555–559
Murray GD (1977) A cautionary note on selection of variables in discriminant analysis. Appl Stat 26(3):246–250
Smith C (1947) Some examples of discrimination. Ann Eugen 15:272–282
Wahl PW, Kronmal RA (1977) Discriminant functions when covariance matrices are unequal and sample sizes are moderate. Biometrics 33:479–484
Authors' contributions
AA worked on the literature review and background of the study as well as suggestion of the appropriate method and software used and also supervised the entire research work. MAB prepared the manuscript and discussed part of the studies findings. OOT conducted the data analysis through simulation with the used of MATLAB software and also presented and discussed part of the findings. All authors read and approved the final manuscript.
Competing interests
The authors declare that they have no competing interests.
Author information
Rights and permissions
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
About this article
Cite this article
Adebanji, A., AsamoahBoaheng, M. & OseiTutu, O. Robustness of the Quadratic Discriminant Function to correlated and uncorrelated normal training samples. SpringerPlus 5, 102 (2016) doi:10.1186/s4006401617183
Received
Accepted
Published
DOI
Keywords
 QDF
 Correlated normal
 Uncorrelated normal
 Group centroid