Lecture 19

Denoising via shrinkage

Course edition
Fall 2026
Last updated
October 19, 2026

Part VI · Shrinkage and sparsity (optional) · Lecture 2 of 3

Student PDFReport an issue

A guided route

Lecture map

See the Lecture-specific exam scope. Follow the topic links, and open optional branches when they help.

These notes support STAT 709 at the University of Wisconsin–Madison. Use them alongside the cited textbooks; corrections and questions are welcome.

Optional part.

This lecture belongs to optional Part VI and is not examined. Its high, mid and low labels organize a suggested reading path within the optional material; they do not add exam requirements. See the Part VI overview.

High priorityOverview

  • Structure. Shrinkage becomes more effective when it matches the signal structure.

  • Sparsity. A sparse representation suggests thresholding coordinates rather than shrinking every direction equally.

  • Main route. We connect smoothness to small transform coefficients, analyze soft thresholding in the Gaussian sequence model, and derive its relationship with orthogonal-design LASSO.

  • Optional extensions. Wavelets, sharp minimax constants and nonconvex penalties remain optional extensions.

Recap from earlier lecturesFrom Lectures 1 and 18: earlier ideas used here · 1 min

Reminder only: this block introduces no new exam requirements.

An asterisk in a topic heading marks optional material; the priority labels specify the reading scope.

Learning goals

High priorityIntroduction

We have seen that Stein’s shrinkage may help improve estimation. However, the effect of shrinkage is most pronounced if we exploit the sparsity structure, which is common in many problems.

1. Sparsity in data analysis

1.1. Motivation

Mid priorityMotivation

Q: Why is sparsity important?

  • (1) Occam’s razor. Better interpretability. Less is more.

  • (2) Variable selection. We collect more and more covariates or features in “Big Data Age,” but important ones are not many.

  • (3) Biological mechanism. Nature favors sparsity. Sparse coding in primary visual cortex, genetics, etc.

  • (4) Computation and memory. Data compression.

1.2. Quantifying sparsity

High priorityQuantifying sparsity

For a vector \(x \in \mathbb{R}^n\)x∈ℝnx \in \mathbb{R}^n, we say that \(x\)xx is \(s\)ss-sparse if \[\begin{aligned} \|x\|_0 := \sum_{j=1}^{n}\mathbb{1}(x_j \neq 0) \le s. \end{aligned}\]∥x∥0:=∑j=1n1(xj≠0)≤s.\begin{aligned} \|x\|_0 := \sum_{j=1}^{n}\mathbb{1}(x_j \neq 0) \le s. \end{aligned} In other words, the number of nonzeros in \(x\)xx is no larger than \(s\)ss. For this reason, it is often called exact sparsity. Despite its conventional name, \(\|x\|_0\)∥x∥0\|x\|_0 is a count, not a norm.

We can relax this definition by allowing entries of \(x\)xx to have very small nonzero values. For \(q \in (0, 2]\)q∈(0,2]q \in (0, 2], we use the \(\ell_q\)ℓq\ell_q norm for \(q\ge1\)q≥1q\ge1 and the \(\ell_q\)ℓq\ell_q quasinorm for \(0<q<1\)0<q<10<q<1 \[\begin{aligned} \| x \|_q := \Big( \sum_{j=1}^{n} |x_j|^q \Big)^{1/q} \le R. \end{aligned}\]∥x∥q:=(∑j=1n|xj|q)1/q≤R.\begin{aligned} \| x \|_q := \Big( \sum_{j=1}^{n} |x_j|^q \Big)^{1/q} \le R. \end{aligned} The radius \(R>0\)R>0R>0 measures coefficient size; it is not a count of nonzero entries.

  • When q is below one. First, when \(q < 1\)q<1q < 1, the above definition is only a quasinorm, since it does not satisfy the triangle inequality, but people often call it \(\ell_q\)ℓq\ell_q norm anyway.

  • Unit-region geometry. Second, as \(q\)qq gets smaller, the measurement is more stringent: the region of \(\| x \|_q \le 1\)∥x∥q≤1\| x \|_q \le 1 is smaller (Figure 1).

  • Exact-sparsity limit. Third, we have \(\|x\|_0 = \lim_{q\to 0} \|x\|_q^q\)∥x∥0=limq→0∥x∥qq\|x\|_0 = \lim_{q\to 0} \|x\|_q^q.

Nested two-dimensional norm contours: square for infinity, circle for two, diamond for one, and inward-curving sides for an exponent below one.

Sparse approximation.

Exact sparsity counts nonzero coordinates. Approximate sparsity instead asks whether retaining a few large coordinates gives small error in the chosen norm.

High priorityPractice: A nearly sparse vector

See Exercise 1 in Section 8 for the full statement and complete solution.

1.3. Smoothness and sparse representations

Mid prioritySmoothness and sparse representations

Smoothness is an important property in many fields and arises naturally in physical systems. Let’s consider a simple analysis to show that smoothness and sparsity are closely related.

Suppose \(f\)ff is a real, \(2\pi\)2π2\pi-periodic \(C^m\)CmC^m function, with \(m\ge1\)m≥1m\ge1. Its Fourier expansion (in \(L^2\)L2L^2) is \[f(x) = \frac{A_0}{2} + \sum_{k=1}^\infty \big[A_k \cos(kx) + B_k \sin(kx) \big]\]f(x)=A02+∑k=1∞[Akcos(kx)+Bksin(kx)]f(x) = \frac{A_0}{2} + \sum_{k=1}^\infty \big[A_k \cos(kx) + B_k \sin(kx) \big] The coefficients are determined by \[C_k = \frac{1}{\pi} \int_{-\pi}^\pi f(x) e^{ikx} \;dx\]Ck=1π∫−ππf(x)eikxdxC_k = \frac{1}{\pi} \int_{-\pi}^\pi f(x) e^{ikx} \;dx with \(A_0=C_0\)A0=C0A_0=C_0, and \(A_k,B_k\)Ak,BkA_k,B_k the real and imaginary parts of \(C_k\)CkC_k for \(k\ge1\)k≥1k\ge1. Assume the \(m\)mmth derivative is bounded: \[\sup_{x\in[-\pi, \pi]} \Big| \frac{d^m}{dx^m} f(x) \Big| \le C.\]supx∈[−π,π]|dmdxmf(x)|≤C.\sup_{x\in[-\pi, \pi]} \Big| \frac{d^m}{dx^m} f(x) \Big| \le C. Assume also that \(f^{(j)}(-\pi)=f^{(j)}(\pi)\)f(j)(−π)=f(j)(π)f^{(j)}(-\pi)=f^{(j)}(\pi) for \(j=0,\ldots,m-1\)j=0,…,m−1j=0,\ldots,m-1, so all boundary terms cancel. Then repeated integration by parts gives \[C_k = \frac{(-1)^m}{(ik)^m} \cdot \frac{1}{\pi} \int_{-\pi}^\pi \frac{d^m}{dx^m} f(x) e^{ikx} \; dx \qquad \Longrightarrow\qquad |C_k|\le\frac{2C}{k^m}\]Ck=(−1)m(ik)m⋅1π∫−ππdmdxmf(x)eikxdx⇒|Ck|≤2CkmC_k = \frac{(-1)^m}{(ik)^m} \cdot \frac{1}{\pi} \int_{-\pi}^\pi \frac{d^m}{dx^m} f(x) e^{ikx} \; dx \qquad \Longrightarrow\qquad |C_k|\le\frac{2C}{k^m} So the high-frequency coefficients decay very fast. (We can measure the sparsity using \(\ell_q\)ℓq\ell_q norm with \(mq>1\)mq>1mq>1, since \(\sum k^{-mq}<\infty\)∑k−mq<∞\sum k^{-mq}<\infty).

2. Example: Wavelet transform*

Low priority — not examined: Example: Wavelet transform

We show an example of the NMR (nuclear magnetic resonance) data taken from [1].

Four panels compare a noisy NMR signal with its denoised reconstruction and its wavelet coefficients before and after hard thresholding.

2.1. Discrete Fourier transform

Low priority — not examined: Discrete Fourier transform

Given \(X \in \mathbb{R}^N\)X∈ℝNX \in \mathbb{R}^N, define \[\begin{aligned} \hat{X}_k = \sum_{n=0}^{N-1}X_n \exp\left(-\frac{i2\pi kn}{N}\right),\quad k = 0, 1, \ldots, N-1. \end{aligned}\]X̂k=∑n=0N−1Xnexp(−i2πknN),k=0,1,…,N−1.\begin{aligned} \hat{X}_k = \sum_{n=0}^{N-1}X_n \exp\left(-\frac{i2\pi kn}{N}\right),\quad k = 0, 1, \ldots, N-1. \end{aligned} Let \[\begin{aligned} F=\left(\exp(-\frac{i2\pi kn}{N})\right)_{0 \le k, n < N}\in \mathbb{C}^{N\times N}, \end{aligned}\]F=(exp(−i2πknN))0≤k,n<N∈ℂN×N,\begin{aligned} F=\left(\exp(-\frac{i2\pi kn}{N})\right)_{0 \le k, n < N}\in \mathbb{C}^{N\times N}, \end{aligned} satisfy \(F^*F=NI_N\)F*F=NINF^*F=NI_N; the normalized matrix \(F/\sqrt N\)F/NF/\sqrt N is unitary (the complex analogue of orthogonal). Then, \[\begin{aligned} \hat{X} = FX, \end{aligned}\]X̂=FX,\begin{aligned} \hat{X} = FX, \end{aligned} is essentially a change of basis, where \[\begin{aligned} F: \text{ time domain } \longleftrightarrow \text{ frequency domain.} \end{aligned}\]F: time domain ↔ frequency domain.\begin{aligned} F: \text{ time domain } \longleftrightarrow \text{ frequency domain.} \end{aligned}

Constant, sine and cosine basis functions oscillate across the full interval, in contrast with the localized wavelets in the next figure.

2.2. Wavelet transform

Low priority — not examined: Wavelet transform
Quick Explanation
Fast wavelet transform

\[\begin{aligned} \begin{cases} \text{Fourier: localized in frequency.}\\ \text{Wavelet: localized in both time and frequency.} \end{cases} \end{aligned}\]{Fourier: localized in frequency.Wavelet: localized in both time and frequency.\begin{aligned} \begin{cases} \text{Fourier: localized in frequency.}\\ \text{Wavelet: localized in both time and frequency.} \end{cases} \end{aligned} A generic form: \[\begin{aligned} \psi_{jk}(t) = 2^{j/2}\psi(2^jt - k), \end{aligned}\]ψjk(t)=2j/2ψ(2jt−k),\begin{aligned} \psi_{jk}(t) = 2^{j/2}\psi(2^jt - k), \end{aligned} where in the RHS, \(\psi\)ψ\psi is the mother wavelet, \(2^j\)2j2^j is the scale, and \(k\)kk is the shift. For a suitable orthonormal mother wavelet, \(\{\psi_{jk}\}_{j,k\in\mathbb Z}\){ψjk}j,k∈ℤ\{\psi_{jk}\}_{j,k\in\mathbb Z} forms an orthonormal basis for \(L_2(\mathbb{R})\)L2(ℝ)L_2(\mathbb{R}). Pair \((j, k)\)(j,k)(j, k) indicates wavelet \(\psi_{jk}\)ψjk\psi_{jk}, at resolution \(j\)jj and approximate location \(k 2^{-j}\)k2−jk 2^{-j}.

Eight wavelets, vertically offset: increasing resolution narrows support, while changing location moves a wavelet horizontally.

For discrete data \(X=(X_l)_{l=1}^N\)X=(Xl)l=1NX=(X_l)_{l=1}^N, define \(\hat{X} = WX\)X̂=WX\hat{X} = WX, where \(W\in\R^{N\times N}\)W∈ℝN×NW\in\mathbb{R}^{N\times N} satisfies \(W^\top W=I_N\)W⊤W=INW^\top W=I_N and is a discrete wavelet transform1. Often \(\hat X\)X̂\hat X is sparse or approximately sparse; \(X=W^\top\hat X\)X=W⊤X̂X=W^\top\hat X reconstructs the signal from those coefficients. \[\begin{aligned} \begin{cases} \text{Smoothness of functions } \Longrightarrow \text{ Fourier coefficients decay fast. }\\ \text{(Piecewise) smoothness of functions } \Longrightarrow \text{ Wavelet coefficients sparse / decay fast. } \end{cases} \end{aligned}\]{Smoothness of functions ⇒ Fourier coefficients decay fast. (Piecewise) smoothness of functions ⇒ Wavelet coefficients sparse / decay fast. \begin{aligned} \begin{cases} \text{Smoothness of functions } \Longrightarrow \text{ Fourier coefficients decay fast. }\\ \text{(Piecewise) smoothness of functions } \Longrightarrow \text{ Wavelet coefficients sparse / decay fast. } \end{cases} \end{aligned}

3. Thresholding

3.1. Gaussian sequence model

High priorityGaussian sequence model

We assume that our observations follow the model:

\[\begin{aligned} Y_k = \theta_k + \sigma Z_k,\qquad \text{where}~Z_k \stackrel{\iid}{\sim} \mathcal{N}(0, 1). \end{aligned}\]Yk=θk+σZk,whereZk∼i.i.d.𝒩(0,1).\begin{aligned} Y_k = \theta_k + \sigma Z_k,\qquad \text{where}~Z_k \stackrel{\mathrm{i.i.d.}}{\sim} \mathcal{N}(0, 1). \end{aligned}

(1)

The observations \((Y_k)\)(Yk)(Y_k) can be regarded as transformed or preprocessed measurements. We have raw measurements \(X \in \mathbb{R}^n\)X∈ℝnX \in \mathbb{R}^n, target (unknown) discretized function \((f(t_k))_{k \le n}\)(f(tk))k≤n(f(t_k))_{k \le n}, \[\begin{aligned} X_k = f(t_k) + \sigma \omega_k,\quad \omega_k \stackrel{\iid}{\sim} \mathcal{N}(0, 1). \end{aligned}\]Xk=f(tk)+σωk,ωk∼i.i.d.𝒩(0,1).\begin{aligned} X_k = f(t_k) + \sigma \omega_k,\quad \omega_k \stackrel{\mathrm{i.i.d.}}{\sim} \mathcal{N}(0, 1). \end{aligned} Apply orthogonal transform \(Y = WX\)Y=WXY = WX where \(W\)WW is an orthogonal matrix (constructed from a real orthonormal Fourier basis or an orthogonal wavelet transform). Then we introduce \[\begin{aligned} (\theta_1,\ldots,\theta_n)^\top = W (f(t_1),\ldots, f(t_n))^\top. \end{aligned}\](θ1,…,θn)⊤=W(f(t1),…,f(tn))⊤.\begin{aligned} (\theta_1,\ldots,\theta_n)^\top = W (f(t_1),\ldots, f(t_n))^\top. \end{aligned} Since a standard Gaussian random vector remains standard Gaussian after orthogonal transformation, we obtain (1). In vector form,

\[\begin{aligned} Y \sim \mathcal{N}(\theta, \sigma^2 I_n). \end{aligned}\]Y∼𝒩(θ,σ2In).\begin{aligned} Y \sim \mathcal{N}(\theta, \sigma^2 I_n). \end{aligned}

(2)

Assumption.

We assume that \(\theta\in\mathbb{R}^n\)θ∈ℝn\theta\in\mathbb{R}^n is sparse, such that \[\begin{aligned} (\text{exact sparsity}) \qquad \|\theta\|_0 = \sum_{j=1}^{n} \mathbb{1}(\theta_j \neq 0) \le S. \qquad\qquad\qquad \end{aligned}\](exact sparsity)∥θ∥0=∑j=1n1(θj≠0)≤S.\begin{aligned} (\text{exact sparsity}) \qquad \|\theta\|_0 = \sum_{j=1}^{n} \mathbb{1}(\theta_j \neq 0) \le S. \qquad\qquad\qquad \end{aligned}

Orthogonal denoising.

A real orthogonal transform preserves independent spherical Gaussian noise and squared Euclidean error. This lets us estimate sparse coefficients and transform the estimate back without changing the risk.

High priorityPractice: Risk is preserved by an orthogonal transform

See Exercise 2 in Section 8 for the full statement and complete solution.

3.2. Thresholding functions

High priorityThresholding functions

Without the sparsity assumption, we may estimate \(\theta \in \R^n\)θ∈ℝn\theta \in \mathbb{R}^n via either the unbiased natural estimator \(Y\)YY or James–Stein estimator \((1 - \frac{(n-2)\sigma^2}{\|Y\|^2})Y\)(1−(n−2)σ2∥Y∥2)Y(1 - \frac{(n-2)\sigma^2}{\|Y\|^2})Y (assuming \(n\ge3\)n≥3n\ge3 and \(\sigma^2\)σ2\sigma^2 is known).

We exploit the sparsity assumption by estimation via two typical thresholding functions \(\hat{\theta}_{j}=T_\tau(Y_{j})\)θ̂j=Tτ(Yj)\hat{\theta}_{j}=T_\tau(Y_{j}).

  • (1) Hard Thresholding. \[\begin{aligned} \hat{\theta}_j = \begin{cases} Y_j, & \text{ if } |Y_j| > \tau\\ 0, & \text{ if } |Y_j| \le \tau. \end{cases} \end{aligned}\]θ̂j={Yj, if |Yj|>τ0, if |Yj|≤τ.\begin{aligned} \hat{\theta}_j = \begin{cases} Y_j, & \text{ if } |Y_j| > \tau\\ 0, & \text{ if } |Y_j| \le \tau. \end{cases} \end{aligned}

  • (2) Soft Thresholding. \[\begin{aligned} T_\tau(u) = \text{sgn}(u)(|u| - \tau)_+ = \arg\min_{v\in\mathbb{R}}\left\{\frac{1}{2}(v - u)^2 + \tau |v|\right\}. \end{aligned}\]Tτ(u)=sgn(u)(|u|−τ)+=argminv∈ℝ{12(v−u)2+τ|v|}.\begin{aligned} T_\tau(u) = \text{sgn}(u)(|u| - \tau)_+ = \arg\min_{v\in\mathbb{R}}\left\{\frac{1}{2}(v - u)^2 + \tau |v|\right\}. \end{aligned}

Determining thresholding level \(\tau\)τ\tau.

From lectures on convergence modes, we know that \[\begin{aligned} \frac{\|Z\|_\infty}{\sqrt{2\log n}}\stackrel p\longrightarrow1 \qquad \text{ as } n \to \infty. \end{aligned}\]∥Z∥∞2logn→p1 as n→∞.\begin{aligned} \frac{\|Z\|_\infty}{\sqrt{2\log n}}\stackrel p\longrightarrow1 \qquad \text{ as } n \to \infty. \end{aligned} For \(n\ge2\)n≥2n\ge2 and known \(\sigma>0\)σ>0\sigma>0, the universal threshold is\[\begin{aligned} \tau = \sqrt{2\sigma^2\log n}. \end{aligned}\]τ=2σ2logn.\begin{aligned} \tau = \sqrt{2\sigma^2\log n}. \end{aligned}

  • Chosen confidence. A finite-sample choice makes the confidence level explicit. A Gaussian tail bound and union bound give \[\PR\left(\max_j|\sigma Z_j|>\sigma\sqrt{2\log(2n/\alpha)}\right)\le\alpha,\qquad0<\alpha<1.\]ℙ(maxj|σZj|>σ2log(2n/α))≤α,0<α<1.\mathbb{P}\left(\max_j|\sigma Z_j|>\sigma\sqrt{2\log(2n/\alpha)}\right)\le\alpha,\qquad0<\alpha<1.

  • A sharper tail bound. At the universal threshold, Mills’ bound gives the sharper estimate \[\PR\left(\max_j|Z_j|>\sqrt{2\log n}\right)\le\frac{1}{\sqrt{\pi\log n}}\longrightarrow0.\]ℙ(maxj|Zj|>2logn)≤1πlogn→0.\mathbb{P}\left(\max_j|Z_j|>\sqrt{2\log n}\right)\le\frac{1}{\sqrt{\pi\log n}}\longrightarrow0.

  • Interpretation. Thus even the uninflated universal threshold removes all pure-noise coordinates with probability tending to one. Choosing \(1.01\sqrt{2\sigma^2\log n}\)1.012σ2logn1.01\sqrt{2\sigma^2\log n} also works, directly from the coarser union bound. Nonzero signal coordinates still incur estimation error.

Summary.

The transform-shrinkage approach is \[\begin{aligned} (X_k) \stackrel{W}{\longrightarrow} Y \mathop{\longrightarrow}_\text{Shrinkage}^{T_\tau} \hat{\theta} \stackrel{W^{-1}}{\longrightarrow} (\hat{f}(t_k)). \end{aligned}\](Xk)→WY→ShrinkageTτθ̂→W−1(f̂(tk)).\begin{aligned} (X_k) \stackrel{W}{\longrightarrow} Y \mathop{\longrightarrow}_\text{Shrinkage}^{T_\tau} \hat{\theta} \stackrel{W^{-1}}{\longrightarrow} (\hat{f}(t_k)). \end{aligned}

Instructor’s NoteSpend error where the signal is

If most true coordinates are zero, carrying one unit of noise in every coordinate is wasteful. Thresholding accepts some bias near the cutoff to silence many empty coordinates. Large surviving coordinates still pay the soft-threshold offset, which is why the choice of cutoff matters.

Picture: hard and soft thresholding.

For fixed observations \(u\in[-4,4]\)u∈[−4,4]u\in[-4,4], compare \(H_\tau(u)=uI\{|u|>\tau\}\)Hτ(u)=uI{|u|>τ}H_\tau(u)=uI\{|u|>\tau\} with \(T_\tau(u)=\operatorname{sgn}(u)(|u|-\tau)_+\)Tτ(u)=sgn(u)(|u|−τ)+T_\tau(u)=\operatorname{sgn}(u)(|u|-\tau)_+. At \(\tau=1\)τ=1\tau=1 and \(u=(-2,-0.5,0,0.5,2)\)u=(−2,−0.5,0,0.5,2)u=(-2,-0.5,0,0.5,2), hard thresholding gives \((-2,0,0,0,2)\)(−2,0,0,0,2)(-2,0,0,0,2) and soft thresholding gives \((-1,0,0,0,1)\)(−1,0,0,0,1)(-1,0,0,0,1). The hard rule jumps at the cutoff; the soft rule is continuous and shrinks every surviving value.

Thresholding and normalization.

Hard thresholding keeps large observed coordinates unchanged; soft thresholding also shrinks them toward zero. The threshold in orthogonal LASSO depends on both the loss normalization and the design normalization.

Soft threshold at left subtracts the cutoff outside the zero region. Hard threshold at right preserves values outside the zero region and jumps at the cutoff.
High priorityPractice: Threshold a new observation vector

See Exercise 3 in Section 8 for the full statement and complete solution.

4. Denoising theory

4.1. General oracle inequalities

Mid priorityGeneral oracle inequalities

Let us evaluate how well thresholding estimators perform. Consider the MSE as risk function \(R(\theta)=\E\|\hat\theta-\theta\|_2^2\)R(θ)=𝔼∥θ̂−θ∥22R(\theta)=\mathbb{E}\|\hat\theta-\theta\|_2^2 for an estimator \(\hat \theta\)θ̂\hat \theta. In this section, our results hold without any sparsity assumption.

Suppose there is an oracle, who tells us the locations (indices) of large signals \(\theta_j\)θj\theta_j: we estimate \(\theta_j\)θj\theta_j by \(Y_j\)YjY_j and incur MSE \(\sigma^2\)σ2\sigma^2, and by \(0\)00 and incur MSE \(\theta_j^2\)θj2\theta_j^2 otherwise.

We define the (oracle-aided) ideal risk as follows. \[\begin{aligned} R(\theta, \sigma) = \sum_{i=1}^{n}\min \{\theta_i^2, \sigma^2\}. \end{aligned}\]R(θ,σ)=∑i=1nmin{θi2,σ2}.\begin{aligned} R(\theta, \sigma) = \sum_{i=1}^{n}\min \{\theta_i^2, \sigma^2\}. \end{aligned} In particular, if \(\theta\)θ\theta is \(S\)SS-sparse, then \[\begin{aligned} R(\theta,\sigma)\le S\sigma^2. \end{aligned}\]R(θ,σ)≤Sσ2.\begin{aligned} R(\theta,\sigma)\le S\sigma^2. \end{aligned}

Theorem 1

Suppose \(Y \sim \mathcal{N}(\theta, \sigma^2I_n)\)Y∼𝒩(θ,σ2In)Y \sim \mathcal{N}(\theta, \sigma^2I_n). For the soft-thresholding estimator \(\hat{\theta}_{\tau_n} = T_{\tau_n}(Y)\)θ̂τn=Tτn(Y)\hat{\theta}_{\tau_n} = T_{\tau_n}(Y) with the level \(\tau_n = \sqrt{2\sigma^2\log n}\)τn=2σ2logn\tau_n = \sqrt{2\sigma^2\log n}, \[\begin{aligned} \mathbb{E}\big[\|\hat{\theta}_{\tau_n} - \theta\|_2^2\big] \le (2\log n + 1) [\sigma^2 + R(\theta, \sigma)]. \end{aligned}\]𝔼[∥θ̂τn−θ∥22]≤(2logn+1)[σ2+R(θ,σ)].\begin{aligned} \mathbb{E}\big[\|\hat{\theta}_{\tau_n} - \theta\|_2^2\big] \le (2\log n + 1) [\sigma^2 + R(\theta, \sigma)]. \end{aligned}

The proof is given in [1] (Proposition 8.8, p. 227); the linked text in Further reading develops the coordinatewise oracle bound.

  • Other threshold rules. Similar bounds hold for hard thresholding.

  • Unknown support. One striking aspect of this result is that we don’t know the indices of large signals among \(\theta_1,\ldots,\theta_n\)θ1,…,θn\theta_1,\ldots,\theta_n.

  • Cost of adaptation. Compared with the ideal risk, the risk is increased only by a log factor.

Remark 1

Theorem 1 holds with no assumption on \(\theta\)θ\theta. Without assumption on \(\theta\)θ\theta, this is not improvable due to the following minimax result [1] (Eq. (8.35), Section 8.6). As \(n \to \infty\)n→∞n \to \infty, \[\begin{aligned} \inf_{\hat{\theta}}\sup_{\theta\in\mathbb{R}^n} \frac{\mathbb{E}[\|\hat{\theta} - \theta\|^2]}{\sigma^2 + \sum_{i=1}^{n}\min\{\theta_i^2, \sigma^2\}} \ge (2\log n)\cdot (1 + o(1)). \end{aligned}\]infθ̂supθ∈ℝn𝔼[∥θ̂−θ∥2]σ2+∑i=1nmin{θi2,σ2}≥(2logn)⋅(1+o(1)).\begin{aligned} \inf_{\hat{\theta}}\sup_{\theta\in\mathbb{R}^n} \frac{\mathbb{E}[\|\hat{\theta} - \theta\|^2]}{\sigma^2 + \sum_{i=1}^{n}\min\{\theta_i^2, \sigma^2\}} \ge (2\log n)\cdot (1 + o(1)). \end{aligned}

4.2. Oracle inequalities for \(S\)SS-sparse signals

Low priority — not examined: Oracle inequalities for \(S\)SS-sparse signals

Denote the space of \(S\)SS-sparse vectors as \[\begin{aligned} \Theta_{n,S_n} = \{\theta\in\mathbb{R}^n: \|\theta\|_0\le S_n\}. \end{aligned}\]Θn,Sn={θ∈ℝn:∥θ∥0≤Sn}.\begin{aligned} \Theta_{n,S_n} = \{\theta\in\mathbb{R}^n: \|\theta\|_0\le S_n\}. \end{aligned}

Theorem 2

Suppose the integers \(1\le S_n<n\)1≤Sn<n1\le S_n<n satisfy \[\begin{aligned} \frac{S_n}{n} \to 0,\quad n \to \infty. \end{aligned}\]Snn→0,n→∞.\begin{aligned} \frac{S_n}{n} \to 0,\quad n \to \infty. \end{aligned} Then, as \(n \to \infty\)n→∞n \to \infty,

  • (1) The soft-thresholding estimator \(\hat{\theta}_{\tau_n}\)θ̂τn\hat{\theta}_{\tau_n} with \(\tau_n = \sqrt{2\sigma^2 \log(n / S_n)}\)τn=2σ2log(n/Sn)\tau_n = \sqrt{2\sigma^2 \log(n / S_n)}, \[\begin{aligned} \sup_{\theta\in\Theta_{n,S_n}}\mathbb{E}\big[\|\hat{\theta}_{\tau_n} - \theta\|^2\big] \le (1 + o(1))\cdot 2S_n \sigma^2 \log\left(\frac{n}{S_n}\right). \end{aligned}\]supθ∈Θn,Sn𝔼[∥θ̂τn−θ∥2]≤(1+o(1))⋅2Snσ2log(nSn).\begin{aligned} \sup_{\theta\in\Theta_{n,S_n}}\mathbb{E}\big[\|\hat{\theta}_{\tau_n} - \theta\|^2\big] \le (1 + o(1))\cdot 2S_n \sigma^2 \log\left(\frac{n}{S_n}\right). \end{aligned}

  • (2) The soft-thresholding estimator matches the minimax lower bound: \[\begin{aligned} \inf_{\hat\theta}\sup_{\theta\in\Theta_{n,S_n}}\E\|\hat\theta-\theta\|^2 \ge (1 + o(1))\cdot 2S_n \sigma^2 \log\left(\frac{n}{S_n}\right). \end{aligned}\]infθ̂supθ∈Θn,Sn𝔼∥θ̂−θ∥2≥(1+o(1))⋅2Snσ2log(nSn).\begin{aligned} \inf_{\hat\theta}\sup_{\theta\in\Theta_{n,S_n}}\mathbb{E}\|\hat\theta-\theta\|^2 \ge (1 + o(1))\cdot 2S_n \sigma^2 \log\left(\frac{n}{S_n}\right). \end{aligned}

Proof. Of (1).

Let us simply write \(\hat \theta\)θ̂\hat \theta instead of \(\hat{\theta}_{\tau_n}\)θ̂τn\hat{\theta}_{\tau_n} and define \[\begin{aligned} \mathcal{S} = \{i \le n: \theta_i \neq 0\}. \end{aligned}\]𝒮={i≤n:θi≠0}.\begin{aligned} \mathcal{S} = \{i \le n: \theta_i \neq 0\}. \end{aligned} The high-level idea is the following: if \(i \notin \mathcal{S}\)i∉𝒮i \notin \mathcal{S}, most noise \(Y_i\)YiY_i will be denoised by \(\hat \theta\)θ̂\hat \theta. If \(i \in \mathcal{S}\)i∈𝒮i \in \mathcal{S}, the estimator incurs additional bias. We will conduct coordinatewise analysis since \[\|\hat{\theta} - \theta\|^2 = \sum_{j=1}^n (\hat \theta_j - \theta_j)^2\]∥θ̂−θ∥2=∑j=1n(θ̂j−θj)2\|\hat{\theta} - \theta\|^2 = \sum_{j=1}^n (\hat \theta_j - \theta_j)^2 and divide our analysis into two cases.
Case I: If \(j \notin \mathcal{S}\)j∉𝒮j \notin \mathcal{S}, namely \(\theta_j = 0\)θj=0\theta_j = 0, \[\begin{aligned} \mathbb{E}[(\hat{\theta}_j - \theta_j)^2] &= \mathbb{E}[(\sigma|Z_j| - \tau)_+^2] \\ &= \sigma^2 \int_{0}^{\infty}\mathbb{P}((|Z_j| - \frac{\tau}{\sigma})_+^2 > t)\; dt \qquad (\text{by the tail-integral identity)}\\ &= \sigma^2 \int_{0}^{\infty}\mathbb{P}(|Z_j| - \frac{\tau}{\sigma} > \sqrt{t})\; dt \\ &\le 2\sigma^2 \int_{\tau/\sigma}^{\infty}(u - \frac{\tau}{\sigma})\mathbb{P}(|Z_j| \ge u) \; du\qquad (\text{change of variables}~u := \sqrt{t} + \frac{\tau}{\sigma}) \\ &\le 4\sigma^2 \int_{\tau/\sigma}^{\infty} u \exp\left(-\frac{u^2}{2}\right)\; du \qquad (\text{by Gaussian tail probability bound})\\ &= 4\sigma^2 \exp\left(-\frac{\tau^2}{2\sigma^2}\right). \end{aligned}\]𝔼[(θ̂j−θj)2]=𝔼[(σ|Zj|−τ)+2]=σ2∫0∞ℙ((|Zj|−τσ)+2>t)dt(by the tail-integral identity)=σ2∫0∞ℙ(|Zj|−τσ>t)dt≤2σ2∫τ/σ∞(u−τσ)ℙ(|Zj|≥u)du(change of variablesu:=t+τσ)≤4σ2∫τ/σ∞uexp(−u22)du(by Gaussian tail probability bound)=4σ2exp(−τ22σ2).\begin{aligned} \mathbb{E}[(\hat{\theta}_j - \theta_j)^2] &= \mathbb{E}[(\sigma|Z_j| - \tau)_+^2] \\ &= \sigma^2 \int_{0}^{\infty}\mathbb{P}((|Z_j| - \frac{\tau}{\sigma})_+^2 > t)\; dt \qquad (\text{by the tail-integral identity)}\\ &= \sigma^2 \int_{0}^{\infty}\mathbb{P}(|Z_j| - \frac{\tau}{\sigma} > \sqrt{t})\; dt \\ &\le 2\sigma^2 \int_{\tau/\sigma}^{\infty}(u - \frac{\tau}{\sigma})\mathbb{P}(|Z_j| \ge u) \; du\qquad (\text{change of variables}~u := \sqrt{t} + \frac{\tau}{\sigma}) \\ &\le 4\sigma^2 \int_{\tau/\sigma}^{\infty} u \exp\left(-\frac{u^2}{2}\right)\; du \qquad (\text{by Gaussian tail probability bound})\\ &= 4\sigma^2 \exp\left(-\frac{\tau^2}{2\sigma^2}\right). \end{aligned} Case II: If \(j \in \mathcal{S}\)j∈𝒮j \in \mathcal{S} namely \(\theta_j \neq 0\)θj≠0\theta_j \neq 0, \[\begin{aligned} \mathbb{E}[(\hat{\theta}_j - \theta_j)^2] &= \mathbb{E}[(\hat{\theta}_j - T_\tau(\theta_j) + T_\tau(\theta_j) - \theta_j)^2] \end{aligned}\]𝔼[(θ̂j−θj)2]=𝔼[(θ̂j−Tτ(θj)+Tτ(θj)−θj)2]\begin{aligned} \mathbb{E}[(\hat{\theta}_j - \theta_j)^2] &= \mathbb{E}[(\hat{\theta}_j - T_\tau(\theta_j) + T_\tau(\theta_j) - \theta_j)^2] \end{aligned}

\[\begin{aligned} &\le \mathbb{E}[2(T_\tau(Y_j) - T_\tau(\theta_j))^2 + 2(T_\tau(\theta_j) - \theta_j)^2] \qquad \text{(since } (a + b)^2 \le 2a^2 + 2b^2) \end{aligned}\]≤𝔼[2(Tτ(Yj)−Tτ(θj))2+2(Tτ(θj)−θj)2](since (a+b)2≤2a2+2b2)\begin{aligned} &\le \mathbb{E}[2(T_\tau(Y_j) - T_\tau(\theta_j))^2 + 2(T_\tau(\theta_j) - \theta_j)^2] \qquad \text{(since } (a + b)^2 \le 2a^2 + 2b^2) \end{aligned}

(3)

\[\begin{aligned} &\le\underbrace{2\mathbb E[(Y_j-\theta_j)^2]}_{\text{estimation error}} + \underbrace{2\tau^2}_{\text{squared threshold offset}}\qquad \text{(since }T_\tau\text{ is 1-Lipschitz}) \end{aligned}\]≤2𝔼[(Yj−θj)2]⏟estimation error+2τ2⏟squared threshold offset(since Tτ is 1-Lipschitz)\begin{aligned} &\le\underbrace{2\mathbb E[(Y_j-\theta_j)^2]}_{\text{estimation error}} + \underbrace{2\tau^2}_{\text{squared threshold offset}}\qquad \text{(since }T_\tau\text{ is 1-Lipschitz}) \end{aligned} \[\begin{aligned} &= 2\sigma^2 + 2\tau^2. \end{aligned}\]=2σ2+2τ2.\begin{aligned} &= 2\sigma^2 + 2\tau^2. \end{aligned} Combining the two cases: there are \(n-|\mathcal S|\le n\)n−|𝒮|≤nn-|\mathcal S|\le n indices in Case I and \(|\mathcal S|\le S_n\)|𝒮|≤Sn|\mathcal S|\le S_n indices in Case II, so \[\begin{aligned} \mathbb{E}[\| \hat{\theta} - \theta\|^2] &\le 2S_n(\sigma^2 + \tau_n^2) + 4n\sigma^2 \exp\left(-\frac{\tau_n^2}{2\sigma^2}\right)\\ &= 2S_n(\sigma^2 + 2\sigma^2\log\left(\frac{n}{S_n}\right)) + 4S_n\sigma^2 \\ &= 6S_n\sigma^2 + 4S_n\sigma^2 \log\left(\frac{n}{S_n}\right) \end{aligned}\]𝔼[∥θ̂−θ∥2]≤2Sn(σ2+τn2)+4nσ2exp(−τn22σ2)=2Sn(σ2+2σ2log(nSn))+4Snσ2=6Snσ2+4Snσ2log(nSn)\begin{aligned} \mathbb{E}[\| \hat{\theta} - \theta\|^2] &\le 2S_n(\sigma^2 + \tau_n^2) + 4n\sigma^2 \exp\left(-\frac{\tau_n^2}{2\sigma^2}\right)\\ &= 2S_n(\sigma^2 + 2\sigma^2\log\left(\frac{n}{S_n}\right)) + 4S_n\sigma^2 \\ &= 6S_n\sigma^2 + 4S_n\sigma^2 \log\left(\frac{n}{S_n}\right) \end{aligned}

  • A weighted square bound. For the sharp leading constant, use \((a+b)^2\le(1+\eta)a^2+(1+\eta^{-1})b^2\)(a+b)2≤(1+η)a2+(1+η−1)b2(a+b)^2\le(1+\eta)a^2+(1+\eta^{-1})b^2 with \(a=T_\tau(\theta_j)-\theta_j\)a=Tτ(θj)−θja=T_\tau(\theta_j)-\theta_j and \(b=T_\tau(Y_j)-T_\tau(\theta_j)\)b=Tτ(Yj)−Tτ(θj)b=T_\tau(Y_j)-T_\tau(\theta_j).

  • Per-coordinate bound. The signal-coordinate risk is at most \((1+\eta)\tau^2+(1+\eta^{-1})\sigma^2\)(1+η)τ2+(1+η−1)σ2(1+\eta)\tau^2+(1+\eta^{-1})\sigma^2.

  • Choose the weight. Put \(L=\log(n/S_n)\to\infty\)L=log(n/Sn)→∞L=\log(n/S_n)\to\infty and \(\eta=L^{-1/2}\)η=L−1/2\eta=L^{-1/2}.

  • Sum the errors. Summing yields \(2S_n\sigma^2L+O(S_n\sigma^2\sqrt L)+O(S_n\sigma^2)\)2Snσ2L+O(Snσ2L)+O(Snσ2)2S_n\sigma^2L+O(S_n\sigma^2\sqrt L)+O(S_n\sigma^2), proving the claimed leading constant. Assume \(1\le S_n<n\)1≤Sn<n1\le S_n<n.

 ◻

Quick Explanation
Uniform integrability
Remark 2Comparison with James–Stein estimation
  • Change of observations. Global James–Stein shrinkage does not exploit sparse coordinate structure. For \(\sigma=1\)σ=1\sigma=1 and \(\|\theta_n\|^2=n\)∥θn∥2=n\|\theta_n\|^2=n, its exact ordinary-JS risk is \[R_{\rm JS}(\theta_n)=n-(n-2)^2\E\|Y\|^{-2}.\]RJS(θn)=n−(n−2)2𝔼∥Y∥−2.R_{\mathrm{JS}}(\theta_n)=n-(n-2)^2\mathbb{E}\|Y\|^{-2}.

  • Concentration. Here \(Q=\|Y\|^2\)Q=∥Y∥2Q=\|Y\|^2 is a sum of squares of independent unit-variance Gaussians with squared means summing to \(n\)nn; this is the noncentral chi-square distribution with \(n\)nn degrees of freedom and noncentrality \(n\)nn. Its mean is \(2n\)2n2n and variance \(6n\)6n6n, so \(Q/n\to_p2\)Q/n→p2Q/n\to_p2.

  • Reciprocal moment. To control its reciprocal, use the mixture representation \(Q\mid J\sim\chi^2_{n+2J}\)Q∣J∼χn+2J2Q\mid J\sim\chi^2_{n+2J} with \(J\sim\operatorname{Poisson}(n/2)\)J∼Poisson(n/2)J\sim\operatorname{Poisson}(n/2).

  • Pass to the limit. Since \(\E(\chi_k^2)^{-2}=1/[(k-2)(k-4)]\)𝔼(χk2)−2=1/[(k−2)(k−4)]\mathbb{E}(\chi_k^2)^{-2}=1/[(k-2)(k-4)] for \(k>4\)k>4k>4, we obtain \(\E Q^{-2}\le1/[(n-2)(n-4)]\)𝔼Q−2≤1/[(n−2)(n−4)]\mathbb{E}Q^{-2}\le1/[(n-2)(n-4)] for \(n>4\)n>4n>4. Thus \(n/Q\)n/Qn/Q is uniformly integrable.2 Hence \(\E(n/Q)\to1/2\)𝔼(n/Q)→1/2\mathbb{E}(n/Q)\to1/2 and \(R_{\rm JS}/n\to1/2\)RJS/n→1/2R_{\mathrm{JS}}/n\to1/2.

  • Sparse signal. For an \(S_n\)SnS_n-sparse vector with nonzero magnitude \(\sqrt{n/S_n}\)n/Sn\sqrt{n/S_n}, the same norm condition holds.

  • Thresholding risk. If \(S_n\log(n/S_n)=o(n)\)Snlog(n/Sn)=o(n)S_n\log(n/S_n)=o(n), soft thresholding has risk \(o(n)\)o(n)o(n) by the preceding theorem.

  • Interpretation. Global shrinkage responds to total signal energy; coordinatewise thresholding also uses where that energy is concentrated.

Remark 3Bias-variance tradeoff

The threshold \(\sqrt{2\sigma^2\log(n/S_n)}\)2σ2log(n/Sn)\sqrt{2\sigma^2\log(n/S_n)} is smaller than the universal level \(\sqrt{2\sigma^2\log n}\)2σ2logn\sqrt{2\sigma^2\log n}. It has a smaller thresholding level, so many noise coordinates are not completely removed (reaching \(0\)00). This smaller thresholding level introduces a bit more variance from the noises, but incurs much smaller bias on large signals, thus leading to the minimax risk.

5. LASSO with orthogonal design

High priorityLASSO with orthogonal design

Suppose we have data \((x_i, y_i)_{1 \le i \le n}\)(xi,yi)1≤i≤n(x_i, y_i)_{1 \le i \le n}, where \(x_i\in\R^p\)xi∈ℝpx_i\in\mathbb{R}^p, \(y_i\in\R\)yi∈ℝy_i\in\mathbb{R}. As usual, we write our data in matrix form \[\begin{aligned} \begin{cases} X = [x_1, \ldots, x_n]^\top \in \mathbb{R}^{n\times p},\\ Y = [y_1, \ldots, y_n]^\top \in \mathbb{R}^{n}. \end{cases} \end{aligned}\]{X=[x1,…,xn]⊤∈ℝn×p,Y=[y1,…,yn]⊤∈ℝn.\begin{aligned} \begin{cases} X = [x_1, \ldots, x_n]^\top \in \mathbb{R}^{n\times p},\\ Y = [y_1, \ldots, y_n]^\top \in \mathbb{R}^{n}. \end{cases} \end{aligned} The celebrated LASSO, an abbreviation for least absolute shrinkage and selection operator, solves the following optimization problem. Given \(\lambda \ge 0\)λ≥0\lambda \ge 0, solve \[\begin{aligned} \min_{\theta\in\mathbb{R}^p}\frac{1}{2n}\|X\theta - Y\|_2^2 + \lambda\|\theta\|_1 =: \min_{\theta\in\mathbb{R}^p}\ell_{n, \lambda}(\theta). \end{aligned}\]minθ∈ℝp12n∥Xθ−Y∥22+λ∥θ∥1=:minθ∈ℝpℓn,λ(θ).\begin{aligned} \min_{\theta\in\mathbb{R}^p}\frac{1}{2n}\|X\theta - Y\|_2^2 + \lambda\|\theta\|_1 =: \min_{\theta\in\mathbb{R}^p}\ell_{n, \lambda}(\theta). \end{aligned}

5.1. Connecting LASSO with denoising

High priorityConnecting LASSO with denoising

  • Orthogonal decomposition. Assume \(X^\top X=I_p\)X⊤X=IpX^\top X=I_p, with \(p\le n\)p≤np\le n, and write \(y\)yy for the observed response vector \(Y\)YY. Write \(z=X^\top y\in\R^p\)z=X⊤y∈ℝpz=X^\top y\in\mathbb{R}^p and \(r=(I_n-XX^\top)y\)r=(In−XX⊤)yr=(I_n-XX^\top)y. The residual \(r\)rr is orthogonal to every column of \(X\)XX, so \[\|X\theta-y\|_2^2=\|\theta-z\|_2^2+\|r\|_2^2.\]∥Xθ−y∥22=∥θ−z∥22+∥r∥22.\|X\theta-y\|_2^2=\|\theta-z\|_2^2+\|r\|_2^2.

  • Square design. The square case \(n=p\)n=pn=p, \(X\in O(n)\)X∈O(n)X\in O(n) has \(r=0\)r=0r=0.

  • Separate the coordinates. In general, \[\ell_{n,\lambda}(\theta)=\frac{\|r\|_2^2}{2n}+\frac1n\sum_{j=1}^p\left[\frac12(\theta_j-z_j)^2+n\lambda|\theta_j|\right].\]ℓn,λ(θ)=∥r∥222n+1n∑j=1p[12(θj−zj)2+nλ|θj|].\ell_{n,\lambda}(\theta)=\frac{\|r\|_2^2}{2n}+\frac1n\sum_{j=1}^p\left[\frac12(\theta_j-z_j)^2+n\lambda|\theta_j|\right].

  • Minimize. The constant does not affect minimization, and each remaining term involves only one coordinate. Therefore \[\hat\theta=(T_{n\lambda}(z_1),\ldots,T_{n\lambda}(z_p))^\top.\]θ̂=(Tnλ(z1),…,Tnλ(zp))⊤.\hat\theta=(T_{n\lambda}(z_1),\ldots,T_{n\lambda}(z_p))^\top. The scalar minimization is proved in Exercise 5. We can analyze LASSO with an orthogonal design using our results from denoising.

  • Standardized columns. Under the alternative convention \(X^\top X=nI_p\)X⊤X=nIpX^\top X=nI_p, use \(z=X^\top y/n\)z=X⊤y/nz=X^\top y/n. Then the objective is a constant plus \(\sum_j[\tfrac12(\theta_j-z_j)^2+\lambda|\theta_j|]\)∑j[12(θj−zj)2+λ|θj|]\sum_j[\tfrac12(\theta_j-z_j)^2+\lambda|\theta_j|], and the threshold is \(\lambda\)λ\lambda.

  • Coefficient noise scale. For a fixed design and noise \(\varepsilon\sim N(0,\sigma^2I_n)\)ε∼N(0,σ2In)\varepsilon\sim N(0,\sigma^2I_n) in \(y=X\theta^*+\varepsilon\)y=Xθ*+εy=X\theta^*+\varepsilon, the transformed noise variance is \(\sigma^2\)σ2\sigma^2 under \(X^\top X=I_p\)X⊤X=IpX^\top X=I_p and \(\sigma^2/n\)σ2/n\sigma^2/n under \(X^\top X=nI_p\)X⊤X=nIpX^\top X=nI_p.

  • Check both scales. Always read the loss and design normalizations together.

  • Earlier convention. In particular, Lecture 1 used \((v-u)^2+\lambda|v|\)(v−u)2+λ|v|(v-u)^2+\lambda|v|, whose threshold is \(\lambda/2\)λ/2\lambda/2; the scalar loss here has an extra factor \(1/2\)1/21/2 and threshold \(\tau\)τ\tau.

High priorityPractice: Check the LASSO normalization

See Exercise 4 in Section 8 for the full statement and complete solution.

5.2. Reducing shrinkage bias*

Low priority — not examined: Reducing shrinkage bias

For the statistical interpretation, assume the fixed-design model \[y=X\theta^*+\varepsilon,\qquad \varepsilon\sim N(0,\sigma^2I_n),\qquad X^\top X=I_p.\]y=Xθ*+ε,ε∼N(0,σ2In),X⊤X=Ip.y=X\theta^*+\varepsilon,\qquad \varepsilon\sim N(0,\sigma^2I_n),\qquad X^\top X=I_p. Then \(z=X^\top y=\theta^*+X^\top\varepsilon\sim N(\theta^*,\sigma^2I_p)\)z=X⊤y=θ*+X⊤ε∼N(θ*,σ2Ip)z=X^\top y=\theta^*+X^\top\varepsilon\sim N(\theta^*,\sigma^2I_p). Even when \(z_j\)zjz_j is large (strong signal), we shrink our estimate by \(n\lambda\)nλn\lambda because \(T_{n\lambda}(z_j)\)Tnλ(zj)T_{n\lambda}(z_j) always applies shrinkage. At a fixed positive threshold, the bias approaches a nonzero offset as the signal magnitude grows.

Two improvements:

SCAD (smoothly clipped absolute deviation) and MCP (minimax concave penalty). Consider the scalar case \(\ell_{1,\lambda}(\theta)\)ℓ1,λ(θ)\ell_{1,\lambda}(\theta) where \(\theta \in \R\)θ∈ℝ\theta \in \mathbb{R}: \[\ell_{1, \lambda}(\theta) = \frac{1}{2} \| \theta - z \|^2 + P_{\lambda}(\theta)\]ℓ1,λ(θ)=12∥θ−z∥2+Pλ(θ)\ell_{1, \lambda}(\theta) = \frac{1}{2} \| \theta - z \|^2 + P_{\lambda}(\theta) where the regularizer \(P_{\lambda}(\theta)\)Pλ(θ)P_{\lambda}(\theta) is depicted in Figure 6.

LASSO penalty keeps rising, while MCP and SCAD flatten. Their positive-side derivatives decrease to zero; LASSO has constant derivative.
  • Instead of the \(\ell_1\)ℓ1\ell_1 regularizer, we use a different regularizer \(P_\lambda\)PλP_\lambda that is flat after a threshold.

  • For larger signals, it applies small shrinkage to incur less bias.

Like LASSO, SCAD and MCP are nondifferentiable at \(\theta=0\)θ=0\theta=0. At a differentiable local minimizer \(\hat\theta>0\)θ̂>0\hat\theta>0, the necessary stationarity condition is \[\begin{aligned} \ell'_{1, \lambda}(\theta)\big|_{\theta = \hat \theta} = 0. \qquad \Longleftrightarrow \qquad \hat \theta - z + P_{\lambda}'(\hat \theta) = 0. \end{aligned}\]ℓ′1,λ(θ)|θ=θ̂=0.⇔θ̂−z+Pλ′(θ̂)=0.\begin{aligned} \ell'_{1, \lambda}(\theta)\big|_{\theta = \hat \theta} = 0. \qquad \Longleftrightarrow \qquad \hat \theta - z + P_{\lambda}'(\hat \theta) = 0. \end{aligned} If \(P_{\lambda}'(\hat \theta)=0\)Pλ′(θ̂)=0P_{\lambda}'(\hat \theta)=0, then the penalized estimate equals \(z\)zz in that region. This removes the local shrinkage offset; it does not claim globally zero statistical bias after averaging over all noisy observations. We note that \[\begin{aligned} \begin{cases} P_\lambda'(\hat \theta) \equiv \lambda, &\text{ in LASSO, inducing a bias regardless }\\ P_\lambda'(\hat \theta) = 0, & \text{ if $\hat \theta$ large in SCAD / MCP, giving no shrinkage offset in this region.} \end{cases} \end{aligned}\]{Pλ′(θ̂)≡λ, in LASSO, inducing a bias regardless Pλ′(θ̂)=0, if θ̂ large in SCAD / MCP, giving no shrinkage offset in this region.\begin{aligned} \begin{cases} P_\lambda'(\hat \theta) \equiv \lambda, &\text{ in LASSO, inducing a bias regardless }\\ P_\lambda'(\hat \theta) = 0, & \text{ if $\hat \theta$ large in SCAD / MCP, giving no shrinkage offset in this region.} \end{cases} \end{aligned}

Pros and Cons.

Compared with LASSO, MCP and SCAD can suppress small coordinates while reducing shrinkage bias for large signals. Under suitable assumptions this can improve statistical accuracy. However, unlike LASSO, they involve a nonconvex optimization problem! It is harder (though still possible under additional conditions) to solve the following nonconvex problem under a general design matrix. \[\begin{aligned} \frac{1}{2} \|y - X\theta\|_2^2 + \sum_{j=1}^{p}P_\lambda(\theta_j). \end{aligned}\]12∥y−Xθ∥22+∑j=1pPλ(θj).\begin{aligned} \frac{1}{2} \|y - X\theta\|_2^2 + \sum_{j=1}^{p}P_\lambda(\theta_j). \end{aligned}

6. Further reading

Further reading

The author’s open book gives the proof of the oracle upper bound on p. 227 and the matching lower bound in Section 8.6. The main reference for shrinkage theory is [1]. The theorem in Section 4.2 can be found in Section 8.4 of [1].

Key ideas

  • Sparse approximation depends on the representation: many transform coefficients can be small even when the raw signal is not sparse.

  • Orthogonal transformations preserve squared error and spherical Gaussian noise.

  • Thresholding suppresses small coordinates; an oracle bound measures the price of not knowing which coordinates matter.

  • The soft-threshold level follows from both the loss normalization and the column lengths.

Detailed reference

Detailed reference

High prioritySparse approximation

Exact sparsity counts nonzero coordinates. Approximate sparsity instead asks whether retaining a few large coordinates gives small error in the chosen norm. Return to the earlier explanation.

High priorityOrthogonal denoising

A real orthogonal transform preserves independent spherical Gaussian noise and squared Euclidean error. This lets us estimate sparse coefficients and transform the estimate back without changing the risk. Return to the earlier explanation.

High priorityThresholding and normalization

Hard thresholding keeps large observed coordinates unchanged; soft thresholding also shrinks them toward zero. The threshold in orthogonal LASSO depends on both the loss normalization and the design normalization. Return to the earlier explanation.

Looking ahead

Lecture 20 removes the orthogonal-design simplification. The next question is whether a design preserves enough information about sparse signals to support recovery and estimation. Continue within optional Part VI.

8. Exercises and complete solutions8 exercises · complete solutions

High priorityA nearly sparse vector
Exercise 1A nearly sparse vector#

For \(x=(1,1/2,1/4,1/8)\)x=(1,1/2,1/4,1/8)x=(1,1/2,1/4,1/8), compute its exact sparsity and the squared error from retaining only its two largest coordinates.

Reveal solution

Every coordinate is nonzero, so \(\|x\|_0=4\)∥x∥0=4\|x\|_0=4. The truncated vector is \((1,1/2,0,0)\)(1,1/2,0,0)(1,1/2,0,0) and its squared error is \(1/16+1/64=5/64\)1/16+1/64=5/641/16+1/64=5/64. Exact sparsity and accurate sparse approximation are different notions.

High priorityRisk is preserved by an orthogonal transform
Exercise 2Risk is preserved by an orthogonal transform#

If \(Y=WX\)Y=WXY=WX and \(\theta=Wf\)θ=Wf\theta=Wf for a real orthogonal \(W\)WW, show that \(\hat f=W^\top\hat\theta\)f̂=W⊤θ̂\hat f=W^\top\hat\theta has the same squared error as \(\hat\theta\)θ̂\hat\theta.

Reveal solution

\(\hat f-f=W^\top(\hat\theta-\theta)\)f̂−f=W⊤(θ̂−θ)\hat f-f=W^\top(\hat\theta-\theta), and orthogonal matrices preserve Euclidean norm. Thus \(\|\hat f-f\|^2=\|\hat\theta-\theta\|^2\)∥f̂−f∥2=∥θ̂−θ∥2\|\hat f-f\|^2=\|\hat\theta-\theta\|^2 for each realization; taking expectation gives equal risks.

High priorityThreshold a new observation vector
Exercise 3Threshold a new observation vector#

For \(y=(-3,-1,0,1,3)\)y=(−3,−1,0,1,3)y=(-3,-1,0,1,3) and \(\tau=2\)τ=2\tau=2, calculate hard and soft threshold estimates.

Reveal solution

Hard thresholding retains values with magnitude strictly above 2, giving \((-3,0,0,0,3)\)(−3,0,0,0,3)(-3,0,0,0,3). Soft thresholding subtracts 2 from each retained magnitude, giving \((-1,0,0,0,1)\)(−1,0,0,0,1)(-1,0,0,0,1). Values at exactly the cutoff would be zero under both stated conventions.

High priorityCheck the LASSO normalization
Exercise 4Check the LASSO normalization#

If \(n=10\)n=10n=10, \(X^\top X=I\)X⊤X=IX^\top X=I, \(z=X^\top y=(3,-1)\)z=X⊤y=(3,−1)z=X^\top y=(3,-1) and \(\lambda=0.2\)λ=0.2\lambda=0.2, find the LASSO solution for loss \(\|X\theta-y\|^2/(2n)\)∥Xθ−y∥2/(2n)\|X\theta-y\|^2/(2n).

Reveal solution

The threshold is \(n\lambda=2\)nλ=2n\lambda=2. Thus the solution is \((T_2(3),T_2(-1))=(1,0)\)(T2(3),T2(−1))=(1,0)(T_2(3),T_2(-1))=(1,0). Using threshold 0.2 would correspond to a different loss or design normalization.

High priorityProve the soft-threshold formula
Exercise 5Prove the soft-threshold formula#

Minimize \(\tfrac12(v-u)^2+\tau|v|\)12(v−u)2+τ|v|\tfrac12(v-u)^2+\tau|v| for \(\tau\ge0\)τ≥0\tau\ge0 by elementary calculus.

Reveal solution

For \(v>0\)v>0v>0, the derivative is \(v-u+\tau\)v−u+τv-u+\tau, yielding \(v=u-\tau\)v=u−τv=u-\tau when \(u>\tau\)u>τu>\tau. For \(v<0\)v<0v<0, it is \(v-u-\tau\)v−u−τv-u-\tau, yielding \(v=u+\tau\)v=u+τv=u+\tau when \(u<-\tau\)u<−τu<-\tau. At zero, the left derivative is \(-u-\tau\)−u−τ-u-\tau and right derivative \(-u+\tau\)−u+τ-u+\tau; they straddle zero exactly when \(|u|\le\tau\)|u|≤τ|u|\le\tau. Strict convexity of the quadratic gives a unique minimizer, the stated soft rule.

Mid priorityAn ideal coordinate choice
Exercise 6An ideal coordinate choice#

For \(\theta=(0,\sigma/2,2\sigma)\)θ=(0,σ/2,2σ)\theta=(0,\sigma/2,2\sigma), compute the oracle risk and compare it with the raw-observation risk.

Reveal solution

The oracle contributions are \(0\)00, \(\sigma^2/4\)σ2/4\sigma^2/4, and \(\sigma^2\)σ2\sigma^2, totaling \(5\sigma^2/4\)5σ2/45\sigma^2/4. The raw observation incurs \(3\sigma^2\)3σ23\sigma^2. Although there are two nonzero coordinates, the ideal risk is strictly less than \(2\sigma^2\)2σ22\sigma^2 because the small signal is better set to zero.

High priorityA finite-sample universal threshold
Exercise 7A finite-sample universal threshold#

Choose a threshold that removes every coordinate of pure Gaussian noise with probability at least \(1-\alpha\)1−α1-\alpha at a fixed \(n\)nn.

Reveal solution

A union bound and the two-sided Gaussian bound give \(\PR(\max_j|\sigma Z_j|>\tau)\le2n\exp[-\tau^2/(2\sigma^2)]\)ℙ(maxj|σZj|>τ)≤2nexp[−τ2/(2σ2)]\mathbb{P}(\max_j|\sigma Z_j|>\tau)\le2n\exp[-\tau^2/(2\sigma^2)]. Taking \(\tau=\sigma\sqrt{2\log(2n/\alpha)}\)τ=σ2log(2n/α)\tau=\sigma\sqrt{2\log(2n/\alpha)} makes this at most \(\alpha\)α\alpha. This finite-confidence threshold differs from a purely asymptotic leading-order formula.

Mid priorityFourier decay and an approximation bound
Exercise 8Fourier decay and an approximation bound#

If \(|C_k|\le A k^{-m}\)|Ck|≤Ak−m|C_k|\le A k^{-m}, identify \(q>0\)q>0q>0 for which \(\sum_{k\ge1}|C_k|^q<\infty\)∑k≥1|Ck|q<∞\sum_{k\ge1}|C_k|^q<\infty, and bound the squared tail for \(m>1/2\)m>1/2m>1/2.

Reveal solution

The \(q\)qq-series is bounded by \(A^q\sum k^{-mq}\)Aq∑k−mqA^q\sum k^{-mq}, which converges when \(mq>1\)mq>1mq>1. For the squared tail, \[\sum_{k>K}|C_k|^2\le A^2\int_K^\infty x^{-2m}dx=\frac{A^2K^{1-2m}}{2m-1}.\]∑k>K|Ck|2≤A2∫K∞x−2mdx=A2K1−2m2m−1.\sum_{k>K}|C_k|^2\le A^2\int_K^\infty x^{-2m}dx=\frac{A^2K^{1-2m}}{2m-1}. For the real Fourier convention in Section 1.3, let \(f_K=A_0/2+\sum_{k=1}^K[A_k\cos(kx)+B_k\sin(kx)]\)fK=A0/2+∑k=1K[Akcos(kx)+Bksin(kx)]f_K=A_0/2+\sum_{k=1}^K[A_k\cos(kx)+B_k\sin(kx)]. Orthogonality gives the exact normalization \[\frac{1}{\pi}\int_{-\pi}^{\pi}|f-f_K|^2\,dx =\sum_{k>K}(A_k^2+B_k^2)=\sum_{k>K}|C_k|^2.\]1π∫−ππ|f−fK|2dx=∑k>K(Ak2+Bk2)=∑k>K|Ck|2.\frac{1}{\pi}\int_{-\pi}^{\pi}|f-f_K|^2\,dx =\sum_{k>K}(A_k^2+B_k^2)=\sum_{k>K}|C_k|^2. Thus the bound above is the squared function-approximation error for the normalized integral; for the unnormalized integral multiply it by \(\pi\)π\pi.

References

[1]
I. Johnstone. Gaussian estimation: Sequence and wavelet models. https://imjohnstone.su.domains/GE_08_09_17.pdf. 2017.

Terminology notes


  1. Fast wavelet transform · Low — not examined

    For standard compactly supported wavelets, applying the transform can take \(O(N)\)O(N)O(N) operations using a filter algorithm. Storing an arbitrary dense \(N\times N\)N×NN\times N matrix would instead require \(N^2\)N2N^2 entries.↩︎

  2. Uniform integrability · Low — not examined

    Uniform integrability means that the contribution of large values to the expectation is uniformly small: \(\sup_n\E[|Z_n|\mathbf1_{\{|Z_n|>M\}}]\to0\)supn𝔼[|Zn|1{|Zn|>M}]→0\sup_n\mathbb{E}[|Z_n|\mathbf1_{\{|Z_n|>M\}}]\to0 as \(M\to\infty\)M→∞M\to\infty. A uniform bound on \(\E|Z_n|^2\)𝔼|Zn|2\mathbb{E}|Z_n|^2 is sufficient, since the tail expectation is at most \(\sup_n\E|Z_n|^2/M\)supn𝔼|Zn|2/M\sup_n\mathbb{E}|Z_n|^2/M. Together with convergence in probability, this condition allows passage to the limit in expectations. Here take \(Z_n=n/Q\)Zn=n/QZ_n=n/Q for \(n\ge5\)n≥5n\ge5.↩︎

What changed

October 19, 2026: Corrected notation, wording and cross-references after the course-wide errata review; refreshed the linked HTML and PDF editions.

October 16, 2026: Stated the regression noise model and coefficient noise scales, corrected support counting in the sparse-risk proof, and made the Fourier approximation normalization explicit. Added optional-part guidance, a backward recap and concise reading summaries. October 17, 2026: Published in optional Part VI with lecture links, student downloads and issue reporting; this material is not examined.

Comments

Discuss an idea or ask a public question. Include a section or exercise number when relevant. For errors in the notes or website, Report an issue.

Public comments use Disqus. Enable JavaScript to load them.

Email the instructor for a private question or if comments are unavailable.