Nonnegative Garrote
The nonnegative garrote starts from ordinary least squares and multiplies each coefficient by a factor between zero and one or above, chosen to minimise squared error plus a penalty on the sum of the factors. Factors that reach zero remove predictors, so the method both shrinks and selects while keeping the signs of the OLS fit.
비음수 가로테는 보통최소제곱 계수에서 출발해 각 계수에 0 이상의 배율을 곱하는데, 이 배율은 오차제곱합과 배율 합에 대한 벌점의 합이 가장 작아지도록 정해집니다. 배율이 0이 된 예측변수는 빠지므로 축소와 선택을 함께 하면서 OLS 계수의 부호를 유지합니다.
Which predictors should I keep, and how much should their OLS coefficients shrink, to predict well?
예측을 잘하려면 어떤 예측변수를 남기고 OLS 계수를 얼마나 줄여야 합니까?
The method returns the shrinkage factor and final coefficient for each predictor, the penalty chosen by cross-validation (optionally with the one-standard-error rule), the cross-validated error, the number of predictors kept and R squared.
When to use Nonnegative Garrote
- You have more rows than predictors and want selection with less bias than the lasso.
- You want shrinkage that respects the signs of the OLS fit.
- Prediction accuracy matters more than p-values.
When to use something else
- There are more predictors than rows: use Regularised Regression (Ridge, Lasso, ElasticNet)
- You need valid inference after selection: use Post-Double-Selection Lasso
- You want an exhaustive search over small models: use Best Subset Regression
Assumptions and requirements
- n larger than p so OLS exists
- Linear model
- Independent observations
What the analysis reports
- Shrinkage factors
- Garrote coefficients
- Chosen penalty
- Cross-validated error
- Number of predictors kept
How to report it
The nonnegative garrote kept [value] of [value] predictors with a cross-validated MSE of [value].
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy and statsmodels at a stated tolerance of 1e-5.
독립 계산. SciPy·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 Nonnegative Garrote 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.