Canonical correlation
From Wikipedia, the free encyclopedia
In statistics, canonical correlation analysis, introduced by Harold Hotelling, is a way of making sense of cross-covariance matrices.
Contents |
[edit] Definition
Given two column vectors and of random variables with finite second moments, one may define the cross-covariance to be the matrix whose (i,j) entry is the covariance .
Canonical correlation analysis seeks vectors a and b such that the random variables a'X and b'Y maximize the correlation . The random variables U = a'X and V = b'Y 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 min{m,n} times.
[edit] Computation
[edit] 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 d and are colinear. In addition, the maximum of correlation is attained if c is the eigenvector with the maximum eigenvalue for the matrix (see Rayleigh quotient). The subsequent pairs are found by using eigenvalues of decreasing magnitudes. Orthogonality is guaranteed by the symmetry of the correlation matrices.
[edit] Solution
The solution is therefore:
- c is an eigenvector of
- d is proportional to
Reciprocally, there is also:
- d is an eigenvector of
- c is proportional to
The canonical variables are defined by:
[edit] Hypothesis testing
Each row can be tested for significance with the following method. If we have p independent observations in a sample and is the estimated correlation for . For the ith row, the test statistic is:
which is asymptotically distributed as a chi-square with (m − i + 1)(n − i + 1) degrees of freedom for large p.[1]
[edit] 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 the MMPI 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 or neuroticism dimension accounted for a substantial amount of shared variance between the two tests.
[edit] 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 Neural Computation (2004) version
- FactoMineR (free exploratory multivariate data analysis software linked to R)
- ^ Kanti V. Mardia, J. T. Kent and J. M. Bibby (1979). Multivariate Analysis. Academic Press.