Tutorials › Statistical Learning (Graduate) › Gaussian Threshold Calibration for Wavelet Regression

Series and Wavelet Estimation · Tutorial 456 of 989

Gaussian Threshold Calibration for Wavelet Regression

Calibrate wavelet coefficient thresholds from Gaussian noise levels and coefficient counts, with finite-sample simultaneous error guarantees.

Advanced 10 min read

What You'll Learn

  • Express a noisy wavelet coefficient as a true coefficient plus Gaussian error.
  • Derive a Gaussian tail bound and use it to calibrate a simultaneous threshold.
  • Explain why the universal threshold grows with the number of coefficients.
  • Choose scale-dependent thresholds using level-specific coefficient counts and error budgets.
  • Distinguish a finite-sample error guarantee from the conventional universal-threshold rule.
  • Identify when a plug-in noise estimate requires extra calibration.

Why Thresholds Depend on the Noise and the Number of Coefficients

A wavelet threshold is intended to separate coefficients carrying signal from fluctuations caused by noise. Even when every true coefficient is zero, a large collection of noisy estimates will usually contain some large values. A threshold that seems adequate for one coefficient can therefore be too permissive when applied to thousands. Calibration must account for both the noise scale and the number of coefficients being examined.

The goal here is a precise Gaussian benchmark: choose thresholds so that the probability of any pure-noise coefficient exceeding its threshold is controlled. This is simultaneous error control. It differs from calibrating the probability for one coefficient, and it does not require the coefficient noises to be independent.

Definition: For a finite set of wavelet coefficients indexed by \(\mathcal I\), write \(M=|\mathcal I|\) and model each estimate as \(\hat\theta_i=\theta_i+\varepsilon_i\), \(i\in\mathcal I\), where \(\theta_i\) is the true coefficient. In the homoskedastic Gaussian model, \(\varepsilon_i\sim N(0,\sigma^2)\). A threshold \(\lambda\) gives simultaneous noise control at level \(\alpha\) if \(P(\max_{i\in\mathcal I}|\varepsilon_i|>\lambda)\leq\alpha\), where \(0<\alpha<1\).

For an orthonormal transform of independent Gaussian observation errors with common variance, the transformed errors are again Gaussian with the same variance and are independent. In applications, the coefficient-estimation variance may instead be \(\sigma^2/n\), or may vary by scale. The threshold must use the standard deviation of the coefficient error itself, not automatically the standard deviation of an individual observation.

A Gaussian Tail Bound

The basic calibration follows from a tail inequality for a standard normal random variable. The bound below is deliberately simple; its advantage is that it gives an explicit finite-sample guarantee after applying the union bound.

Theorem: If \(Z\sim N(0,1)\), then for every \(x\geq 0\), \(P(|Z|>x)\leq 2\exp(-x^2/2)\).

Proof. The moment-generating function of \(Z\) is \(E[\exp(sZ)]=\exp(s^2/2)\). For \(x>0\) and \(s>0\), Markov's inequality gives \(P(Z>x)=P(\exp(sZ)>\exp(sx))\leq \exp(-sx)E[\exp(sZ)]=\exp(-sx+s^2/2)\). Taking \(s=x\), which is positive because this part of the proof assumes \(x>0\), yields \(P(Z>x)\leq\exp(-x^2/2)\). The same argument applied to \(-Z\), which also has distribution \(N(0,1)\), gives \(P(Z<-x)\leq\exp(-x^2/2)\). Adding the two bounds proves the result for \(x>0\). At \(x=0\), \(P(|Z|>0)\leq 1\leq 2\), so the stated bound holds there as well. \(\square\)

Worked Example: Calibrating One Coefficient

Suppose a coefficient error has distribution \(N(0,0.2^2)\), and the desired bound on its two-sided exceedance probability is \(\alpha=0.1\). For one coefficient, the Gaussian tail inequality guarantees the target if \(2\exp[-\lambda^2/(2(0.2)^2)]\leq 0.1\).

Taking logarithms and rearranging gives \(\lambda\geq 0.2\sqrt{2\log(2/0.1)}=0.2\sqrt{2\log 20}\). Since \(\log 20\approx2.995732\), this is \(0.2\sqrt{5.991464}\approx0.4895\). The calculation controls one coefficient only. Applying the same threshold to a larger collection would not, by itself, guarantee that the probability of any exceedance remains at most \(0.1\).

Simultaneous Calibration and the Universal Threshold

When all \(M\) coefficients have error variance \(\sigma^2\), standardize each error as \(Z_i=\varepsilon_i/\sigma\). Each \(Z_i\) is standard normal. For any \(\lambda\geq0\), the union bound and the Gaussian tail inequality imply \(P(\max_i|\varepsilon_i|>\lambda)\leq 2M\exp[-\lambda^2/(2\sigma^2)]\). This argument does not assume independence: the union bound applies to any dependence structure among the errors.

Theorem: Suppose \(\varepsilon_i\sim N(0,\sigma^2)\) for each of \(M\geq1\) coefficients, with \(\sigma>0\). No independence assumption is needed. For \(0<\alpha<1\), the threshold \(\lambda_\alpha=\sigma\sqrt{2\log(2M/\alpha)}\) satisfies \(P(\max_{1\leq i\leq M}|\varepsilon_i|>\lambda_\alpha)\leq\alpha\).

Proof. Apply the union bound, then substitute the displayed threshold: \(P(\max_i|\varepsilon_i|>\lambda_\alpha)\leq\sum_{i=1}^M P(|\varepsilon_i|>\lambda_\alpha)\leq2M\exp[-\lambda_\alpha^2/(2\sigma^2)]\). Because \(\lambda_\alpha^2/(2\sigma^2)=\log(2M/\alpha)\), the right-hand side equals \(2M\exp[-\log(2M/\alpha)]=\alpha\). \(\square\)

The conventional universal threshold is \(\sigma\sqrt{2\log M}\) when \(M>1\). It describes the leading size of the largest among many Gaussian noise coefficients. It is not the same as the finite-sample threshold above for an arbitrary specified \(\alpha\): the latter includes the factor \(2/\alpha\) inside the logarithm to provide the stated union-bound guarantee. The universal threshold is a useful reference scale, not a promise of a particular finite-sample exceedance probability.

Worked Example: A Global Threshold for 256 Coefficients

Suppose 256 coefficient errors each have standard deviation \(\sigma=0.2\), and we want the probability of any noise exceedance to be at most \(\alpha=0.05\). The simultaneous threshold is \(\lambda_{0.05}=0.2\sqrt{2\log(2\cdot256/0.05)}=0.2\sqrt{2\log(10240)}\).

Using \(\log(10240)\approx9.234057\), we obtain \(\lambda_{0.05}=0.2\sqrt{18.468114}\approx0.2(4.29745)\approx0.8595\). The union-bound result guarantees \(P(\max_i|\varepsilon_i|>0.8595)\leq0.05\), up to rounding the displayed threshold. For comparison, the conventional universal threshold is \(0.2\sqrt{2\log(256)}=0.2\sqrt{11.090355}\approx0.6660\). That smaller value has the familiar universal-threshold scale, but it is not the threshold derived here for a 5% finite-sample guarantee.

The leading scale of the universal threshold can also be justified asymptotically when the errors are independent. Let \(Z_1,\ldots,Z_M\) be independent \(N(0,1)\) variables. Then \(\max_i|Z_i|/\sqrt{2\log M}\xrightarrow{p}1\) as \(M\to\infty\). For the upper bound, fix \(\epsilon>0\). The Gaussian tail inequality gives \(P(\max_i|Z_i|>(1+\epsilon)\sqrt{2\log M})\leq2M^{1-(1+\epsilon)^2}\), which tends to zero.

For the lower bound, put \(t=(1-\epsilon)\sqrt{2\log M}\), considering \(0<\epsilon<1\). For \(t>0\), the standard normal density \(\phi\) is decreasing on the positive half-line, so \(P(|Z_1|>t)\geq P(t\leq Z_1\leq t+1/t)\geq \phi(t+1/t)/t\). The last expression is \((2\pi)^{-1/2}t^{-1}\exp[-(t+1/t)^2/2]\). Consequently \(M P(|Z_1|>t)\to\infty\): its dominant power of \(M\) is \(M^{1-(1-\epsilon)^2}\), while the remaining factors have only logarithmic or constant order. Independence now gives \(P(\max_i|Z_i|\leq t)=(1-P(|Z_1|>t))^M\leq\exp[-M P(|Z_1|>t)]\to0\). Together these bounds establish the convergence in probability and explain why \(\sqrt{2\log M}\) is the natural leading scale. \(\square\)

Scale-Dependent Thresholds

Wavelet levels contain different numbers of coefficients, and their coefficient errors need not have the same variance. A single global threshold can therefore be unnecessarily severe at some levels or insufficiently calibrated at others. The same simultaneous argument can be applied separately at each level and the allowable error probability allocated across levels.

Definition: Let level \(j\) contain \(m_j\) coefficients, each with Gaussian error standard deviation \(\sigma_j>0\). Choose numbers \(\alpha_j>0\) such that \(\sum_j\alpha_j\leq\alpha\). The level-specific threshold \(\lambda_j=\sigma_j\sqrt{2\log(2m_j/\alpha_j)}\) satisfies \(P(\text{at least one level-}j\text{ error exceeds }\lambda_j)\leq\alpha_j\). Across all included levels, the probability of any exceedance is at most \(\alpha\). No independence across coefficients or levels is required.

To see the final claim, apply the single-level bound at each level and then take a union bound over levels: \(P(\text{any exceedance})\leq\sum_jP(\text{an exceedance at level }j)\leq\sum_j\alpha_j\leq\alpha\). Thus the allocation determines how the total error budget is distributed. Equal allocation is simple, but other choices may be appropriate when levels have different roles. A larger \(m_j\) raises the threshold through the logarithm, and a smaller allocated \(\alpha_j\) raises it as well.

Worked Example: Three Wavelet Levels

Suppose levels 2, 3, and 4 contain \(m_2=32\), \(m_3=64\), and \(m_4=128\) coefficients. Assume their errors all have standard deviation \(0.05\). Allocate \(\alpha_j=1/60\) to each level, so the total allocation is \(3/60=0.05\).

At level 2, \(2m_2/\alpha_2=64\cdot60=3840\), so \(\lambda_2=0.05\sqrt{2\log(3840)}\approx0.2031\). At level 3, \(2m_3/\alpha_3=128\cdot60=7680\), giving \(\lambda_3=0.05\sqrt{2\log(7680)}\approx0.2115\). At level 4, \(2m_4/\alpha_4=256\cdot60=15360\), giving \(\lambda_4=0.05\sqrt{2\log(15360)}\approx0.2195\).

The thresholds rise with the number of coefficients because each larger level offers more chances for a large noise fluctuation. By the single-level guarantees and the union bound across these three levels, the probability of any exceedance is at most \(1/60+1/60+1/60=0.05\).

Worked Example: A Small Family and a Chosen Error Budget

Suppose a scale has \(m=3\) coefficients, each with error standard deviation \(0.2\), and receives an error budget \(\alpha_j=0.1\). The simultaneous threshold is \(\lambda_j=0.2\sqrt{2\log(2\cdot3/0.1)}=0.2\sqrt{2\log60}\).

Since \(\log60\approx4.094345\), the threshold is \(0.2\sqrt{8.188690}\approx0.2(2.86159)\approx0.5723\). The calculation controls the probability that any of these three errors exceeds the threshold by \(0.1\) or less. It does not say that each individual coefficient has exceedance probability \(0.1\); each individual probability is bounded by the stronger single-coefficient contribution implicit in the familywise guarantee.

Interpretation, Limitations, and a Common Pitfall

Threshold calibration concerns the noise event \(\max_i|\hat\theta_i-\theta_i|\leq\lambda\). On this event, every coefficient estimation error is below its threshold. Thresholding rules use this comparison to decide which estimated coefficients to retain or shrink, but the probability bound alone does not establish that a particular threshold minimizes mean squared error or gives the best reconstruction. Those questions also depend on the true coefficient sizes and the loss being considered.

A frequent mistake is to use a one-coefficient Gaussian cutoff for every coefficient and then claim the same error probability for the entire wavelet expansion. If there are \(M\) coefficients, the probability of at least one exceedance can be much larger than the probability for one coefficient. The correction is to calibrate against the family size, either globally or level by level with an explicit error allocation.

A second practical issue is that \(\sigma\) or \(\sigma_j\) is often unknown. Replacing it with an estimate and inserting that estimate into the formula does not automatically preserve the stated Gaussian guarantee: the threshold is then random, and the preceding proof assumes the standard deviation used in the calculation is correct. Exact control with estimated noise requires an additional argument accounting for its uncertainty. Similarly, if Gaussianity is not justified, these Gaussian tail calculations should not be treated as distribution-free guarantees.

The central calibration principle is simple: identify the standard deviation of each coefficient error, count the coefficients covered by the claim, and specify the desired simultaneous error probability. The logarithm makes the threshold increase slowly with the number of coefficients, but ignoring that increase can still undermine a global noise-control claim.

Check Your Understanding

Work through these questions using the Gaussian calibration results.

  1. Why does a threshold chosen to control one coefficient's exceedance probability not automatically control the probability of any exceedance among \(M\) coefficients?
  2. For \(M\) coefficients with error standard deviation \(\sigma\), write the threshold that guarantees a simultaneous exceedance probability at most \(\alpha\) by the union-bound result.
  3. If a wavelet level has more coefficients than another level but the same error standard deviation and error allocation, which level receives the larger threshold, and why?
  4. Suppose three levels each receive error allocation \(0.02\). What upper bound does the union bound give for the probability of any exceedance across the three levels?
  5. Why does substituting an estimated noise standard deviation into a Gaussian threshold formula not, by itself, establish the same finite-sample guarantee?
Clinical Biostats