Why Successive Canonical Pairs Are Orthogonal
Canonical correlation analysis (CCA) constructs paired linear summaries of two random vectors. The first pair is chosen to have the greatest possible correlation; later pairs describe further association subject to orthogonality constraints. Those constraints are more than a convenient convention: they follow directly from the singular value decomposition used to define the canonical directions.
This tutorial establishes the covariance identities for successive pairs. We work with centered random vectors \(X\in\mathbb{R}^p\) and \(Y\in\mathbb{R}^q\), with finite second moments. Centering loses no covariance information. Write their covariance matrices and cross-covariance matrix as
Assume that \(\Sigma_{XX}\) and \(\Sigma_{YY}\) are positive definite, so their inverse square roots exist. Define the whitened cross-covariance matrix
Let \(m=\min(p,q)\). Take a singular value decomposition \(K=U D V^mathsf{T}\), with left and right singular vectors \(u_i\) and \(v_i\), and singular values \(\rho_1\geq\cdots\geq\rho_m\geq 0\). For each \(i\), define weights and canonical scores by
Here \(U_i\) and \(V_i\) are scalar random variables; the uppercase \(U\) in the decomposition denotes the matrix of left singular vectors. The singular vectors are orthonormal within their respective spaces, and their signs are paired so that \(Kv_i=\rho_i u_i\). When a singular value is repeated, the singular vectors within its singular subspace need not be unique, but they can be chosen as an orthonormal singular-vector basis.
The Covariance Identities
Proof. The covariance of two linear combinations is obtained by multiplying the covariance matrix by their weight vectors. For scores in the \(X\) set, this gives
The inverse square root is symmetric, and \(\Sigma_{XX}^{-1/2}\Sigma_{XX}\Sigma_{XX}^{-1/2}=I\), which justifies the third expression. The same calculation for the \(Y\) set gives
For a cross-covariance, use the definition of \(K\):
The last equality holds because when \(i\ne j\), both sides are zero, and when \(i=j\), \(\rho_i=\rho_j\). These calculations prove all three identities. \(\square\)
In particular, the variance of each score is one, so its covariance with a matching score is also its correlation: \(\operatorname{Corr}(U_i,V_i)=\rho_i\). The cross-covariance matrix of the first \(m\) scores is diagonal. Its diagonal entries are the canonical correlations, and its off-diagonal entries vanish.
Worked Example: Diagonal Whitened Cross-Covariance
Suppose \(X=(X_1,X_2)^{\mathsf{T}}\) and \(Y=(Y_1,Y_2)^{\mathsf{T}}\) are jointly centered with \(\Sigma_{XX}=\Sigma_{YY}=I\) and
The joint covariance matrix is positive definite: after ordering the coordinates as \((X_1,Y_1,X_2,Y_2)\), it has two blocks with eigenvalues \(1\pm0.8\) and \(1\pm0.3\), all of which are positive. The singular vectors are the coordinate vectors, and the singular values are \(0.8\) and \(0.3\). Thus \(U_1=X_1,\ V_1=Y_1,\ U_2=X_2,\ V_2=Y_2\).
Within the first set, \(\operatorname{Var}(U_1)=\operatorname{Var}(U_2)=1\) and \(\operatorname{Cov}(U_1,U_2)=0\), because the off-diagonal entry of \(\Sigma_{XX}\) is zero. The same is true for \(V_1,V_2\). Across sets, \(\operatorname{Cov}(U_1,V_1)=0.8\), \(\operatorname{Cov}(U_2,V_2)=0.3\), and \(\operatorname{Cov}(U_1,V_2)=\operatorname{Cov}(U_2,V_1)=0\). The matching pairs carry the association; the nonmatching pairs do not.
Orthogonality After a Change of Directions
The canonical scores need not coincide with individual coordinates. Singular vectors can combine several original variables. Orthogonality refers to covariance of the resulting scores, not necessarily to any one original variable or to a geometric angle in the unscaled coordinates.
Worked Example: Rotated Scores and a Repeated Calculation
Let both marginal covariance matrices be \(I\), and suppose
This symmetric matrix has orthonormal eigenvectors \(u_1=v_1=(1,1)^{\mathsf{T}}/\sqrt{2}\) and \(u_2=v_2=(1,-1)^{\mathsf{T}}/\sqrt{2}\). Multiplication verifies the corresponding singular values:
The scores are \(U_1=(X_1+X_2)/\sqrt{2}\), \(U_2=(X_1-X_2)/\sqrt{2}\), and the corresponding expressions in \(Y\). Their within-set covariance is
Similarly, \(\operatorname{Cov}(V_1,V_2)=0\). For the cross-set calculations,
The joint covariance is positive definite: in the rotated coordinates its cross-covariance is diagonal with entries \(0.7\) and \(0.1\), so its eigenvalues are \(1\pm0.7\) and \(1\pm0.1\), all positive. This example shows how score orthogonality can arise through cancellation even when the original variables have nonzero cross-covariances.
Why Nonsingular Joint Covariance Bounds the Roots
Positive definite marginal covariance matrices are enough to define the whitening transformation. If the full joint covariance matrix is also positive definite, then every canonical correlation is strictly less than one. This condition rules out a nonzero linear combination of one set being an exact copy of a linear combination of the other set.
Proof. Whitening is an invertible linear transformation, so the covariance matrix of the whitened vectors is positive definite as well. It is
Take any unit left and right singular vectors \(u_i,v_i\) with singular value \(\rho_i\). The variance of the scalar difference \(u_i^{\mathsf{T}}\Sigma_{XX}^{-1/2}X-v_i^{\mathsf{T}}\Sigma_{YY}^{-1/2}Y\) is the quadratic form of this positive definite matrix at \((u_i,-v_i)\):
The vector \((u_i,-v_i)\) is nonzero, so positive definiteness makes this variance strictly positive. Hence \(2-2\rho_i>0\), which gives \(\rho_i<1\). Singular values are nonnegative by definition, so \(0\leq\rho_i<1\). \(\square\)
Worked Example: Unequal Marginal Scales
Suppose
The inverse square roots are \(\Sigma_{XX}^{-1/2}=\operatorname{diag}(1/2,1)\) and \(\Sigma_{YY}^{-1/2}=\operatorname{diag}(1,1/3)\). Therefore
The singular values are \(0.5\) and \(0.2\), with coordinate singular vectors. The canonical weights and scores are
so \(U_1=X_1/2,\ U_2=X_2,\ V_1=Y_1,\ V_2=Y_2/3\). Directly, \(\operatorname{Var}(U_1)=4/4=1\), \(\operatorname{Var}(U_2)=1\), \(\operatorname{Var}(V_1)=1\), and \(\operatorname{Var}(V_2)=9/9=1\). The within-set cross-covariances vanish because the marginal covariance matrices are diagonal. Across sets, \(\operatorname{Cov}(U_1,V_1)=1/2=0.5\), \(\operatorname{Cov}(U_2,V_2)=0.6/3=0.2\), and the two nonmatching covariances are zero. The unequal original scales have been accounted for by whitening.
The joint covariance is positive definite: after whitening, its eigenvalues are \(1\pm0.5\) and \(1\pm0.2\), each positive, and the whitening map is invertible. Thus this example also satisfies the strict-root condition.
Interpretation and Common Pitfall
The diagonal cross-covariance identity means that each canonical score is paired with the score of the same index in the other set. It does not mean that the two sets of scores are independent. Zero covariance alone does not imply independence for general distributions; independence follows from zero covariance for these scores if, for example, the full score vector is jointly multivariate normal.
Common mistake: “The first and second canonical pairs are orthogonal, so \(U_1\) must be independent of \(U_2\), and all four scores must be independent.” The covariance theorem establishes only that distinct scores within each set, and nonmatching scores across sets, are uncorrelated. It does not establish independence without additional distributional assumptions. Also, the matching scores are generally correlated: \(\operatorname{Cov}(U_i,V_i)=\rho_i\), not zero. When singular values are tied, the particular score directions can vary with the orthonormal basis chosen in the tied subspace, but the stated covariance identities still hold for any such paired singular-vector basis.
Check Your Understanding
Use the covariance identities and assumptions above to answer these questions.
- Which property of the left singular vectors gives \(\operatorname{Cov}(U_i,U_j)=0\) when \(i\ne j\)?
- What is \(\operatorname{Cov}(U_i,V_j)\) when \(i\ne j\), and what is it when \(i=j\)?
- Why are the canonical scores in the unequal-scale example standardized to variance one?
- Does zero covariance between \(U_1\) and \(U_2\) by itself imply that they are independent? State a condition under which independence would follow.
- Why does positive definiteness of the full joint covariance matrix rule out a canonical correlation equal to one?