advanced40 min studyLesson 717 in Mathematics

Lepski adaptation and model selection

Select a resolution by calibrated comparisons, and distinguish a conditional oracle argument from a complete adaptive risk or confidence theorem.

On this page

What you’ll understand

  • Apply a coarse-to-fine comparison rule with increasing noise thresholds.
  • Prove a deterministic error bound on a simultaneous concentration event.
  • Distinguish selection for estimation from post-selection uncertainty.

The optimal amount of smoothing depends on unknown regularity. Lepski's principle compares estimates across resolutions and retains a coarse estimate only when finer estimates do not contradict it beyond their noise levels. This lets the data choose complexity without directly estimating a derivative order. The comparison thresholds must cover all inspected resolutions together, however. A small numerical example can illustrate the rule, but an adaptive minimax theorem additionally needs calibrated concentration, bias bounds, a suitable candidate family and control of the event where concentration fails.

Compare coarse estimates with noisier fine ones

Consider scalar estimates T0,…,TJ−1T_0,\ldots,T_{J-1} of the same target θ, ordered from coarse to fine. Let deterministic positive thresholds sjs_j be nondecreasing with resolution. Select the smallest j such that ∣Tj−Tk∣≤4sk|T_j-T_k|\le4s_k for every finer k. The finest candidate always passes because it has no finer comparisons. This simplified scalar rule teaches the comparison mechanism; function-valued methods replace absolute differences by a chosen norm and require appropriate stochastic majorants.

A coarse candidate usually has low noise but may retain substantial smoothing bias. A fine candidate may be less biased but too noisy to serve as an oracle truth. The comparison therefore uses the fine candidate's uncertainty rather than demanding exact agreement. Looking only at neighboring candidates can miss accumulated drift, so this rule checks every finer candidate. Other Lepski and Goldenshluger–Lepski procedures use different estimators, comparison operators and penalties; the numerical constant here belongs to the elementary argument below, not to all published variants.

j^=min⁡{j: ∣Tj−Tk∣≤4sk for every k>j}\widehat j=\min\left\{j:\ |T_j-T_k|\le4s_k\text{ for every }k>j\right\}
Indices increase with flexibility and with their calibrated noise bounds. The finite grid ensures that the candidate set is nonempty.↔ Scroll wide equations horizontally.

A simultaneous event gives a transparent oracle comparison

Assume deterministic bias bounds ∣ETj−θ∣≤Bj|\mathbb ET_j-\theta|\le B_j decrease with j. Work on the event where ∣Tj−ETj∣≤sj|T_j-\mathbb ET_j|\le s_j for every j. If a benchmark j* satisfies Bj∗≤sj∗B_{j*}\le s_{j*}, then every finer k has bias at most sj∗≤sks_{j*}\le s_k. Triangle inequalities bound ∣Tj∗−Tk∣|T_{j*}-T_k| by 2sj∗+2sk≤4sk2s_{j*}+2s_k\le4s_k. Thus j* passes and the selected index is no finer than j*.

If the selected index is strictly smaller, its defining comparison with j* bounds their difference by four times the benchmark threshold. The benchmark itself is within twice its threshold of the target, giving an error bound of six times that threshold for the selected estimate. If the selected index equals the benchmark, the smaller two-threshold bound applies. This deterministic reasoning explains the oracle mechanism but does not automatically identify the best benchmark or integrate risk over the complementary event.

E=⋂j=0J−1{∣Tj−ETj∣≤sj},Bj∗≤sj∗⟹j^≤j∗,∣Tj^−θ∣≤6sj∗on E\mathcal E=\bigcap_{j=0}^{J-1}\{|T_j-\mathbb ET_j|\le s_j\},\quad B_{j^*}\le s_{j^*}\quad\Longrightarrow\quad \widehat j\le j^*,\quad|T_{\widehat j}-\theta|\le6s_{j^*}\quad\text{on }\mathcal E
Bias bounds decrease and noise thresholds increase. The conclusion is conditional on a simultaneous concentration event, not a universal confidence interval computed from the selected index.↔ Scroll wide equations horizontally.

Calibrate comparisons before making an adaptation claim

For finitely many Gaussian candidates with known marginal standard deviations, a union bound supplies simultaneous thresholds by multiplying each standard deviation by the square root of twice the logarithm of twice the number of candidates divided by delta. Independence between the candidates is unnecessary for that bound. It is the marginal Gaussian tail bound that matters. In nonparametric function problems, supremum-norm concentration and unknown variances can require substantially more work than this scalar illustration.

A full adaptive estimator aims to approach the best bias–noise balance over several smoothness classes without knowing which one contains the truth. Some settings pay logarithmic costs, and some permit rate adaptation without such a cost under their particular loss. Model selection by penalized risk or cross-validation follows a related complexity tradeoff but is not identical to this comparison rule. Most importantly, selecting a good center for estimation does not make the same selected noise threshold an honest confidence radius: the unknown bias and selection event still have to be addressed.

Reject an over-smoothed candidate

Apply the scalar rule to estimates (0.50,0.82,0.88) and thresholds (0.01,0.03,0.08), in increasing resolution order. Use comparison constant four.

  1. For j=0, compare with k=1: the difference is 0.32 while four times s1 is 0.12. This comparison fails, so candidate zero is rejected regardless of its other comparisons.

  2. For j=1, the only finer candidate is k=2. Their difference is 0.06 and its tolerance is 4×0.08=0.32, so candidate one passes.

  3. The smallest passing index is one, giving selected estimate 0.82. This calculation executes the rule but does not reveal the unknown true target or verify that the simultaneous concentration event occurred. Those guarantees depend on the statistical model and threshold calibration.

The result

The rule chooses a middle resolution because the coarsest candidate disagrees with a finer one by more than the calibrated tolerance.

Explore the model

Interactive lab

Interactive lab · sampling

Calibrate noise before comparing estimates

Pause and Reset, then set both controls to p=0.5 and n=25; predict standard deviation 0.1 for the sample mean. Reset and set p=0.5 and n=100; predict standard deviation 0.05. The instrument provides exact binomial distributions, not Gaussian Lepski candidates or random samples. It illustrates why comparison tolerances must respond to noise level; it does not select a bandwidth or account for smoothing bias.

Calibrate noise before comparing estimatesExact binomial masses for the mean of n independent Bernoulli trials, compared with normal mass between adjacent half-count boundaries; normal tails outside the finite support remain outside the bars. Playback highlights outcomes, not random samples. The Berry–Esseen bound applies to standardized CDFs, not individual bars or continuity-corrected errors. At p = 0 or 1, normal comparison and that bound are disabled. Normal-CDF evaluation uses a numerical approximation with absolute error below 7.5×10⁻⁸ (at most 1.5×10⁻⁷ per interval, before rounding). Current readings: Mean sample proportion: 0.5; Sample-mean variance: 0.0125; Uniform CDF error bound: ≤ 0.1062. All parameters are adjustable with the labeled controls below.Exact distribution of the mean of 20 independent Bernoulli variables with success probability 0.5; playback highlights outcome 0.00.250.50.75100.0580.1150.1730.23Sample mean · k / nProbability massNormal bin masses are an approximationk = 0 · exact probability = 9.54e-7
Exact binomial massNormal interval massHighlighted outcome / mean
Mean sample proportion
0.5
Sample-mean variance
0.0125
Uniform CDF error bound
≤ 0.1062
t = 0 s

Exact binomial masses for the mean of n independent Bernoulli trials, compared with normal mass between adjacent half-count boundaries; normal tails outside the finite support remain outside the bars. Playback highlights outcomes, not random samples. The Berry–Esseen bound applies to standardized CDFs, not individual bars or continuity-corrected errors. At p = 0 or 1, normal comparison and that bound are disabled. Normal-CDF evaluation uses a numerical approximation with absolute error below 7.5×10⁻⁸ (at most 1.5×10⁻⁷ per interval, before rounding). Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forA discrepancy has statistical meaning only relative to a justified noise bound, and multiple comparisons need joint calibration.

Check your understanding

Why does the benchmark candidate j* pass on the event used in the lesson?

Try it yourself

For J=4 Gaussian candidates with common marginal standard deviation 0.02, use delta=0.05 and s=0.02 sqrt(2 log(2J/delta)). Apply the rule to values (0.20,0.50,0.55,0.56). Must the candidates be independent for the union-bound guarantee?

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

Compute the common tolerance 4s and compare every finer candidate with the coarsest passing one.

Compare with the solution

The factor is sqrt(2log(160)), approximately 3.18596, so s is about 0.0637192 and 4s about 0.254877. Candidate zero fails against one because 0.30 exceeds that tolerance. Candidate one differs from two and three by 0.05 and 0.06, so it passes and is selected. A union bound on the four marginal Gaussian tail bounds gives the simultaneous event probability at least 0.95 even if the candidates are dependent. Known marginal deviations and the Gaussian assumption still matter.

Take it with you

  • Lepski selection checks whether finer estimates contradict a coarse one beyond noise.
  • A useful oracle inequality separates deterministic comparison logic from concentration.
  • Adaptive point estimation does not automatically yield honest post-selection uncertainty.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.