Tutorials › Multivariate Statistics (Graduate) › Asymptotic Uncertainty of Canonical Correlations

Canonical Correlation Analysis · Tutorial 401 of 975

Asymptotic Uncertainty of Canonical Correlations

Learn when canonical correlations admit standard asymptotic inference and how eigenvalue gaps govern uncertainty in their associated canonical directions.

Intermediate 11 min read

What You'll Learn

  • State regularity conditions for asymptotic inference on a population canonical correlation
  • Express root uncertainty through a covariance-matrix delta method
  • Construct and interpret a large-sample standard error and confidence interval
  • Derive how perturbations affect canonical directions through eigenvalue gaps
  • Distinguish uncertainty in a canonical root from instability in its canonical vectors
  • Recognize when a root is not sufficiently separated for ordinary first-order inference

Why Asymptotic Uncertainty Has Two Parts

Canonical correlation analysis estimates both the strengths of association between two variable sets and the directions that define those associations. These are different inferential targets. A canonical correlation is a scalar, while its canonical directions are vectors. A scalar root can be estimated fairly precisely even when small changes in the data produce substantial rotations of its associated directions.

The distinction is governed in part by separation. If one population canonical root is distinct from its neighbors, small changes in the estimated covariance matrices generally produce smooth changes in that root and its direction. When two roots are close, their directions can rotate markedly in response to small perturbations. This tutorial develops the large-sample conditions for root inference and derives the eigenvalue-gap mechanism behind direction uncertainty.

Population Roots and Regularity Conditions

Let \(X\in\mathbb{R}^p\) and \(Y\in\mathbb{R}^q\) have means \(\mu_X,\mu_Y\), and let their joint covariance matrix be partitioned as

$$ \Sigma = \begin{pmatrix} \Sigma_{XX} & \Sigma_{XY}\\ \Sigma_{YX} & \Sigma_{YY} \end{pmatrix}. $$

Assume the marginal covariance matrices \(\Sigma_{XX}\) and \(\Sigma_{YY}\) are positive definite. The whitened cross-covariance matrix is

$$ K=\Sigma_{XX}^{-1/2}\Sigma_{XY}\Sigma_{YY}^{-1/2}. $$

The population canonical correlations \(\rho_1\geq\cdots\geq\rho_m\geq0\), where \(m=\min(p,q)\), are the singular values of \(K\). Equivalently, their squared values are eigenvalues of \(KK^{T}\), with zero eigenvalues included as needed. Sample canonical correlations \(\hat\rho_j\) are obtained by replacing the population covariance matrices with sample covariance matrices.

Definition: A population root \(\rho_j\) is simple and separated if \(0<\rho_j<1\) and \(\rho_j^2\) is a simple eigenvalue of \(KK^T\): it differs from every other eigenvalue of \(KK^T\). The restriction \(0<\rho_j<1\) places the root in the interior of the allowable range and avoids boundary inference.

For standard first-order asymptotic inference, use the following conditions: the dimensions \(p\) and \(q\) are fixed as the sample size \(n\) increases; the observations \((X_i,Y_i)\) are independent and identically distributed; their joint distribution has finite fourth moments; both marginal covariance matrices are positive definite; and the target root is simple and separated. The finite-fourth-moment condition supplies a central limit theorem for the sample covariance entries. Joint normality is not required for this general result.

The root separation condition is essential, not cosmetic. A repeated root does not identify a unique direction within its eigenspace, and the ordinary derivative used for a single root or vector need not exist there. When two roots are distinct but close, the derivative exists but can be large, which is the source of increased direction uncertainty.

Large-Sample Inference for a Separated Root

Write \(\theta=\operatorname{vech}(\Sigma)\), the vector containing the distinct entries of the joint covariance matrix, and let \(\hat\theta=\operatorname{vech}(\hat\Sigma)\). Define \(g_j(\theta)\) as the \(j\)th ordered canonical correlation calculated from the covariance matrix represented by \(\theta\). At a covariance matrix satisfying the conditions above, \(g_j\) is differentiable. Let \(\nabla g_j(\theta)\) denote its gradient with respect to the entries in \(\theta\), and define

$$ V=\operatorname{Cov}\!\left[ \operatorname{vech}\left\{ \begin{pmatrix}X-\mu_X\\Y-\mu_Y\end{pmatrix} \begin{pmatrix}X-\mu_X\\Y-\mu_Y\end{pmatrix}^{T} -\Sigma \right\}\right]. $$

This is the asymptotic covariance matrix for \(\sqrt n(\hat\theta-\theta)\), including when the means are estimated and the usual centered sample covariance is used.

Theorem: Under the stated fixed-dimension, independent and identically distributed, finite-fourth-moment, positive-definiteness, and simple-root conditions,
$$ \sqrt n(\hat\rho_j-\rho_j) \xrightarrow{d} N\!\left(0,\ \nabla g_j(\theta)^T V\nabla g_j(\theta)\right). $$

Proof. The finite fourth moments imply a multivariate central limit theorem for the distinct entries of the sample covariance matrix:

$$ \sqrt n(\hat\theta-\theta)\xrightarrow{d}N(0,V). $$

Positive definiteness of the marginal covariance matrices makes the whitening operations well-defined in a neighborhood of the population covariance. A simple positive eigenvalue varies differentiably with the matrix entries; taking its positive square root is also differentiable because \(\rho_j>0\). Thus \(g_j\) is differentiable at \(\theta\). A first-order Taylor expansion gives

$$ \hat\rho_j-\rho_j = \nabla g_j(\theta)^T(\hat\theta-\theta) +o_p(\|\hat\theta-\theta\|). $$

The covariance central limit theorem implies \(\hat\theta-\theta=O_p(n^{-1/2})\), so the Taylor remainder, after multiplication by \(\sqrt n\), converges in probability to zero. Applying the continuous mapping theorem to the linear term yields the stated normal limit, with variance \(\nabla g_j(\theta)^T V\nabla g_j(\theta)\). \(\square\)

In practice, the unknown covariance and gradient are replaced by consistent estimates, giving an estimated standard error of the form

$$ \widehat{\operatorname{se}}(\hat\rho_j) = \sqrt{\frac{\widehat{\nabla g_j}^{\,T}\hat V\widehat{\nabla g_j}}{n}}. $$

A first-order approximate confidence interval is \(\hat\rho_j\pm z_{1-\alpha/2}\widehat{\operatorname{se}}(\hat\rho_j)\), where \(z_{1-\alpha/2}\) is the standard normal quantile. This approximation is justified for an interior, separated root as sample size grows; a finite-sample interval that extends beyond the allowable range from zero to one should not be interpreted as a literal possible value of a canonical correlation.

Worked Example: One Pair of Variables

Suppose \(p=q=1\), so the sole canonical correlation is the absolute value of the ordinary population correlation. Assume the variables are jointly normal with positive correlation \(\rho=0.60\), and take \(n=100\). In this special bivariate normal case, the sample correlation \(r\) has the large-sample approximation

$$ \sqrt n(r-\rho)\xrightarrow{d}N\!\left(0,(1-\rho^2)^2\right). $$

Here the canonical root is \(\rho\), since the population correlation is positive. The estimated asymptotic variance of \(r\) is therefore

$$ \frac{(1-\rho^2)^2}{n} = \frac{(1-0.60^2)^2}{100} = \frac{0.64^2}{100} = 0.004096. $$

The standard error is \(\sqrt{0.004096}=0.064\). If the observed sample correlation is \(0.60\), the approximate 95% interval is

$$ 0.60\pm1.96(0.064) = 0.60\pm0.12544 = [0.47456,\ 0.72544]. $$

The normal approximation is appropriate here because the target correlation is interior and positive. The variance formula used in this example relies on joint normality; in general multivariate CCA, the asymptotic covariance also depends on the fourth moments through \(V\).

Why Close Roots Make Directions Uncertain

The connection between root separation and direction uncertainty can be seen through a symmetric eigenvalue problem. Let \(A\) be a symmetric matrix with distinct eigenvalues \(\lambda_1,\ldots,\lambda_r\) and corresponding orthonormal eigenvectors \(u_1,\ldots,u_r\). Suppose \(A\) changes to \(A+dA\), where \(dA\) is a small symmetric perturbation. For a simple eigenvalue \(\lambda_j\), the first-order change in its normalized eigenvector is

$$ du_j = \sum_{k\ne j} u_k\frac{u_k^T(dA)u_j}{\lambda_j-\lambda_k}. $$
Result: The first-order change in an eigenvector has contributions divided by the gaps between its eigenvalue and the other eigenvalues. Small gaps can therefore amplify small perturbations of the matrix.

Derivation. Differentiate \(Au_j=\lambda_j u_j\) to obtain

$$ (dA)u_j+A(du_j)=(d\lambda_j)u_j+\lambda_j(du_j). $$

Because \(u_j^Tu_j=1\), differentiating the normalization gives \(u_j^Tdu_j=0\). Expand \(du_j\) in the other eigenvectors, writing \(du_j=\sum_{k\ne j}c_k u_k\). Premultiplying the differentiated eigenvalue equation by \(u_k^T\) eliminates the term involving \(d\lambda_j\), since \(u_k^Tu_j=0\). Using \(u_k^TA=\lambda_k u_k^T\) gives

$$ u_k^T(dA)u_j+\lambda_kc_k=\lambda_jc_k, \qquad c_k=\frac{u_k^T(dA)u_j}{\lambda_j-\lambda_k}. $$

Substitution of these coefficients gives the expression for \(du_j\). Its denominators show why a small eigenvalue gap can cause a large first-order change. For CCA, the squared canonical correlations are eigenvalues of \(KK^T\); the corresponding left singular vectors describe directions in the whitened \(X\)-space. The right singular vectors have the same gap sensitivity through \(K^TK\). Canonical coefficient vectors in the original coordinates also include covariance-based transformations, but the separation of the roots remains a key source of sensitivity. \(\square\)

The formula is local: it describes the first-order response near a simple eigenvalue. It does not say that every close pair must produce a large observed change, because the numerator \(u_k^T(dA)u_j\) may be small. It does show that, for perturbations with a component in the relevant direction, smaller gaps permit larger rotations. Sign changes of an eigenvector are a separate representational ambiguity; directions should be compared after choosing consistent signs.

Worked Example: The Same Perturbation, Two Different Gaps

Consider the symmetric matrix \(A=\operatorname{diag}(0.64,0.36)\). Its leading eigenvalue gap is \(0.64-0.36=0.28\). Perturb it by

$$ E= \begin{pmatrix} 0&0.01\\ 0.01&0 \end{pmatrix}. $$

For a symmetric two-by-two matrix with diagonal difference \(d\) and off-diagonal entry \(b\), the rotation angle \(\phi\) of its leading eigenvector from the first coordinate axis satisfies \(\tan(2\phi)=2b/d\). Here \(d=0.28\) and \(b=0.01\), so

$$ \phi=\tfrac12\arctan(0.02/0.28) \approx 0.0357\text{ radians} \approx 2.04^\circ. $$

Now consider \(A_2=\operatorname{diag}(0.64,0.60)\), whose gap is only \(0.04\), and apply the same perturbation \(E\). In this case

$$ \phi_2=\tfrac12\arctan(0.02/0.04) =\tfrac12\arctan(0.5) \approx 0.2318\text{ radians} \approx 13.28^\circ. $$

The matrix perturbation has not changed, but the direction rotates much more when the eigenvalues are close. This calculation illustrates sensitivity; it is not itself a sampling standard error.

Worked Example: First-Order Change in a Separated Canonical Root

Suppose the whitened cross-covariance matrix for a two-by-two CCA problem is \(K=\operatorname{diag}(0.8,0.5)\). Then

$$ KK^T=\operatorname{diag}(0.64,0.25), \qquad \rho_1=0.8,\quad \rho_2=0.5. $$

The squared-root gap for the first root is \(0.64-0.25=0.39\), so it is separated. Suppose a small estimated change in \(KK^T\) is the diagonal perturbation \(\operatorname{diag}(0.006,-0.004)\). The eigenvalue changes are exactly \(0.006\) and \(-0.004\) for this diagonal example. The resulting roots are

$$ \hat\rho_1=\sqrt{0.646}\approx0.80374, \qquad \hat\rho_2=\sqrt{0.246}\approx0.49598. $$

The first-order root change follows from differentiating \(\rho=\sqrt{\lambda}\), so \(d\rho=d\lambda/(2\rho)\). For the two roots this gives

$$ d\rho_1\approx\frac{0.006}{2(0.8)}=0.00375, \qquad d\rho_2\approx\frac{-0.004}{2(0.5)}=-0.004. $$

These closely match the exact changes \(0.80374-0.8\approx0.00374\) and \(0.49598-0.5\approx-0.00402\). This example shows the local conversion from uncertainty in a squared root to uncertainty in its positive square root; an actual standard error additionally requires the sampling covariance of the estimated covariance matrices.

Interpreting the Uncertainty

Root uncertainty and vector uncertainty should be reported and interpreted separately. The asymptotic standard error for \(\hat\rho_j\) measures variability in the strength of the \(j\)th association. The direction formula instead describes how perturbations can rotate the associated axes. A useful qualitative warning is that the direction becomes less reliably determined as its squared-root gap to a neighboring root shrinks.

This matters when canonical directions are used to describe which combinations of variables define an association. If two population roots are nearly equal, the estimated two-dimensional subspace may be more stable than either individual direction: small rotations within that subspace can change the individual vectors without changing the subspace much. Thus, interpreting one vector in isolation can overstate what the data determine. This is not a replacement for a formal uncertainty analysis, but it is an important consequence of the eigenvalue structure.

Common Pitfall

Wrong reasoning: “The canonical correlation has a small standard error, so its canonical direction must also be precisely estimated.” This confuses a scalar estimate with an eigenvector estimate. The root can be stable while its direction is sensitive, particularly when a neighboring root is close.

Correction: Check the relevant root gaps when interpreting directions. The first-order eigenvector change contains denominators \(\lambda_j-\lambda_k\); a small gap can magnify perturbations even if the estimated root itself changes little. Also, do not use the ordinary separated-root normal approximation at a repeated root: the uniqueness and differentiability conditions required for that approximation fail.

Key takeaway: Standard large-sample inference for a canonical root requires fixed dimensions, independent and identically distributed observations with finite fourth moments, nonsingular marginal covariance matrices, and a simple interior population root. Root standard errors follow from the delta method; direction sensitivity is separately governed by gaps between squared roots.

Check Your Understanding

Use the definitions and results above to answer these questions.

  1. Why does a finite-fourth-moment condition enter the stated asymptotic result for a canonical root?
  2. What does it mean for a population canonical root to be simple and separated?
  3. In the eigenvector perturbation formula, what happens to the contribution from \(u_k\) as \(\lambda_j-\lambda_k\) becomes small, if the numerator remains fixed and nonzero?
  4. Why can a small standard error for a canonical correlation fail to guarantee a stable canonical direction?
  5. What regularity condition fails when a target root is repeated, and why does that matter for ordinary first-order inference?
Clinical Biostats