Lably
Skip to content

Canonical correlation

Way of inferring information from cross-covariance matrices

  • 6 min read
  • 7 chapters

Related on Lably

Through Statistics, Random variable and Correlation

CCA is important in multivariate statistics and multi-view learning, and a number of interpretations and extensions have been proposed, such as probabilistic CCA, sparse CCA, multi-view CCA, deep CCA, and DeepGeoCCA. Literature on the subject can on occasion be inconsistent with notation. These inconsistencies are noted in this article to help the reader make best use of the existing literature and techniques available.

Like its sister method PCA, CCA can be viewed in population form (corresponding to random vectors and their covariance matrices) or in sample form (corresponding to datasets and their sample covariance matrices). These two forms are almost exact analogues of each other, which is why their distinction is often overlooked, but they can behave very differently in high dimensional settings. We next give explicit mathematical definitions for the population problem and highlight the different objects in the so-called canonical decomposition - understanding the differences between these objects is crucial for interpretation of the technique.

Population CCA definition via correlations

Given two column vectors X=(x1,…,xn)T and Y=(y1,…,ym)T of random variables with finite second moments, one may define the cross-covariance ΣXY=cov⁡(X,Y) to be the n×m matrix whose (i,j) entry is the covariance cov⁡(xi,yj). In practice, we would estimate the covariance matrix based on sampled data from X and Y (i.e. from a pair of data matrices).

Canonical-correlation analysis seeks a sequence of vectors ak (ak∈Rn) and bk (bk∈Rm) such that the random variables akTX and bkTY maximize the correlation ρ=corr⁡(akTX,bkTY). The (scalar) random variables U=a1TX and V=b1TY are the first pair of canonical variables. Then one seeks vectors maximizing the same correlation subject to the constraint that they are to be uncorrelated with the first pair of canonical variables; this gives the second pair of canonical variables. This procedure may be continued up to min{m,n} times.

(ak,bk)=argmaxa,bcorr⁡(aTX,bTY) subject to cov⁡(aTX,ajTX)=cov⁡(bTY,bjTY)=0 for j=1,…,k−1

The sets of vectors ak,bk are called canonical directions or weight vectors or simply weights. The 'dual' sets of vectors ΣXXak,ΣYYbk are called canonical loading vectors or simply loadings; these are often more straightforward to interpret than the weights.

Sign in to keep reading

6 more chapters are free with a Lably account.

More in Topics in mathematics