Lasso

Lasso, which stands for “Least Absolute Shrinkage and Selection Operator,” is a “penalized” form of regression. This means that it introduces a penalty to the regression model to shrink some of the regression coefficients towards zero.

To illustrate, imagine you’re assembling a team for a game and each player’s skill contributes to your team’s overall performance. However, for each player you add, you need to pay a cost (like a registration fee). The Lasso penalty is akin to this cost. If a player (or a predictor in our regression context) doesn’t contribute much value, you might opt to leave them out to avoid the fee. The stronger the penalty, the more selective you’d be about who you add to your team.

In the context of Lasso regression, this penalty pushes less important predictors’ coefficients towards zero, effectively excluding them from the model.

In Lasso regression, the primary tuning parameter is \(\lambda\) (lambda), which controls the strength of the penalization.

Advantages of Lasso

Disdvantages of Lasso

Implementation of Lasso in R

In R, we implement lasso with glmnet() in the glmnet package. The code templates will do this for you.

Back to top