Bayesian Model Averaging for Logistic Regression
Bayesian model averaging for logistic regression fits every combination of candidate predictors, weights each model by its approximate posterior probability, keeps the models inside Occam's window, and averages coefficients over them so that model uncertainty enters the results.
로지스틱 회귀용 베이즈 모형 평균화는 후보 설명변수의 모든 조합을 적합하고 각 모형을 근사 사후확률로 가중한 뒤, 오컴의 창 안에 드는 모형들로 계수를 평균해 모형 자체의 불확실성을 결과에 반영하는 방법입니다.
I have ten candidate risk factors for a binary outcome and different selection methods give different final models; which factors have strong evidence once uncertainty about the model itself is accounted for?
이분 결과에 대한 위험요인 후보가 열 개인데 선택 방법마다 최종 모형이 다릅니다. 모형 불확실성까지 고려했을 때 근거가 강한 요인은 무엇인가요?
BMA reports for each factor the posterior probability that it belongs in the model and a model-averaged coefficient with its SD, plus the top models and their probabilities. Inclusion probabilities above about 0.75 indicate positive evidence and above 0.95 strong evidence.
When to use Bayesian Model Averaging for Logistic Regression
- Up to twelve candidate predictors for a binary outcome
- Several models fit similarly well and you want to account for model uncertainty
- You need posterior inclusion probabilities instead of stepwise selection
When to use something else
- Continuous outcome: use Bayesian Model Averaging for Linear Regression
- Many predictors and prediction is the goal: use Regularized Logistic Regression (Lasso, Ridge, Elastic Net)
- A single prespecified model: use Binary Logistic Regression
Assumptions and requirements
- Logit-linear effects in every candidate model
- Independent observations
- BIC (unit-information prior) approximation to the marginal likelihood
- Enough events per parameter that each model's MLE exists
What the analysis reports
- Posterior inclusion probability per predictor
- Model-averaged posterior mean and SD, and means conditional on inclusion
- Top models with posterior probabilities and BIC
- Number of models in Occam's window
How to report it
Bayesian model averaging over [value] logistic models (N = [value], [value] events; Occam's window 1/20 kept [value] models) gave [predictor] an inclusion probability of [value] and a model-averaged log odds ratio of [value] (SD [value]).
Related methods
- Bayesian Model Averaging for Linear Regression
- Stochastic Search Variable Selection (Spike-and-Slab Gibbs)
- Binary Logistic Regression
- Regularized Logistic Regression (Lasso, Ridge, Elastic Net)
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-5.
독립 계산. statsmodels·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-5).
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 Bayesian Model Averaging for Logistic Regression 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.