Regularized Logistic Regression (Lasso, Ridge, Elastic Net)
Regularized logistic regression fits a binomial or multinomial logistic model with a lasso, ridge or elastic-net penalty whose strength is chosen by cross-validation.
정규화 로지스틱 회귀는 라쏘·릿지·엘라스틱넷 벌점을 준 이항 또는 다항 로지스틱 모형을 맞추고 벌점 크기를 교차검증으로 고르는 방법입니다.
I have many candidate predictors of a binary outcome — which ones matter, and how well does a penalised model predict?
이진 결과에 대한 후보 예측변수가 많은데, 어떤 변수가 중요하고 벌점 모형의 예측력은 어느 정도인가요?
Standardized predictors are fitted along a grid of λ values with the glmnet-scaled objective, and stratified k-fold cross-validation of log loss or AUC chooses λ_min and the more conservative λ_1se. The output gives standardized and original-scale coefficients with odds ratios, selected variables, cross-validated log loss and AUC, and the λ path. By default the elastic-net mixing is chosen from 0.1, 0.5 and 0.9, at most 10 classes are allowed, data above 20,000 rows are randomly subsampled, and no standard errors or p-values are given.
When to use Regularized Logistic Regression (Lasso, Ridge, Elastic Net)
- You have many or correlated predictors relative to events
- You want automatic variable selection (lasso or elastic net)
- You care about out-of-sample prediction of a binary or nominal outcome
When to use something else
- You need unbiased coefficients with p-values — use ordinary logistic regression or post-selection inference
- Your outcome is continuous — use ridge, lasso or elastic-net linear regression
Assumptions and requirements
- Observations are independent
- The log-odds are linear in the (standardized) predictors
- Cross-validation folds represent future data
What the analysis reports
- Coefficients (standardized and original scale) and odds ratios (binary outcomes)
- Selected variables at the chosen λ
- λ_min and λ_1se
- Cross-validated log loss and AUC with the λ path
How to report it
A lasso logistic regression with λ chosen by [k]-fold cross-validation (1-SE rule, λ = [value]) retained [s] of [p] predictors; cross-validated AUC = [value].
Common variants
자주 쓰는 설정
The same analysis with settings already chosen. Each runs Regularized Logistic Regression (Lasso, Ridge, Elastic Net) itself, at the same price.
- Elastic Net Logistic Regression — penalty set to “elasticnet”
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with reference values computed independently in the test suite.
독립 계산. 시험에서 따로 계산한 참조값 대조 참조 시험 1건 통과.
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 Regularized Logistic Regression (Lasso, Ridge, Elastic Net) 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.