Tutorials › Multivariate Statistics (Graduate) › Delta-Method Inference for Explained Variance

PCA Inference and Asymptotics · Tutorial 513 of 975

Delta-Method Inference for Explained Variance

Learn to turn joint asymptotic eigenvalue limits into standard errors and approximate confidence intervals for the proportion of variance explained by principal components.

Advanced 11 min read

What You'll Learn

  • Define individual and cumulative population and sample explained-variance proportions.
  • Differentiate explained-variance ratios with respect to all eigenvalues.
  • Derive their asymptotic normal limits from a joint eigenvalue limit.
  • Calculate Gaussian-model standard errors for explained-variance proportions.
  • Account for dependence among eigenvalue fluctuations in a non-Gaussian example.
  • Construct and interpret a first-order confidence interval for a variance share.

Why Explained-Variance Shares Need Their Own Inference

A principal component’s eigenvalue measures variance in its direction, while its explained-variance share compares that eigenvalue with the variance in all directions. That denominator matters: uncertainty in a share depends not only on the leading eigenvalue, but also on the fluctuations of the other eigenvalues and their dependence. The delta method turns the joint limit for sample eigenvalues into an asymptotic distribution for this ratio.

The target here is inference for a fixed number of leading components when the population covariance matrix has distinct eigenvalues. We take the joint eigenvalue limit as input, rather than re-deriving the covariance matrix or the eigenvalue perturbation result.

Population and Sample Variance Shares

Let \(X_1,\ldots,X_n\) be independent and identically distributed \(p\)-dimensional observations with mean \(\mu\) and positive-definite covariance matrix \(\Sigma\). Write the ordered population eigenvalues as \(\lambda_1>\lambda_2>\cdots>\lambda_p>0\), and the ordered eigenvalues of the sample covariance matrix \(S\) as \(\hat\lambda_1,\ldots,\hat\lambda_p\). The total population variance is \(T=\sum_{j=1}^p\lambda_j=\operatorname{tr}(\Sigma)\), and the total sample variance is \(\hat T=\sum_{j=1}^p\hat\lambda_j=\operatorname{tr}(S)\).

Definition: The population share explained by component \(i\) is \(r_i=\lambda_i/T\). The cumulative population share explained by the first \(k\) components is \(R_k=S_k/T\), where \(S_k=\sum_{i=1}^k\lambda_i\). Their sample versions are \(\hat r_i=\hat\lambda_i/\hat T\) and \(\hat R_k=\sum_{i=1}^k\hat\lambda_i/\hat T\).

A share is a ratio of random quantities when estimated from data. Treating the denominator as fixed generally misses some uncertainty; treating the eigenvalues as independent can miss it as well. Both issues are handled by differentiating the ratio with respect to the whole eigenvalue vector.

The Joint Eigenvalue Limit and the Ratio Gradient

Assume the population eigenvalues are distinct and the observations have finite fourth moments. For the usual sample covariance matrix, the joint eigenvalue limit has the form \(\sqrt n(\hat{\boldsymbol\lambda}-\boldsymbol\lambda)\xrightarrow{d}N_p(0,V)\), where \(\boldsymbol\lambda=(\lambda_1,\ldots,\lambda_p)^\mathsf{T}\), \(\hat{\boldsymbol\lambda}=(\hat\lambda_1,\ldots,\hat\lambda_p)^\mathsf{T}\), and \(V\) is the asymptotic covariance matrix. The joint limit may be obtained from the eigenvalue perturbation and covariance matrix CLT results. For example, if \(u_i\) is a unit eigenvector of \(\Sigma\) for \(\lambda_i\), then under these conditions \(V_{ij}=\operatorname{Cov}([(u_i^\mathsf{T}(X_1-\mu))^2],[(u_j^\mathsf{T}(X_1-\mu))^2])\). The choice of sign for \(u_i\) does not affect its squared projection.

For a fixed \(k\), regard the cumulative share as the function \(h_k(x_1,\ldots,x_p)=(\sum_{i=1}^k x_i)/(\sum_{j=1}^p x_j)\), defined whenever the denominator is positive. Differentiating with the quotient rule gives \(\partial h_k/\partial x_j=(\mathbf{1}\{j\le k\}\sum_{\ell=1}^p x_\ell-\sum_{i=1}^k x_i)/(\sum_{\ell=1}^p x_\ell)^2\). At the population eigenvalues this simplifies to \(g_{k,j}=(\mathbf{1}\{j\le k\}-R_k)/T\). Thus every eigenvalue contributes: eigenvalues in the leading group have one common derivative, while those outside it have another.

Theorem: Suppose \(T>0\), the population eigenvalues are distinct, and \(\sqrt n(\hat{\boldsymbol\lambda}-\boldsymbol\lambda)\xrightarrow{d}N_p(0,V)\). For fixed \(k\), \(1\le k\le p\), \(\sqrt n(\hat R_k-R_k)\xrightarrow{d}N(0,g_k^\mathsf{T}Vg_k)\), where \(g_k\) has entries \(g_{k,j}=(\mathbf{1}\{j\le k\}-R_k)/T\). The same result applies to an individual share \(\hat r_i\), by taking \(k=i\) and subtracting the limit for \(k=i-1\), or by differentiating \(\lambda_i/T\) directly.

For the individual share, direct differentiation gives gradient entries \((\mathbf{1}\{j=i\}-r_i)/T\). This differs from the cumulative-share gradient because only eigenvalue \(i\) appears in the numerator. Both formulas reflect the same denominator effect.

Derivation of the Asymptotic Distribution

The theorem is a direct application of the multivariate delta method. The proof also shows why the full covariance matrix \(V\), not just its diagonal, enters the answer.

1
Use the joint limit.
By assumption, \(\sqrt n(\hat{\boldsymbol\lambda}-\boldsymbol\lambda)\) converges in distribution to a mean-zero normal vector with covariance \(V\). In particular, \(\hat{\boldsymbol\lambda}-\boldsymbol\lambda=O_p(n^{-1/2})\), so the sample eigenvalue vector converges in probability to the population vector.
2
Expand the share.
The function \(h_k\) is continuously differentiable in a neighborhood of \(\boldsymbol\lambda\), since the population total \(T\) is positive. A first-order Taylor expansion gives \(\hat R_k-R_k=g_k^\mathsf{T}(\hat{\boldsymbol\lambda}-\boldsymbol\lambda)+o_p(\|\hat{\boldsymbol\lambda}-\boldsymbol\lambda\|)\).
3
Scale and take the limit.
After multiplication by \(\sqrt n\), the Taylor remainder is \(o_p(1)\): its unscaled remainder is \(o_p(\|\hat{\boldsymbol\lambda}-\boldsymbol\lambda\|)\), and the scaled eigenvalue error is \(O_p(1)\). The linear term converges to a normal variable with variance \(g_k^\mathsf{T}Vg_k\). Slutsky’s theorem gives the stated limit. \(\square\)

For several cumulative shares at once, let \(\hat{\boldsymbol R}=(\hat R_1,\ldots,\hat R_K)^\mathsf{T}\) for fixed \(K\le p\). Define the \(K\)-by-\(p\) matrix \(G\) with row \(k\) equal to \(g_k^\mathsf{T}\). Applying the same Taylor expansion to the vector of ratios yields \(\sqrt n(\hat{\boldsymbol R}-\boldsymbol R)\xrightarrow{d}N_K(0,GVG^\mathsf{T})\). This follows because the vector function is differentiable with Jacobian \(G\), so its first-order term is \(G\sqrt n(\hat{\boldsymbol\lambda}-\boldsymbol\lambda)\); the vector Taylor remainder is \(o_p(1)\) after scaling, and the continuous linear transformation has covariance \(GVG^\mathsf{T}\).

Under multivariate normal sampling, the asymptotic covariance simplifies to \(V_{ii}=2\lambda_i^2\) and \(V_{ij}=0\) for \(i\ne j\). This follows because the population eigenvector coordinates are independent normal variables, so their squares have variances \(2\lambda_i^2\) and zero cross-covariances. Outside the Gaussian model, the off-diagonal entries need not vanish.

Worked Calculations

Worked Example: A Cumulative Share Under Gaussian Sampling

Suppose the population eigenvalues are \(9,4,1\), and the observations are multivariate normal. Find the asymptotic variance for the share explained by the first two components.

The total variance is \(T=9+4+1=14\), and the cumulative share is \(R_2=(9+4)/14=13/14\). The Gaussian covariance matrix is diagonal: \(V=\operatorname{diag}(2(9)^2,2(4)^2,2(1)^2)=\operatorname{diag}(162,32,2)\).

For the first two eigenvalues, \(g_{2,j}=(1-13/14)/14=1/196\). For the third, \(g_{2,3}=(0-13/14)/14=-13/196\). Therefore \(g_2^\mathsf{T}Vg_2=[162+32+2(13)^2]/196^2=532/38416\approx0.01385\). Thus \(\sqrt n(\hat R_2-13/14)\) is approximately normal with variance \(0.01385\); the approximate standard error of \(\hat R_2\) is \(\sqrt{0.01385/n}\).

Worked Example: An Approximate Interval for the Leading Share

Use the same Gaussian model, but consider the share explained by the first component. Compute a first-order 95% normal interval for \(n=100\), treating the population eigenvalues as known for this calculation.

Here \(r_1=9/14\). The gradient is \(g_{1,1}=(1-9/14)/14=5/196\), while \(g_{1,2}=g_{1,3}=-(9/14)/14=-9/196\). Hence \(g_1^\mathsf{T}Vg_1=[25(162)+81(32)+81(2)]/196^2=6804/38416\approx0.17711\).

The approximate standard error is \(\sqrt{0.17711/100}\approx0.04208\). The normal interval is \(9/14\pm1.96(0.04208)=0.64286\pm0.08248\), or approximately \((0.5604,0.7253)\). In an application, unknown quantities in the asymptotic variance must be replaced by consistent estimates. This interval illustrates the first-order normal approximation; it is not an exact finite-sample interval.

Worked Example: Why Eigenvalue Dependence Matters

Consider a non-Gaussian two-dimensional population whose coordinates are \(X_1=2A\sqrt U\) and \(X_2=B\sqrt W\). The signs \(A\) and \(B\) are independent, each taking \(1\) and \(-1\) with equal probability. The pair \((U,W)\) has probabilities \(P(U=2,W=3)=1/4\), \(P(U=2,W=0)=1/4\), \(P(U=0,W=3)=1/12\), and \(P(U=0,W=0)=5/12\). Find the asymptotic variance of the leading share.

The signs imply zero means and zero covariance between coordinates. Also, \(E[U]=1\) and \(E[W]=1\), so their variances are \(4\) and \(1\). The population eigenvalues are therefore \(4\) and \(1\), with leading share \(r_1=4/5\).

The eigenvalue-limit covariance matrix is the covariance matrix of the squared coordinates. Since \(E[U^2]=2\), \(E[W^2]=3\), and \(E[UW]=6(1/4)=3/2\), its entries are \(V_{11}=\operatorname{Var}(X_1^2)=16(2-1)=16\), \(V_{22}=\operatorname{Var}(X_2^2)=3-1=2\), and \(V_{12}=\operatorname{Cov}(X_1^2,X_2^2)=4(3/2-1)=2\). Thus \(V=\begin{pmatrix}16&2\\2&2\end{pmatrix}\), a positive-definite covariance matrix since its determinant is \(32-4=28>0\).

The gradient for the leading share is \(((1-4/5)/5,-(4/5)/5)^\mathsf{T}=(0.04,-0.16)^\mathsf{T}\). Consequently, \(g_1^\mathsf{T}Vg_1=16(0.04)^2+2(0.16)^2+2(0.04)(-0.16)(2)=0.0512\). The cross-covariance term is negative because the two gradient entries have opposite signs. Omitting it would give \(0.0768\), an incorrect asymptotic variance.

Interpretation and Common Pitfalls

A cumulative share is constrained to lie between zero and one, but its first-order normal approximation is not. For large samples and shares well inside those boundaries, a normal interval can be a useful summary. Near a boundary, the approximation may produce endpoints outside the allowable range or represent sampling uncertainty poorly. The formula is also a fixed-dimension, fixed-\(k\) result: it is not a guarantee for a growing number of variables or components.

  • Holding the denominator fixed. The total variance is estimated from the same data. The gradient entries for eigenvalues outside the leading group are \(-R_k/T\), not zero.
  • Ignoring covariance. In general, the variance is \(g_k^\mathsf{T}Vg_k\), including all cross-covariance terms. Diagonal \(V\) is a Gaussian-model simplification, not a universal rule.
  • Using eigenvalue intervals as share intervals. A share is a ratio involving the full spectrum. Its uncertainty must be derived for the ratio itself.
  • Ignoring the regularity conditions. The stated joint normal limit assumes distinct population eigenvalues and the appropriate sampling conditions. If these fail, this particular differentiable-eigenvalue argument need not apply.
Key takeaway: Differentiate the explained-variance ratio with respect to every eigenvalue, then propagate the full joint eigenvalue covariance matrix through that gradient. The denominator and eigenvalue dependence are both part of the uncertainty.

Check Your Understanding

Use the definitions and delta-method formulas above to answer the following.

  1. For \(p=4\), write the gradient entries for the cumulative share explained by the first two components.
  2. Why can the asymptotic variance of a share not generally be calculated from only the variance of its leading eigenvalue?
  3. Under Gaussian sampling, what simplifies in the covariance matrix of the joint eigenvalue limit?
  4. For the two-dimensional example, explain the sign of the cross-covariance contribution to the leading-share variance.
  5. State two conditions that support the joint normal approximation used for the explained-variance share.
Clinical Biostats