Skip to main content icon/video/no-internet

Canonical Correlation

Canonical correlation is a statistical measure for expressing the relationship between two sets of variables. Formally, given two random vectors x ∈ Rdx and y ∈ Rdy with some joint (unknown) distribution D, the canonical correlation analysis (CCA) seeks vectors u ∈ Rdx and v ∈ Rdy, such that the random vectors when projected along these directions, that is, variables u > x and v > y, are maximally correlated. Equivalently, we can write CCA as the following optimization problem: find u ∈ Rdx, v ∈ Rdy that:

Maximizedxdyρ(u>x,v>y),uR,vR

where the correlation, ρ(u > x, v > y), between two random variables, is defined as ρ(u>x,v>y)=cov(u>x,v>y). Assuming that vectors x and y are 0 mean, we can write CCA as the problem var(u > x) var(u > x) of finding u ∈ Rdx, v ∈ Rdy that:

(2)

Affine Invariance

A simple observation suggests that if we scale either u or v or both, the objective does not change. That is, if u 7→ αu and/or v 7→ βv, the objective does not change. This has a profound implication—canonical correlation is statistical measure that is invariant to affine transformations, unlike other measures, for instance, those optimized by principal component analysis and partial least squares.

CCA as a constrained optimization problem: Because the CCA objective is affine invariant, we might as well choose the scaling coefficients, α, β ∈R such that:

E[uxxu]=1,E[vyyv]=1.

This yields an equivalent constrained optimization problem:

maximizeE(x,y)[uτxyτv],uRdx,vRdysubjecttoEx[uτxxτu]=1,Ey[vτyyτv]=1.

CCA Solution

We can show, using the Lagrange multiplier’s method, that the solution to the constrained optimization problem above is given by choosing u to be the top eigenvector of Cxx1 Cxy Cyy1 Cyx and choosing v = C−yy√1Cλyxu.

Simultaneous Solution to CCA

Subsequent CCA directions can be found by deflation by constraining them to be uncorrelated to previous ones. Alternatively, we can solve for to pk CCA dimensions simultaneously by solving for the following optimization problem:

Find Udx×k,Vdy×k that

maximize:E(x,y)D[trace(UxyV)]subjectto:E[UxxU]=Ik,E[VyyV]=Ik.

In other words, CCA can be posed as the problem of finding the most correlated k-dimensional subspace of D and columns of U are given as the top-k eigenvectors of Cxx1 Cxy Cyy1 Cyx 29th Conference on Neural Information Processing Systems (2016), Barcelona, Spain.

CCA as Minimizing Reconstruction Error

Given n data (xi,yi) in Rdx × Rdy, from an unknown D, find U ∈ Rdx × k, V ∈ Rdy ×k

thatminimize:Ex,yDUxVy22,subjectto:U>CxxU=Ik,V>CyyV=Ik.

Expand the objective:

EUTxVTy22=E[xUUx]2E[xUVy]+E[yVVy]=EhtraceUxxU)]2E[traceUxyV]+EhtraceVyyV)].

History

CCA is a classical technique in multivariate statistics, proposed by Harold Hotelling in 1935, for measuring correlations between two random vectors. Hotelling first studied this problem to predict success in college. In his 1935 article, titled The Most Predictable Criterion,” he argued that no single regression equation provides fully adequate solution and that regressing on the dependent variate with the largest multiple correlation with predictors yields best accuracy.

Applications

CCA is widely used in multivariate analysis, finance, management sciences, chemometrics, bioinformatics, and neuroscience. CCA has been successfully applied to various tasks in speech, natural language processing, and computer vision. CCA admits a nonstandard stochastic optimization problem where not only the objective but the constraints are stochastic or equivalently the objective is a ratio of two expectations rather than an expectation of a loss function. Consequently, the CCA objective does not decompose over the sample and designing stochastic approximation algorithms for CCA remains a challenging open problem.

...

  • Loading...
locked icon

Sign in to access this content

Get a 30 day FREE TRIAL

  • Watch videos from a variety of sources bringing classroom topics to life
  • Read modern, diverse business cases
  • Explore hundreds of books and reference titles

Sage Recommends

We found other relevant content for you on other Sage platforms.

Loading