ArticleslgStudy

mathematics

Lasso (statistics)

Lasso (statistics) is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Lasso (statistics) rather than just read about it. In short: 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 o…

Lasso (statistics) — main illustration
Lasso (statistics) — illustration

Key takeaways

  • Lasso (statistics) belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Lasso (statistics) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Lasso (statistics) from memory before moving on to harder problems.

Reference excerpt

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 {\displaystyle \ell ^{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 y i {\displaystyle y_{i}} be the outcome and x i := ( x 1 , x 2 , … , x p ) i ⊺ {\displaystyle x_{i}:=(x_{1},x_{2},\ldots ,x_{p})_{i}^{\intercal }} be the covariate vector for the i th case. Then the objective of lasso is to solve:

min β 0 , β { ∑ i = 1 N ( y i − β 0 − x i ⊺ β ) 2 } {\displaystyle \min _{\beta _{0},\beta }{\biggl \{}\sum _{i=1}^{N}{\bigl (}y_{i}-\beta _{0}-x_{i}^{\intercal }\beta {\bigr )}^{2}{\biggr \}}}

subject to

∑ j = 1 p | β j | ≤ t . {\displaystyle \sum _{j=1}^{p}|\beta _{j}|\leq t.}

… excerpt ends here. Continue reading the full article.

Illustrations

Lasso (statistics): Solution paths for the 
  
    
      
        
          ℓ
          
            1
          
        
      
    
    {\displaystyle \ell _{1}}
  
 norm and 
  
    
      
        
          ℓ
          
            2
          
        
      
    
    {\displaystyle \ell _{2}}
  
 norm when 
  
    
      
        
          b
          
            OLS
          
        
        =
        2
      
    
    {\displaystyle b_{\text{OLS}}=2}
  
 and 
  
    
      
        
          β
          
            0
          
        
        =
        0
      
    
    {\displaystyle \beta _{0}=0}
Solution paths for the ℓ 1 {\displaystyle \ell _{1}} norm and ℓ 2 {\displaystyle \ell _{2}} norm when b OLS = 2 {\displaystyle b_{\text{OLS}}=2} and β 0 = 0 {\displaystyle \beta _{0}=0}
Lasso (statistics): Laplace distributions are sharply peaked at their mean with more probability density concentrated there compared to a normal distribution.
Laplace distributions are sharply peaked at their mean with more probability density concentrated there compared to a normal distribution.
Lasso (statistics): An example of a PQSQ (piece-wise quadratic function of subquadratic growth) potential function 
  
    
      
        u
        (
        x
        )
      
    
    {\displaystyle u(x)}
  
; here the majorant function is 
  
    
      
        f
        (
        x
        )
        =
        x
      
    
    {\displaystyle f(x)=x}
  
; the potential is defined with trimming after 
  
    
      
        
          r
          
            3
          
        
      
    
    {\displaystyle r_{3}}
  
.
An example of a PQSQ (piece-wise quadratic function of subquadratic growth) potential function u ( x ) {\displaystyle u(x)} ; here the majorant function is f ( x ) = x {\displaystyle f(x)=x} ; the potential is defined with trimming after r 3 {\displaystyle r_{3}} .
Lasso (statistics): An example how efficient PQSQ regularized regression works just as 
  
    
      
        
          ℓ
          
            1
          
        
      
    
    {\displaystyle \ell ^{1}}
  
-norm lasso[22]
An example how efficient PQSQ regularized regression works just as ℓ 1 {\displaystyle \ell ^{1}} -norm lasso[22]

Worked examples

Example 1 — a first encounter with Lasso (statistics)

Start with the simplest possible case. Write down what Lasso (statistics) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Lasso (statistics) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Lasso (statistics) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Lasso (statistics)

In research
Lasso (statistics) appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Lasso (statistics) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Lasso (statistics) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Machine learning algorithms, Regression analysis, so understanding it makes those chapters shorter.
In everyday life
Look for Lasso (statistics) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Lasso (statistics) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Lasso (statistics) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Lasso (statistics) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Lasso (statistics) in simple terms?

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 result…

Why does Lasso (statistics) matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Lasso (statistics)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Lasso (statistics).

Tags

  • Machine learning algorithms
  • Regression analysis

Keep exploring