Clustering of variables with a three-way approach for health sciences
Abstract
Cluster analysis or classification usually concerns a set of exploratory multivariate data analysis methods and techniques for grouping either a set of statistical data units or the associated set of descriptive variables, into clusters of similar and, hopefully, well separated elements. In this work we refer to an extension of this paradigm to generalized three-way data representations and particularly to classification of interval variables. Such approach appears to be especially useful in large data bases, mostly in a data mining context. A health sciences case study is partially discussed.
Full text
435 CLUSTERING OF VARIABLES WITH A THREE-WAY APPROACH FOR HEALTH SCIENCES HELENA BACELAR-NICOLAU U NIVERSITY OF L ISBON FERNANDO COSTA NICOLAU N EW U NIVERSITY OF L ISBON ÁUREA SOUSA U NIVERSITY OF THE A ZORES LEONOR BACELAR-NICOLAU U NIVERSITY OF L ISBON Cluster analysis or classification usually concerns a set of exploratory multivariate data analysis methods and techniques for grouping either a set of statistical data units or the associated set of descriptive variables, into clusters of similar and, hopefully, well separated elements. In this work we refer to an extension of this paradigm to generalized three-way data representations and particularly to classification of interval variables. Such approach appears to be especially useful in large data bases, mostly in a data mining context. A health sciences case study is partially discussed. Key words: Three-way data; Interval variable; Cluster analysis of variables; Similarity coefficient; Hierarchical clustering model. Correspondence concerning this article should be addressed to Helena Bacelar-icolau, Universidade de Lisboa, Faculdade de Psicologia, LEAD, Alameda da Universidade, 1649-013 Lisboa, Portugal. Email: hbacelar@psicologia. ulisboa.pt Cluster analysis or classification usually concerns exploratory multivariate data analysis methods and techniques for grouping either a set of statistical data units (individuals, cases, …) or an associated set of descriptive variables, into clusters of similar elements, hopefully homogenous and well separated. In this work we refer to a generalization of this paradigm that appears to be particularly useful (but not only) when large data bases are used, mostly in a data mining context: classification/clustering of generalized three-way or complex data instead of the more common two-way data approach. Hierarchical clustering methods are based on the affinity coefficient and on some empirical aggregation criteria as well as probabilistic aggregation criteria. These are issued from an adaptive (parametric) family of aggregation criteria. Concerning applications, individuals which belong to three different groups and variables which correspond to psychological scales, are analyzed in this study. The aim was first of all to analyze the underlying clustering structures of groups, separately, and to compare them. Hence, cluster analysis of each group was based on the usual two-way data representation of a matrix crossing the TPM Vol. 21, No. 4, December 2014 – 435-447 – Special Issue – doi:10.4473/TPM21.4.5 – © 2014 Cises
TPM Vol. 21, No. 4, December 2014 435-447 – Special Issue © 2014 Cises Bacelar-Nicolau, H., Costa Nicolau, F., Sousa, Á., & Bacelar-Nicolau, L. Clustering of variables with a three-way approach 436 set of individuals with the set of variables. Additionally we searched for a reference global clustering structure over the whole sample, able to keep the variability of the groups. Thus in this case the corresponding data base should include not only the two sets of individuals and variables but also the groups set. Moreover, groups might have different dimensions or alternatively be represented by interval data. Therefore such a global cluster analysis should be based on a generalized threeway or complex data representation (H. Bacelar-Nicolau, 2002; H. Bacelar-Nicolau, Nicolau, Sousa, & L. Bacelar-Nicolau, 2009; Souza & De Carvalho, 2004). The present work refers to global cluster analysis. In order to obtain data typologies, hierarchical cluster analysis methods were applied to classify the set of variables/scales, using a suitable extended affinity coefficient (e.g., Matusita, 1951, 1955; H. Bacelar-Nicolau, 2002; Nicolau & Bacelar-Nicolau, 1982) as a proximity measure associated with four different aggregation criteria: two empirical ― single link and complete link ― and two probabilistic criteria ― Aggregation Validity Link (AVL) and Aggregation Validity B-Link (AVB) (B from Bacelar-Nicolau, 1985, meaning also Brake that is “reducing both chain and symmetry/equicardinality clustering effects”; e.g., Bacelar-Nicolau, 1988; Lerman, 1972, 1981). The single link and the two probabilistic criteria are incorporated into an adaptive family of aggregation criteria similar to Lance and Williams’ well known formula (e.g., H. Bacelar-Nicolau, 2002; Lerman, 1981; Nicolau & Bacelar-Nicolau, 1998). Part of the three-way or complex clustering approach was published and programmed in Bock and Diday (2000) and associated software SODAS, as well as in H. Bacelar-Nicolau (2000, 2002), L. Bacelar-Nicolau (2002), H. Bacelar- Nicolau et al. (2009, 2010), and Sousa (2005). Applications have been reported in those papers as well as, for instance, in H. Bacelar-Nicolau (2002), Nicolau et al. (2007), Sousa, Nicolau, H. Bacelar-Nicolau, and Silva (2010), Sousa, Tomás, Silva, and H. Bacelar-Nicolau (2013). The next section provides an overview of the extended three-way clustering approach based on the generalized affinity coefficient, adapted to the real data base and clustering aims referred to in the case study, where the application of the methodology to psychological data issued from the Parenting Stress Index (PSI; Abidin, 1997) questionnaire is illustrated. W EIGHTED G ENERALIZED A FFINITY AND A SYMPTOTIC P ERMUTATION S TANDARDIZED C OEFFICIENTS Let D be a set of individuals (first-order statistical data units), described by a set V of p variables. Individuals are split into n different groups (second-order statistical data units), with same or different cardinals. Here we are concerned with hierarchical clustering models on the set of variables/scales. Therefore the global data table to work with is composed by n sub-tables representing groups G j (j = 1,…,n), where columns correspond to variables V k (k = 1,...,p) and rows (ℓ = 1,...,m j ) of each j-th sub-table describe G j individuals (Table 1). The Basic Affinity Coefficient The affinity coefficient was introduced by Matusita in 1951 to measure proximity between two distribution functions (Matusita, 1951, 1955). Matusita studied affinity properties and applications in a number of important papers, mostly in an inferential statistics context. The affinity
TPM Vol. 21, No. 4, December 2014 435-447 – Special Issue © 2014 Cises Bacelar-Nicolau, H., Costa Nicolau, F., Sousa, Á., & Bacelar-Nicolau, L. Clustering of variables with a three-way approach 437 T ABLE 1 Generalized three-way data matrix V 1 ··· V p Group G 1 1 x 111 ··· x 1p1 . . . . . . m 1 1 11m x ··· 1 1pm x Total •11 x ··· •p x 1 . . . . . . . . . Group G n 1 x n11 ··· x np1 . . . . . . m n n mn x 1 ··· n npm x Total •1n x ··· •np x coefficient is related to a special case of the Hellinger distance, also designated as the Bhattacharyya distance (e.g., H. Bacelar-Nicolau, 2000; Bock & Diday, 2000; Domenges & Volle, 1979; Nikulin, 2001). We have extensively studied the affinity coefficient in a cluster analysis context frequently regarding classification of variables, for instance when searching for typologies in multivariate analysis of data from human sciences. Furthermore exploratory empirical as well as probabilistic clustering methods/models based on the affinity coefficient have been developed for classification of variables. Later on the affinity coefficient was extended to clustering of statistical data units, mainly in a three-way approach (e.g., H. Bacelar-Nicolau, 1988, 2000, 2002; H. Bacelar-Nicolau et al., 2009, 2010). Let V be a set of p variables, describing a set D of statistical data units, so that each of the ×p cells of the corresponding data table X contains one single non-negative real value x ik (i = 1,...,; k = 1,...,p) which is the value of the k-th variable on the i-th individual. This applies for instance to cluster analysis of each group G j above, with = m j (j = 1,…,n). The basic affinity coefficient ( ) ',kka between Vk and Vk' variables (k, k' = 1,…,p), is defined by: ( ) ∑ =•• ⋅= i k ik k ik x x x x kka 1' ' ', , where ∑ = • = iikk xx 1 and ∑ = • = i'ik'k xx 1 (1) Therefore the basic affinity coefficient between two such -dimension real variables is the inner product between the square root column profiles associated with those variables. It is easy to prove that the affinity coefficient between profiles, a, satisfies the following proprieties: it is a symmetric similarity coefficient which takes values in [0,1], 1 for equal or proportional vectors and 0 for orthogonal vectors; it measures a monotone tendency between column profiles; it is related to the Hellinger distance d by the relation d 2 = 2 (1-a); in the case of binary variables, the affinity coefficient turns out to be the well known Ochiai (1957) coefficient. Moreover, the affinity
TPM Vol. 21, No. 4, December 2014 435-447 – Special Issue © 2014 Cises Bacelar-Nicolau, H., Costa Nicolau, F., Sousa, Á., & Bacelar-Nicolau, L. Clustering of variables with a three-way approach 438 coefficient is not changed if two or more equal or proportional data units are replaced by one single data unit with adjusted proportional contributions to the concerned pair of profiles ― principle of distributional equivalence, also verified by the chi-square distance ― or if more proportional data units are added to the data matrix; it is not changed if more profile columns are added to the data matrix (larger V set size); it is independent of the D set size; it may be easily extended to practical situations where negative real values are present; in simulation studies with missing data the affinity coefficient shows a better performance than the Pearson correlation coefficient (Silva, H. Bacelar-Nicolau, & Saporta, 2002; Silva, Saporta, & H. Bacelar-Nicolau, 2004). Those properties (among others related to more complex data) turn out to be real advantages in using the affinity coefficient or the associated Hellinger distance as a robust basic coefficient to measure the similarity or the dissimilarity between profiles. The Hellinger distance has been used in the so called spherical factor analysis by Michel Volle since 1979, in France (Domenges & Volle, 1979). Generalized Three-Way Affinity Coefficient The generalized affinity coefficient )',( kka between a pair of variables k, k' ∈ V (k, k' = 1,…,p) may be defined, in a three-way context, as the weighted mean of partial affinities between k and k'over the j-th group (j = 1,…,n): ( ) ( ) ∑∑∑ =•• = = ⋅⋅π=⋅π= j m jk jk jk jk n jj n j j x x x x jkkaffkka 1' ' 1 1 ;', ', l ll (2) where the sum aff(k,k';j) represents the partial or local affinity over the j-th group, m j is the number of individuals of this group, x jkℓ depends on the k-th variable type and π j is a weight so that 0 ≤ π j ≤ 1, Σ π j = 1. Either the partial affinities aff(k,k';j), or the whole weighted generalized affinity coefficient, take values in the interval [0,1] and satisfy the set of main proprieties of a similarity coefficient, some of which are mentioned in the previous section. Application of Three-Way Affinity Coefficient to Interval-Type Variables A variable Y k defined on a set of (second-order) statistical data units/groups G j is an interval variable if for all G j (j = 1,…,n) the (j, k )-th cell contains an interval I jk (k =1,…,p) of the real data set R. Let I j be the union of intervals jkjjk III ∪=: (k = 1,…,p). Thus, the related data table may be represented as in Table 2. Let { } jj m...I ',,1 : =l l be a set of m' j elementary intervals, so that the following properties hold, for :,,1 ;' ,',,1', n...jm.... j =≠= llll i) l jj II ∪= , ii) ,0=∩ 'jj II ll iii) ll jjjk III =∩ , if 0≠∩ l jjk II , and 0=∩ l jjk II , otherwise; where represents the interval range. Let l jk x be ll jjkjk IIx ∩= . Then, ll jjk Ix =if ll jjjk III =∩ , and 0= ljk x otherwise. Consequently, we also have: jkjk Ix = • , '' jkjk Ix = • and .IIxx j 'm 'jkjk'jkjk ∑ = ∩= 1lll
TPM Vol. 21, No. 4, December 2014 435-447 – Special Issue © 2014 Cises Bacelar-Nicolau, H., Costa Nicolau, F., Sousa, Á., & Bacelar-Nicolau, L. Clustering of variables with a three-way approach 439 T ABLE 2 Interval data matrix V 1 ··· V k ··· V k ' ··· V p Union Group 1 (G 1 ) I 11 ··· I 1 k ··· I 1 k ' ··· I 1 p I 1 . . . . . . . . . Group j (Gj) I j 1 ··· I jk ··· I jk ' ··· I jp I j . . . . . . . . . Group n (G n ) I n 1 ··· I n k ··· I nk ' ··· I np I n In the generalized three-way interval data matrix each row/group G j gives place to a submatrix with j m' rows as represented in Table 3. T ABLE 3 Generalized three-way interval data matrix ··· V k ··· V k' ··· Group 1 (G 1 ) ··· ··· ··· ··· ··· ··· . . . . . . . . . Group j (G j ) 1j I ··· 11 jjkjk IIx ∩= ··· 11 j'jk'jk IIx ∩= ··· . . . . . . lj I ··· ll jjkjk IIx ∩= ··· ll j'jk'jk IIx ∩= ··· . . . . . . j 'jm I ··· jj 'jmjk'jkm IIx ∩= ··· jj 'jm'jk'm'jk IIx ∩= ··· . . . . . . . . . Group n (G n ) ··· ··· ··· ··· ··· ··· Thus the original interval data matrix (Table 2) becomes a generalized three-way interval data matrix (Table 3) with n sub-matrices eventually of different dimensions (different number of rows), each one describing the corresponding set of disjoint elementary intervals. Hence, the local affinity coefficient between a pair ( ) ',kk of interval variables, over the j-th group, may be computed by formula (2), just replacing all x values by the corresponding interval ranges as described above, for j, j' = 1,…,n; l = 1,..., j m' . The local affinity ( ) jkkaff ;', = ( ) ' , jkjk IIaff is as follows:
TPM Vol. 21, No. 4, December 2014 435-447 – Special Issue © 2014 Cises Bacelar-Nicolau, H., Costa Nicolau, F., Sousa, Á., & Bacelar-Nicolau, L. Clustering of variables with a three-way approach 440 ( ) ( ) . ,;', ' ' ' ' 1' ' jkjk jkjk jkjk m jk jk jk jk IIaff II II x x x x jkkaff j = × ∩ =⋅= ∑ =•• l ll (3) Consequently, for interval data the local affinity between a pair ( ) ',kk of intervals is also a generalized Ochiai coefficient, which might be computed either from formula (3) or from the generalized 2 × 2 contingency Table 4, associated with the pair ( ) ',kk of interval variables over the j-th group. Instead of the usual cardinals in a 2 × 2 contingency table associated to a pair of binary variables, agreements or disagreements for a pair of intervals are measured by the respective interval ranges, in Table 3. Here, c jk I represents the complementary interval of I jk in the domain I j . T ABLE 4 Table of agreements and disagreements for a pair ( ) ',kk of interval variables k \ k ' Agreement Disagreement Total Agreement ' jkjkj IIs ∩= c jkjkj IIu ' ∩= jkjj Ius =+ Disagreement ' jk c jkj IIv ∩= c jk c jkj IIt ' ∩= c jkjj Itv =+ Total 'jkjj Ivs =+ c 'jkjj Itu =+ j I Asymptotic Permutation Standardized Affinity Coefficient Using prior knowledge as a reference hypothesis may allow us to compute asymptotic standardized affinity values and the corresponding cumulative distribution function values, giving place to new similarity coefficients and to new probabilistic clustering models (PCM), instead of empirical clustering models. A reference hypothesis usually stands in this probabilistic approach not only as a convenient reference point, but also has a natural interpretation, depending on the type of data and context. In a three-way clustering probabilistic analysis, the random variable aff(k,k';j) has an asymptotic normal distribution, and under a permutation reference hypothesis based on the limit theorem of Wald and Wolfowitz (1944), the asymptotic mean value and variance are as follows (Kendall & Stuart, 1967): ( ) ∑∑ =• =• =µ jj m jk jk m jk jk j * WW x x x x m jkk 1' ' '' 1 1 ;', l l l l ( ) . x x mx x x x mx x m jkk j jj j m m jk jk jjk jk m m jk jk jjk jk j * WW 2 1 1' ' '' ' ' 2 1 1' ' 2 11 1 1 ;', ∑ ∑∑ ∑ = = •• = = •• −× − − =σ l l ll l l ll Thus the generalized affinity coefficient )',( kka between variables k, k' ∈ V gives place to (for interval variables use m' j instead of m j as explained in the above section concerning the application of three-way affinity coefficient to interval-type variables):
TPM Vol. 21, No. 4, December 2014 435-447 – Special Issue © 2014 Cises Bacelar-Nicolau, H., Costa Nicolau, F., Sousa, Á., & Bacelar-Nicolau, L. Clustering of variables with a three-way approach 441 ( ) ( ) ( ) ∑ = π== n j * WWj * WW jkkaff.kkakka 1 ;',',', , where ( ) ( ) ( ) [ ] ( ) jkk/jkkjkkaffjkkaff * WW * WW * WW ;',;',;',;', 2 σµ−= . Then, a probabilistic coefficient ( ) ',kk WW α between two variables k, k ' ∈ V, is as follows: ( ) ( ) ( ) [ ] ( ) ( ) [ ] ',',',',', kkakk ˆ kkakkAPkk * WW ** WWWW Φ=α≅≤=α where Φ denotes the cumulative distribution function of the standard normal distribution and A * represents an asymptotic standardized random variable. Applications to simulated data (Sousa, 2005) assure that convergence to the normal distribution is quite fast (n > 10 in most cases). A large value of the probabilistic coefficient means that the observed affinity value is significantly larger than one might expect, under the reference hypothesis. Therefore this probabilistic coefficient validates the affinity coefficient between two variables k, k' in a probabilistic scale (e.g., H. Bacelar-Nicolau, 1988, 2000; H. Bacelar-Nicolau et al., 2010; Lerman, 1972, 1981, 2000; Nicolau & H. Bacelar-Nicolau, 1982, 1998). Thus ( ) ' , kk WW α is sometimes called Validity Link (VL) similarity coefficient. Several good proprieties of the generalized affinity coefficient between (homogenous or heterogeneous) variables, as well as of the corresponding standard and probabilistic coefficients have so far been demonstrated and several applications to simulated or to real data have been analyzed. In this perspective an adaptive/parametric formula, such as Nicolau and H. Bacelar- Nicolau’s extension of the Lance and Williams (1967) adaptive formula to VL similarity coefficients (e.g., H. Bacelar-Nicolau, 1988, 2002; Lerman, 1981; Nicolau & H. Bacelar-Nicolau, 1998) generates new aggregation criteria and allows us to compare probabilistic or semi-probabilistic clustering models in an easy way. A PCM or a semi-PCM operates in an exploratory framework where prior knowledge about the data structure may be used as a complementary tool to extract knowledge from its clustering hierarchical structure. Comparisons of such models have so far been developed mainly inside some adaptive families, based on a suitable set of parameter values. Other methods are being studied. In the present work we use an adaptive family depending on two real valued parameters ε , ξ ∈ [0,1], so that the single linkage criterion corresponds to ( ε = 1, ξ = 0), while AVL and AVB aggregation methods are obtained with respectively ( ε = 1, ξ = 1) and ( ε = 1, ξ = 0.5). This is illustrated in the case study of the following section. By varying ξ from 0 to 1, with ε = 1, one may for instance analyze how the VL models evolve, when going from the chaining effect associated to the first criterion, toward the symmetry/equicardinality effect associated to AVL (e.g., H. Bacelar-Nicolau, 1988, 2002; Lerman, 1981; Nicolau & H. Bacelar-Nicolau, 1998). C ASE S TUDY The data resulted from the application of the Parenting Stress Index (PSI; Abidin, 1997) to measure stress in parent-child relationships on a sample of three groups of parents: parents of children with attention deficit/hyperactivity disorder, parents of children with asthma and a control group of parents of children with neither diagnosis of deficit/hyperactivity disorder, nor asthma (Magalhães, 2005; Nicolau et al., 2007). These data have been used as an illustrative example in several statistical studies.
TPM Vol. 21, No. 4, December 2014 435-447 – Special Issue © 2014 Cises Bacelar-Nicolau, H., Costa Nicolau, F., Sousa, Á., & Bacelar-Nicolau, L. Clustering of variables with a three-way approach 442 This research concerns 13 scales of the PSI and the corresponding scale scores (sum of Likert scale item values), identifying sources of stress within the family. Regarding children there are six scales: Distractibility/Hyperactivity (E1); Reinforcement of Parent (E2); Mood (E3); Acceptability (E4); Adaptability (E5); Demandingness (E6). Concerning parents there are seven scales: Competence (E7); Attachment (E8); Role Restriction (E9); Depression (E10); Spouse (E11); Isolation (E12); Health (E13). The purpose here is to obtain a typology of the 13 scales, that is to search for a classification of variables, described by the three groups of parents. Each group had initially 30 respondents, but a missing values analysis detected 13 response patterns with missing values: five in the first group, six in the second group, and two in the third group, corresponding to a total sample of 77 respondents without missing values. All the children are between 6 and 10 years old. Using Generalized Three-Way Affinity Coefficient The three groups analyzed contained respectively 25 (Group 1), 24 (Group 2), 28 (Group 3) respondents respectively corresponding to a total sample of 77 individuals. Hierarchical cluster analysis was applied to classify the 13 PSI scales, using the empirical and probabilistic affinity coefficients described above in the sections titled “Generalized three-way affinity coefficient” and “Asymptotic permutation standardized affinity coefficient” with parents groups G j (j = 1,2,3), variables/scales V k (k = 1,...,13), rows (ℓ = 1,..., m j ) of each j-th sub-table so that m 1 = 25, m 2 = 24, m 3 = 28, and π j = 1/3 (j = 1,2,3). In this work only results obtained from the probabilistic coefficient are referred to, together with four aggregation criteria: Single link (SL), Complete link (CL), and two probabilistic criteria, AVB and AVL. Thus obtaining two semi-PCM and two PCM. Aggregation criteria SL, AVB, and AVL belong to the same adaptive family. The hierarchical trees or dendrograms obtained are represented below (Figure 1). Several quality statistics, which are not included here, were used for each clustering model helping for instance to choose the most significant partitions of clusters. The four hierarchical clustering trees present several common clusters, mostly merging in the same way, especially in the CL, AVB, and AVL cases. Considering the three aggregation criteria belonging to the parametric family referred to above, we may easily observe how the dendrograms progress when going from SL ( ε = 1, ξ = 0) to AVL ( ε = 1, ξ = 1) through AVB ( ε = 1, ξ = 0.5) methods. This is also supported by the usual tables of quality statistics associated to each clustering model and computed by the statistical software. Here we mention some of these partitions without giving the corresponding tables of values. In summary we may observe that: – the following pairs of scales are common to all models: {E2 (Reinforcement of Parent), E3 (Mood)}; {E5 (Adaptability), E7 (Competence)}; {E9 (Role Restriction), E11 (Spouse)}; {E12 (Isolation), E13 (Health)}; – in all models, cluster {E9, E11} joins {E4 (Acceptability)}; – in the three CL, AVB, and AVL models, cluster {E12, E13} joins {E8 (Attachment)}. In the SL case they are quite near, but the chain effect is already working; – in the three models CL, AVB, and AVL clusters {E2, E3} and {E12, E13, E8} merge together at the 10-th level of the dendrogram, corresponding to the maximum value of the quality statistics,
TPM Vol. 21, No. 4, December 2014 435-447 – Special Issue © 2014 Cises Bacelar-Nicolau, H., Costa Nicolau, F., Sousa, Á., & Bacelar-Nicolau, L. Clustering of variables with a three-way approach 443 F IGURE 1 Dendrograms issued from original data, two empirical and two probabilistic aggregation criteria. that is to the best classification. At this level, AVB and AVL methods propose the same classification in three clusters: the previous one, the small-strong cluster {E5, E7} and the cluster joining {E9, E11} and {E4 (Acceptability)} to {E1 (Distractibility/Hyperactivity), E6 (Demandingness ), E10 (Depression)}; – at 11-th level all three CL, AVB, and AVL models give the second most significant partition in the same two clusters of scales. We do not go into a psychological interpretation in this paper. We just point out one of the first features that appear to be appealing to both statisticians and psychologists for future developments: using the generalized affinity coefficient and its probabilistic coefficient re-enforces the tendency to join sources of stress concerning children with sources concerning parents themselves at lower levels of the dendrograms. Using Three-Way Affinity Coefficient with Interval-Type Variables Instead of basing our study on incomplete sub-samples, because of the presence of missing data, the interval approach as described in the section above entitled “Application of three- CL Dendrogram SL Dendrogram ( ε = 1, ξ = 0) AVB Dendrogram ( ε = 1, ξ = 0.5) AVL Dendrogram ( ε = 1, ξ = 1)