Why selection changes interval coverage
A confidence interval for a marker effect is often calculated after looking across many genes and reporting the gene with the largest observed difference between clusters. That order matters. Even when every estimate is unbiased before selection, random errors make some estimates unusually large; choosing the largest tends to choose one with a positive error. An ordinary interval may therefore look more precise, or more decisive, than its coverage warrants.
The issue is not that confidence intervals are invalid in general. It is that a pointwise interval is calibrated for a specified effect, not automatically for an effect selected because its estimate was extreme. A selection-adjusted interval must match the selection rule and state its coverage guarantee. Two useful approaches are simultaneous intervals, which protect against selection within a prespecified family, and conditional intervals, which condition on a specified selection event.
For concreteness, an effect might be a prespecified difference in mean expression score between two clusters, expressed in score units. The sampling model below concerns that estimated contrast, not the individual cells as independent experimental replicates. Its standard error must come from a design and analysis that appropriately represent the biological sampling and dependence. A normal approximation is being assumed for the estimator; if that approximation or the standard error is unreliable, interval calibration will also be unreliable.
Pointwise and simultaneous intervals
Suppose a family of \(m\) candidate genes is specified, with estimates satisfying \(\hat{\theta}_j\) approximately normal with mean \(\theta_j\) and known or suitably estimated standard error \(SE_j\). For a gene fixed in advance, an ordinary two-sided interval is
where \(z_q\) is the \(q\) quantile of the standard normal distribution. This interval has approximate pointwise coverage \(1-\alpha\) under the normal model. It does not generally retain that coverage for the gene selected as the largest observed difference.
A direct protection against this problem is to construct intervals that cover all \(m\) candidate effects simultaneously. The Bonferroni interval for each gene is
These intervals are wider because their critical value accounts for the number of candidates. Their key guarantee does not require independent gene estimates. It does require that the family being protected is specified and that each gene-wise interval has its stated marginal error bound under the model.
This guarantee is an unconditional, familywise guarantee: over repeated samples, the probability that any interval in the family misses its corresponding effect is at most \(\alpha\). It implies at least \(1-\alpha\) unconditional coverage for the reported interval, even if the gene is selected after examining all estimates. It does not promise \(1-\alpha\) coverage conditional on the particular event that a particular gene was selected.
Worked Example: The Largest Difference Among 20 Genes
Suppose a hypothetical analysis compares a prespecified pair of clusters for \(m=20\) genes. The largest observed difference is \(\hat{\theta}=0.480\) score units, and its standard error is \(0.200\) score units. Assume the estimator is approximately normal and the standard error is valid.
The ordinary 95% interval uses \(z_{0.975}=1.960\). Its margin of error is \(1.960(0.200)=0.392\) score units, so the interval is
This is a pointwise interval. Since the gene was selected as the largest difference among 20, its nominal pointwise coverage is not justified by that calculation.
For simultaneous 95% coverage, use \(z_{1-0.05/(2\cdot20)}=z_{0.99875}\approx3.023\). The margin is \(3.023(0.200)=0.605\) score units, giving
The wider interval includes zero. Under the stated assumptions and family definition, the Bonferroni procedure gives at least 95% simultaneous coverage for the 20 effects, and therefore at least 95% unconditional coverage for the reported interval. It does not establish 95% coverage conditional on this gene winning the selection.
Conditional intervals after threshold selection
A different adjustment is possible when the selection event is precisely described. Consider a single estimate \(Y\sim N(\theta,s^2)\), where \(s\) is known, and suppose it is reported only when \(Y>c\), for a fixed threshold \(c\). Conditional on passing the threshold, \(Y\) has a truncated normal distribution. Its conditional cumulative distribution function at an observed value \(y>c\) is
where \(\Phi\) is the standard normal cumulative distribution function. Under the assumed model and selection rule, \(F_{\theta,c}(Y)\), conditional on \(Y>c\), is uniformly distributed between 0 and 1. Inverting this conditional pivot gives a \(1-\alpha\) confidence set: retain values of \(\theta\) satisfying \(\alpha/2\le F_{\theta,c}(y)\le1-\alpha/2\). The endpoints are found by solving the two boundary equations. This construction aims for coverage conditional on passing the threshold, rather than only unconditional coverage.
Worked Example: A Normal Estimate Reported Only Above Zero
Suppose a hypothetical marker contrast has observed estimate \(y=2.00\) score units and known standard error \(s=1.00\) score unit. The reporting rule was fixed in advance: report this contrast only if \(Y>0\). Assume \(Y\sim N(\theta,1^2)\), with no additional selection among genes. The ordinary 95% interval is \(2.00\pm1.960=(0.040,3.960)\) score units.
For a conditional 95% interval, set \(c=0\) and solve \(F_{\theta,0}(2.00)=0.975\) for the lower endpoint. At \(\theta=-0.37\), the standardized limits are \(2.00-(-0.37)=2.37\) and \(0-(-0.37)=0.37\). Thus
For the upper endpoint, solve \(F_{\theta,0}(2.00)=0.025\). At \(\theta=3.96\),
The conditional interval is therefore approximately \((-0.37,3.96)\) score units. It is asymmetric and extends below the selection threshold: given that only positive estimates are reported, observing 2.00 is less surprising under some negative values of \(\theta\) than the ordinary interval suggests. This interval has approximate 95% coverage conditional on \(Y>0\), under the stated normal model and fixed threshold rule.
Matching the interval to the selection rule
The threshold calculation is not a general correction for selecting the largest gene. If a gene is chosen because its estimate exceeds a threshold and is larger than every other candidate estimate, the event includes all those comparisons. Conditioning only on \(Y>c\) omits part of the selection rule and does not generally give conditional coverage for the actual winner. For a maximum, the joint selection event and the joint distribution of the estimates matter. The earlier material on selective inference and truncated-normal tests develops those event-based ideas; here the practical point is to avoid treating a simpler event as if it were the real one.
When the candidate family is fixed and the goal is a straightforward guarantee that remains valid after choosing a gene, simultaneous intervals are often easier to audit. The Bonferroni construction can be conservative, especially when many genes are tested or their estimates are strongly dependent. More specialized simultaneous procedures may be narrower if their assumptions are justified. A conditional selective interval can be more tailored to the exact selection event, but it requires a correctly specified selection rule and model, and may require accounting for nuisance parameters or dependence.
The scope of the family is crucial. If genes were filtered, clusters were selected, or contrasts were chosen using the same data, a family consisting only of the final reported genes may omit earlier selection steps. A simultaneous guarantee applies to the family and estimates actually covered by its assumptions; it does not automatically repair unmodeled data-driven filtering or clustering. Independent validation data or a valid sample-splitting design can separate selection from estimation, but the held-out estimates still need a defensible sampling model and standard errors.
Worked Example: How the Family Size Affects an Interval
Consider a second hypothetical analysis with a prespecified family of 100 genes. One reported estimate is \(0.900\) score units with standard error \(0.150\) score units. Assume valid approximately normal estimates and use two-sided 95% Bonferroni intervals.
The ordinary pointwise margin is \(1.960(0.150)=0.294\) score units, giving \((0.606,1.194)\) score units. The simultaneous critical value is \(z_{1-0.05/(2\cdot100)}=z_{0.99975}\approx3.481\), so the adjusted margin is \(3.481(0.150)=0.522\) score units. The simultaneous interval is
The increase in width reflects the stronger simultaneous coverage target across 100 genes. If one of these genes is selected because its estimate is largest, this interval remains covered whenever all 100 intervals cover. The calculation does not say that the selected gene has a 95% chance of being covered after observing the data; the guarantee concerns repeated sampling under the model.
Diagnostics and common mistakes
Before interpreting a selected marker interval, make the selection process explicit. Identify the candidate genes, the contrast, whether selection used the same estimates being reported, and whether the rule was a threshold, a maximum, or a sequence of filtering and clustering decisions. Then check that the interval’s model and coverage statement correspond to that process.
- Using a pointwise interval for a winner. The fact that a 95% interval is valid for each fixed gene does not make it valid at 95% after selecting the largest observed difference.
- Calling Bonferroni conditional coverage. The simultaneous procedure protects the selected interval through an unconditional familywise event. It does not generally provide 95% coverage conditional on a specific gene winning.
- Conditioning on the wrong event. A threshold-only truncated-normal interval does not account for selection as the maximum among many genes unless the selection event truly is just that threshold.
- Ignoring an incomplete family. If the candidate genes were screened using the same data, adjusting only for the final shortlist may fail to cover the full selection process.
- Treating a narrow interval as proof of reliable measurement. Selection adjustment addresses selection-induced coverage, not a misspecified model, underestimated standard error, unmodeled dependence, or an unstable contrast.
A useful alternative is to estimate a marker effect using data not used to select it. Such a design can support ordinary intervals when the held-out estimator and its standard error meet their assumptions. It may sacrifice precision, and it does not eliminate the need to define the target effect and sampling unit correctly. Selection-adjusted intervals and independent estimation solve related but distinct problems.
Check Your Understanding
Answer each question, then compare with the solutions below.
- A gene is selected as the largest estimate among 10 genes. Why does a nominal pointwise 95% interval not automatically provide 95% coverage for the reported effect?
- For \(m=10\) two-sided Bonferroni intervals at familywise level \(\alpha=0.05\), what standard normal critical value is used?
- A gene is reported only when its estimate exceeds a fixed threshold. What distributional adjustment is used to construct a conditional interval?
- Does simultaneous 95% coverage guarantee 95% coverage conditional on a particular gene being selected? Explain.
- A marker was chosen as the maximum of 50 estimates, but its interval is calculated by conditioning only on its estimate being positive. What is the main problem?
Solutions. (1) Selection favors estimates with large positive errors, so the fixed-gene pointwise coverage calculation does not apply to the selected winner. (2) Use \(z_{1-0.05/(2\cdot10)}=z_{0.9975}\approx2.807\). (3) Use the normal distribution truncated by the reporting threshold, and invert its conditional cumulative distribution function. (4) No. Simultaneous coverage gives an unconditional familywise guarantee that implies coverage of a data-selected interval on the event all intervals cover, but not generally conditional coverage given a particular selection. (5) The conditioning event is incomplete: the actual winner must also exceed the other candidates, so threshold-only truncation does not represent the maximum-selection rule.