Abstract
We provide a general mathematical framework for selective inference with supervised model selection procedures characterized by quadratic forms in the outcome variable. Forward stepwise with groups of variables is an important special case as it allows models with categorical variables or factors. Models can be chosen by AIC, BIC, or a fixed number of steps. We provide an exact significance test for each group of variables in the selected model based on an appropriately truncated $\chi$ or $F$ distribution for the cases of known and unknown $\sigma^2$ respectively. An efficient software implementation is available as a package in the R statistical programming language.
Introduction
Modern data analysis often involves selecting a model from a large set of potential predictors using algorithms like Forward Stepwise selection or the Lasso. A critical challenge in this process is "selection bias": when the same data is used for both model selection and hypothesis testing, standard p-values become "anti-conservative" or overly optimistic. This "double dipping" leads to inflated false discovery rates. While previous research addressed this for individual variables, many real-world predictors come in groups, such as categorical factors or splines. This paper introduces a mathematical framework for valid inference following the selection of such groups.
Methodology
The authors propose a framework based on quadratic selection regions. They demonstrate that choosing a model via forward stepwise selection with groups can be described as the data falling into a region defined by quadratic inequalities ($y^T Q y + a^T y + b \ge 0$).
To calculate valid p-values, the authors use truncated distributions. Instead of standard $\chi^2$ or $F$ distributions, they employ distributions truncated to the specific region of the data space that would have led to the selection of the observed model. To handle the high-dimensional geometry, they utilize a "slicing" technique, conditioning on all directions except the one being tested. This reduces the problem to solving univariate quadratic equations to find truncation intervals. For cases with unknown variance ($\sigma^2$), they derive a "Selective $F$-test" using trigonometric reparameterization.
Empirical Results
The method was evaluated using both simulated data and a real-world dataset of California County Health Data. The health data includes 31 predictors used to model "log-years of potential life lost."
As illustrated in the table above, "naive" p-values (calculated without accounting for selection) frequently suggest high significance ($p < 0.001$). However, the "selective" p-values produced by the proposed method are often much larger, revealing that much of the perceived significance in the naive tests was an artifact of selection bias. For instance, while the first variable remains significant, subsequent variables like "%Obese" and "%Receiving HbA1c" see their p-values jump from $<0.001$ to $0.170$ and $0.335$, respectively.
Discussion and Conclusion
The proposed $T_\chi$ and $T_F$ statistics are "exact," meaning they follow a Uniform(0,1) distribution under the null hypothesis, thereby controlling the false positive rate. While selective p-values are more conservative, simulations show they maintain good power to detect real signals in sparse models. The methods are computationally efficient and available in the selectiveInference R package.
Limitations include a potential loss of power due to heavy conditioning and the assumption of Gaussian noise. Future work will focus on reducing conditioning loss and improving robustness against model misspecification.
Summary updated