Lasso and Elastic Net for Generalized Linear Models (Poisson, Gamma, Binomial)
The lasso for generalized linear models shrinks the coefficients of a Poisson, gamma or logistic regression by adding an L1 (or elastic-net) penalty to the deviance, setting many of them exactly to zero. The penalty strength is chosen along a path by K-fold cross-validated deviance, using the minimum or the one-standard-error rule.
일반화선형모형 라소는 포아송, 감마, 로지스틱 회귀의 이탈도에 L1(또는 엘라스틱넷) 벌점을 더해 계수를 줄이고 많은 계수를 정확히 0으로 만듭니다. 벌점 크기는 경로를 따라 K겹 교차검증 이탈도로 고르며, 최소 규칙이나 1표준오차 규칙을 씁니다.
Which of many candidate predictors matter for my count, positive skewed or binary outcome?
개수, 양의 비대칭 또는 이분형 결과에 많은 후보 예측변수 가운데 어떤 것이 중요합니까?
The method reports the selected penalty, the coefficients on the original scale with exponentiated values, which predictors were kept, deviance explained, and the cross-validation path.
When to use Lasso and Elastic Net for Generalized Linear Models (Poisson, Gamma, Binomial)
- You have many candidate predictors for a count or positive skewed outcome.
- You want a sparse, predictive GLM.
- Predictors are correlated and ordinary GLM estimates are unstable.
When to use something else
- The outcome is continuous and roughly normal: use Regularised Regression (Ridge, Lasso, ElasticNet)
- You need p-values for a few pre-chosen predictors: use Poisson Regression Model
Assumptions and requirements
- Correct family and link
- Predictors are on comparable scales after standardisation
What the analysis reports
- Selected lambda and CV deviance
- Penalised coefficients and selected predictors
- Deviance explained and CV path
How to report it
A lasso Poisson GLM with 5-fold cross-validation (N = [value], [value] candidates) selected lambda = [value], keeping [value] predictors and explaining [value]% of the null deviance.
Common variants
자주 쓰는 설정
The same analysis with settings already chosen. Each runs Lasso and Elastic Net for Generalized Linear Models (Poisson, Gamma, Binomial) itself, at the same price.
- Probit lasso — family set to “binomial”; link set to “probit”
Related methods
- Regularised Regression (Ridge, Lasso, ElasticNet)
- Regularized Logistic Regression (Lasso, Ridge, Elastic Net)
- Poisson Regression Model
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with statsmodels at a stated tolerance of 1e-4.
독립 계산. statsmodels 대조 참조 시험 1건 통과(허용오차 1e-4).
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 Lasso and Elastic Net for Generalized Linear Models (Poisson, Gamma, Binomial) 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.