Regularizing large covariance matrices: banding, thresholding and tapering
Archive 2011–2014
Reviews
High-dimensional statistics
R
Why the sample covariance matrix fails when p is comparable to n, and three regularization methods with their convergence rates.
Author
Maikol Solís
Published
September 22, 2013
Modified
November 30, 2026
These are reading notes I first published in 2013, during my PhD. I revised them in 2026: the statements were checked against my reading of the papers, the text rewritten, and an R example added. The rates are stated informally; see each paper for the exact parameter classes and conditions.
I remember a professor at the University of Costa Rica saying, before presenting a classical method in a linear models course: “This only works if you have more data than variables.” At the time, I could not imagine a real problem with more variables \(p\) than observations \(n\).
I was wrong. Data sets with \(p\) comparable to or much larger than \(n\) are now common: genomics, climate, finance, speech recognition. In all of them we observe fewer units than the number of characteristics we want to study.
The sample covariance matrix breaks down
Let \(X_1, \ldots, X_n\) be an i.i.d. sample in \(\mathbb{R}^p\) with covariance matrix \(\Sigma\), and let
be the sample covariance matrix. Many methods, principal component analysis first among them, rely on the eigenvalues and eigenvectors of \(\hat\Sigma\). How much does the ratio \(p/n\) affect them?
A lot. For fixed \(p\), classical asymptotics give \(\|\hat\Sigma - \Sigma\| = O_P(n^{-1/2})\). If \(p\) grows with \(n\), consistency is lost. Suppose \(X \sim N(0, I_p)\), so that every population eigenvalue equals 1, and \(p/n \to c \in (0, 1]\). Then the empirical distribution of the eigenvalues of \(\hat\Sigma\) does not concentrate at 1. It converges to the Marčenko–Pastur law(Marčenko and Pastur 1967), supported on \(\big[(1 - \sqrt c)^2,\ (1 + \sqrt c)^2\big]\). The larger \(p/n\), the more the sample eigenvalues spread out, even though the truth is the identity.
Code
set.seed(1967)n <-400; p <-200; c <- p / nX <-matrix(rnorm(n * p), n, p)ev <-eigen(crossprod(scale(X, scale =FALSE)) / n, symmetric =TRUE, only.values =TRUE)$valuesa <- (1-sqrt(c))^2; b <- (1+sqrt(c))^2mp <-function(x) ifelse(x > a & x < b, sqrt((b - x) * (x - a)) / (2* pi * c * x), 0)par(mar =c(4, 4, 1, 1))hist(ev, breaks =40, freq =FALSE, main ="", xlab ="Sample eigenvalue",col ="grey85", border ="white")curve(mp, from = a, to = b, add =TRUE, lwd =2, col ="#1f4e79", n =500)abline(v =1, lty =2, col ="#c0392b", lwd =2)
Figure 1: Eigenvalues of the sample covariance matrix of n = 400 observations from N(0, I_p) with p = 200. All population eigenvalues equal 1 (dashed line); the curve is the Marčenko–Pastur density with c = p/n = 0.5.
The sample eigenvalues range from about 0.09 to 2.85, although every true eigenvalue is 1. Johnstone (2001) studied the largest of them in detail.
So when \(p\) is large, \(\hat\Sigma\) must be regularized. The three methods below all assume some structure, such as decay of the entries away from the diagonal or sparsity, and exploit it. Below, \(\| \cdot \|\) is the operator norm (the largest singular value) and \(\| \cdot \|_F\) the Frobenius norm. Write \(\hat\sigma_{ij}\) for the entries of \(\hat\Sigma\).
Banding
Bickel and Levina (2008b) propose to keep only the entries within \(k\) of the diagonal:
This makes sense when the variables have a natural order, such as time or space, and the covariances decay as \(|i - j|\) grows. Over a class of such matrices, with decay governed by a parameter \(\alpha > 0\), and for Gaussian (or sub-Gaussian) data, choosing \(k \asymp (n / \log p)^{1/(2(\alpha+1))}\) gives
uniformly over the class. Consistency now only requires \(\log p / n \to 0\): \(p\) may grow almost exponentially in \(n\). The banded matrix need not be positive definite. The authors also discuss a smoother tapering version, obtained by multiplying \(\hat\Sigma\) entrywise (Schur product) by a weight matrix.
Thresholding
When the variables have no natural order but most covariances are small, Bickel and Levina (2008a) propose hard thresholding at level \(s\):
This is invariant to permutations of the variables. Their sparsity classes bound, for each row, \(\sum_j |\sigma_{ij}|^q \le c_0(p)\) for some \(0 \le q < 1\). For Gaussian data, with \(s_n = M\sqrt{\log p / n}\) for \(M\) large enough and \(\log p / n \to 0\), their Theorems 1 and 2 give
The thresholded matrix is symmetric but not necessarily positive definite. It is positive definite with high probability when the estimation error is smaller than the smallest eigenvalue of \(\Sigma\). If \(\|T_s(\hat\Sigma) - \Sigma\| \le \varepsilon < \lambda_{\min}(\Sigma)\), then for every unit vector \(v\),
\[
v^\top T_s(\hat\Sigma)\, v \ge v^\top \Sigma v - \varepsilon
\ge \lambda_{\min}(\Sigma) - \varepsilon > 0 .
\]
Comparison. The two rates are for different classes, so a comparison is only heuristic. Comparing exponents, banding gives the faster rate when \(\frac{\alpha}{\alpha + 1} > 1 - q\), that is, when \(q > \frac{1}{\alpha + 1}\). As \(\alpha \to \infty\) and \(q \to 0\), both approach the parametric-like rate \((\log p / n)^{1/2}\).
Tapering and optimal rates
Cai et al. (2010) study the tapering estimator \(\big[w_{ij}\hat\sigma_{ij}\big]\) with weights, for \(k_h = k/2\),
These weights interpolate linearly between keeping and discarding an entry, instead of cutting abruptly as banding does. Their main contribution is to determine the minimax rates over classes \(\mathcal{P}_\alpha\) of matrices whose off-diagonal entries decay at a rate governed by \(\alpha\). In the sense of the minimax lower bounds series, where the infimum is over all estimators:
The tapering estimator with a well-chosen \(k\) attains these rates. The optimal \(k\) is not the same for the two norms: the right amount of regularization depends on the loss.
About positive definiteness
All three estimators can have small negative eigenvalues in finite samples, even though \(\Sigma\) is positive definite and the estimators converge to it. A simple fix is to compute the eigendecomposition and replace the negative eigenvalues by zero, or by a small positive number. This projects the estimate onto the positive semidefinite cone and does not change the convergence rates in operator norm. Whether it loses relevant information depends on the application.
References
Bickel, Peter J., and Elizaveta Levina. 2008a. “Covariance Regularization by Thresholding.”The Annals of Statistics 36 (6): 2577–604. https://doi.org/10.1214/08-AOS600.
Bickel, Peter J., and Elizaveta Levina. 2008b. “Regularized Estimation of Large Covariance Matrices.”The Annals of Statistics 36 (1): 199–227. https://doi.org/10.1214/009053607000000758.
Cai, T. Tony, Cun-Hui Zhang, and Harrison H. Zhou. 2010. “Optimal Rates of Convergence for Covariance Matrix Estimation.”The Annals of Statistics 38 (4): 2118–44. https://doi.org/10.1214/09-AOS752.
Johnstone, Iain M. 2001. “On the Distribution of the Largest Eigenvalue in Principal Components Analysis.”The Annals of Statistics 29 (2): 295–327. https://doi.org/10.1214/aos/1009210544.
Marčenko, V. A., and L. A. Pastur. 1967. “Distribution of Eigenvalues for Some Sets of Random Matrices.”Mathematics of the USSR-Sbornik 1 (4): 457–83. https://doi.org/10.1070/SM1967v001n04ABEH001994.