Valid inference after choosing the model from the data
Analysts usually pick variables or models using the same data they then test, which makes standard p-values and intervals wrong. Methods that fix this exist for special cases, but no general, practical solution.
On this page
The problem
Classical theory assumes the model is fixed before seeing the data. In practice, analysts choose which variables to include by stepwise regression, the lasso, looking at plots or trying several specifications, and then report confidence intervals and p-values as if the final model had been chosen in advance. Those intervals are typically too narrow and the p-values too small. Leeb and Pötscher showed that the distribution of post-selection estimators cannot even be estimated uniformly well in general.
Several partial solutions exist. Sample splitting uses one part of the data to choose and the other to test, at a cost in power. The PoSI approach of Berk and colleagues gives intervals valid over all possible selections, which can be very conservative. Conditional selective inference, developed for the lasso and similar procedures, gives exact intervals conditional on the selection event but can produce extremely wide intervals and needs the selection rule to be described precisely. Data fission, data thinning and randomised selection methods trade a little noise for valid inference. None covers the informal, multi-step choices real analyses involve, and their relative efficiency is not well understood.
Why it matters
Most applied analyses involve some data-driven choice. If reported uncertainty ignores it, published findings are more confident than they should be, which feeds into the replication problem.
What counts as progress
- A method that gives intervals with guaranteed coverage after a broad, realistic class of selection procedures (for example any combination of variable screening, transformation choice and outlier removal) and that is not much wider than sample splitting, with theory and simulations.
- Sharp results on the power cost of valid post-selection methods compared with splitting, for standard settings.
- Software that applies a selective inference method to common workflows, with coverage checked by simulation.
Known approaches
Sample splitting and cross-fitting; simultaneous inference over all models (PoSI); conditional selective inference via polyhedral lemmas; randomised response and data carving; data fission and data thinning; bootstrap-based approaches; e-values with optional selection.
Dead ends
- Running the bootstrap on the whole pipeline, including the selection step, does not in general fix the problem.
- Methods proved only for a fixed design with known variance and a single selection rule shouldn't be presented as general solutions.
References
- Leeb and Pötscher (2005): Model selection and inference: facts and fiction
- Berk et al. (2013): Valid post-selection inference
- Lee et al. (2016): Exact post-selection inference, with application to the lasso