Tutorials › Statistical Learning (Graduate) › Block Thresholding of Wavelet Coefficients

Series and Wavelet Estimation · Tutorial 457 of 989

Block Thresholding of Wavelet Coefficients

Learn how blockwise energy decisions combine neighboring wavelet coefficients, how their risk differs from termwise thresholding, and when grouping is useful.

Advanced 11 min read

What You'll Learn

  • Define hard block thresholding in a Gaussian wavelet sequence model.
  • Derive the exact risk decomposition for a block decision.
  • Bound the risk of falsely retaining a null block.
  • Compare blockwise and termwise decisions for dense and sparse signals.
  • Identify assumptions and common misuses of block thresholding.

Why Make a Decision About a Block?

Wavelet representations can describe a function with many small coefficients and a smaller number of important ones. Termwise thresholding makes a separate retain-or-delete decision for every coefficient. That can work well when the signal is sparse, but it ignores a useful form of structure: coefficients at nearby locations and a common resolution may carry information about the same local feature. A block decision pools their observed energy before deciding whether to retain them.

Pooling is not automatically better. It can make a collection of individually modest but jointly informative coefficients easier to detect; it can also dilute a single strong coefficient by requiring the whole block to pass a threshold. To make these trade-offs precise, begin with the Gaussian sequence model, in which the coefficient noise and the block risk can be analyzed directly.

Definition: In the Gaussian sequence model, an observed coefficient satisfies \(Y_i=\theta_i+\tau Z_i\), where \(\theta_i\) is the unknown coefficient, \(\tau>0\) is the noise standard deviation, and the \(Z_i\) are independent \(N(0,1)\) random variables. For a block \(B\) of \(L\) indices, write \(Y_B=(Y_i:i\in B)\) and \(\theta_B=(\theta_i:i\in B)\). A hard block-threshold estimator retains every observed coefficient in \(B\) if the block energy exceeds a threshold, and otherwise sets every coefficient in \(B\) to zero.

A common threshold is proportional to the total noise energy expected in the block. For a constant \(\lambda>0\), define

$$ \widehat{\theta}_B = Y_B\,\mathbf{1}\{\|Y_B\|^2>\lambda L\tau^2\}. $$

Here \(\mathbf{1}\{\cdot\}\) is the indicator of the event in braces, and \(\|v\|^2=\sum_{i\in B}v_i^2\). This is a group decision: if the block passes, even a small observed coefficient is retained; if it fails, even the largest observed coefficient is deleted. In a wavelet basis, blocks are often formed from neighboring locations at a fixed resolution. The sequence-model calculations below apply directly when the coefficient errors are independent Gaussian variables with common variance \(\tau^2\).

Worked Decisions and Their Scale

Worked Example: Applying an Energy Threshold

Suppose a block has \(L=4\), the noise variance is \(\tau^2=0.01\), and \(\lambda=2\). Its energy threshold is \(\lambda L\tau^2=2\cdot4\cdot0.01=0.08\). For observed coefficients \(Y_B=(0.16,-0.08,0.04,0.12)\), the observed energy is

$$ \|Y_B\|^2=0.16^2+(-0.08)^2+0.04^2+0.12^2 =0.0256+0.0064+0.0016+0.0144 =0.048. $$

Since \(0.048<0.08\), the block is deleted and \(\widehat{\theta}_B=(0,0,0,0)\). If instead the last observed coefficient were \(0.24\), the energy would be \(0.0256+0.0064+0.0016+0.0576=0.0912\), which exceeds the threshold. The entire modified block would then be retained, including its small entries.

Worked Example: The Noise Scale of a Block

Under a zero signal, \(\theta_B=0\), and \(\|Y_B\|^2/\tau^2\) has a chi-squared distribution with \(L\) degrees of freedom. Its expectation is \(L\), so the expected noise energy is \(L\tau^2\). For \(L=8\) and \(\tau^2=0.04\), this expectation is \(8(0.04)=0.32\). With \(\lambda=2\), the block threshold is \(2(8)(0.04)=0.64\), twice the expected noise energy.

This comparison does not mean that a block with energy just above \(0.32\) is necessarily signal. Noise energy varies from block to block. The threshold is a decision rule, and its false-retention probability depends on the full distribution of that energy, not only its mean.

Risk of a Block Decision

Use squared-error loss for a block, \(\|\widehat{\theta}_B-\theta_B\|^2\), and let \(r=\|\theta_B\|^2\) denote its true signal energy. The next identity separates the two possible errors: noise retained when a block is kept, and signal discarded when it is deleted.

Result: Let \(A=\{\|Y_B\|^2>\lambda L\tau^2\}\). For the hard block-threshold estimator,
$$ E\|\widehat{\theta}_B-\theta_B\|^2 = E\!\left[\|\tau Z_B\|^2\mathbf{1}_A\right] + r\,P(A^c), $$

where \(Z_B=(Z_i:i\in B)\). In particular, the risk is bounded above by \(L\tau^2+r\).

Proof. On \(A\), the estimator equals \(Y_B\), so its error is \(Y_B-\theta_B=\tau Z_B\). On \(A^c\), it equals zero, so its error is \(-\theta_B\), with squared norm \(r\). Splitting the expectation over these disjoint events gives the identity. Since \(\mathbf{1}_A\leq1\) and \(E\|\tau Z_B\|^2=L\tau^2\), the first term is at most \(L\tau^2\), while the second is at most \(r\). \(\square\)

An idealized blockwise oracle would know \(\theta_B\) and choose in advance whether to retain the whole block or delete it. Retaining it has expected squared-error risk \(L\tau^2\); deleting it has risk \(r\). Thus the oracle risk is \(\min(r,L\tau^2)\). The data-driven threshold does not know which choice is better, and its extra difficulty is deciding from noisy observations. In particular, the preceding upper bound is a basic decomposition, not a claim that the threshold estimator always attains the oracle risk.

Controlling False Retention of a Null Block

A useful guarantee is available when the entire block is null. It shows explicitly how block length and threshold multiplier affect the expected cost of retaining noise.

Theorem: Suppose \(\theta_B=0\), and let \(\lambda>1\). For the block-threshold estimator with threshold \(\lambda L\tau^2\),
$$ E\|\widehat{\theta}_B\|^2 \leq \tau^2 L\lambda \exp\!\left\{-\frac{L}{2}(\lambda-1-\log\lambda)\right\}. $$

Proof. Under the null, set \(S=\|Y_B\|^2/\tau^2\). Then \(S\) is chi-squared with \(L\) degrees of freedom and \[ E\|\widehat{\theta}_B\|^2 =\tau^2 E[S\mathbf{1}\{S>\lambda L\}]. \] For any \(s>0\), on \(S>\lambda L\) we have \(1\leq e^{s(S-\lambda L)}\). Therefore \[ E[S\mathbf{1}\{S>\lambda L\}] \leq e^{-s\lambda L}E[Se^{sS}]. \] The chi-squared moment-generating function is \(E[e^{sS}]=(1-2s)^{-L/2}\) for \(0<s<1/2\). Differentiating this expression gives \[ E[Se^{sS}]=L(1-2s)^{-L/2-1}. \] Choose \(s=(1-1/\lambda)/2\), which lies in \((0,1/2)\) because \(\lambda>1\). Then \(1-2s=1/\lambda\), and \[ e^{-s\lambda L}E[Se^{sS}] = e^{-(\lambda-1)L/2}L\lambda^{L/2+1} = L\lambda\exp\!\left\{-\frac{L}{2}(\lambda-1-\log\lambda)\right\}. \] Multiplying by \(\tau^2\) proves the bound. \(\square\)

Worked Example: Evaluating a Null-Block Bound

Take \(L=8\), \(\lambda=2\), and \(\tau^2=1\). The threshold is \(\lambda L\tau^2=16\). The theorem bounds the null-block risk by

$$ 16\exp\{-4(1-\log 2)\} = 16\exp\{-1.227411\ldots\} \approx 16(0.29305) \approx 4.6888. $$

To two decimal places this is \(4.69\). The bound is on expected retained noise energy, not the probability of retaining the null block, and it need not be close to the actual risk. Its exponential factor displays the basic trade-off: increasing \(\lambda\) reduces false retention, while also making it harder for a genuine signal block to pass.

When Grouping Helps—and When It Hurts

For a block, the observed energy aggregates contributions across coordinates. If many coefficients in a block are moderately sized, each may be hard to distinguish from noise alone, while their combined energy can cross a group threshold. For a signal with \(L\) equal coefficients \(a\), the signal energy is \(La^2\); the noise energy has mean \(L\tau^2\). This accumulation is the basic reason a grouped rule can detect a spatially distributed feature that termwise rules miss. It is not a guarantee of lower risk for every signal: the decision still depends on the random observed energy and on the chosen threshold.

Worked Example: A Dense Signal That Passes as a Group

Let \(L=16\), \(\tau=1\), and \(\lambda=2\), so the block threshold is \(32\), or a norm threshold of \(\sqrt{32}\approx5.657\). Suppose the observed coefficients are all \(1.5\). Each has magnitude below a termwise cutoff of \(2\), so that termwise hard thresholding deletes all 16. The block energy, however, is

$$ \|Y_B\|^2=16(1.5)^2=16(2.25)=36>32. $$

The block rule retains all 16 observations. If the underlying coefficients are also all \(1.5\), the realized squared error of the termwise estimate is \(16(1.5)^2=36\); the block estimate equals the observations and has realized error zero. This is a comparison for the specified observations and signal, not a general risk ordering: under repeated sampling, the observations fluctuate, and another threshold or signal pattern can reverse the comparison.

The corresponding weakness is most apparent for a sparse block. A group can fail because the energy is insufficient, even when one coefficient is strong enough to be retained by a termwise rule. A group can also pass because several noisy coordinates collectively produce a large energy; once it passes, noise in every coordinate is retained. Block construction and threshold calibration therefore encode assumptions about how signal energy is distributed.

Worked Example: A Sparse Signal That Is Diluted by Grouping

Use \(L=16\), \(\tau=1\), and \(\lambda=2\) again, giving the energy threshold \(32\). Consider observed coefficients \(Y_B=(5,0,\ldots,0)\), with one entry equal to 5 and the other 15 equal to zero. The block energy is \(5^2=25<32\), so block thresholding deletes the entire block. With termwise hard threshold \(2\), the coefficient 5 is retained and the other entries are deleted. If the true block is \(\theta_B=(5,0,\ldots,0)\), the realized squared error is 25 for block thresholding and zero for the termwise estimate. This illustrates the cost of grouping when the signal is concentrated in only one coordinate.

Practical Interpretation and Common Mistakes

In wavelet regression, an orthonormal basis makes squared \(L^2\) error correspond to a sum of squared coefficient errors. Consequently, block risk calculations can be added across disjoint blocks when the coefficient model and loss have the required orthonormal structure. The Gaussian sequence results above rely on independent, equal-variance Gaussian coefficient errors; if the errors are correlated or have unequal variances, the null energy distribution and the calibration must be reconsidered. Blocks should be chosen to reflect plausible local dependence or clustering in the signal, rather than solely to simplify notation.

  • Confusing the energy threshold with a norm threshold. The rule compares \(\|Y_B\|^2\) with \(\lambda L\tau^2\). Equivalently, it compares \(\|Y_B\|\) with \(\sqrt{\lambda L}\tau\), not with \(\lambda L\tau^2\).
  • Assuming grouping uniformly improves risk. Grouping can help dense or clustered signals and hurt isolated signals. Its benefit depends on the signal pattern, noise, block length, and threshold.
  • Interpreting the null bound as a selection probability. The theorem bounds expected retained squared noise, \(E[\|\widehat{\theta}_B\|^2]\) under a null block. It does not directly report \(P(A)\).
  • Using the Gaussian calibration under a different noise model without adjustment. The chi-squared calculation uses independent Gaussian coordinates with common variance. Dependence, heteroskedasticity, or non-Gaussian errors change the relevant tail behavior.
Key takeaway: Block thresholding pools neighboring coefficient energy and then makes one retain-or-delete decision for the group. It can exploit signals spread across a block, but pays for that pooling when a block is sparse or when noise pushes the total energy across the threshold.

Check Your Understanding

Use the Gaussian sequence model and the definitions in this tutorial.

  1. For a block of length \(L=5\) with \(\tau^2=0.2\) and \(\lambda=3\), calculate the energy threshold and the equivalent norm threshold.
  2. Explain why the risk identity has one term for retained noise and another for discarded signal.
  3. Under a null block, what distribution does \(\|Y_B\|^2/\tau^2\) have, and what does the null-block theorem bound?
  4. Describe a signal configuration for which block thresholding may outperform termwise thresholding, and explain the mechanism.
  5. Describe a configuration for which grouping may be disadvantageous. Why does this not contradict the possible benefit for a dense signal?
Clinical Biostats