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
The question for today
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 of the same target θ, ordered from coarse to fine. Let deterministic positive thresholds be nondecreasing with resolution. Select the smallest j such that 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.
A simultaneous event gives a transparent oracle comparison
Assume deterministic bias bounds decrease with j. Work on the event where for every j. If a benchmark j* satisfies , then every finer k has bias at most . Triangle inequalities bound by . 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.
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.
Work it through
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.
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.
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.
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 rule chooses a middle resolution because the coarsest candidate disagrees with a finer one by more than the calibrated tolerance.
The living notebook
Explore the model
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.
- Mean sample proportion
- 0.5
- Sample-mean variance
- 0.0125
- Uniform CDF error bound
- ≤ 0.1062
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.
Pause & reason
Check your understanding
Your turn
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.
Keep the idea
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.