In statistics and machine learning, lasso (least absolute shrinkage and selection operator; also Lasso, LASSO or L1 regularization) is a regression analysis method that performs both variable selection and regularization in order to enhance the prediction accuracy and interpretability of the resulting statistical model. The lasso method assumes that the coefficients of the linear model are sparse, meaning that few of them are non-zero. It was originally introduced in geophysics, and later by Robert Tibshirani, who coined the term. Lasso was originally formulated for linear regression models. This simple case reveals a substantial amount about the estimator. These include its relationship to ridge regression and best subset selection and the connections between lasso coefficient estimates and so-called soft thresholding. It also reveals that (like standard linear regression) the coefficient estimates do not need to be unique if covariates are collinear. Though originally defined for linear regression, lasso regularization is easily extended to other statistical models including generalized linear models, generalized estimating equations, proportional hazards models, and M-estimators. Lasso's ability to perform subset selection relies on the form of the constraint and has a variety of interpretations including in terms of geometry, Bayesian statistics and convex analysis. The LASSO is closely related to basis pursuit denoising.
History Lasso was introduced in order to improve the prediction accuracy and interpretability of regression models. It selects a reduced set of the known covariates for use in a model. Lasso was developed independently in geophysics literature in 1986, based on prior work that used the ℓ1 penalty for both fitting and penalization of the coefficients. Statistician Robert Tibshirani independently rediscovered and popularized it in 1996, based on Breiman's nonnegative garrote. Prior to lasso, the most widely used method for choosing covariates was stepwise selection. That approach only improves prediction accuracy in certain cases, such as when only a few covariates have a strong relationship with the outcome. However, in other cases, it can increase prediction error. At the time, ridge regression was the most popular technique for improving prediction accuracy. Ridge regression improves prediction error by shrinking the sum of the squares of the regression coefficients to be less than a fixed value in order to reduce overfitting, but it does not perform covariate selection and therefore does not help to make the model more interpretable. Lasso achieves both of these goals by forcing the sum of the absolute value of the regression coefficients to be less than a fixed value, which forces certain coefficients to zero, excluding them from impacting prediction. This idea is similar to ridge regression, which also shrinks the size of the coefficients; however, ridge regression does not set coefficients to zero (and, thus, does not perform variable selection).
Basic form
Least squares Consider a sample consisting of N cases, each of which consists of p covariates and a single outcome. Let yi be the outcome and xi:=(x1,x2,…,xp)i⊺ be the covariate vector for the i th case. Then the objective of lasso is to solve: minβ0,β{∑i=1N(yi−β0−xi⊺β)2} subject to ∑j=1p|βj|≤t. Here β0 is the constant coefficient, β:=(β1,β2,…,βp) is the coefficient vector, and t is a prespecified free parameter that determines the degree of regularization. Letting X be the covariate matrix, so that Xij=(xi)j and xi⊺ is the i th row of X, the expression can be written more compactly as minβ0,β{‖y−β0−Xβ‖22} subject to ‖β‖1≤t, where ‖u‖p=(∑i=1N|ui|p)1/p is the standard ℓp norm. Denoting the scalar mean of the data points xi by x¯ and the mean of the response variables yi by y¯, the resulting estimate for β0 is β̂0=y¯−x¯⊺β, so that yi−β̂0−xi⊺β=yi−(y¯−x¯⊺β)−xi⊺β=(yi−y¯)−(xi−x¯)⊺β, and therefore it is standard to work with variables that have been made zero-mean. Additionally, the covariates are typically standardized (∑i=1Nxi2=1) so that the solution does not depend on the measurement scale. It can be helpful to rewrite minβ∈ℝp{1N‖y−Xβ‖22} subject to ‖β‖1≤t. in the so-called Lagrangian form minβ∈ℝp{1N‖y−Xβ‖22+λ‖β‖1} where the exact relationship between t and λ is data dependent.
Orthonormal covariates Some basic properties of the lasso estimator can now be considered. Assuming first that the covariates are orthonormal so that xi⊺xj=δij , where δij is the Kronecker delta, or, equivalently, X⊺X=I , then using subgradient methods it can be shown that β̂j = SN,λ(β̂jOLS) = β̂jOLS⋅max{ 0, 1− N λ |β̂jOLS| } where β̂jOLS = (X⊺X)−1X⊺y = X⊺y . Sα is referred to as the soft thresholding operator, since it translates values towards zero (making them exactly zero in the limit as they themselves approach zero) instead of setting smaller values to zero and leaving larger ones untouched as the hard thresholding operator, often denoted Hα , would. In ridge regression the objective is to minimize minβ∈ℝp{ 1 N‖ y−X β ‖22 + λ ‖ β ‖22 } Using X⊺X=I and the ridge regression formula: β̂=( X⊺X + N λ I )−1X⊺y , yields: β̂j=(1+N λ)−1 β̂jOLS . Ridge regression shrinks all coefficients by a uniform factor of (1+Nλ)−1 and does not set any coefficients to zero. It can also be compared to regression with best subset selection, in which the goal is to minimize minβ∈ℝp{ 1N‖ y−Xβ ‖22 + λ ‖ β ‖0 } where ‖⋅‖0 is the " ℓ0 norm", which is defined as ‖z‖=m if exactly m components of z are nonzero. Again assuming orthonormal covariates, it can be shown that in this special case β̂j = HNλ ( β̂jOLS ) = β̂jOLS⋅𝕀[ |β̂jOLS|≥N λ ] where Hα is again the hard thresholding operator and 𝕀 is an indicator function (it is 1 if its argument is true and 0 otherwise). Therefore, the lasso estimates share features of both ridge and best subset selection regression since they both shrink the magnitude of all the coefficients, like ridge regression and set some of them to zero, as in the best subset selection case. Additionally, while ridge regression scales all of the coefficients by a constant factor, lasso instead translates the coefficients towards zero by a constant value and sets them to zero if they reach it.
… excerpt ends here. Continue reading the full article.




![Lasso (statistics): An example how efficient PQSQ regularized regression works just as ℓ1-norm lasso[25]](https://thumb.wikimedia.org/wikipedia/commons/thumb/4/40/PQSQ2.png/500px-PQSQ2.png?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail)