- Canonical correlation
In
statistics , canonical correlation analysis, introduced byHarold Hotelling , is a way of making sense of cross-covariance matrices.Definition
Given two column vectors and of random variables with finite second moments, one may define the cross-covariance to be the matrix whose entry is the
covariance .Canonical correlation analysis seeks vectors and such that the random variables and maximize the
correlation . The random variables and 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 continues times.Computation
Proof
Let and . The parameter to maximize is
:
The first step is to define a
change of basis and define:
:
And thus we have
:
By the
Cauchy-Schwarz inequality , we have:
:
There is equality if the vectors and are colinear. In addition, the maximum of correlation is attained if is the
eigenvector with the maximum eigenvalue for the matrix (seeRayleigh quotient ). The subsequent pairs are found by usingeigenvalues of decreasing magnitudes. Orthogonality is guaranteed by the symmetry of the correlation matrices.olution
The solution is therefore:
* is an eigenvector of
* is proportional toReciprocally, there is also:
* is an eigenvector of
* is proportional toReversing the change of coordinates, we have that
* is an eigenvector of
* is an eigenvector of
* is proportional to
* is proportional toThe canonical variables are defined by:
:
:
Hypothesis testing
Each row can be tested for significance with the following method. If we have independent observations in a sample and is the estimated correlation for . For the th row, the test statistic is:
:
which is asymptotically distributed as a chi-square with degrees of freedom for large . [Cite book
author =Kanti V. Mardia , J. T. Kent and J. M. Bibby
title = Multivariate Analysis
year = 1979
publisher =Academic Press ]Practical uses
A typical use for canonical correlation in the psychological context is to take a two sets of variables and see what is common amongst the two sets. For example you could take two well established multidimensional
personality tests such as theMMPI and the NEO. By seeing how the MMPI factors relate to the NEO factors, you could gain insight into what dimensions were common between the tests and how much variance was shared. For example you might find that an extraversion orneuroticism dimension accounted for a substantial amount of shared variance between the two tests.References and links
* See also
generalized canonical correlation .
* "Applied Multivariate Statistical Analysis", Fifth Edition, Richard Johnson and Dean Wichern
* "Canonical correlation analysis - An overview with application to learning methods" http://eprints.ecs.soton.ac.uk/9225/01/tech_report03.pdf, pages 5-9 give a good introduction [http://homepage.mac.com/davidrh/_papers/NC_Hardoon_2817_reg.pdf Neural Computation (2004) version]
* [http://factominer.free.fr/ FactoMineR] (free exploratory multivariate data analysis software linked to R)
Wikimedia Foundation. 2010.