Stepwise Model Selection by AIC
Stepwise selection by AIC adds or removes one term at a time, each time making the move that lowers the Akaike (or Bayesian) information criterion the most, until no move improves it.
AIC 단계적 선택은 항을 하나씩 더하거나 빼되, 매번 아카이케(또는 베이즈) 정보기준을 가장 많이 낮추는 쪽을 골라 더 나아지지 않을 때까지 반복하는 방법입니다.
I have many candidate predictors and want a smaller model that predicts well; how do I let an information criterion, rather than p-values, decide which terms to keep?
후보 설명변수가 많아서 예측을 잘하는 작은 모형을 만들고 싶은데, p값 대신 정보기준으로 남길 항을 정하려면 어떻게 하나요?
Starting from the full or the intercept-only model, every allowed addition or deletion is scored by AIC = −2 log-likelihood + 2 × parameters (or BIC with log n), and the best move is taken while it lowers the criterion. Categorical predictors enter or leave as a whole, and the path, the final terms and their coefficients are reported with a warning that post-selection p-values are optimistic.
When to use Stepwise Model Selection by AIC
- Exploratory model building for prediction with linear, logistic or Poisson regression.
- You want a reproducible selection rule based on AIC or BIC.
- Reviewers expect the stepAIC procedure common in R.
When to use something else
- The selection should use p-values to enter and remove: use Stepwise Regression Analysis.
- Many predictors relative to cases or you need stable selection: use Regularised Regression (Ridge, Lasso, ElasticNet).
Assumptions and requirements
- The candidate model family (gaussian, binomial or Poisson) is appropriate.
- Enough observations for the full model to be estimable.
- Results of the selected model are exploratory unless validated on new data.
What the analysis reports
- Selection path with the criterion value after each step
- Selected and dropped terms
- Coefficients of the final model and R² for gaussian models
- Starting and final AIC or BIC
How to report it
Bidirectional stepwise selection by AIC retained [k] terms ([terms]); AIC fell from [value] to [value].
Common variants
자주 쓰는 설정
The same analysis with settings already chosen. Each runs Stepwise Model Selection by AIC itself, at the same price.
- Stepwise selection by AICc — criterion set to “aicc”
- Stepwise selection by significance level — criterion set to “sl”
- Stepwise logistic regression by significance level — criterion set to “sl”; family set to “binomial”
- Stepwise selection by PRESS — criterion set to “press”
- Stepwise selection by k-fold cross-validation — criterion set to “cv”
- Stepwise selection with a random validation holdout — validation set to “random”; choose set to “validate”
- Stepwise selection with a training/validation/test column — validation set to “partition”; choose set to “validate”
- Stepwise binomial events/trials regression — family set to “binomial”
- Stepwise negative binomial regression — family set to “negative_binomial”
- Stepwise gamma regression — family set to “gamma”
- Stepwise inverse Gaussian regression — family set to “inverse_gaussian”
- Stepwise Tweedie regression — family set to “tweedie”
- Stepwise ordinal regression — family set to “ordinal”
- Stepwise multinomial logistic regression — family set to “multinomial”
- Stepwise zero-inflated Poisson regression — family set to “zip”
- Stepwise zero-inflated negative binomial regression — family set to “zinb”
- Stepwise probit regression — family set to “binomial”; link set to “probit”
- Stepwise complementary log-log regression — family set to “binomial”; link set to “cloglog”
- Hierarchy-constrained stepwise selection — hierarchy set to “on”
- Stepwise selection with likelihood-ratio tests — sl test set to “lr”
- Stepwise Cox regression — family set to “cox”
Related methods
- Stepwise Regression Analysis
- Regularised Regression (Ridge, Lasso, ElasticNet)
- Bootstrap Optimism-Corrected Model Validation
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with statsmodels and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-6.
독립 계산. statsmodels·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-6).
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Stepwise Model Selection by AIC on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.