Why Covariance Entries Need Different Cutoffs
A covariance matrix can contain variables measured on very different scales. The sample covariance of two variables with large marginal variances typically fluctuates more in absolute terms than the sample covariance of two low-variance variables. Consequently, a fixed numerical cutoff does not represent the same level of evidence against zero for every matrix entry.
Entry-specific thresholding addresses this mismatch by scaling the cutoff for entry \((i,j)\) according to the marginal variability of variables \(i\) and \(j\), as well as the sample size. The purpose is not to declare a covariance significant or to provide a hypothesis test. It is to regularize a noisy covariance estimate in a scale-aware way.
The factor \(\sqrt{S_{ii}S_{jj}}\) has covariance units: it is the product of the two marginal standard deviations. The factor \(\sqrt{\log p/n}\) decreases as the sample size grows and increases slowly with the number of variables, reflecting the need to control many entries at once. The tuning constant \(\tau\) sets the overall aggressiveness of the regularization. This tutorial concerns how to choose the scale of each cutoff, not how to choose a particular hard or soft thresholding rule.
Where the Entrywise Noise Scale Comes From
The marginal-product scale is not arbitrary. For normally distributed observations, the variance of a sample covariance can be calculated exactly. This result also shows why the covariance itself contributes to the noise when the true entry is nonzero.
Proof. Center each observation at \(\mu\), and apply an orthogonal transformation to the \(n\) observation indices whose first row is proportional to \((1,\ldots,1)\). Under the multivariate normal model, the \(n-1\) transformed vectors orthogonal to this first row are independent \(N_p(0,\Sigma)\) vectors. The usual centered sample covariance is the average of their cross-products: $$ S_{ij}=\frac{1}{n-1}\sum_{r=1}^{n-1}Z_{ri}Z_{rj}, $$ where the vectors \(Z_r\) are independent \(N_p(0,\Sigma)\). Each product has expectation \(E[Z_{ri}Z_{rj}]=\Sigma_{ij}\). By the Gaussian fourth-moment identity, $$ E[Z_{ri}^{\,2}Z_{rj}^{\,2}]=\Sigma_{ii}\Sigma_{jj}+2\Sigma_{ij}^{\,2}. $$ Therefore $$ \operatorname{Var}(Z_{ri}Z_{rj}) =E[Z_{ri}^{\,2}Z_{rj}^{\,2}]-\{E[Z_{ri}Z_{rj}]\}^{2} =\Sigma_{ii}\Sigma_{jj}+\Sigma_{ij}^{\,2}. $$ The \(n-1\) products in the sum are independent, so the variance of their average is this quantity divided by \(n-1\). Their average expectation is \(\Sigma_{ij}\). This proves both claims. \(\square\)
For a zero covariance, the exact standard deviation is thus proportional to \(\sqrt{\Sigma_{ii}\Sigma_{jj}/n}\), up to the immaterial distinction between \(n\) and \(n-1\) at large \(n\). For a nonzero covariance, the additional \(\Sigma_{ij}^{\,2}\) term can increase the variance, but the marginal-product scale remains a natural baseline. In high-dimensional settings, a factor involving \(\sqrt{\log p}\) is commonly added to make cutoffs more conservative when many entries are considered together. The precise tuning constant depends on the distributional assumptions and the desired regularization behavior.
Worked Examples: Applying Adaptive Cutoffs
Worked Example: A Matrix With Two Marginal Scales
Suppose \(p=100\), \(n=10{,}000\), and estimated marginal variances are either \(1\) or \(100\). Use \(\tau=2\). Calculate the thresholds for a low-variance pair, a mixed pair, and a high-variance pair.
First calculate the common factor: $$ 2\sqrt{\frac{\log(100)}{10{,}000}} =2\sqrt{\frac{4.60517}{10{,}000}} \approx 0.04292. $$ For a pair with estimated variances \(1\) and \(1\), the marginal-product scale is \(\sqrt{1\cdot1}=1\), giving \(\hat\lambda_{ij}\approx0.04292\).
For a mixed pair with variances \(1\) and \(100\), the scale is \(\sqrt{1\cdot100}=10\). Its threshold is \(10(0.04292)\approx0.4292\). For a pair with variances \(100\) and \(100\), the scale is \(\sqrt{100\cdot100}=100\), and its threshold is \(100(0.04292)\approx4.292\).
The same sample size and dimension therefore produce thresholds that differ by factors of 10 and 100 across these pairs. A single cutoff cannot match all three noise scales.
Worked Example: A Global Cutoff Can Keep a Noisy Entry
Continue with \(p=100\), \(n=10{,}000\), and \(\tau=2\). Consider two variables with estimated variances \(100\) and \(100\), whose true covariance is zero and whose population variances are both \(100\). Suppose their observed sample covariance is \(0.20\). Compare an adaptive cutoff with a single global cutoff set at the smallest adaptive scale in a matrix that also contains variance-\(1\) variables.
For this high-variance pair, the adaptive threshold is $$ 2\sqrt{\frac{100\cdot100\log(100)}{10{,}000}} =2\sqrt{4.60517}\approx4.292. $$ Thus the hard-thresholded entry is set to zero because \(|0.20|<4.292\).
For a variance-\(1\), variance-\(1\) pair, the adaptive threshold is about \(0.04292\). If that smallest cutoff is instead applied globally, the high-variance entry \(0.20\) is retained because \(0.20>0.04292\). Yet under the stated Gaussian null, the standard deviation of this sample covariance is $$ \sqrt{\frac{100\cdot100}{9{,}999}} =\frac{100}{\sqrt{9{,}999}} \approx1.00005. $$ So \(0.20\) is only about \(0.20/1.00005\approx0.20\) standard deviations from zero. Keeping it under the small global cutoff is not persuasive evidence that it represents a meaningful covariance; it illustrates how a cutoff calibrated to low-variance entries can retain ordinary noise in a high-variance block.
A global cutoff calibrated instead to the largest marginal-product scale would be approximately \(4.292\). That would remove this \(0.20\) entry, but it would also remove entries from low-variance pairs that exceed their appropriate adaptive cutoff.
Worked Example: A Global Cutoff Can Remove a Low-Noise Signal
In the same setting, suppose a variance-\(1\), variance-\(1\) pair has a true covariance of \(0.14\), and its observed sample covariance is \(0.14\). Its adaptive threshold is about \(0.04292\), so hard thresholding retains the entry because \(0.14>0.04292\).
A global cutoff chosen to cover the largest marginal-product scale is $$ 2\sqrt{\frac{100\cdot100\log(100)}{10{,}000}}\approx4.292. $$ Since \(0.14<4.292\), that global rule sets the low-variance entry to zero. The numerical comparison is not a claim that every entry above its threshold is a true signal. It demonstrates the mismatch: the global cutoff is about 100 times the low-variance pair's adaptive threshold, so it can erase a covariance that is large relative to that pair's sampling-noise scale.
Worked Example: Three Different Cutoffs in One Matrix
Let \(p=50\), \(n=5{,}000\), \(\tau=2\), and suppose three variables have estimated variances \(1\), \(4\), and \(16\). Calculate the adaptive thresholds for pairs \((1,2)\), \((2,3)\), and \((1,3)\), then apply hard thresholding to observed covariances \(0.12\), \(0.30\), and \(0.20\), respectively.
The common factor is $$ 2\sqrt{\frac{\log(50)}{5{,}000}} =2\sqrt{\frac{3.91202}{5{,}000}} \approx0.05594. $$ For pair \((1,2)\), the marginal-product scale is \(\sqrt{1\cdot4}=2\), so the cutoff is \(2(0.05594)\approx0.1119\). The observed value \(0.12\) exceeds it and is retained.
For pair \((2,3)\), the scale is \(\sqrt{4\cdot16}=8\), giving a cutoff of \(8(0.05594)\approx0.4475\). Since \(0.30<0.4475\), this entry is set to zero. For pair \((1,3)\), the scale is \(\sqrt{1\cdot16}=4\), giving a cutoff of \(4(0.05594)\approx0.2238\). Since \(0.20<0.2238\), this entry is also set to zero. Each decision is made against the scale of its own pair, rather than against one common absolute number.
A Deterministic Guarantee for Hard Thresholding
The threshold scale describes how much error is plausible; a simple deterministic fact explains what thresholding can guarantee once an entrywise error bound is available. It does not require a Gaussian model.
Proof. If \(|x|\le\lambda\), hard thresholding returns zero. The triangle inequality gives $$ |\theta|\le|\theta-x|+|x|\le\lambda+\lambda=2\lambda, $$ so the error is at most \(2\lambda\). If \(|x|>\lambda\), the estimate is retained, and its error is \(|x-\theta|\le\lambda\le2\lambda\). When \(\theta=0\), the assumed bound gives \(|x|=|x-\theta|\le\lambda\), so the rule returns zero. These cases prove both claims. \(\square\)
Applied entry by entry, this result says that if every sample covariance error is no larger than its corresponding cutoff, hard thresholding cannot create an error larger than twice that cutoff, and it removes all truly zero entries under that same bound. In practice the errors are random, and the estimated marginal variances make the cutoffs data-dependent. The theorem is therefore a conditional deterministic guarantee, not a claim that the required error bound always holds.
Using Estimated Marginal Variances Carefully
The population-scale version of the cutoff would use \(\Sigma_{ii}\) and \(\Sigma_{jj}\), which are unknown. Replacing them with \(S_{ii}\) and \(S_{jj}\) gives the practical adaptive rule. This substitution makes the cutoff entry-specific without requiring a separate estimate of every covariance's noise variance.
Because the diagonal estimates are themselves random, a very small sample variance can produce an unusually small threshold. In applications, inspect marginal variance estimates for near-zero values or instability, and make sure variables have been measured and coded as intended. If a variance is exactly zero, its covariance with every variable is also zero in the population; a positive threshold formula is not a remedy for a degenerate variable.
The logarithmic factor is a high-dimensional calibration, not a universal constant with the same optimal value under every distribution and loss. Its motivation is simultaneous control across many entries: even if each entry has a small chance of a large error, a matrix with many entries has many opportunities for such an error. Distributional tail behavior and the desired degree of sparsity affect the appropriate tuning constant.
Common Mistake and Practical Interpretation
- Using the largest or smallest cutoff without stating the tradeoff. A small global cutoff can leave noisy high-variance entries in place; a large one can erase low-variance covariances that exceed their own noise scale.
- Confusing marginal variances with marginal standard deviations. The threshold uses \(\sqrt{S_{ii}S_{jj}}\). If both variances are 100, this scale is \(\sqrt{100\cdot100}=100\), not 10.
- Interpreting a retained entry as a discovery. Thresholding is an estimation procedure. Retention does not by itself establish that the population covariance is nonzero.
- Assuming entrywise thresholding preserves every matrix property. Symmetric thresholds preserve symmetry when applied consistently to \(S_{ij}\) and \(S_{ji}\), but thresholding need not preserve positive definiteness.
Check Your Understanding
Work through these questions by identifying the relevant marginal-product scale before comparing an entry with its cutoff.
- With \(p=100\), \(n=10{,}000\), and \(\tau=2\), what is the adaptive threshold for a pair with estimated variances \(4\) and \(25\)?
- Why is the Gaussian standard deviation of a zero sample covariance proportional to \(\sqrt{\Sigma_{ii}\Sigma_{jj}/(n-1)}\), rather than to either marginal variance alone?
- Suppose a single global threshold is set using the largest marginal-product scale. What kind of covariance entries might it remove unnecessarily?
- Under the deterministic theorem, if \(\theta=0\) and \(|x-\theta|\le\lambda\), why must hard thresholding return zero?
- Does retaining a covariance entry after thresholding prove that its population covariance is nonzero? Explain the distinction.