CANONICAL CORRELATION ANALYSIS IN THE CASE OF MULTIVARIATE REPEATED MEASURES DATA
Abstract
EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.
Full text
Krzyśko, Mirosław; Łukaszonek, Wojciech; Wołyński, Waldemar Article CANONICAL CORRELATION ANALYSIS IN THE CASE OF MULTIVARIATE REPEATED MEASURES DATA Statistics in Transition New Series Provided in Cooperation with: Polish Statistical Association Suggested Citation: Krzyśko, Mirosław; Łukaszonek, Wojciech; Wołyński, Waldemar (2018) : CANONICAL CORRELATION ANALYSIS IN THE CASE OF MULTIVARIATE REPEATED MEASURES DATA, Statistics in Transition New Series, ISSN 2450-0291, Exeley, New York, NY, Vol. 19, Iss. 1, pp. 75-85, https://doi.org/10.21307/stattrans-2018-005 This Version is available at: https://hdl.handle.net/10419/207888 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by-nc-nd/4.0/
STATISTICS IN TRANSITION new series, March 2018 75 STATISTICS IN TRANSITION new series, March 2018 Vol. 19, No. 1, pp. 75–85, DOI 10.21307/stattrans-2018-005 CANONICAL CORRELATION ANALYSIS IN THE CASE OF MULTIVARIATE REPEATED MEASURES DATA Mirosław Krzy´ sko1,Wojciech Łukaszonek2, Waldemar Woły´ nski3 ABSTRACT In this paper, we present, in the real example, canonical variables applicable in the case of multivariate repeated measures data under the following assumptions: (1) multivariate normality for the vector of observations and (2) Kronecker product structure of the positive definite covariance matrix. These variables are especially useful when the number of observations is not large enough to estimate the covariance matrix, and thus the traditional canonical variables fail. Computational schemes for maximum likelihood estimates of required parameters are also given. Key words: canonical correlation analysis, repeated measures data (doubly multivariate data), Kronecker product covariance structure, maximum likelihood estimates. 1. Introduction Suppose that we have a sample of nobjects characterized by (p+q)-variables X1,...,Xp,Xp+1,...,Xp+qmeasured in Tdifferent time-points or physical conditions. Such data are often referred to in the statistical literature as multivariate repeated data or doubly multivariate data. Analysis of such data is complicated by the existence of correlation among the measurements of different variables as well as correlation among measurements taken at different time points. If we take observations on (p+q)-variables at Ttime-points, then these observations can be represented as x x x1,...,x x xp,x x xp+1,...,x x xp+q, where x x xiare T-vectors. Let Cov(x x xi,x x xj)be the covariance between the T-vectors x x xiand x x xj. When we choose Cov(x x xi,x x xj) = (σi jV V V),i,j=1. . . , p,p+1,...,p+q, and assume normality, then the distribution of the (p+q)-random vectors is vec(x x x1,...,x x xp,x x xp+1,...,x x xp+q)∼N(p+q)T(µ µ µ,Ω Ω Ω), where µ µ µ=vec(µ µ µ1,...,µ µ µp+q). The covariance matrix Ω Ω Ωis positive definite. Its estimate ˆ Ω Ω Ωis positive definite with probability 1if and only if n>(p+q)T(see, e.g., Giri (1996), p. 93). 1Faculty of Mathematics and Computer Science, Adam Mickiewicz University, Poland. Interfaculty Institute of Mathematics and Statistics, The President Stanisław Wojciechowski State University of Applied Sciences in Kalisz, Poland. E-mail: [email protected] 2Interfaculty Institute of Mathematics and Statistics, The President Stanisław Wojciechowski State University of Applied Sciences in Kalisz, Poland. E-mail: w[email protected] 3Faculty of Mathematics and Computer Science, Adam Mickiewicz University, Poland. E-mail: wolyn- [email protected]
76 M. Krzy´ sko, W. Łukaszonek, W. Woły´ nski: Canonical correlation analysis ... Hence, estimation of the parameters µ µ µand Ω Ω Ωwill require a very large sample, which may not always be feasible. Hence, we assume Ω Ω Ωto be of the form: Ω Ω Ω=Σ Σ Σ⊗V V V, where Σ Σ Σis a (p+q)×(p+q)positive definite matrix and V V Vis T×Tpositive definite matrix and Σ Σ Σ⊗V V Vis the Kronecker product of Σ Σ Σand V V V. In this case the estimates of the matrices Σ Σ Σand V V Vare positive definite with probability 1 if and only if n> max(p+q,T). The matrix Σ Σ Σrepresents the covariance between all (p+q)-variables on a given object and for a given time-point. Likewise,V V Vrepresents the covariance between repeated measures on a given object and for a given variable. The above covariance structure is subject to an implicit assumption that for all variables the correlation structure between repeated measures remains the same, and that covariance between variables does not depend on time and remains constant for all time-points. Classification rules in the case of multivariate repeated measures data under the assumption of multivariate normality for classes and with compound symmetric correlation structure on the matrix V V Vwere given by Roy and Khattree (2005). Next, Roy and Khattree (2008) gave the solution of this problem for the case when the correlation matrix V V Vhas the first order autoregressive [AR(1)] structure. Srivastava and Naik (2008), and McCollum (2010) describe the structure of canonical correlation and canonical variables (Hotelling 1936) based on the variables X1,...,Xpand Xp+1,...,Xp+qobserved at Ttime-points. Srivastava et al. (2008) found the form of maximum likelihood estimates of Σ Σ Σand V V Vand using these estimates gave the test of the hypothesis that the covariance matrix Ω Ω Ωhas the form Ω Ω Ω=Σ Σ Σ⊗V V Vagainst the alternative that the covariance matrix is not of Kronecker product structure, when n>(p+q)T. Krzy´ sko and Skorzybut (2009) and Krzy´ sko et al. (2011) proposed some new classification rules applicable in the case when no structures whatsoever are imposed on Σ Σ Σand V V Vexcept that they are positive definite. Der˛egowski and Krzy´ sko (2009) constructed principal components for this model. Application of principal component analysis for the different types of genotypes of blackcurrants is described in the paper by Krzy´ sko et al. (2010), while the use of principal components to analyse a data set obtained from the experiments with varieties of winter rye is described in the paper Krzy´ sko et al. (2014). The aim of this paper is to examine the relationship between the characteristics of higher education and the quality of life and human capital characteristics observed in 2002-2014 in each of the 16 Polish provinces. A particular model of canonical analysis, described in Srivastava and Naik (2008), will be used as a research tool. In Section 2 we characterize our data set. In Section 3 canonical analysis for doubly multivariate data, based on results of Srivastava and Naik (2008), and Mc- Collum (2010), is presented in the case when no structures whatsoever are imposed on Σ Σ Σand V V Vexcept that they are positive definite. In Section 4 we present the computational schemes for maximum likelihood estimates of unknown parameters.
STATISTICS IN TRANSITION new series, March 2018 77 In Section 5 the analysis results are presented. 2. Characteristics of the data set The data used are taken from the Local Data Bank (https://bdl.stat.gov.pl). Local Data Bank is Poland’s largest database containing data with respect to economy, households, innovation, public finance, society, demographics and the environment. The analysis relates to 16 Polish provinces (n=16). On the graphs, the provinces are denoted by numbers as given in Table 1. Table 1. Designations of provinces 1 Dolno´ sl ˛askie 9 Podkarpackie 2 Kujawsko-Pomorskie 10 Podlaskie 3 Lubelskie 11 Pomorskie 4 Lubuskie 12 ´ Sl ˛askie 5 Łódzkie 13 ´ Swi˛etokrzyskie 6 Małopolskie 14 Warmi´ nsko-Mazurskie 7 Mazowieckie 15 Wielkopolskie 8 Opolskie 16 Zachodniopomorskie The analysed data cover a period of 13 years, from 2002 to 2014 (T=13). Each province was characterized by two vectors of features: X X X1= (X1,...,X7)0characteristics of higher education (p=7) X1– The number of universities per 1 million inhabitants, X2– The number of students per 1000 inhabitants, X3– The number of university graduates per 1000 inhabitants, X4– The number of academic teachers per 1000 inhabitants, X5– The number of professors per 100 000 inhabitants, X6– The number of post-graduate students per 10 000 inhabitants, X7– The number of doctoral students per 10 000 inhabitants, and X X X2= (X8,...,X15)0quality of life and human capital characteristics (q=8) X8– Infant mortality rate per 1000 live births, X9– Incidence of pulmonary tuberculosis per 100 000 inhabitants, X10 – GDP per capita, X11 – The Registered Unemployment Rate, X12 – The percentage of inhabitants working in industry, X13 – The percentage of inhabitants with university education, X14 – The percentage of people learning and further training at the age of 25-69, X15 – Employed in Research & Development per 1000 inhabitants.
78 M. Krzy´ sko, W. Łukaszonek, W. Woły´ nski: Canonical correlation analysis ... 3. Canonical analysis for doubly multivariate data Let X X X= (x x x1,...,x x xp,x x xp+1,...,x x xp+q) = (X X X1,X X X2), where X X X1= (x x x1,...,x x xp)and X X X2= (x x xp+1,...,x x xp+q)and let Var(vec(X X X)) = Varvec(X X X1) vec(X X X2)=Ω Ω Ω=Σ Σ Σ⊗V V V =Σ Σ Σ11 Σ Σ Σ12 Σ Σ Σ21 Σ Σ Σ22 ⊗V V V=Σ Σ Σ11 ⊗V V VΣ Σ Σ12 ⊗V V V Σ Σ Σ21 ⊗V V VΣ Σ Σ22 ⊗V V V, where Σ Σ Σ11 is p×pmatrix. In this model, the basis of canonical analysis are the eigenvalues and the eigenvectors of the matrices A A A=Σ Σ Σ−1 11 Σ Σ Σ12Σ Σ Σ−1 22 Σ Σ Σ21 ⊗I I ITand B B B=Σ Σ Σ−1 22 Σ Σ Σ21Σ Σ Σ−1 11 Σ Σ Σ12 ⊗I I IT(Srivastava and Naik, 2008). One of the main reasons for the use of the Kronecker product is a simple relationship between the eigenvalues and the eigenvectors A A Aand I I ITand A A A⊗I I IT (see, e.g., Lancaster and Tismenetsky (1985), p. 412; Ortega (1987), p. 237). If α1,...,αpare the eigenvalues of A A Aand β1,...,βTare the eigenvalues of I I IT, then eigenvalues of A A A⊗I I ITare the pT numbers αrβs,r=1,...,p,s=1,...,T. If u u uis an eigenvector of A A Acorresponding to the eigenvalues α, and w w wis an eigenvector of I I IT corresponding to the eigenvalues β, then an eigenvector γ γ γof A A A⊗I I ITassociated with αβ is γ γ γ=u u u⊗w w w= (u u u1w w w0,u u u2w w w0,...,u u upw w w0)0. Eigenvalues of matrix I I ITare identical and equal to one. The corresponding eigenvectors are of the form: w w wj= (0,...,0,1,0,...,0)0, where the only nonzero element is 1 in the (T+1−j)th position, j=1,2,...,T. Hence, the nonzero eigenvalues ρ2 iof matrix A A A⊗I I ITare equal α1,...,α1 | {z } Ttimes ,α2,...,α2 | {z } Ttimes ,...,αk,...,αk | {z } Ttimes , where k=rank(Σ Σ Σ12)≤min(p,q). The corresponding eigenvectors are of the form: γ γ γi j =u u ui⊗w w wj,i=1,...,k,j=1,...,T. The lth element of the vector γ γ γi j has the form: γi j,l=uil,if l=i(T+1−j), 0,if l6=i(T+1−j), i=1,...,k,j=1,...,T,l=1,...,p. Nonzero values ρ1≥ρ2≥ ··· ≥ ρkT , which are positive square roots of ρ2 1≥ρ2 2≥
STATISTICS IN TRANSITION new series, March 2018 79 ··· ≥ ρ2 kT , are called the canonical correlations. The variables Ui j =γ γ γ0 i j vec(X X X1),i=1,...,k,j=1,...,T, are called the canonical variables in the space X X X1. Similarly, if ρ2 1≥ρ2 2≥ ··· ≥ ρ2 kT are non-zero eigenvalues of the matrix B B Band ψ ψ ψi j, i=1,...,k,j=1,...,Tare the corresponding eigenvectors, then the variables Vi j =ψ ψ ψ0 i j vec(X X X2),i=1,...,k,j=1,...,T, are called the canonical variables in the space X X X2. In practice, the matrices Σ Σ Σand V V Vare replaced by their estimators. 4. Maximum likelihood estimators of µ µ µ,Σ Σ Σ, and V V V We will use a different estimation method from the method used in Srivastava and Naik (2008), namely we will select the estimators obtained in Srivastava et al. (2008). For estimating the unknown parameters µ µ µ,Σ Σ Σ, and V V Vwe require nobservations on the T×(p+q)-matrix (x x x1,...,x x xp,x x xp+1,...,x x xp+q). These nobservation matrices will be denoted by X X Xj= (x x x1j,...,x x xp j,x x xp+1,j,...,x x xp+q,j),j=1,...,n. Let ¯ X X X=1 n n ∑ j=1 X X Xj,X X Xj,c=X X Xj−¯ X X X,j=1,...,n. We consider a model, denoted by I, described as follows: all observations X X Xj are independent and vec(X X Xj)∼N(p+q)T(µ µ µ,Σ Σ Σ⊗V V V), where Σ Σ Σis (p+q)×(p+q)positive definite covariance matrix and V V Vis T×Tpositive definite covariance matrix, j= 1,...,n,n>max(p+q,T). The maximum likelihood estimation equations are of the form (Srivastava et al. 2008): ˆ µ µ µ=vec(¯ X X X)(1) ˆ Σ Σ Σ=1 nT n ∑ j=1 X X X0j,cˆ V V V−1X X Xj,c,(2) ˆ V V V=1 n(p+q) n ∑ j=1 X X Xj,cˆ Σ Σ Σ−1X X X0j,c.(3) In this case no explicit maximum likelihood estimates (MLEs) of Σ Σ Σand V V Vare available. The MLEs of Σ Σ Σand V V Vare obtained by solving simultaneously and iteratively the equations (2) and (3). This is the so-called "flip-flop" algorithm.
80 M. Krzy´ sko, W. Łukaszonek, W. Woły´ nski: Canonical correlation analysis ... In this model (model I), if n>max(p+q,T)then the maximum likelihood estimation equations given by (2) and (3) will always converge to the unique maximum (Srivastava et al. 2008). The following iterative steps are suggested to obtain the maximum likelihood estimates of Σ Σ Σand V V V. Step 1. Get the initial covariance matrix V V Vin the form ˆ V V V=1 n(p+q) n ∑ j=1 (X X Xj−¯ X X X)(X X Xj−¯ X X X)0.(4) Step 2. On the basis of the initial covariance matrix ˆ V V Vcompute the matrix ˆ Σ Σ Σgiven by (2). Step 3. Compute the matrix ˆ V V Vfrom equation (3) using the matrix ˆ Σ Σ Σobtained in Step 2. Step 4. Repeat Steps 2 and 3 until convergence is attained. We have selected the following stopping rule. Compute two matrices: (a) a matrix of difference between two successive solutions of ˆ Σ Σ Σ, and (b) a matrix of difference between two successive solutions of ˆ V V V. Continue the iteration procedure until the maxima of the absolute values of the elements of the matrices in (a) and (b) are smaller than the prespecified quantities. As noted in the literature (see, e.g., Galecki (1994); Naik and Rao (2001)), since (cΣ Σ Σ)⊗(c−1V V V) = Σ Σ Σ⊗V V V, all the parameters of Σ Σ Σand V V Vare not defined uniquely. But in our case, estimation of the parameters µ µ µ,Σ Σ Σand V V Vis not an aim in itself. The resulting estimates are used to construction the canonical variables. Canonical variables considered in this paper are functions of ˆ Σ Σ Σ⊗ˆ V V V, instead of ˆ Σ Σ Σand ˆ V V V separately, and hence only ˆ Σ Σ Σ⊗ˆ V V Vneeds to be unique under the model (I) with Σ Σ Σ>0 and V V V>0. 5. Analysis results We are interested in the relationship between the vectors X X X1and X X X2. We build estimators of the matrices Σ Σ Σ11,Σ Σ Σ22 and Σ Σ Σ12, and we then find the non-zero eigenvalues ˆ αkand corresponding eigenvectors ˆ u u ukof the matrix ˆ A A A=ˆ Σ Σ Σ−1 11 ˆ Σ Σ Σ12 ˆ Σ Σ Σ−1 22 ˆ Σ Σ Σ21, and the non-zero eigenvalues ˆ αkand corresponding eigenvectors ˆ v v vkof the matrix ˆ B B B= ˆ Σ Σ Σ−1 22 ˆ Σ Σ Σ21 ˆ Σ Σ Σ−1 11 ˆ Σ Σ Σ12, where ˆ Σ Σ Σ21 =ˆ Σ Σ Σ0 12,k=1,...,7=min(p,q). The non-zero eigenvalues ˆ αkare shown in Figure 1. The characteristics of higher education and quality of life and human capital characteristics are moderately correlated with the canonical correlation coefficient ˆ ρ1=0.38. Eigenvectors ˆ u u ukof the matrix ˆ A A Aare shown in Table 2, and eigenvectors ˆ v v vkof the matrix ˆ B B Bare shown in Table 3.
STATISTICS IN TRANSITION new series, March 2018 81 eigenvalues 0.00 0.04 0.08 0.12 Figure 1: The non-zero eigenvalues ˆ αk Table 2. Eigenvectors ˆ u u ukof the matrix ˆ A A A ˆ u u u1ˆ u u u2ˆ u u u3ˆ u u u4ˆ u u u5ˆ u u u6ˆ u u u7 1 -0.0703 0.0564 -0.0274 0.0037 0.1379 -0.0045 -0.0086 2 -0.0159 0.0451 0.0054 -0.0045 -0.0140 -0.0130 0.0055 3 -0.0015 -0.1640 0.0371 0.0010 0.0312 -0.0068 0.0044 4 0.1027 0.1848 0.3343 0.4695 -0.4270 -0.0586 -0.1198 5 -0.6819 -0.9531 -0.7931 -0.8710 0.8034 0.9929 0.9859 6 -0.0857 -0.1140 -0.0884 0.0079 -0.0762 -0.0032 -0.0082 7 -0.7155 0.1108 0.4992 -0.1446 -0.3825 0.1021 -0.1163 Table 3. Eigenvectors ˆ v v vkof the matrix ˆ B B B ˆ v v v1ˆ v v v2ˆ v v v3ˆ v v v4ˆ v v v5ˆ v v v6ˆ v v v7 1 -0.5126 -0.2076 0.1924 0.1080 0.2955 0.3694 0.2669 2 -0.0164 0.0178 0.0785 -0.0231 0.1125 -0.0218 0.1561 3 0.0008 0.0002 0.0004 -0.0004 0.0001 0.0002 0.0001 4 -0.4536 0.4884 0.3444 -0.5500 -0.4824 0.3384 -0.3656 5 0.0428 -0.2987 -0.1727 -0.2816 -0.2534 0.0425 0.3910 6 -0.0445 -0.7583 0.2534 -0.2278 0.1240 -0.1116 -0.7477 7 0.5255 0.2089 -0.7506 0.2628 0.4246 0.8400 -0.1666 8 0.5013 -0.1010 0.4252 0.6964 -0.6383 0.1696 0.1762 Eigenvalues of matrix I I I13 are identical and equal to one. The corresponding eigenvectors are of the form w w wj= (0,...,1,...,0)0, where the only non-zero element is the number 1 in the (14 −j)th position, j=1,...,13.
82 M. Krzy´ sko, W. Łukaszonek, W. Woły´ nski: Canonical correlation analysis ... Hence, the eigenvalues of matrix ˆ A A A⊗I I I13 are equal ˆ ρ2 1,..., ˆ ρ2 1 | {z } 13 times ,ˆ ρ2 2,..., ˆ ρ2 2 | {z } 13 times ,..., ˆ ρ2 7,..., ˆ ρ2 7 | {z } 13 times . The corresponding eigenvectors are of the form: ˆ γ γ γi j =ˆ u u ui⊗w w wj,i=1,...,7,j=1,...,13. The lth element of the vector ˆ γ γ γi j has the form: ˆ γi j,l=ˆuil,if l=i(14 −j), 0,if l6=i(14 −j), i=1,...,7,j=1,...,13,l=1,...,7. Replacing the vectors ˆ u u uiby ˆ v v viwe obtain similar results for the matrix ˆ B B B⊗I I I13. If we choose the system (U1,13,V1,13), then the location of the various provinces in this system include data from 2002 (see Fig. 2). If, however, we choose the system (U11,V11), then the location of the various provinces in this system includes data from 2014 (see Fig. 3). It results from the vectors γ γ γ1jand ψ ψ ψ1j,j=1,...,T. −1.0 −0.5 0.0 0.5 1.0 1.5 2.0 −5 0 5 10 15 U V 1 23 4 5 6 7 8 9 10 11 12 13 14 15 16 Figure 2: The location of the various provinces in 2002