Tutorials › Multivariate Statistics (Graduate) › Worked Analysis of a Spiked Covariance Spectrum

High-Dimensional PCA and Factors · Tutorial 877 of 975

Worked Analysis of a Spiked Covariance Spectrum

Learn to diagnose a rank-one covariance spike by comparing its strength with the high-dimensional threshold and calculating the resulting eigenvalue and eigenvector recovery.

Advanced 11 min read

What You'll Learn

  • Set up the rank-one Gaussian spiked covariance model and its high-dimensional aspect ratio
  • Calculate the Marchenko–Pastur upper bulk edge
  • Check whether a population spike is subcritical, critical, or supercritical
  • Derive the limiting location of a separated sample eigenvalue
  • Calculate the limiting squared overlap of the sample and population eigenvectors
  • Interpret the difference between detecting a spike and recovering its direction

Why a Spiked Spectrum Needs a High-Dimensional Benchmark

In principal component analysis, a large sample eigenvalue can suggest a dominant population direction. But when the dimension is comparable to the sample size, even data with no population signal produce large sample eigenvalues. The correct question is therefore not simply whether the largest sample eigenvalue exceeds one: it is whether it separates from the noise spectrum expected at that dimension-to-sample-size ratio.

A rank-one Gaussian spike gives a precise setting in which to make this comparison. We will calculate the noise bulk edge, identify the signal-strength threshold for a separated eigenvalue, and quantify how well the corresponding sample eigenvector recovers the population direction. All limits below are as \(p,n\to\infty\) with \(p/n\to\gamma\), where \(0<\gamma<\infty\).

Model and notation: Let \(v\in\mathbb{R}^p\) be a deterministic unit vector, let \(\beta>0\), and set \(\Sigma=I_p+\beta vv^\top\). The population eigenvalue in direction \(v\) is \(\ell=1+\beta\); all \(p-1\) orthogonal population eigenvalues are \(1\). Let \(X_1,\ldots,X_n\) be independent \(N_p(0,\Sigma)\) observations, and define \(S=n^{-1}\sum_{i=1}^n X_iX_i^\top\). Write \(\hat\lambda_1\) for the largest eigenvalue of \(S\), and \(\hat v_1\) for a corresponding unit eigenvector. Eigenvector recovery is measured by the sign-invariant squared overlap \(|\hat v_1^\top v|^2\).

The Noise Bulk and the Outlier Threshold

When \(\beta=0\), the sample covariance is a Gaussian Wishart matrix with identity population covariance. The Marchenko–Pastur law describes its limiting empirical eigenvalue distribution. Its upper support edge is

$$ b_+=(1+\sqrt{\gamma})^2. $$

This edge is the high-dimensional noise benchmark. The sample largest eigenvalue approaches \(b_+\) in the identity model, rather than approaching the population eigenvalue \(1\). In the spiked model, the population spike must be sufficiently strong to pull a sample eigenvalue strictly above this edge.

Theorem (rank-one spiked covariance transition): Under the Gaussian model above, the threshold is \(\beta=\sqrt{\gamma}\). If \(\beta>\sqrt{\gamma}\), then \(\hat\lambda_1\xrightarrow{p}(1+\beta)(1+\gamma/\beta)>b_+\), and \(|\hat v_1^\top v|^2\xrightarrow{p}(1-\gamma/\beta^2)/(1+\gamma/\beta)\). If \(0<\beta\leq\sqrt{\gamma}\), then \(\hat\lambda_1\xrightarrow{p}b_+\) and \(|\hat v_1^\top v|^2\xrightarrow{p}0\). The equality case is critical: the limiting eigenvalue is at the bulk edge, not a separated outlier.

The transition says that a population eigenvalue greater than one is not automatically detectable as a separated sample eigenvalue. The comparison is between the excess spike \(\beta=\ell-1\) and \(\sqrt{\gamma}\), not between \(\ell\) and the sample bulk edge.

Deriving the Supercritical Eigenvalue

The outlier formula follows from a one-dimensional Schur complement. By rotating coordinates, take \(v\) to be the first coordinate vector. Write the data matrix, whose columns are the observations, as \(X=\begin{pmatrix}\sqrt{\ell}\,z^\top\\Y\end{pmatrix}\), where \(z\in\mathbb{R}^n\) has independent standard normal entries and \(Y\) is a \((p-1)\times n\) matrix of independent standard normal entries, independent of \(z\). Partition \(S\) as

$$ S= \begin{pmatrix} a & b^\top\\ b & C \end{pmatrix}, \qquad a=\frac{\ell}{n}z^\top z,\quad b=\frac{\sqrt{\ell}}{n}Yz,\quad C=\frac{1}{n}YY^\top . $$

For a candidate eigenvalue \(\lambda\) above the spectrum of \(C\), the eigenvalue equation reduces to \(\lambda=a+b^\top(\lambda I-C)^{-1}b\). The law of large numbers gives \(a\xrightarrow{p}\ell\). Conditional on \(Y\), the Gaussian quadratic form in the second term concentrates around its trace. Since \(C=YY^\top/n\), that trace gives

$$ b^\top(\lambda I-C)^{-1}b \ \longrightarrow\ \ell\gamma\int\frac{x}{\lambda-x}\,dF_\gamma(x), $$

where \(F_\gamma\) is the Marchenko–Pastur limiting law for the eigenvalues of \(C\), normalized to have total mass one. Thus the limiting outlier equation is \(\lambda=\ell\{1+q(\lambda)\}\), where \(q(\lambda)=\gamma\int x/(\lambda-x)\,dF_\gamma(x)\).

For clarity, the transform identity needed to solve this equation can be written in terms of \(m(\lambda)=\int(\lambda-x)^{-1}\,dF_\gamma(x)\). For \(\lambda>b_+\), the Marchenko–Pastur transform satisfies \(\lambda=1/m+1/(1-\gamma m)\). Set \(s=\lambda m-1\). Substitution gives

$$ q(\lambda)=\gamma s, \qquad \lambda=(1+s)\left(\gamma+\frac{1}{s}\right), \qquad 0<s<\frac{1}{\sqrt{\gamma}}. $$

The outlier equation requires \(\lambda=\ell(1+\gamma s)\). Equating this with the transform expression yields \(s=1/\beta\); substituting gives \(\lambda=(1+\beta)(1+\gamma/\beta)\). This solution lies on the physical branch above the bulk edge precisely when \(1/\beta<1/\sqrt{\gamma}\), or \(\beta>\sqrt{\gamma}\). At the threshold it reaches the edge; below it, there is no separated solution.

Derivation: In the supercritical regime, the Schur-complement equation and the Marchenko–Pastur transform give a separated eigenvalue only for \(\beta>\sqrt{\gamma}\). Its limit is \((1+\beta)(1+\gamma/\beta)\). The comparison with the edge can also be checked directly: \[ (1+\beta)(1+\gamma/\beta)-(1+\sqrt{\gamma})^2 =\frac{(\beta-\sqrt{\gamma})^2}{\beta}>0. \] \square

Deriving the Eigenvector Overlap

The same block representation explains why an outlier eigenvector can recover the signal direction. Write an eigenvector for an eigenvalue \(\lambda\) as \((u,w^\top)^\top\), where \(u\) is its coordinate along \(v\). The lower block of the eigenvalue equation gives \(w=(\lambda I-C)^{-1}bu\). Normalizing the eigenvector therefore yields

$$ |u|^2= \frac{1}{1+b^\top(\lambda I-C)^{-2}b}. $$

The quadratic form in the denominator converges, by the same conditional Gaussian concentration, to \(\ell\gamma\int x/(\lambda-x)^2\,dF_\gamma(x)=-\ell q'(\lambda)\). To evaluate it, use \(q=\gamma s\) and \(\lambda=(1+s)(\gamma+1/s)\). Differentiating gives \(d\lambda/ds=\gamma-1/s^2\), and hence \(q'(\lambda)=\gamma/(\gamma-1/s^2)\). At the outlier, \(s=1/\beta\), so \(q'(\lambda)=-\gamma/(\beta^2-\gamma)\). It follows that

$$ |u|^2\ \longrightarrow\ \frac{1}{1+\ell\gamma/(\beta^2-\gamma)} = \frac{1-\gamma/\beta^2}{1+\gamma/\beta}. $$
Interpretation: Above threshold, the limiting overlap is positive but is less than one for every fixed finite \(\beta\). Thus a separated sample eigenvalue signals a recoverable direction, but it does not imply perfect recovery. As \(\beta\) decreases to \(\sqrt{\gamma}\), the overlap tends to zero.

Worked Analyses

Worked Example: A Clearly Supercritical Spike

Let \(p/n\to 0.25\), so \(\gamma=0.25\), and take \(\beta=1\). The population spike eigenvalue is \(\ell=1+\beta=2\). The upper bulk edge is \((1+\sqrt{0.25})^2=(1+0.5)^2=2.25\).

The threshold is \(\sqrt{\gamma}=0.5\), and \(1>0.5\), so the spike is supercritical. The limiting sample outlier is \[ (1+\beta)(1+\gamma/\beta)=2(1+0.25)=2.5. \] This is above the edge by \(2.5-2.25=0.25\), as required. The squared eigenvector overlap is \[ \frac{1-\gamma/\beta^2}{1+\gamma/\beta} =\frac{1-0.25}{1+0.25} =\frac{0.75}{1.25}=0.6. \] Thus the eigenvalue separates, and the sample direction has a nonzero limiting alignment with \(v\), although its squared overlap is not one.

Worked Example: A Subcritical Spike

Let \(\gamma=1\) and \(\beta=0.5\). The population spike eigenvalue is \(1.5\), while the noise bulk edge is \((1+\sqrt{1})^2=4\). The threshold is \(\sqrt{\gamma}=1\), and \(0.5<1\), so the spike is subcritical.

The theorem therefore gives \(\hat\lambda_1\xrightarrow{p}4\) and \(|\hat v_1^\top v|^2\xrightarrow{p}0\). In particular, inserting \(\beta=0.5\) into the supercritical overlap formula would produce a negative numerator, \(1-1/0.25=-3\). That is not a negative overlap; it is a warning that the formula is being used outside its regime. There is no separated signal eigenvalue or nonzero limiting eigenvector recovery in this case.

Worked Example: The Critical Boundary

Take \(\gamma=0.25\) and \(\beta=0.5\). Here \(\sqrt{\gamma}=0.5\), so the spike is exactly critical, and its population eigenvalue is \(1.5\). The bulk edge is \((1+0.5)^2=2.25\).

At equality, the limiting largest sample eigenvalue is \(2.25\), not a distinct value above it, and the squared overlap tends to zero. The supercritical outlier expression meets the edge at this point: \[ (1+0.5)(1+0.25/0.5)=1.5(1.5)=2.25. \] Likewise, the supercritical overlap expression approaches zero as \(\beta\downarrow0.5\): \[ \frac{1-0.25/0.5^2}{1+0.25/0.5} =\frac{1-1}{1.5}=0. \] The equality case is a boundary, not evidence of a separated eigenvalue.

Common Mistake: Comparing the Population Spike to the Noise Edge

A tempting but incorrect argument is: “The population eigenvalue is \(\ell=1+\beta\), so compare it directly with the sample noise edge \(b_+=(1+\sqrt{\gamma})^2\). If \(\ell<b_+\), the spike cannot be detected.” This compares a population eigenvalue with a sample eigenvalue, which are on different scales in the transition calculation. For instance, in the first worked example, \(\ell=2<2.25=b_+\), yet the sample outlier converges to \(2.5\), above the edge.

The correction is to compare the population excess \(\beta=\ell-1\) with \(\sqrt{\gamma}\). If \(\beta>\sqrt{\gamma}\), calculate the sample outlier using \((1+\beta)(1+\gamma/\beta)\), then compare that result with the bulk edge. If \(\beta\leq\sqrt{\gamma}\), the largest sample eigenvalue converges to the edge and the limiting overlap is zero.

What the Calculation Says About Recovery

The threshold depends on both the signal strength and the aspect ratio. Holding \(\beta\) fixed while increasing \(\gamma\) raises the threshold; a spike that separates when the sample size is large relative to dimension can merge into the bulk when dimension grows relative to sample size. Above threshold, the outlier location gives a spectral indication of the spike, while the overlap formula measures how much of its direction is recovered.

These are asymptotic limits, not exact finite-sample identities. In finite data, eigenvalues fluctuate around their limits, especially near the critical boundary. A value just above the theoretical edge is not by itself conclusive evidence of a supercritical population spike. The model, the dimension-to-sample-size ratio, and the eigenvector alignment all matter when interpreting a spectrum.

Check Your Understanding

Use the rank-one Gaussian model and its high-dimensional limits to answer the following.

  1. For \(\gamma=0.36\), what is the bulk edge and the critical value of \(\beta\)?
  2. For \(\gamma=0.36\) and \(\beta=0.8\), determine whether the spike is supercritical and calculate the limiting outlier eigenvalue.
  3. Why is comparing \(1+\beta\) directly with \((1+\sqrt{\gamma})^2\) not the correct threshold check?
  4. What happens to the limiting squared overlap as a supercritical \(\beta\) decreases to \(\sqrt{\gamma}\)?
  5. Can a separated sample eigenvalue imply perfect recovery of \(v\) when \(\beta\) is fixed and finite? Explain using the overlap formula.
Clinical Biostats