# How to perform LASSO regression test?

In statistics, to increase the prediction accuracy and interpret-ability of the model, **Least Absolute Shrinkage and Selection Operator (LASSO)** is extremely popular. It is a regression procedure that involves selection and regularisation and was developed in 1989. **LASSO** regression is an extension of linear regression** **that uses shrinkage. The **LASSO** imposes a constraint on the sum of the absolute values of the model parameters. Here the sum has a specific constant as an upper bound. This constraint causes regression coefficients for some variables to shrink towards zero, i.e. ‘shrinkage’.^{ }The **LASSO** regression is easy when there is automatic feature or variable selection. It is also useful when dealing with predictors with high correlation, where standard regression will usually have large regression coefficients.

## How **LASSO** regression works?

Application of **LASSO** regression takes place in three popular techniques; stepwise, backward and forward technique.

**Stepwise model**begins with adding predictors in parts.**Backward model**begins with the full least squares model containing all predictors. Then it iteratively removes the least useful predictor, one-at-a-time. In order to perform backward selection, observations in the data set should be more than variables. This is because one can perform least squares regression when observations are greater than number of independent variable.**Forward model**to choose a subset of the predictor variables for the final model. One can do forward model in context of linear regression whether observations are less than variables or the other way round. Forward selection is a very attractive approach, because it’s both tractable and it gives a good sequence of models.

## Example of **LASSO** regression

This section shows a practical example of how **LASSO** regression works. A sample data contains work-efficiency as the dependent variable and education, work ethics, satisfaction and remuneration are independent variables. Load the data set in SPSS using the following steps:

### Analyze > Regression > Linear > Stepwise method

Starting from stepwise method, table 1 below provides all the variables that show the significance p value (that is less than 0.05) in the model, the variables are remuneration, satisfaction and education.

The ANOVA table 2 below also shows the significant p value for all the above variables. Now, in stepwise regression at each step one variable is added, so at the final row once can see that the work ethics is not included in the model because p value (0.78) is greater than 0.05.

### Analyze > Regression > Linear > Backward

This model begins with a full model and one predictor is removed at a time. All the variables are entered into the model than the independent variable with the partial small correlation consider for the removal. So after running the backward method, Table 4 below shows the partial coefficients for the education, satisfaction and remuneration variables. The significant p value is less than 0.05 except for one variable, work ethics. Since it does not show the significant p value, remove that variable.

### Analyze > Regression > Linear > Forward

The partial coefficients in table 5 are for variables present in the model whereas table 6 the coefficients which are absent from the model. One can see that the work ethics is absent in this case also.

## Applications of **LASSO** regression

**LASSO**regression is important method for creating parsimonious models in presence of a ‘large’ number of features.- Its techniques help to reduce the variance of estimates and hence to improve prediction in modeling.
- It helps to deal with high dimensional correlated data sets (i.e. DNA-microarray or genomic studies).
- It is also useful in high-dimensional feature selection and prediction in many bioinformatics and bio statistical contexts.
- It is popular in genomic data and two genome-scale experimental datasets.
**LASSO**regression is popular in reducing dimensionality and computation time.**LASSO**methods also assess prediction accuracy in independent test data- It is popular in the field of machine learning, computer vision, and artiﬁcial intelligence.

## Software supporting **LASSO** regression

There are lots of software present in statistics that supports Lasso regression applications with multiple independent variables such as R, SAS, MATLAB, STATA and SPSS.

I am a management graduate with specialisation in Marketing and Finance. I have over 12 years' experience in research and analysis. This includes fundamental and applied research in the domains of management and social sciences. I am well versed with academic research principles. Over the years i have developed a mastery in different types of data analysis on different applications like SPSS, Amos, and NVIVO. My expertise lies in inferring the findings and creating actionable strategies based on them.

Over the past decade I have also built a profile as a researcher on Project Guru's Knowledge Tank division. I have penned over 200 articles that have earned me 400+ citations so far. My Google Scholar profile can be accessed here.

I now consult university faculty through Faculty Development Programs (FDPs) on the latest developments in the field of research. I also guide individual researchers on how they can commercialise their inventions or research findings. Other developments im actively involved in at Project Guru include strengthening the "Publish" division as a bridge between industry and academia by bringing together experienced research persons, learners, and practitioners to collaboratively work on a common goal.

## Discuss