Tutorials › Multivariate Statistics (Graduate) › Sparse Covariance Classes and Entrywise Thresholding

High-Dimensional Covariance Estimation · Tutorial 787 of 975

Sparse Covariance Classes and Entrywise Thresholding

Learn how row-sparse covariance classes quantify off-diagonal structure and how entrywise thresholding uses those bounds to control approximation error.

Advanced 12 min read

What You'll Learn

  • Define exact row sparsity and weak rowwise magnitude bounds for covariance matrices
  • Distinguish a bound on the number of nonzero entries from a bound on their total magnitude
  • Derive bounds on the number and squared magnitude of entries above or below a cutoff
  • Understand why entrywise thresholding is suited to approximately sparse covariance structure
  • Apply a deterministic thresholding error bound under a uniform entrywise noise guarantee
  • Recognize why thresholding can alter positive definiteness

Why Covariance Sparsity Matters

A covariance matrix records both marginal variances and pairwise dependence. In a high-dimensional problem, the number of off-diagonal entries grows quadratically with dimension, even when each variable is associated with only a few others. If most population covariances are zero, or many are small, estimating every entry without regard to this structure can preserve substantial noise. Row sparsity formalizes the idea that each variable has relatively few important covariance relationships.

Entrywise thresholding uses this structure by screening covariance estimates individually: entries that are small relative to the estimation noise are set to zero, while entries large enough to retain are kept or adjusted. The central point here is the connection between a sparsity assumption and the approximation error from removing small entries. The particular thresholding rules and their comparisons are a separate question.

Row-Sparse Covariance Classes

Let \(\Sigma=(\sigma_{ij})\) be a \(p\times p\) covariance matrix. Its diagonal entries are variances; row sparsity describes the off-diagonal entries. We measure sparsity row by row, so a global bound does not allow one unusually dense row to be hidden by many sparse ones.

Definition: For \(s\geq 0\), a covariance matrix is row-\(s\)-sparse if each row has at most \(s\) nonzero off-diagonal entries: $$ \max_{1\leq i\leq p}\#\{j\ne i:\sigma_{ij}\ne 0\}\leq s. $$ For \(0<q<1\), it is weakly row-\(q\)-sparse with radius \(R\) if $$ \max_{1\leq i\leq p}\sum_{j\ne i}|\sigma_{ij}|^q\leq R. $$ The \(q=0\) convention \(|x|^0=\mathbf{1}\{x\ne0\}\) makes the same sum equal to the number of nonzero entries; thus row-\(s\)-sparsity is the \(q=0\) version with \(R=s\). A covariance class may also impose a diagonal bound, such as \(\max_i\sigma_{ii}\leq M\), but that bound is separate from the off-diagonal sparsity condition.

The distinction between the two conditions is useful. Exact row sparsity says how many entries are nonzero, without limiting their sizes. A positive-\(q\) bound limits the combined magnitude of the off-diagonal entries. For fixed finite \(p\), it permits up to \(p-1\) nonzero entries in a row, without imposing a fixed support-size bound; across a sequence of increasing dimensions, that number can grow without bound. The \(q\)-sum nevertheless limits their combined magnitude, especially for small entries. Such a class is often called approximately sparse or weakly sparse.

The restriction \(q<1\) emphasizes sparse structure: for a fixed small magnitude \(a\), \(a^q\) penalizes it more than \(a\) does when \(0<q<1\). The bound is not a probability statement and does not say which entries are nonzero. It is a deterministic constraint on the population matrix.

Worked Example: Exact Sparsity Versus a Magnitude Bound

Suppose a row of a covariance matrix has off-diagonal entries \(0.4\), \(0.2\), and \(0.01\), with all other off-diagonal entries zero. The row has exactly three nonzero entries, so it satisfies the exact row-sparsity condition with \(s=3\).

For \(q=1/2\), its magnitude sum is $$ \sqrt{0.4}+\sqrt{0.2}+\sqrt{0.01} \approx 0.6325+0.4472+0.1000=1.1797. $$ Thus a radius \(R=1.18\) covers this row. The two descriptions answer different questions: \(s=3\) counts the nonzeros, while \(R=1.18\) records their total magnitude on the \(q\)-scale. A row with many very small nonzeros might fail a small exact-sparsity bound but still meet a modest positive-\(q\) bound.

What a Magnitude Bound Guarantees

A weak row-sparsity condition controls both how many entries can exceed a specified size and how much squared magnitude can be hidden among entries below that size. These are the facts that make entrywise screening useful.

Theorem: Suppose \(0<q<1\) and \(\sum_{j\ne i}|\sigma_{ij}|^q\leq R\) for a row \(i\). For any \(t>0\), $$ \#\{j\ne i:|\sigma_{ij}|>t\}\leq Rt^{-q}, \qquad \sum_{\substack{j\ne i\\|\sigma_{ij}|\leq t}}\sigma_{ij}^2\leq Rt^{2-q}. $$

Proof. If \(|\sigma_{ij}|>t\), then \(|\sigma_{ij}|^q>t^q\). If there are \(m\) such entries, their contribution to the row sum is greater than \(mt^q\); since the entire sum is at most \(R\), this implies \(m\leq Rt^{-q}\). For the second inequality, each entry with \(|\sigma_{ij}|\leq t\) satisfies $$ \sigma_{ij}^2=|\sigma_{ij}|^q|\sigma_{ij}|^{2-q} \leq t^{2-q}|\sigma_{ij}|^q. $$ Summing over those entries and using the row-sum bound gives the result. \(\square\)

The first inequality says that large entries are limited in number. The second says that deleting all entries at or below \(t\) incurs at most \(Rt^{2-q}\) squared error in that row. Together, they formalize the idea that a weakly sparse row has a relatively small set of larger relationships and a controlled tail of small ones.

Worked Example: A Three-Variable Covariance Matrix

Consider the symmetric matrix $$ \Sigma= \begin{pmatrix} 1 & 0.30 & 0.04\\ 0.30 & 1 & 0.08\\ 0.04 & 0.08 & 1 \end{pmatrix}. $$ It is a valid positive-definite covariance matrix: every diagonal entry is positive, and each diagonal entry exceeds the sum of the absolute off-diagonal entries in its row (\(1>0.34\), \(1>0.38\), and \(1>0.12\)). Strict diagonal dominance for a symmetric matrix with positive diagonal implies positive definiteness.

For \(q=1/2\), the three row sums of off-diagonal magnitudes are $$ \sqrt{0.30}+\sqrt{0.04}\approx0.547723+0.200000=0.747723, $$ $$ \sqrt{0.30}+\sqrt{0.08}\approx0.5477226+0.2828427=0.8305653, $$ and $$ \sqrt{0.04}+\sqrt{0.08}\approx0.200000+0.282843=0.482843. $$ Consequently \(R=0.832\) is a valid radius for all three rows.

If entries with magnitude at most \(t=0.10\) are removed from the population matrix, the entries \(0.04\) and \(0.08\), and their symmetric counterparts, are removed. The squared Frobenius error is $$ 2(0.04^2+0.08^2)=2(0.0016+0.0064)=0.016. $$ The theorem gives a looser but general rowwise bound of \(0.832(0.10)^{3/2}\approx0.02631\). Summing that bound over three rows gives \(0.07893\), which correctly bounds the full squared Frobenius error \(0.016\).

Entrywise Thresholding Under Entrywise Noise

In practice, the population entries are unknown. Let \(\widehat\Sigma=(\hat\sigma_{ij})\) be an estimated covariance matrix, and suppose its off-diagonal entries obey a uniform error bound $$ \max_{i\ne j}|\hat\sigma_{ij}-\sigma_{ij}|\leq\delta. $$ This is a deterministic assumption for the result below; in a statistical application, a concentration argument can be used to show that it holds with high probability. The threshold \(\lambda\) should be large enough relative to \(\delta\) that entries retained by screening are not merely small estimation fluctuations.

To make the error calculation precise without committing to one particular thresholding rule, suppose a scalar rule \(T_\lambda\) has these properties: it returns zero for inputs with absolute value at most \(\lambda\), returns a nonzero value only for inputs with absolute value greater than \(\lambda\), and satisfies \(|T_\lambda(x)-x|\leq\lambda\) for every \(x\). Apply it separately to off-diagonal entries, using the same rule in both symmetric positions, and leave the diagonal unchanged. The following bound explains the role of the sparsity assumption.

Theorem: Suppose a row satisfies \(\sum_{j\ne i}|\sigma_{ij}|^q\leq R\) for \(0<q<1\), the uniform error bound above holds, and \(\lambda>\delta\). If \(\tilde\sigma_{ij}=T_\lambda(\hat\sigma_{ij})\) off the diagonal, then $$ \sum_{j\ne i}|\tilde\sigma_{ij}-\sigma_{ij}|^2 \leq R\left\{(\lambda+\delta)^2(\lambda-\delta)^{-q} +(\lambda+\delta)^{2-q}\right\}. $$

Proof. Split the row into entries for which the thresholded estimate is nonzero and entries for which it is zero. If \(\tilde\sigma_{ij}\ne0\), then \(|\hat\sigma_{ij}|>\lambda\). The estimation error bound gives $$ |\sigma_{ij}|\geq|\hat\sigma_{ij}|-|\hat\sigma_{ij}-\sigma_{ij}| >\lambda-\delta. $$ There are at most \(R(\lambda-\delta)^{-q}\) such entries: each contributes more than \((\lambda-\delta)^q\) to the row’s \(q\)-sum. For each retained entry, $$ |\tilde\sigma_{ij}-\sigma_{ij}| \leq|\tilde\sigma_{ij}-\hat\sigma_{ij}|+ |\hat\sigma_{ij}-\sigma_{ij}| \leq\lambda+\delta. $$ Thus their total squared error is at most \(R(\lambda-\delta)^{-q}(\lambda+\delta)^2\).

For a zeroed entry, \(|\hat\sigma_{ij}|\leq\lambda\), so \(|\sigma_{ij}|\leq\lambda+\delta\). Its squared error is \(\sigma_{ij}^2\), and $$ \sigma_{ij}^2 =|\sigma_{ij}|^q|\sigma_{ij}|^{2-q} \leq(\lambda+\delta)^{2-q}|\sigma_{ij}|^q. $$ Summing over zeroed entries gives at most \(R(\lambda+\delta)^{2-q}\). Adding the retained and zeroed bounds proves the claim. \(\square\)

Worked Example: Applying the Error Bound

Return to the three-variable matrix, with \(q=1/2\) and \(R=0.832\). Suppose the estimated off-diagonal entries have maximum absolute error at most \(\delta=0.02\), and use a threshold \(\lambda=0.10\) satisfying the scalar-rule conditions above. Since \(\lambda>\delta\), the theorem applies.

The retained-entry term in the rowwise squared-error bound is $$ 0.832(0.10+0.02)^2(0.10-0.02)^{-1/2} =0.832(0.0144)(0.08)^{-1/2} \approx0.04236. $$ The zeroed-entry term is $$ 0.832(0.12)^{3/2} \approx0.832(0.04157)\approx0.03459. $$ Therefore the rowwise squared error is at most \(0.04236+0.03459=0.07695\). This is a worst-case deterministic bound, not a prediction that the error will attain that value. It shows explicitly how the row’s magnitude radius and the threshold-to-noise relationship enter the guarantee.

Interpretation and Common Pitfalls

The class assumption is most useful when the covariance matrix has few dominant off-diagonal entries per row and a limited tail of weaker ones. Thresholding can then remove many noisy small entries while controlling the approximation error. A larger threshold removes more weak relationships but also risks discarding real ones; a smaller threshold preserves more signal but can retain more noise. The deterministic bound quantifies this trade-off under its stated assumptions, but it does not choose a threshold or establish that the uniform error event holds.

  • Confusing exact and approximate sparsity. A \(q=0\) bound counts nonzeros. A positive-\(q\) bound controls a sum of magnitudes and does not require exact zeros.
  • Applying the condition to the diagonal. Row sparsity here concerns off-diagonal covariances. Variances are not screened by this definition.
  • Reading a bound as a support guarantee. A radius \(R\) alone does not identify which entries matter or say that every entry below a chosen size is truly zero.
  • Assuming the thresholded matrix is automatically a covariance matrix. Symmetric entrywise screening preserves symmetry when applied consistently, but it need not preserve positive semidefiniteness. Any required positive-definite repair is a separate step.
  • Using the error theorem without its noise condition. The result depends on a uniform entrywise bound and on \(\lambda>\delta\). Without them, the stated retained-entry count and error bound do not follow.

The practical message is that sparsity assumptions connect local structure in each row to the cost of entrywise approximation. They supply a mathematical reason to screen entries, while the noise level and the chosen loss determine whether a particular screening procedure is appropriate.

Check Your Understanding

Use the definitions and bounds in this tutorial to answer the following questions.

  1. What is the difference between a row-\(s\)-sparse condition and a positive-\(q\) row-sparsity bound?
  2. If a row satisfies \(\sum_{j\ne i}|\sigma_{ij}|^q\leq R\), why can there be at most \(Rt^{-q}\) entries with magnitude greater than \(t\)?
  3. For \(0<q<1\), explain why the squared magnitude of an entry no larger than \(t\) is bounded by \(t^{2-q}|\sigma_{ij}|^q\).
  4. Why is the condition \(\lambda>\delta\) needed for the retained-entry count in the thresholding error result?
  5. Why does consistent symmetric entrywise thresholding not, by itself, guarantee a positive-semidefinite matrix?
Clinical Biostats