HC3 invalid post selection inference

📚 HC3 invalid post selection inference.pdf

Brief overview

This document addresses the critical issue of invalid post-selection inference (PoSI) in statistical modeling. It explains how selecting models based on data, without accounting for this selection, leads to erroneous statistical conclusions and inflated significance. Understanding these problems and their solutions is essential for accurate scientific research.

Key points

  • Overview of the problem of invalid post-selection inference and its contrast with textbook inference.
  • Examination of the consequences of invalid PoSI, including inflated Type I error rates.
  • Simulation study quantifying the impact of data-driven model selection on inference.
  • Exploration of solutions for valid post-selection inference, including data splitting and conditional inference.

1. Introduction to invalid post-selection inference

1.1 The problem of post-selection inference

Post-selection inference (PoSI) refers to conducting statistical inference on a dataset after a model has been selected based on that same dataset. This practice is common in research but fundamentally invalidates classical inferential procedures.

The core issue is that standard inferential methods assume a pre-specified model, whereas data-driven model selection introduces a dependency between the model and the data, inflating Type I error rates. This means that the probability of falsely rejecting a true null hypothesis is higher than the nominal significance level (e.g., α=0.05\alpha = 0.05) 3.

🔑 Important: Classical inference assumes a fixed model; using data for both model selection and inference breaks this assumption.

1.2 Classical inference in textbooks

The textbook approach to data analysis follows a structured, predefined workflow. This typically involves:

  • Step 1: Model Selection: A statistical model is chosen a priori, before examining the data. For example, a linear regression model might be specified as Yi=θ0+θ1X1i+θ2X2i+θ3X3i+UiY_i = \theta_0 + \theta_1X_{1i} + \theta_2X_{2i} + \theta_3X_{3i} + U_i 10.
  • Step 2: Data Set: The dataset consists of observed values for the outcome variable (YY) and predictor variables (X1,X2,X3X_1, X_2, X_3).

A table representing a dataset with participants and their corresponding values for Y and independent variables X1, X2, and X3..

  • Step 3: Model Fitting: The chosen model is fitted to the data, typically using Ordinary Least Squares (OLS) estimation, to obtain coefficient estimates (θ^\hat{\theta}) 11.
  • Step 4: Hypothesis Testing: A hypothesis test is conducted on a specific coefficient. For instance, to test the effect of X1X_1 (sleep-onset insomnia) on YY (concentration impairment), the null hypothesis is H0:θ1=0H_0: \theta_1 = 0 and the alternative is H1:θ1≠0H_1: \theta_1 \neq 0. The Type I error rate is set at α=0.05\alpha = 0.05. The test statistic is T0=θ^1SE(θ^1)T_0 = \frac{\hat{\theta}_1}{SE(\hat{\theta}_1)}, and it is assumed that T0T_0 follows a tt-distribution with n−p−1n-p-1 degrees of freedom, where pp is the number of predictors in the model 12.

The sampling distribution of an OLS estimator, when the model is correctly specified and inference is performed validly, is well-understood.

This bar chart displays the sampling distribution of the OLS estimator of theta_1. 13.

1.3 Data analysis in practice: the problematic workflow

In contrast to the textbook approach, actual research often deviates significantly, leading to invalid inference. The practical workflow typically involves:

  • Step 1: Exploratory Model Fitting: Researchers fit multiple models by considering various subsets of independent variables. OLS is used to estimate coefficients for each potential model, and model selection criteria like the Akaike Information Criterion (AIC) are employed.
Modelθ^0\hat{\theta}_0θ^1\hat{\theta}_1θ^2\hat{\theta}_2θ^3\hat{\theta}_3AIC
Y=θ0+UY = \theta_0 + U1.48 (0.043)---1044.32
Y=θ0+θ1X1+UY = \theta_0 + \theta_1X_1 + U1.30 (0.064)0.15 (0.040)--1031.54
Y=θ0+θ2X2+UY = \theta_0 + \theta_2X_2 + U1.35 (0.053)-0.17 (0.039)-1028.64
Y=θ0+θ3X3+UY = \theta_0 + \theta_3X_3 + U1.42 (0.061)--0.06 (0.043)1044.13
Y=θ0+θ1X1+θ2X2+UY = \theta_0 + \theta_1X_1 + \theta_2X_2 + U1.24 (0.065)0.11 (0.041)0.13 (0.041)-1023.20
Y=θ0+θ1X1+θ3X3+UY = \theta_0 + \theta_1X_1 + \theta_3X_3 + U1.23 (0.077)0.15 (0.040)-0.06 (0.043)1031.31
Y=θ0+θ2X2+θ3X3+UY = \theta_0 + \theta_2X_2 + \theta_3X_3 + U1.25 (0.071)-0.18 (0.040)0.09 (0.043)1026.10
Y=θ0+θ1X1+θ2X2+θ3X3+UY = \theta_0 + \theta_1X_1 + \theta_2X_2 + \theta_3X_3 + U1.15 (0.080)0.11 (0.041)0.15 (0.041)0.09 (0.043)1021.14

15

  • Step 2: Model Selection: The model that minimizes a criterion, such as AIC, is selected. AIC is calculated as AIC=nln⁡(RSSn)+2(p+1)\text{AIC} = n \ln(\frac{\text{RSS}}{n}) + 2(p+1), where nn is the sample size, RSS is the residual sum of squares, and pp is the number of predictors. In the example, the full model (including X1,X2,X3X_1, X_2, X_3) minimizes AIC 16.
  • Step 3: Hypothesis Testing: Inferential statistics, such as hypothesis tests, are then performed on the coefficients of the selected model, as if this model had been pre-specified. For example, testing H0:θ1=0H_0: \theta_1 = 0 vs. H1:θ1≠0H_1: \theta_1 \neq 0 using the test statistic T0=θ^1SE(θ^1)T_0 = \frac{\hat{\theta}_1}{SE(\hat{\theta}_1)}. The crucial question is whether the assumption T0∼tn−p−1T_0 \sim t_{n-p-1} still holds.

This slide outlines the steps for conducting a hypothesis test for regression coefficients, including the null and alternative hypotheses, the type I error rate, and the test statistic formula..

This practice of selecting a model and then applying classical inference to it without accounting for the selection process is known as invalid post-selection inference 5 17.

🔑 Important: The selection of a model based on data makes the chosen model "special" relative to the data, violating the assumptions of standard hypothesis tests.

1.4 Consequences of invalid post-selection inference

The primary consequence of invalid post-selection inference is an inflated Type I error rate. This means that claims of statistical significance are less reliable, as the probability of a false positive is higher than the nominal α\alpha level.

Researchers may mistakenly conclude that an association is statistically significant when, in reality, it is due to chance or the data-driven selection process 4.

🔑 Important: Invalid PoSI leads to overstating evidence for effects, potentially resulting in the publication of spurious findings and poor scientific conclusions 18.

2. Consequences and issues of invalid post-selection inference

2.1 Biases in variable selection and estimator distributions

Invalid post-selection inference (PoSI) arises when inferential procedures are applied to models selected using the same data. This practice introduces several critical issues.

  • Selection of statistically significant variables: Data-driven selection procedures, such as those based on AIC, tend to favor models that include variables with statistically significant estimated coefficients. This often leads to the exclusion of covariates whose true population coefficients are near zero, unless their estimates are substantially under- or overestimated 19.

  • Non-standard estimator distributions: Under classical inference, the Ordinary Least Squares (OLS) estimator is asymptotically normally distributed due to the Central Limit Theorem. However, after model selection, the post-selection estimator's distribution is a mixture of conditional distributions, each weighted by the probability of selecting a specific model 21.

  • Lack of uniform consistency: The sampling distribution of post-selection estimators is unknown in practice. This is because the mixture distribution depends on data-dependent model selection probabilities, which vary with the true parameter values. Consequently, the resulting distribution does not converge uniformly across all parameter values, deviating from the classical asymptotic normality 23.

The figure below illustrates the distribution of a parameter across 5,000 replicates, overlaid with a normal curve. This visual representation aids in understanding the characteristics of these post-selection distributions, particularly when compared to theoretical expectations.

This histogram shows the distribution of a parameter across 5,000 replicates, with a normal curve overlaid.

This histogram depicts the distribution of an estimator from 5,000 replicates, generated under a specific model assumption. It helps in visualizing the empirical distribution of the estimator after model selection has occurred.

This histogram displays the distribution of an estimator across 5,000 replicates, with data generated under a specific model assumption.

2.2 Simulation study on Type I error inflation

A simulation study was designed to quantify the consequences of invalid PoSI by comparing Type I error rates in classical inference versus scenarios involving model selection followed by inference.

  • Data-generating model: The study used the model Yi=θ0+θ1X1i+θ2X2i+θ3X3i+UiY_i = \theta_0 + \theta_1X_{1i} + \theta_2X_{2i} + \theta_3X_{3i} + U_i, where Ui∼N(0,σ2)U_i \sim N(0, \sigma^2). The simulation parameters were set as θ0=10\theta_0 = 10, θ1=0\theta_1 = 0, θ2=0.4\theta_2 = 0.4, θ3=0.2\theta_3 = 0.2, with σ2=1\sigma^2 = 1 and a sample size n=500n=500. Ten thousand data sets were simulated 26.

  • Scenario 1 (Classical inference): For each data set, the full model was fitted, and the hypothesis H0:θ1=0H_0: \theta_1 = 0 was tested at α=0.05\alpha = 0.05. The proportion of rejected null hypotheses was computed.

  • Scenario 1 results: The Type I error rate was found to be 5.09%, closely aligning with the nominal significance level α=0.05\alpha = 0.05 28.

🔑 Important: This scenario serves as the baseline for classical inference without model selection bias.

  • Scenario 2 (Model selection followed by inference): For each data set, all possible subsets of independent variables were fitted. The model minimizing the Akaike Information Criterion (AIC) was selected. If X1iX_{1i} was included in the selected model, the hypothesis H0:θ1=0H_0: \theta_1 = 0 was tested at α=0.05\alpha = 0.05.

  • Scenario 2 results:

  • The predictor X1iX_{1i} was selected in 15.01% of the data sets.

  • Within this subset of selected models, the Type I error rate for H0:θ1=0H_0: \theta_1 = 0 was 30.98% 30.

This table summarizes the key findings from the simulation study, highlighting the dramatic inflation of the Type I error rate when inference follows data-driven model selection.

ScenarioModel SelectionHypothesis TestType I Error Rate (%)
1: Classical InferenceNoneOn full model5.09
2: Model Selection (AIC) + InferenceYes (AIC)On selected model30.98

The distribution of the test statistic is depicted, indicating regions where the null hypothesis (H0) is rejected. This visualization helps in understanding the practical implications of the inflated Type I error rate.

This chart displays the distribution of the test statistic, indicating the regions where the null hypothesis (H0) is rejected.

2.3 Implications of invalid post-selection inference

The consequences of conducting inference on data-driven selected models are profound and pervasive.

  • Inflated Type I error rates: Invalid PoSI leads to an extremely inflated Type I error rate, meaning that the probability of falsely rejecting a true null hypothesis is significantly higher than the nominal significance level. This undermines the reliability of statistical conclusions drawn from such analyses 34.

  • Underestimated uncertainty: The standard error of the OLS estimator is consistently underestimated post-selection. This occurs because the inference procedure does not account for the uncertainty introduced by the model selection process itself. The true uncertainty in estimating θ1\theta_1 is thus not captured 32.

  • Asymptotic failure: The inflation of the Type I error rate does not diminish asymptotically as the sample size NN approaches infinity. This means that even with large datasets, invalid PoSI will continue to produce unreliable results.

  • Universality of issues: These adverse effects are not confined to specific model selection criteria. Similar inflation of Type I error rates is observed when using other methods such as BIC, Adjusted R-squared, Bootstrap methods, and Cross-validation 33.

This chart illustrates the distribution of a test statistic, with shaded areas denoting regions where the null hypothesis (H0) is rejected, further emphasizing the increased likelihood of Type I errors.

This chart displays the distribution of a test statistic, with shaded areas indicating regions where the null hypothesis (H0) is rejected.

🔑 Important: Always acknowledge and appropriately handle model selection within your statistical inference framework to avoid inflated Type I error rates and biased uncertainty estimates. The practice of selecting a model and then performing classical inference on the same data is fundamentally flawed.

3. Solutions for valid post-selection inference

3.1 Data splitting

  • Approach: This method divides the dataset into two subsets: a training set and a test set.
  • Training set: Used for model selection and parameter estimation.
  • Test set: Used for hypothesis testing based on the model selected from the training set.
  • Rationale: By using separate data for selection and inference, it prevents the selection process from influencing the inference, thereby maintaining validity.

🔑 Important: This is a straightforward approach but leads to a loss of efficiency.

  • Limitations:
  • Reduced statistical power: Using smaller datasets for training may favor simpler models, and a smaller test set can reduce the power of hypothesis tests.
  • Inefficiency: Less data is available for both model selection and inference compared to using the full dataset for each.

3.2 Advanced inference strategies

  • Overview: Two more complex strategies address post-selection inference by either considering all explored models or conditioning on the selection event.
  • Strategies:
  • Simultaneous inference
  • Conditional selective inference

🔑 Important: These methods aim for valid inference while potentially retaining more statistical power than data splitting.

3.2.1 Simultaneous inference

  • Concept: This approach acknowledges that multiple models might have been explored during the selection process and aims to control for the overall probability of making any error across all considered models.
  • Objective: To construct simultaneous (1−α)(1-\alpha) confidence intervals for parameters across all linear regression models that were considered.
  • Mechanism: It considers the statistical uncertainty introduced by exploring various model specifications.

3.2.2 Conditional selective inference

  • Concept: This strategy focuses inference on a single selected model by conditioning on the specific event of that model's selection.
  • Example: The confidence interval for a parameter θ1\theta_1 is constructed under the condition that only the variable corresponding to X1X_1 was selected.
  • Focus: It aims to provide valid inference for the chosen model, given the selection process 35.

🔑 Important: The practical implementation of conditional selective inference is complex and often beyond the scope of introductory material.

🔑 Important: Valid post-selection inference is crucial to avoid inflated Type I error rates and misleading conclusions. Data splitting is a simple but inefficient solution, while simultaneous and conditional inference offer more sophisticated, albeit complex, alternatives.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also