Improving model choice in classification: an approach based on clustering of covariance matrices
Abstract
Producción Científica
Full text
Statistics and Computing (2024) 34:100 https://doi.org/10.1007/s11222-024-10410-y ORIGINAL PAPER Improving model choice in classification: an approach based on clustering of covariance matrices David Rodríguez-Vítores1·Carlos Matrán1 Received: 22 February 2023 / Accepted: 14 February 2024 / Published online: 19 March 2024 © The Author(s) 2024 Abstract This work introduces a refinement of the Parsimonious Model for fitting a Gaussian Mixture. The improvement is based on the consideration of clusters of the involved covariance matrices according to a criterion, such as sharing Principal Directions. This and other similarity criteria that arise from the spectral decomposition of a matrix are the bases of the Parsimonious Model. We show that such groupings of covariance matrices can be achieved through simple modifications of the CEM (Classification Expectation Maximization) algorithm. Our approach leads to propose Gaussian Mixture Models for modelbased clustering and discriminant analysis, in which covariance matrices are clustered according to a parsimonious criterion, creating intermediate steps between the fourteen widely known parsimonious models. The added versatility not only allows us to obtain models with fewer parameters for fitting the data, but also provides greater interpretability. We show its usefulness for model-based clustering and discriminant analysis, providing algorithms to find approximate solutions verifying suitable size, shape and orientation constraints, and applying them to both simulation and real data examples. Keywords Parsimonious model ·Gaussian mixture model ·Bayesian information criterion ·Model-based classification · EM algorithm 1 Introduction 1In this paper we introduce methodological applications arising of cluster analysis of covariance matrices. Throughout, we will show that appropriate clustering criteria on these objects provide useful tools in the analysis of classic problems in Multivariate Analysis. The chosen framework is that of multivariate classification under a Gaussian Mixture Model, a setting where a suitable reduction of the involved parameters is a fundamental goal leading to the Parsimonious Model. We focus on this hierarchized model, designed to explain data with a minimum number of parameters, by 1The research leading to these results received funding from MCIN/AEI/10.13039/501100011033/FEDER under Grant Agreement No PID2021-128314NB-I00. BDavid Rodríguez-Vítores da[email protected] Carlos Matrán [email protected] 1Department of Statistics and Operational Research and IMUVA, University of Valladolid, Paseo de Belén 7, Valladolid 47011, Spain introducing intermediate categories associated with clusters of covariance matrices. Gaussian Mixture Models approaches to discriminant and cluster analysis are well-established and powerful tools in multivariate statistics. For a fixed number K, both methods aim to fit Kmultivariate Gaussian distributed components to a data set in Rd, with the key difference that labels providing the source group of the data are known (supervised classification) or unknown (unsupervised classification). In the supervised problem, we handle a data set with Nobservations y1,...,yNon Rdand associated labels zi,k,i=1,...,N, k=1,...,K, where zi,k=1 if the observation yibelongs to the group kand 0 otherwise. Denoting by φ(·|μ, ) the density of a multivariate Gaussian distribution on Rdwith mean μand covariance matrix , we seek to maximize the complete log-likelihood function CLπ π π,μ μ μ, = N i=1 K k=1 zi,klogπkφ(yi|μk, k),(1) with respect to the weightsπ π π=(π1,...,πK)with 0 ≤πk≤ 1,K k=1πk=1, the means μ μ μ=(μ1,...,μK)and the covariance matrices =(1,...,K). In the unsupervised 123
100 Page 2 of 21 Statistics and Computing (2024) 34 :100 problem the labels zi,kare unknown, and fitting the model involves the maximization of the log-likelihood function Lπ π π,μ μ μ, = N i=1 logK k=1 πkφ(yi|μk, k)(2) with respect to the same parameters. This maximization is more complex, and it is usually performed via the EM algorithm (Dempster et al. 1977), where we repeat iteratively the following two steps. The E step, which consists in computing the expected values of the unobserved variables zi,kgiven the current parameters, and the M step, in which we are looking for the parameters maximizing the complete log-likelihood (1) for the values zi,kcomputed in the E step. Therefore, both model-based techniques require the maximization of (1), for which optimal values of the weights and the mean are easily computed: nk= N i=1 zi,kπk=nk Nμk=N i=1zi,kyi nk .(3) With these optimal values, if we denote Sk=(1/nk)N i=1zi,k (yi−μk)(yi−μk)T, the problem of maximizing (1) with respect to 1,...,Kis equivalent to the problem of maximizing (1,...,K)→ K k=1 logWdnkSk|nk, k(4) where Wd(·|nk, k)is the d-dimensional Wishart distribution with parameters nk, k. For even moderate dimension d, the large number of involved parameters in relation with the size of the data set could result in a poor behavior of standard unrestricted methods. In order to improve the solutions, regularization techniques are often invoked. In particular, many authors have proposed estimating the maximum likelihood parameters under some additional constraints on the covariance matrices 1,...,K, which lead us to solve the maximization of (4) under these constraints. Between these proposals, a prominent place is occupied by the so called Parsimonious Model, a broad set of hierarchized constraints capable of adapting to conceptual situations that may occur in practice. A common practice in multivariate statistics consists in assuming that covariance matrices share a common part of their structure. For example, if 1=... =K=Id,the clustering method described in (2) gives just the k-means. If we assume common covariance matrices 1=...=K= , the procedure coincides with linear discriminant analysis (LDA) in the supervised case (1), and with the method proposed in Friedman and Rubin (1967) in the unsupervised case (2). General theory to organize these relationships between covariance matrices is based on the spectral decomposition, beginning with the analysis of Common Principal Components (Flury 1984,1988). In the discriminant analysis setting, the use of the spectral decomposition was first proposed in Flury et al. (1994), and in the clustering setting in Banfield and Raftery (1993). The term “Parsimonious model" and the fourteen levels given in Table 1were introduced in Celeux and Govaert (1995) for the clustering setting and later, in Bensmail and Celeux (1996), for the discriminant setup. Given a positive definite covariance matrix k, the spectral decomposition of reference is k=γkβkkβT k where γk=det(k)1/d>0 governs the size of the groups, kis a diagonal matrix with positive entries and determinant equal to 1 that controls the shape, and βkis an orthogonal matrix that controls the orientation. Given Kcovariance matrices 1,...,K, the spectral decomposition enables to establish the fourteen different parsimonious levels in Table 1, allowing differences or not in the parameters associated to size, shape and orientation. To fit a Gaussian Mixture Model under a parsimonious level Min the Table 1, we must face the maximization of (4) under the parsimonious restriction. That is, we should find ˆ =argmax ∈M K k=1 logWdnkSk|nk, k,(5) where we say that =(1,...,K)∈Mif the Kcovariance matrices verify the level. We should remark that the Common Principal Components model (Flury 1984,1988) plays a key role in this hierarchy, which in any case is based on simple geometric interpretations. Restrictions are also often used to solve a well-known problem that appears in model-based clustering, the unboundedness of the log-likelihood function (2). With no additional constraints, the problem of maximizing (2) is not even well defined, a fact that could lead to uninteresting spurious solutions, where some groups would be associated to a few, almost collinear, observations. Although we will also use these restrictions, we will not discuss on this line in this work. A review of approaches for dealing with this problem can be found in García-Escudero et al. (2017). The aim of this paper is to introduce a generalization of equation (5), that allows us to give a likelihood-based classification associated to intermediate parsimonious levels. Let G∈{1,...,K}and u u u=(u1,...,uK)be any vector in {1,...,G}K. Given a parsimonious level M, we can formulate a model in which we assume that the theoretical covariance matrices 1,...,Kverify a parsimonious level Mwithin each of the Gclasses defined byu u u. For instance, let 123
Statistics and Computing (2024) 34 :100 Page 3 of 21 100 Table 1 Parsimonious levels based on the spectral decomposition of 1,...,K. Name kSize Shape Orientation Parameters EII γIEqual Spherical – 1 VII γkIVariable Spherical – K EEI γ Equal Equal Canonical 1 +(d−1) EVI γ kEqual Variable Canonical 1 +K(d−1) VEI γkVariable Equal Canonical K+(d−1) VVI γkkVariable Variable Canonical K+K(d−1) EEE γββTEqual Equal Equal 1 +(d−1)+d(d−1)/2 EEV γβkβ T kEqual Equal Variable 1 +(d−1)+Kd(d−1)/2 EVE γβkβTEqual Variable Equal 1 +K(d−1)+d(d−1)/2 VEE γkββTVariable Equal Equal K+(d−1)+d(d−1)/2 VVE γkβkβTVariable Variable Equal K+K(d−1)+d(d−1)/2 EVV γβkkβT kEqual Variable Variable 1 +K(d−1)+Kd(d−1)/2 VEV γkβkβ T kVariable Equal Variable K+(d−1)+Kd(d−1)/2 VVV γkβkkβT kVariable Variable Variable K(1+(d−1)+d(d−1)/2) K=7, G=3, M= VVE and take u u u=(1,1,2,3,1,2,1). This implies k=γkβ1kβT 1,k=1,2,5,7, k=γkβ2kβT 2,k=3,6, k=γkβ3kβT 3,k=4. Following (5), the estimation of the original covariance matrices involves maximizing (4) within Mu u u,thesetof covariance matrices satisfying {k:uk=g}∈Mfor all g=1,...,G. Using the maximized log-likelihood as a measure for the appropriateness ofu u u, the optimal ˆ u u uwould provide a classification for S1,...,SKaccording to the level M.Precise definitions will be provided in Sect.2. We will present an iterative procedure to simultaneously compute the optimal classification and covariance matrix estimators through the modification of equation (5) given by ˆ u,ˆ (6) =argmax u u u, ∈Mu u uG g=1 k:uk=g logWd(nkSk|nk, k). Solving this equation will allow us to fit Gaussian Mixture Models with intermediate parsimonious levels, in which the common parameters of a parsimonious level will be shared within each of the Gclasses given by the vector of indexes ˆu ˆu ˆu, but varying between the different classes. In the previous example, we obtain three classes of covariance matrices that share their principal directions within each class, resulting in a better interpretation of the final classification and allowing a considerable reduction of the number of parameters to be estimated. We will use these ideas for fitting Gaussian Mixture Models in discriminant analysis and cluster analysis. To avoid unboundedness of the objective function in the clustering framework, we will impose the determinant and shape constraints of García-Escudero et al. (2020), which are fully implemented in the MATLAB toolbox FSDA (Riani et al. 2012). We will analyze some examples where the proposed models result in less parameters and more interpretability fitting the data, being better suited when compared with the 14 parsimonious models. We point out that, as it is becoming usual in the literature, to carry out the comparisons between different models, we will use the Bayesian Information Criterion (BIC). This applies to all examples considered in the text. It has been noticed by many authors that BIC selection works properly in model based clustering, as well as in discriminant analysis. Fraley and Raftery (2002) includes a detailed justification for the use of BIC, based on previous references. A summary of the comparison of BIC with other techniques for model selection can also be found in Biernacki and Govaert (1999). The paper is organized as follows. Section2approaches the problem of the parsimonious classification of covariance matrices given by equation (6), focusing on its computation for the most interesting restrictions in terms of dimensionality reduction and interpretability. Throughout, we will only work with models based on the parsimonious levels of proportionality (VEE) and common principal components (VVE), although the extension to other levels is straightforward. Section3applies the previous theory for the estimation of Gaussian Mixture Models in cluster analysis and discriminant analysis, including some simulation examples for their illustration. Section4includes real data examples, where we will see the gain in interpretability that can arise from these 123
100 Page 4 of 21 Statistics and Computing (2024) 34 :100 solutions. Some conclusions are outlined in Sect.5. Finally, Appendix A includes theoretical results, Appendix B provides some additional simulation examples and Appendix C explains technical details about the algorithms. Additional graphical material is provided in the Online Supplementary Figures document. 2 Parsimonious classification of covariance matrices Given n1,...,nKindependent observations from Kgroups with different distributions, and S1,...,SKthe sample covariance matrices, a group classification may be provided according to different similarity criteria. In the general case, given a similarity criterion fdepending on the sample covariance matrices and the sample lengths, the problem of classifying Kcovariance matrices in Gclasses, 1 ≤G≤K, typically would consist in solving the equation ˆ u u u=argmax u u u∈H G g=1 f(Sk,nk):uk=g, where H=u u u=(u1,...,uK)∈{1,...,G}K:∀g= 1,...,G∃kverifying uk=g. In this work, we focus on the Gaussian case, proposing different similarity criteria based on the parsimonious levels that arise from the spectral decomposition of a covariance matrix. Multivariate procedures based on parsimonious decompositions assume that the theoretical covariance matrices 1,...,Kjointly verify one level Mout of the fourteen in Table 1. To elaborate on this idea, we include now some useful notation. In a parsimonious model M, we write (1,...,K)∈Mif these matrices share some common parameters C, and they have variable parameters V V V= (V1,...,VK)(specified in the model M). We will denote by (Vk,C)the covariance matrix with the size, shape and orientation parameters associated to (Vk,C). Therefore, under the parsimonious level M, we are assuming that k=(Vk,C)k=1,...,K. If the nkobservations of group kare independent and arise from a distribution N(μk, k), according to the arguments in the introduction, it is natural to consider the maximized log-likelihood (5) under the parsimonious level Mas a similarity criterion for the covariance matrices. This allows us to measure their resemblance in the features associated to the common part of the decomposition in the theoretical model. Thus, the similarity criterion for the parsimonious level M is fM(Sk,nk), k=1,...,r =max V1,...,Vr,C r k=1 logWdnkSk|nk,(Vk,C). Consequently, given a level of parsimony M, the covariance matrix classification problem in Gclasses consists in solving the equation ˆ u u u=argmax u u u∈H G g=1 fM(Sk,nk):uk=g =argmax u u u∈Hmax V1,...,VK,C1,...,CG G g=1 k:uk=g logWdnkSk|nk,(Vk,Cg).(7) In order to avoid the combinatorial problem of maximizing within H, denoting the variable parameters by V V V=(V1,...,VK)and the common parameters by C C C= (C1,...,CG), we focus on the problem of maximizing W(u u u,V V V,C C C) = G g=1 k:uk=g logWdnkSk|nk,(Vk,Cg), since the value u u umaximizing this function agrees with the optimal ˆ u u uin (7). This problem will be referred to as Classification G G G-M M M. From the expression of the d-dimensional Wishart density, we can see that maximizing Wis equivalent to minimizing with respect to the same parameters the function G g=1 k:uk=g nklog|(Vk,Cg)+tr(Vk,Cg)−1Sk. Maximization can be achieved through a simple modification of the CEM algorithm (Classification Expectation Maximization, introduced in Celeux and Govaert (1992)), for any of the fourteen parsimonious levels. A sketch of the algorithm is presented here: Classification G G G-M: M: M:Starting from an initial estimation C0 C0 C0=(C0 1,...,C0 G)of the common parameters, which may be taken as the parameters of Gdifferent matrices Skrandomly chosen between S1,...,SK,themth iteration consists of the following steps: 123
Statistics and Computing (2024) 34 :100 Page 5 of 21 100 •u-V step: Given the common parametersCm Cm Cm=(Cm 1,..., Cm G), we maximize with respect to the partition u u uand the variable parameters V V V. For each k=1,...,K, we compute ˜ Vk,g=argmax V WdnkSknk,(V,Cg) for 1 ≤g≤G, and we define: um+1 k=argmax g∈{1,...,G} WdnkSknk,(˜ Vk,g,Cg). •V-C step: Given the partition um+1 um+1 um+1, we compute the values (Vm+1 Vm+1 Vm+1,Cm+1 Cm+1 Cm+1)maximizing W(um+1 um+1 um+1,V V V,C C C).The maximization can be done individually for each of the groups created, by maximizing for each g=1,...,G the function ({Vk}k:uk=g,Cg) −→ k:uk=g logWdnkSk|nk,(Vk,Cg), The maximization for each of the 14 parsimonious levels can be done, for instance, with the techniques in Celeux and Govaert (Celeux and Govaert 1995). The methodology proposed therein for common orientation models uses modifications of the Flury algorithm (Flury and Gautschi 1986). However, for these models we will use the algorithms subsequently developed by Browne and McNicholas (2014a,b), often implemented the software available for parsimonious model fitting, which allow more efficient estimation of the common orientation parameters. For each of the fourteen parsimonious models, the variable parameters in the solution ˆ V ˆ V ˆ Vmay be computed as a function of the parameters (ˆu ˆu ˆu,ˆ C ˆ C ˆ C), the sample covariance matrices S1,...,SKand the sample lengths n1,...,nK. Therefore, the function Wcould be written as W(u u u,C C C), and the maximization could be seen as a particular case of the coordinate descent algorithm explained in Bezdek et al. (1987). As it was already noted, we focus on the development of the algorithm only for two particular (the most interesting) parsimonious levels. First of all, we are going to keep models flexible enough to enable the solution of (6), when taking G=K(no grouping is assumed), to coincide with the unrestricted solution, ˆ k=Sk. The first six models do not verify this condition. For the last eight models, the numbers of parameters are δVOL ·1+δSHAPE ·(d−1)+δORIENT ·d(d−1) 2 Table 2 Number of parameters associated with each feature when k=6,d=9 Size Shape Orientation Common 1 8 36 Variable 6 48 216 where δVOL,δ SHAPE and δORIENT take the value 1 if the given parameter is assumed to be common, and Kif it is assumed to be variable between groups. When dand Kare large, the main source of variation in the number of parameters is related to considering common or variable orientation, followed by considering common or variable shape. For example, if d=9,k=6, the number of parameters related to each constraint are detailed in Table 2. Our primary motivation is exemplified through Table 2: to raise alternatives for the models with variable orientation. For that, we look for models with orientation varying in G classes, with 1 ≤G≤K. We consider the case where size and shape are variable across all groups (Gdifferent Common Principal Components, G-CPC) and also the case where shape parameters are additionally common within each of the Gclasses (proportionality to Gdifferent matrices, G-PROP). Apart from the parameter reduction, these models can provide an easier interpretation of the variables involved in the problem, which is often a hard task in multidimensional problems with several groups. We keep the size variable, since it does not cause a major increase in the number of parameters, and it is easy to interpret. Therefore, the models we are considering are: •Classification G-CPC: We are looking for Gorthogonal matrices β β β=(β1,...,β G)and a vector of indexes u u u= (u1,...,uK)∈Hsuch that k=γkβukkβT ukk=1,...,K where γ γ γ=(γ1,...,γK)and =(1,...,K)are the variable size and shape parameters. The number of parameters is K+K(d−1)+Gd(d−1)/2. In the situation of Table 2, taking G=2 the number of parameters is 126, while allowing for variable orientation it is 270. To solve (7), we have to find a vector of indexes ˆu ˆu ˆu,Gorthogonal matrices ˆ β ˆ β ˆ βand variable parameters ˆγ ˆγ ˆγand ˆ ˆ ˆ minimizing (u u u, ,γ γ γ,β β β) −→ G g=1 k:uk=g nkdlogγk+1 γk tr −1 kβT gSkβg. (8) 123
100 Page 6 of 21 Statistics and Computing (2024) 34 :100 •Classification G-PROP: We are looking for Gorthogonal matrices β β β=(β1,...,β G),Gshape matrices =(1,..., G)and u u u=(u1,...,uK)∈Hsuch that k=γkβukukβT ukk=1,...,K whereγ γ γ=(γ1,...,γK)are the variable size parameters. The number of parameters is K+G(d−1)+Gd(d−1)/2. In the situation of Table 2, the number of parameters if we take G=2 is 94. To solve (7), we have to find a vector of indexes ˆu ˆu ˆu,Gorthogonal matrices ˆ β ˆ β ˆ β,Gshape matrices ˆ ˆ ˆ and the variable size parameters ˆγ ˆγ ˆγminimizing (u u u, ,γ γ γ,β β β) −→ G g=1 k:uk=g nkdlogγk+1 γk tr −1 gβT gSkβg. (9) Explicit algorithms for finding the minimum of (8) and (9) are given in Section C.2 in the Appendix. The results given by both algorithms are illustrated in the following example, where we have randomly created 100 covariance matrices 1,..., 100 according: k=XU(α) Diag(1,Y)U(α)Tk=1,...,100 where U(α) represents the rotation of angle α,Diag(1,Y)is the diagonal matrix with entries 1,Y, and X,Y,α are uniformly distributed random variables with distributions: X∼U0.5,2Y∼U0,0.5α∼U0,π. For each k=1,...,100, we have taken Skas the sample covariance matrix computed from 200 independent observations from a distribution N(0, k), and we have applied 4-CPC and 4-PROP to obtain different classifications of S1,...,S100. The partitions obtained by both methods allow us to classify the covariance matrices according to both criteria. Figure1shows the 95% confident ellipses representing the sample covariance matrices associated to each class (coloured lines) together with the estimations of the common axes or the common proportional matrix within each class (black lines). 3 Gaussian mixture models In a Gaussian Mixture Model (GMM), data are assumed to be generated by a random vector with probability density function: f(y)= K k=1 πkφ(y|μk, k) where 0 ≤πk≤1,K k=1πk=1. The idea of introducing covariance matrix restrictions given by parsimonious decomposition in the estimation of GMMs has become a common tool for statisticians, and methods are implemented in the software Rin many packages. In this paper we use for the comparison the results given by the package mclust (Fraley and Raftery 2002; Scrucca et al. 2016), although there exists many others widely known (Rmixmod: Lebret et al. (2015); mixtools: Benaglia et al. (2009)). The aim of this section is to explore how we can fit GMMs in different contexts with the intermediate parsimonious models explained in Sect.2, allowing the common part of the covariance matrices in the decomposition to vary between Gclasses. That is, with the same notation as in Sect.2, we want to study GMMs with density function f(y)= G g=1 k:uk=g πkφyμk,(Vk,Cg)(10) where u u u=(u1,...,uK)∈His a fixed vector of indexes, V V V=(V1,...,VK)are the variable parameters, C C C=(C1,...,CG)are the common parameters among classes and (Vk,Cg)is the covariance matrix with the parameters given by (Vk,Cg). The following subsections exploit the potential of these particular GMMs for cluster analysis and discriminant analysis. A more general situation where only part of the labels are known could also be considered, following the same line as in Dean et al. (2006), but it will not be discussed in this work. As already noted in the Introduction, the criterion we are going to use for model selection between all the estimated models is BIC (Bayesian Information Criterion), choosing the model with a higher value of the BIC approximation given by BIC =2·loglikelihood −log(N)·p where Nis the number of observations and pis the number of independent parameters to be estimated in the model. This criterion is used for the comparison of the intermediate models G-CPC and G-PROP with the fourteen parsimonious models estimated in the software Rwith the functions in the mclust package. In addition, within the framework of discriminant analysis, the quality of the classification given by the best models, in terms of BIC, is also compared using cross validation techniques. 123
Statistics and Computing (2024) 34 :100 Page 7 of 21 100 −4 −2 0 2 4 −4 −2 0 2 4 −4 −2 0 2 4 −4 −2 0 2 4 −4 −2 0 2 4 −4 −2 0 2 4 −4 −2 0 2 4 −4 −2 0 2 4 −4 −2 0 2 4 −4 −2 0 2 4 −4 −2 0 2 4 −4 −2 0 2 4 −4 −2 0 2 4 −4 −2 0 2 4 −4 −2 0 2 4 −4 −2 0 2 4 4−CPC classification 4−PROP classification Fig. 1 Classification of S1,...,S100, represented by their 95% confidence ellipses. The first row shows the classes and axes estimations given by the 4-CPC model, and the second row shows the classes and proportional matrix estimations given by the 4-PROP model 3.1 Model-based clustering Given y1,...,yNindependent observations of a d-dimensional random vector, clustering methods based on fitting a GMM with Kgroups seek to maximize the log-likelihood function (2). From the fourteen possible restrictions considered in Celeux and Govaert (1995), we can compute fourteen different maximum likelihood solutions in which size, shape and orientation are common or not between the Kcovariance matrices. For a particular level Min Table 1, the fitting requires the maximization of the log-likelihood Lπ π π,μ μ μ, V V V,Cy1,...,yN = N i=1 logK k=1 πkφyiμk,(Vk,C), where π π π=(π1,...,πK)are the weights, with 0 ≤πk≤ 1,K k=1πk=1, μ μ μ=(μ1,...,μK)the means, V V V= (V1,...,VK)the variable parameters and Cthe common parameters. Estimation under the parsimonious restriction is performed via the EM algorithm. In the GMM context, we can see the complete data as pairs (yi,zi), where ziis an unobserved random vector such that zi,k=1 if the observation yicomes from distribution k, and zi,k=0 otherwise. With the ideas of Sect. 2, we are going to fit Gaussian Mixture Models with parsimonious restrictions, but allowing the common parameters to vary between different classes. Assuming a parsimonious level of decomposition Mand a number G∈{1,...,K}of classes, we are supposing that our data are independent observations from a distribution with density function (10). The log-likelihood function given a fixed vector of indexes u u uis Lu u uπ π π,μ μ μ, V V V,C C Cy1,...,yN = N i=1 logG g=1 k:uk=g πkφyiμk,(Vk,Cg). For each u u u∈H, we can fit a model. In order to choose the best value for the vector of indexes u u u, we should compare the BIC values given by the different models estimated. As the number of parameters is the same, the best value for u u u can be obtained by taking ˆ u u u=argmax u u u∈Hmax π π π,μ μ μ,V V V,C C CLu u uπ π π,μ μ μ, V V V,C C Cy1,...,yN. In order to avoid the combinatorial problem of maximizing within H, we can take u u uas if it were a parameter, and we are going to focus on the problem of maximizing Lπ π π,μ μ μ,u u u,V V V,C C Cy1,...,yN = N i=1 logG g=1 k:uk=g πkφyiμk,(Vk,Cg), (11) 123
100 Page 8 of 21 Statistics and Computing (2024) 34 :100 that will be referred to as Clustering G-M M M. Therefore, given the unobserved variables zi,k,fork=1,...,Kand i= 1,...,N, the complete log-likelihood is CLπ π π,μ μ μ,u u u,V V V,C C Cy1,...,yN,z1,1,...,zN,K = N i=1⎡ ⎣ G g=1 k:uk=g zi,klogπkφyiμk,(Vk,Cg)⎤ ⎦. (12) The proposal of this section is to fit this model given a parsimonious level Mand fixed values of Kand G∈ {1,...,K}, introducing also constraints to avoid the unboundedness of the log-likelihood function (11). For this purpose, we introduce the determinant and shape constraints studied in García-Escudero et al. (2020). For k=1,...,K, denote by (λk,1,...,λ k,d)the diagonal elements of the shape matrix k(which may be the same within classes). We impose K constraints controlling the shape of each group, in order to avoid solutions that are almost contained in a subspace of lower dimension, and a size constraint in order to avoid the presence of very small clusters. Given csh,cvol ≥1, we impose: max l=1,...,dλk,l min l=1,...,dλk,l ≤csh,k=1,...,K, max k=1,...,Kγk min k=1,...,Kγk ≤cvol (13) Remark 1 With these restrictions, the theoretical problem of maximizing (11) is well defined. If Yis a random vector following a distribution P, the problem consists in maximizing ElogG g=1 k:uk=g πkφYμk,Vk,Cg =logG g=1 k:uk=g πkφyμk,Vk,CgdP(y) (14) with respect to π π π,μ μ μ,u u u,V V V,C C C, defined as above, and verifying (13). If PNstands for the empirical measure PN= (1/N)N i=1δ{yi}, by replacing Pby PN, we recover the original sample problem of maximizing (11) under the determinant and shape constraints (13). This approach guarantees that the objective function is bounded, allowing results to be stated in terms of existence and consistence of the solutions (see Section A in the Appendix). Now, we are going to give a sketch of the EM algorithm used for the estimation of these intermediate parsimonious clustering models, for each of the fourteen levels. Clustering G-M: M: M:Starting from an initial solution of the parameters π0 π0 π0,μ0 μ0 μ0,u0 u0 u0,V0 V0 V0,C0 C0 C0, we have to repeat the following steps until convergence: •Estep: Given the current values of the parameters πm πm πm,μm μm μm,um um um,Vm Vm Vm,Cm Cm Cm, we compute the posterior probabilities zi,k= πm kφyi|μm k,Vm k,Cm uk K l=1πm lφyi|μm l,Vm l,Cm ul(15) for k=1,...,K,i=1,...,N. •M step: In this step, we have to maximize (12)given the expected values {zi,k}i,k. The optimal values for πm+1 πm+1 πm+1,μm+1 μm+1 μm+1are given by (3). With these optimal values, if we denote Sk=(1/nk)N i=1zi,k(yi− μm+1 k)(yi−μm+1 k)T, then we have to find the values um+1 um+1 um+1,Vm+1 Vm+1 Vm+1,Cm+1 Cm+1 Cm+1verifying the determinant and shape constraints (13) maximizing (u u u,V V V,C C C)−→ CLπm+1 πm+1 πm+1, μm+1 μm+1 μm+1,u u u,V V V,C C Cy1,...,yN,z1,1,...,zN,K. If we remove the determinant and shape constraints, the solution of this maximization coincides with the classification problem presented in Sect.2for the computed values of n1,...,nKand S1,...,SK. A simple modification of that algorithm, computing on each step the optimal size and shape constrained parameters (instead of the unconstrained version) with the optimal truncation algorithm presented in García-Escudero et al. (2020) allows the maximization to be completed. Determinant and shape constraints can be incorporated in the algorithms together with the parsimonious constraints following the lines developed in García-Escudero et al. (2022). As already noted in Sect.2, we keep only the clustering models G-CPC and G-PROP, the most interesting in terms of parameter reduction and interpretability. For these models, explicit algorithms are explained in Section C.3 in the Appendix. Now, we are going to illustrate the results of the algorithms in two simulation experiments: •Clustering G-CPC: In this example, we simulate n= 100 observations from each of 6 Gaussian distributions, with means μ1,...,μ 6and covariance matrices verifying k=γkβ1kβT 1,k=1,2,3, k=γkβ2kβT 2,k=4,5,6. 123
Statistics and Computing (2024) 34 :100 Page 9 of 21 100 In Fig.2, we can see in the first plot the 95 % confidence ellipses of the six theoretical Gaussian distributions together with the 100 independent observations simulated from these distributions. The second plot represents the clusters created by the maximum likelihood solution for the 2-CPC model, taking csh =cvol =100. The numbers labeling the ellipses represent the class of covariance matrices sharing the orientation. Finally, the third plot represents the best solution estimated by mclust for K=6, corresponding to the parsimonious model VEV, with equal shape and variable size and orientation. The BIC value in the 2-CPC model (31 d.f.) is −3937.08, whereas the best model VEV (30 d.f.) estimated with mclust has BIC value −3960.07. Therefore, the GMM estimated with the 2-CPC restriction has higher BIC than all the parsimonious models. Finally, the number of observations assigned to different clusters from the original ones is 82 for the 2-CPC model and 91 for the VEV model. •Clustering G-PROP: In this example, we simulate n= 100 observations from each of 6 Gaussian distributions, with means μ1,...,μ 6and covariance matrices verifying: k=γkA1,k=1,2,3, k=γkA2,k=4,5,6. Figure3is analogous to Fig. 2, but in the proportionality case. The BIC value for the 2-PROP model (27 d.f.) with csh =cvol =100 is −3873.127, whereas the BIC value for the best model fitted by mclust is −3919.796, which corresponds to the unrestricted model VVV (35 d.f.). Now, the number of observations wrongly assigned to the source groups is 64 for the 2-PROP model, while it is 71 for the VVV model. Remark 2 Note that, by imposing appropriate constraints in the clustering problem, we can significantly decrease the number of parameters while keeping a good fit of the data. Figure3shows this effect. However, constraints also have a clear interpretation in cluster analysis problems, since we are looking for groups that are forced to have a particular shape. Therefore, different constraints can lead to clusters with different shapes. This is what happens in Fig. 2, where by introducing the right constraints we have managed to make the clusters created more similar to the original ones. Of course, in the absence of prior information, it is not possible to know the appropriate constraints, and the most reasonable approach is to select a model according to a criterion that penalizes the fit with the number of parameters such as the BIC. Table 3 Proportions of times in which clustering 2-CPC or 2-PROP model improves the best mclust model in terms of BIC, for each sample size n Example n= 50 n= 100 n =200 2-CPC 0.570 0.927 1.000 2-PROP 0.933 0.999 1.000 To evaluate the sensitivity of BIC for the detection of the true underlying model, we have used the models described in the two previous examples. Once a model and a particular sample size n(=50, 100, 200) have been chosen, the simulation planning produces a sample containing nrandom elements generated from each N(μk, k), k=1,...,6. We repeated every simulation plan 1000 times, comparing for every sample the BIC obtained for the underlying clustering model vs the best parsimonious model estimated by mclust. Table 3includes the proportions of times in which 2-CPC or 2-PROP model improves the best mclust model in terms of BIC for each value of n. Of course, the accuracy of the approach should depend on the dimension, the number of groups, the overlapping... However, even in the case of a large overlapping, as in the present examples, the proportions reported in Table 3show that moderate values of nsuffice to get very high proportions of success. Appendix B contains additional simulations supporting the suitability of BIC in this framework. 3.2 Discriminant analysis The parsimonious model introduced in Bensmail and Celeux (1996) for discriminant analysis has been developed in conjunction with model-based clustering. The Rpackage mclust (Fraley and Raftery 2002; Scrucca et al. 2016) also includes functions for fitting these models, denoted by EDDA (Eigenvalue Decomposition Discriminant Analysis). In this context, given a parsimonious level Mand a number Gof classes, we can also consider fitting an intermediate model for each fixed u u u∈H, by maximizing the complete log-likelihood CLu u uπ π π,μ μ μ, V V V,C C Cy1,...,yN,z1,1,...,zN,K = N i=1⎡ ⎣ G g=1 k:uk=g zi,klogπkφyi|μk,(Vk,Cg)⎤ ⎦. (16) Model comparison is done through BIC, and consequently we could try to choose u u umaximizing the log-likelihood (11). However, given that in the model fitting we are maximizing the complete log-likelihood (16), it is not unreasonable trying to find the value of u u umaximizing (16). Proceeding in this manner, we can think of u u uas a parameter, and the problem 123
100 Page 16 of 21 Statistics and Computing (2024) 34 :100 −6 −4 −2 0 2 4 6 −4 −2 0 2 4 Original groups and covariance matrices −6 −4 −2 0 2 4 6 −4 −2 0 2 4 2−CPC clustering 2 1 1 2 2 2 2 1 1 2 2 2 2 1 1 2 2 2 2 1 1 2 2 2 2 1 1 2 2 2 2 1 1 2 2 2 −6 −4 −2 0 2 4 6 −4 −2 0 2 4 2−PROP clustering 2 1 2 2 2 1 2 1 2 2 2 1 2 1 2 2 2 1 2 1 2 2 2 1 2 1 2 2 2 1 2 1 2 2 2 1 −6 −4 −2 0 2 4 6 −4 −2 0 2 4 Mclust: VVE model Fig. 5 From left to right: 1. Theoretical Gaussian distributions and observations simulated from each distribution in the VVE example. 2. Solution estimated by clustering through 2-CPC model. 3. Solution estimated by clustering through 2-PROP model. 4. VVE clustering solution estimated with mclust Table 11 Clustering results in the VVE example for VVE, 2-CPC and 2-PROP models model loglik df BIC mclust: VVE −2116.478 30 −4424.864 2-CPC −2115.219 31 −4428.742 2-PROP −2212.407 27 −4597.531 Finally, as we did in Table 3, simulations have been repeated 1000 times, for different sample sizes n. In each simulation, we are comparing the BIC value obtained for 2- CPC and 2-PROP with the BIC value obtained for the true underlying model VVE. Results are shown in Table 12. The results are consistent with the ideas set out above. Since 2-PROP model is not verified, the clustering models fitted with this constraint give lower BIC value than VVE. 2-CPC model is verified, it is more flexible than VVE, and the difference in the number of parameters is only one. Thus, this is a rather complicated setting for model selection. Even in this case, if the sample size nis large enough, BIC is able to select the true model in almost all cases. The second example is similar to the 2-CPC example in 3.1, but now in dimension d=10. We consider K=6 distributions, with G=2 classes given by k=γkβ1kβT 1,k=1,2,3, k=γkβ2kβT 2,k=4,5,6. Parameters were created so that we get a favorable but not trivial situation for applying clustering algorithms. Figure 4 in the Online Supplementary Figures shows a sample created with n=100 observations from each group. For this sample, we fit the clustering model 2-CPC, and we compare it with the best model estimated by mclust. The results of this simulation are given in Table 13. The main advantage of considering our intermediate models against the 14 parsimonious models estimated by mclust in this particular exampleis that mclust is selecting the model Table 12 Proportions of times in which clustering 2-CPC or 2-PROP model improves the model VVE in terms of BIC, for each sample size n Example n= 50 n= 100 n =500 2-CPC 0.208 0.141 0.031 2-PROP 0.001 0 0 Table 13 Clustering results in the 10-dimensional example for the best mclust model and 2-CPC Model Loglik df BIC mclust: VVE −7310.521 170 −15708.52 2-CPC −6714.553 215 −14804.45 VVE, which it is not exactly verified, because the VVV model involves a substantially larger number of parameters (395 for clustering, 390 for discriminant analysis). This leads to a significant improvement in the BIC value of the 2-CPC model. As a result of this, when we repeated the simulation 1000 times with different sample sizes n(=50,100,200), our model 2-CPC improved in terms of BIC the best model estimated by mclust in 100% of the simulations, for all the values of nconsidered. Appendix C Algorithms C.1 Optimal truncation In the algorithms presented, we will repeatedly use the optimal truncation algorithm explained in Section 3.1 in García-Escudero et al. (2020), which was introduced in Fritz et al. (2013). 123
Statistics and Computing (2024) 34 :100 Page 17 of 21 100 Given d≥0 and a fixed restriction constant c≥1, the m-truncated value is defined by dm=⎧ ⎪ ⎨ ⎪ ⎩ dif d∈[m,cm] mif d<m cm if d>cm . Given njJ j=1∈RJ >0and dj1,...,djLJ j=1∈[0, ∞)J×L, we define the operator OTcnjJ j=1;dj1,...,djLJ j=1 which returns d∗ j1,...,d∗ jLJ j=1∈[0,∞)J×Lwith d∗ jl = dmopt jl for mopt being the optimal threshold value obtained as mopt =argmin m J j=1 nj L l=1log dm jl+djl dm jl . Obtaining that optimal threshold value only requires the maximization of a real-valued function and mopt can be efficiently obtained by performing only 2 ·J·L+1 evaluations through a procedure which can be fully vectorized (Fritz et al. 2013). In the algorithms of the following sections, when working with proportionality models, we will minimize in several situations a function of the type (β, γ1,...,γ r,λ 1,...,λ d)−→ r k=1 nk d l=1log(γkλl)+βT lSkβl γkλl, being βan orthogonal matrix and βl,l=1,...,dits columns, γ1,...,γ rsize parameters verifying the size constraint for cvol and λ1,...,λ dthe common shape parameters verifying the shape constraint for csh and d l=1λl=1. In this situation, the minimization can be made iteratively, taking into account that: •Fixed the sizes and shapes, the minimization with respect to βcan be done with the algorithms proposed in Browne and McNicholas (2014b). •Fixed the orientation and shapes, the optimal unconstrained values of the size are γopt k=1 d d l=1 βT lSkβl λl k=1,...,r. Therefore, the optimal restricted values for the size are OTcvol {nk}r k=1;{γopt k}r k=1. •Fixed the orientation and sizes, the optimal unconstrained values of the shapes are: λopt l=1 N r k=1 nk βT lSkβl γk l=1,...,d. The optimal values verifying the constraint csh are OTcsh {1}; {λopt 1,...,λ opt d}, and because of the reasoning in Section 3.3 in García-Escudero et al. (2020), the optimal values verifying also d l=1λl=1 are obtained normalizing the result of the optimal truncation operator. When working with CPC models, many times we will come to the conclusion that we have to minimize a slightly different type of function: (β, γ1,...,γ r,λ 1,1,...,λ 1,d,...,λ r,d)−→ r k=1 nk d l=1log(γkλk,l)+βT lSkβl γkλk,l. In this case, we can repeat analogous comments for the minimization with respect to the sizes and the orientation matrix. For the shape matrices: •Fixed the orientation and sizes, the optimal unconstrained values of the shapes are λopt k,l=βT lSkβl γk k=1,...,r,l=1,...,d. For each k=1,...,r, the optimal values verifying the constraint csh are the result of the operator OTcsh {1}; {λopt k,1...,λ opt k,d}, and the optimal values verifying also d l=1λl=1 are obtained normalizing the result of that truncation. C.2 Classification G-CPC/G-PROP In this section we are going to develop the algorithms for the covariance matrices classification models G-CPC and G- PROP minimizing (8) and (9). Since these algorithms are included in the algorithms for cluster analysis, determinant and shape constraints are also included. When focusing on the original problem of Sect.2, these constraints should be omitted, which can be done taking cvol =csh =∞.The input of the algorithm is Classification G-CPC/PROP S1,...,SK,n1,...,nK,G,csh,cvol ,nstart1, 123
100 Page 18 of 21 Statistics and Computing (2024) 34 :100 where S1,...,SKare the sample covariance matrices, n1,...,nKthe sample lengths, Gthe number of classes, csh,cvol the values of the constants for the determinant and shape constraints and nstart1the number of random initializations. The parameters of the minimization are u u u= (u1,...,uK),γ γ γ=(γ1,...,γK)β β β=(β1,...,β G)and =(1,..., s), where s=Kin G-CPC and s=G in G-PROP, and they are also the output of the algorithm. A detailed presentation of the algorithm is given as follows: 1. Initialization: We start taking a random vector of indexes u0 u0 u0∈H. Then we take: β0: β0: β0:For each g=1,...,G,wetakeksuch that u0 k=g, and we define βgas the eigenvectors of Sk. 0: 0: 0:→G-PROP: For each g=1,...,K, taking the same kas before, 0 g=OTcsh {1}; diag(βT gSkβg), 0 g=0 g prod(0 g)1/d. →G-CPC: For each k=1,...,K, 0 k=OTcsh {1}; diagβT u0 k Skβu0 k, 0 k=0 k prod(0 k)1/d. γ0: γ0: γ0:For each k=1,...,K, →G-PROP: γ0 k=1 dtr(0 u0 k )−1βT u0 k Skβu0 k →G-CPC: γ0 k=1 dtr(0 k)−1βT u0 k Skβu0 k. Constrained values: (γ 0 1,...,γ0 d)=OTcvol {nk}K k=1;{γ0 k}K k=1. 2. Iterations: The following steps are repeated until convergence: u-V step: Based on the current parameters um um um,γm γm γm,βm βm βm, m m m, we are going to optimize with respect to u u uand the variable parameters of each parsimonious model. The variable parameters will be also optimized in the following step, thus its value will not be updated here. Size parameters γ γ γdon’t affect the selection of the best u u u, thus it is enough to find for each k=1,...,Kthe value of ukfor which taking the common parameters Cukwe obtain a lower value in the minimization with respect to the variable parameters of R(β, ) = d l=1 βT lSkβl λl . →G-PROP: The parameters ,β β βare common, we are only minimizing with respect to u u u. For each k= 1,...,K, um+1 k=argmin g∈{1,...,G} R(βm g, m g). →G-CPC: The parameters β β βare common. For each k= 1,...,K, ˜ k,g=OTcsh {1}; diag(βm g)TSkβm g, ˜ k,g=˜ k,g prod(˜ k,g)1/d, um+1 k=argmin g∈{1,...,G} R(βm g,˜ k,g). V-C step: Based on the current parametersum+1 um+1 um+1,γm γm γm,βm βm βm, m m m, we are going to optimize with respect to γ γ γ,β β β, . This optimization requires iterations. Setting s=0, and considering the initial solutions ¯γ0 ¯γ0 ¯γ0=γm γm γm¯ β0 ¯ β0 ¯ β0=βm βm βm¯ 0 ¯ 0 ¯ 0=m m m the following steps are repeated until convergence: s: s: s:s=s+1 ¯γs: ¯γs: ¯γs:Update the size parameters. For each k=1,...,K, →G-PROP: ¯γs k=1 dtr(¯ s−1 um+1 k )−1(¯ βs−1 um+1 k )TSk¯ βs−1 um+1 k. →G-CPC: ¯γs k=1 dtr(¯ s−1 k)−1(¯ βs−1 um+1 k )TSk¯ βs−1 um+1 k. Then we apply the size constraint: ¯γs ¯γs ¯γs=OTcvol {nk}r k=1;{¯γs k}K k=1. ¯ s: ¯ s: ¯ s:Update the shape parameters. →G-PROP: For each g=1,...,G, ¯ s g=OTcsh {1}; 123
Statistics and Computing (2024) 34 :100 Page 19 of 21 100 diag1 N k:um+1 k=g nk (¯ βs−1 g)TSk¯ βs−1 g ¯γs k, ¯ s g= ¯ s g prod(¯ s g)1/d. →G-CPC: For each k=1,...,K, ¯ s k=OTcsh {1}; diag(¯ βs−1 ukm+1)TSk¯ βs−1 ukm+1 ¯γs k, ¯ s k= ¯ s k det(¯ s k)1/d. ¯ βs: ¯ βs: ¯ βs:Update the rotation parameters. For each g=1,...,G, the algorithms in Browne and McNicholas (2014b) allow us to find, for each g=1,...,G, a rotation matrix ¯ βs gminimizing: →G-PROP: β→ k:um+1 k=g nk d l=1 βT lSkβl ¯γs k¯ λs g,l . →G-CPC: β→ k:um+1 k=g nk d l=1 βT lSkβl ¯γs k¯ λs k,l . Once the iterations have finished, we update the parameters γm+1 γm+1 γm+1=¯γs ¯γs ¯γsβm+1 βm+1 βm+1=¯ βs ¯ βs ¯ βsm+1 m+1 m+1=¯ s ¯ s ¯ s. 3. Evaluate the target function: Steps 1 and 2 are repeated nstart1times. At each step, we evaluate the target function (8)or(9), and we keep the parameters estimated in the iteration with the best value of the target function. C.3 Clustering G-CPC/G-PROP In this section we are going to give a detailed explanation of the algorithms for model-based clustering G-CPC and G-PROP presented in Sect. 3.1 for minimizing (11). The algorithms for fitting the corresponding discriminant analysis models can be easily deduced from these. The input of the clustering algorithm is: clustering G-CPC/PROP X,G,K,csh,cvol ,nstart1,nstart2, where Xis the matrix with Nobservations of dvariables, Gis the number of classes, Kis the number of clusters, csh,cvol are the values for the determinant and shape constraints, nstart1is the number of random initializations in the classification algorithm, and nstart2is the number of random initialization in the clustering algorithm. The parameters of the minimization areπ π π=(π1,...,πK),μ μ μ=(μ1,...,μK), u u u=(u1,...,uK),γ γ γ=(γ1,...,γK)β β β=(β1,...,β G)and =(1,..., s), where s=Kin G-CPC and s=Gin G-PROP. A detailed presentation of the algorithm is given as follows: 1. Initialization: We start taking a random vector of indexes u0 u0 u0∈H. Then we take: π0: π0: π0:Equal weights: π0 k=1 Kk=1,...,K. μ0: μ0: μ0:Denote by (¯μ1,..., ¯μK)the solution obtained by the Rfunction tclust (García-Escudero et al. 2008; Fritz et al. 2012) for a random sample of length N/2ofX, number of groups K, eigenvalue constraint given by c=min{csh,cvol }and a suitable number of starts. We are considering as initial solution a random perturbation of the values obtained. If S=cov(X), we are considering μ0 k=¯μk+1 10 N(0,S)k=1,...,K. β0: β0: β0:β0 g=Id,g=1,...,G. 0: 0: 0:0 k=(1,...,1), k=1,...,Gin G-PROP, and k=1,...,Kin G-CPC. γ0: γ0: γ0:γ0 k=1,k=1,...,K. (This simple initial solution verifies determinant and shape constraint independently of the csh and cvol values) 2. Iterations: The E and M steps are repeated until convergence: •Estep: Given the current values of the parameters πm πm πm,μm μm μm,um um um,Vm Vm Vm,Cm Cm Cm, we compute the posterior probabilities zi,k= πkφyiμm k,m k K l=1πlφyi|μm l,m l for k=1,...,Ki=1,...,N, where the matrix m k is defined by →G-PROP: m k=γm kβum km um kβT um k. →G-CPC: m k=γm kβum km kβT um k. •Mstep: In this step, we have to maximize the complete log-likelihood (12) given the expected values {zi,k}i,k. 123
100 Page 20 of 21 Statistics and Computing (2024) 34 :100 n: n: n:nk=N i=1zi,kk=1,...,K. πm+1: πm+1: πm+1:πm+1 k=nk Nk=1,...,K. μm+1: μm+1: μm+1:μm+1 k=N i=1zi,kyi nkk=1,...,K. S: S: S:For k=1,...,K: Sk=1 nk N i=1 zi,k(yi−μm+1 k)(yi−μm+1 k)T. Class. : Class. : Class. :We solve the covariance matrix classification problem for the computed values: (um+1 um+1 um+1,γm+1 γm+1 γm+1,m+1 m+1 m+1,βm+1 βm+1 βm+1)= Classification G-CPC/PROP S1,...,SK,n1,...,nK,G,csh,cvol ,nstart1. 3. Evaluate the target function: Steps 1 and 2 are repeated nstart2times. At the end of each different initialization, we evaluate the target function (11), and we keep the parameters estimated in the iteration with the best value of the target function. References Azzalini, A., Menardi, G.: Clustering via nonparametric density estimation: the R package pdfCluster. J. Stat. Softw. 57(11), 1–26 (2014). https://doi.org/10.18637/jss.v057.i11 Banfield, J.D., Raftery, A.E.: Model-based Gaussian and non-Gaussian clustering. Biometrics 49(3), 803–821 (1993). https://doi.org/10. 2307/2532201 Benaglia, T., Chauveau, D., Hunter, D., et al.: mixtools: an R package for analyzing finite mixture models. J. Stat. Softw. 32(6), 1–29 (2009). https://doi.org/10.18637/jss.v032.i06 Bensmail, H., Celeux, G.: Regularized Gaussian discriminant analysis through eigenvalue decomposition. J. Am. Stat. Assoc. 91(436), 1743–1748 (1996). https://doi.org/10.1080/01621459. 1996.10476746 Bezdek, J.C., Hathaway, R.J., Howard, R.E., et al.: Local convergence analysis of a grouped variable version of coordinate descent. J. Opt. Theory Appl. 54(3), 471–477 (1987). https://doi.org/10. 1007/bf00940196 Biernacki, C., Govaert, G.: Choosing models in model-based clustering and discriminant analysis. J. Stat. Comput. Simul. 64(1), 49–71 (1999). https://doi.org/10.1080/00949659908811966 Browne, R.P., McNicholas, P.D.: Estimating common principal components in high dimensions. Adv. Data Anal. Classif. 8(2), 217–226 (2014). https://doi.org/10.1007/s11634-013-0139-1 Browne, R.P., McNicholas, P.D.: Orthogonal Stiefel manifold optimization for eigen-decomposed covariance parameter estimation in mixture models. Stat. Comput. 24(2), 203–210 (2014). https:// doi.org/10.1007/s11222-012-9364-2 Celeux, G., Govaert, G.: A classification EM algorithm for clustering and two stochastic versions. Comp. Stat. Data Anal. 14(3), 315– 332 (1992). https://doi.org/10.1016/0167-9473(92)90042-E Celeux, G., Govaert, G.: Gaussian parsimonious clustering models. Pattern Recognit. 28(5), 781–793 (1995). https://doi.org/10.1016/ 0031-3203(94)00125-6 Dean, N., Murphy, T.B., Downey, G.: Using unlabelled data to update classification rules with applications in food authenticity studies. J. R. Stat. Soc. Ser. C Appl. Stat. 55(1), 1–14 (2006). https://doi. org/10.1111/j.1467-9876.2005.00526.x del Barrio, E., Cuesta-Albertos, J.A., Matrán, C., et al.: Robust clustering tools based on optimal transportation. Stat. Comput. 29(1), 139–160 (2019). https://doi.org/10.1007/s11222-018-9800-z Dempster, A.P., Laird, N.M., Rubin, D.B.: Maximum likelihood from incomplete data via the EM algorithm. J. R. Stat. Soc. Ser. B Stat Methodol. 39(1), 1–22 (1977). https://doi.org/10.1111/j. 2517-6161.1977.tb01600.x Flury, B.: Common principal components in k groups. J. Am. Stat. Assoc. 79(388), 892–898 (1984). https://doi.org/10.1080/ 01621459.1984.10477108 Flury, B.: Common Principal Components and Related Multivariate Models. Wiley, New York (1988) Flury, B.N., Gautschi, W.: An algorithm for simultaneous orthogonal transformation of several positive definite symmetric matrices to nearly diagonal form. SIAM J. Sci. Comput. 7(1), 169–184 (1986). https://doi.org/10.1137/0907013 Flury, B.W., Schmid, M.J., Narayanan, A.: Error rates in quadratic discrimination with constraints on the covariance matrices. J. Classif. 11, 101–120 (1994). https://doi.org/10.1007/bf01201025 Fraley, C., Raftery, A.E.: Model-based clustering, discriminant analysis, and density estimation. J. Am. Stat. Assoc. 97(458), 611–631 (2002). https://doi.org/10.1198/016214502760047131 Friedman, H.P., Rubin, J.: On some invariant criteria for grouping data. J. Am. Stat. Assoc. 62(320), 1159–1178 (1967). https://doi.org/ 10.1080/01621459.1967.10500923 Fritz, H., García-Escudero, L.A., Mayo-Iscar, A.: tclust: an R package for a trimming approach to cluster analysis. J. Stat. Softw. 47(12), 1–26 (2012). https://doi.org/10.18637/jss.v047.i12 Fritz, H., García-Escudero, L.A., Mayo-Iscar, A.: A fast algorithm for robust constrained clustering. Comp. Stat. Data Anal. 61, 124–136 (2013). https://doi.org/10.1016/j.csda.2012.11.018 García-Escudero, L.A., Gordaliza, A., Matrán, C., et al.: A general trimming approach to robust cluster analysis. Ann. Stat. 36(3), 1324–1345 (2008). https://doi.org/10.1214/07-AOS515 García-Escudero, L., Gordaliza, A., Matrán, C., et al.: Avoiding spurious local maximizers in mixture modeling. Stat. Comput. 25, 619–633 (2015). https://doi.org/10.1007/s11222-014-9455-3 García-Escudero, L., Gordaliza, A., Greselin, F., et al.: Eigenvalues and constraints in mixture modeling: geometric and computational issues. Adv. Data Anal. Classif. 12, 203–233 (2017). https://doi. org/10.1007/s11634-017-0293-y García-Escudero, L., Mayo, A., Riani, M.: Model-based clustering with determinant-and-shape constraint. Stat. Comput. 30, 1363–1380 (2020). https://doi.org/10.1007/s11222-020-09950-w García-Escudero, L.A., Mayo-Iscar, A., Riani, M.: Constrained parsimonious model-based clustering. Stat. Comput. 32(1), 2 (2022). https://doi.org/10.1007/s11222-021-10061-3 Lebret, R., Iovleff, S., Langrognet, F., et al.: Rmixmod: the R package of the model-based unsupervised, supervised, and semi-supervised classification mixmod library. J. Stat. Softw. 67(6), 1–29 (2015). https://doi.org/10.18637/jss.v067.i06 Riani, M., Perrotta, D., Torti, F.: FSDA: a MATLAB toolbox for robust analysis and interactive data exploration. Chemom. Intell. Lab. Syst. 116, 17–32 (2012). https://doi.org/10.1016/j.chemolab. 2012.03.017 Scrucca, L., Fop, M., Murphy, T., et al.: mclust 5: clustering, classification and density estimation using gaussian finite mixture models. RJ.8, 205–233 (2016). https://doi.org/10.32614/RJ-2016-021 Thorpe, R.: A review of the numerical methods for recognising and analysing racial differentiation. In: Felsenstein, J. (ed.) Numerical Taxonomy, pp. 404–423. Springer, Berlin (1983). https://doi.org/ 10.1007/978-3-642-69024-2_43 123
Statistics and Computing (2024) 34 :100 Page 21 of 21 100 Venables, W.N., Ripley, B.D.: Modern Applied Statistics With S, 4th edn. Springer, New York (2002) Weinstein, J.N., Collisson, E.A., Mills, G.B., et al.: The cancer genome atlas pan-cancer analysis project. Nat. Genet. 45, 1113–1120 (2013). https://doi.org/10.1038/ng.2764 Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. 123