SlideShare a Scribd company logo
1 of 7
Masayuki Tanaka
Jun. 17, 2016
Derivation of
the closed soft threshold solution
of
the Lasso regression
Lasso regression
The cost function of Lasso regression:
𝐿 𝜷, 𝜆 =
1
2
𝒀 − 𝑿𝜷 2
2
+ 𝜆 𝜷 1
Y:Data matrix
X:System matrix
Orthonormal Lasso regression
𝐿 𝜷, 𝜆 =
1
2
𝒀 − 𝑿𝜷 2
2
+ 𝜆 𝜷 1
where 𝑿 𝑇 𝑿 = 𝑰
(orthonormal)The closed form
soft threshold
solution
𝛽𝑗 = sign 𝛽𝑗
OLS
𝛽𝑗
OLS
− 𝜆
+
𝜷OLS
= arg min
𝜷
1
2
𝒀 − 𝑿𝜷 2
2
= 𝑿 𝑇
𝑿 −1
𝑿 𝑇
𝒀 = 𝑿 𝑇
𝒀
sign 𝜉 =
−1 (𝜉 < 0)
0 (𝜉 = 0)
1 (𝜉 > 0)
𝜉 + = max 𝜉, 0 =
𝜉 (𝜉 > 0)
0 (𝜉 ≤ 0)
Derivation of the soft threshold solution
arg min
𝜷
1
2
𝒀 − 𝑿𝜷 2
2
+ 𝜆 𝜷 1
= arg min
𝜷
1
2
𝒀 𝑇 𝒀 − 2𝜷 𝑇 𝑿 𝑻 𝒀 + 𝜷 𝑇 𝑿 𝑻 𝑿𝜷 + 𝜆 𝜷 1
= arg min
𝜷
1
2
−2𝜷 𝑇
𝜷OLS
+ 𝜷 𝑇
𝜷 + 𝜆 𝜷 1
𝒀 𝑇 𝒀 = 𝒄𝒐𝒏𝒔𝒕
𝑿 𝑻 𝒀 = 𝜷OLS
𝑿 𝑻 𝑿 = 𝑰
(We can consider element-wise)
arg min
𝛽𝑗
𝐶 𝛽𝑗 = arg min
𝛽𝑗
1
2
𝛽𝑗
2
− 𝛽𝑗
OLS
𝛽𝑗 + 𝜆 𝛽𝑗
𝛽𝑗 = 0
𝛽𝑗 = 0
𝛽𝑗 > 0
𝐶 𝛽𝑗 =
1
2
𝛽𝑗
2
− 𝛽𝑗
OLS
𝛽𝑗 + 𝜆𝛽𝑗
= 𝛽𝑗
1
2
𝛽𝑗 − 𝛽𝑗
OLS
+ 𝜆
𝛽𝑗 = 𝛽𝑗
OLS
− 𝜆
𝛽𝑗 < 0
𝐶 𝛽𝑗 =
1
2
𝛽𝑗
2
− 𝛽𝑗
OLS
𝛽𝑗 − 𝜆𝛽𝑗
= 𝛽𝑗
1
2
𝛽𝑗 − 𝛽𝑗
OLS
− 𝜆
𝛽𝑗 = 𝛽𝑗
OLS
+ 𝜆
Derivation of the soft threshold solution
𝛽𝑗
OLS
−𝜆 𝜆
Case: 𝛽𝑗
OLS
< −𝜆 𝛽𝑗
OLS
− 𝜆 < 0𝛽𝑗
OLS
+ 𝜆 < 0
𝛽𝑗
𝐶 𝛽𝑗
𝛽𝑗 = 𝛽𝑗
OLS
+ 𝜆
𝛽𝑗
OLS
−𝜆 𝜆
Case: −𝜆 ≤ 𝛽𝑗
OLS
≤ 𝜆
𝛽𝑗
OLS
− 𝜆 ≤ 0𝛽𝑗
OLS
+ 𝜆 ≥ 0
𝛽𝑗
𝐶 𝛽𝑗
𝛽𝑗 = 0
𝛽𝑗
OLS
−𝜆 𝜆
Case: 𝜆 < 𝛽𝑗
OLS
𝛽𝑗
OLS
− 𝜆 > 0𝛽𝑗
OLS
+ 𝜆 > 0
𝛽𝑗
𝐶 𝛽𝑗
𝛽𝑗 = 𝛽𝑗
OLS
− 𝜆
Derivation of the soft threshold solution
Case: 𝛽𝑗
OLS
< −𝜆, 𝛽𝑗 = 𝛽𝑗
OLS
+ 𝜆
Case: −𝜆 ≤ 𝛽𝑗
OLS
≤ 𝜆,𝛽𝑗 = 0
Case: 𝜆 < 𝛽𝑗
OLS
, 𝛽𝑗 = 𝛽𝑗
OLS
− 𝜆
𝛽𝑗 = sign 𝛽𝑗
OLS
𝛽𝑗
OLS
− 𝜆
+
𝛽𝑗 = sign 𝛽𝑗
OLS
𝛽𝑗
OLS
− 𝜆
+
= −1 − 𝛽𝑗
OLS
− 𝜆
+
= 𝛽𝑗
OLS
+ 𝜆
𝛽𝑗 = sign 𝛽𝑗
OLS
𝛽𝑗
OLS
− 𝜆
+
= sign 𝛽𝑗
OLS
× 0 = 0
𝛽𝑗 = sign 𝛽𝑗
OLS
𝛽𝑗
OLS
− 𝜆
+
= +1 𝛽𝑗
OLS
− 𝜆
+
= 𝛽𝑗
OLS
− 𝜆
Reference
High-dimensional data analysis, Lecture 6 (Lasso Regression) by Wessel van Wierin

More Related Content

What's hot

Simple Linear Regression
Simple Linear RegressionSimple Linear Regression
Simple Linear Regression
Sharlaine Ruth
 

What's hot (20)

Linear Regression in R
Linear Regression in RLinear Regression in R
Linear Regression in R
 
Linear regression
Linear regression Linear regression
Linear regression
 
Machine learning session4(linear regression)
Machine learning   session4(linear regression)Machine learning   session4(linear regression)
Machine learning session4(linear regression)
 
Regression Analysis Research Presentation
Regression Analysis Research PresentationRegression Analysis Research Presentation
Regression Analysis Research Presentation
 
Support Vector Machine ppt presentation
Support Vector Machine ppt presentationSupport Vector Machine ppt presentation
Support Vector Machine ppt presentation
 
Simple Linear Regression
Simple Linear RegressionSimple Linear Regression
Simple Linear Regression
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Machine Learning - Simple Linear Regression
Machine Learning - Simple Linear RegressionMachine Learning - Simple Linear Regression
Machine Learning - Simple Linear Regression
 
Ordinary least squares linear regression
Ordinary least squares linear regressionOrdinary least squares linear regression
Ordinary least squares linear regression
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Bias and Mean square error
Bias and Mean square errorBias and Mean square error
Bias and Mean square error
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
KNN
KNNKNN
KNN
 
Linear algebra-Basis & Dimension
Linear algebra-Basis & DimensionLinear algebra-Basis & Dimension
Linear algebra-Basis & Dimension
 
Linear dependence & independence vectors
Linear dependence & independence vectorsLinear dependence & independence vectors
Linear dependence & independence vectors
 
Power series
Power seriesPower series
Power series
 
Linear regression in machine learning
Linear regression in machine learningLinear regression in machine learning
Linear regression in machine learning
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 

Viewers also liked

Lecture 8 strings and characters
Lecture 8  strings and charactersLecture 8  strings and characters
Lecture 8 strings and characters
alvin567
 
Seminar on Robust Regression Methods
Seminar on Robust Regression MethodsSeminar on Robust Regression Methods
Seminar on Robust Regression Methods
Sumon Sdb
 
A_Study_on_the_Medieval_Kerala_School_of_Mathematics
A_Study_on_the_Medieval_Kerala_School_of_MathematicsA_Study_on_the_Medieval_Kerala_School_of_Mathematics
A_Study_on_the_Medieval_Kerala_School_of_Mathematics
Sumon Sdb
 
Seminar- Robust Regression Methods
Seminar- Robust Regression MethodsSeminar- Robust Regression Methods
Seminar- Robust Regression Methods
Sumon Sdb
 
Outlier detection for high dimensional data
Outlier detection for high dimensional dataOutlier detection for high dimensional data
Outlier detection for high dimensional data
Parag Tamhane
 
5.7 poisson regression in the analysis of cohort data
5.7 poisson regression in the analysis of  cohort data5.7 poisson regression in the analysis of  cohort data
5.7 poisson regression in the analysis of cohort data
A M
 
Impedance Spectroscopy
Impedance Spectroscopy Impedance Spectroscopy
Impedance Spectroscopy
bisquertGroup
 

Viewers also liked (20)

Apprentissage automatique, Régression Ridge et LASSO
Apprentissage automatique, Régression Ridge et LASSOApprentissage automatique, Régression Ridge et LASSO
Apprentissage automatique, Régression Ridge et LASSO
 
Reading the Lasso 1996 paper by Robert Tibshirani
Reading the Lasso 1996 paper by Robert TibshiraniReading the Lasso 1996 paper by Robert Tibshirani
Reading the Lasso 1996 paper by Robert Tibshirani
 
Lecture 8 strings and characters
Lecture 8  strings and charactersLecture 8  strings and characters
Lecture 8 strings and characters
 
Python introduction
Python introductionPython introduction
Python introduction
 
Thiyagu viva voce prsesentation
Thiyagu viva voce prsesentationThiyagu viva voce prsesentation
Thiyagu viva voce prsesentation
 
Seminar on Robust Regression Methods
Seminar on Robust Regression MethodsSeminar on Robust Regression Methods
Seminar on Robust Regression Methods
 
4thchannel conference poster_freedom_gumedze
4thchannel conference poster_freedom_gumedze4thchannel conference poster_freedom_gumedze
4thchannel conference poster_freedom_gumedze
 
Lasso
LassoLasso
Lasso
 
A_Study_on_the_Medieval_Kerala_School_of_Mathematics
A_Study_on_the_Medieval_Kerala_School_of_MathematicsA_Study_on_the_Medieval_Kerala_School_of_Mathematics
A_Study_on_the_Medieval_Kerala_School_of_Mathematics
 
Python Introduction
Python IntroductionPython Introduction
Python Introduction
 
Phonons & Phonopy: Pro Tips (2015)
Phonons & Phonopy: Pro Tips (2015)Phonons & Phonopy: Pro Tips (2015)
Phonons & Phonopy: Pro Tips (2015)
 
Seminar- Robust Regression Methods
Seminar- Robust Regression MethodsSeminar- Robust Regression Methods
Seminar- Robust Regression Methods
 
Seminarppt
SeminarpptSeminarppt
Seminarppt
 
Outlier detection for high dimensional data
Outlier detection for high dimensional dataOutlier detection for high dimensional data
Outlier detection for high dimensional data
 
5.7 poisson regression in the analysis of cohort data
5.7 poisson regression in the analysis of  cohort data5.7 poisson regression in the analysis of  cohort data
5.7 poisson regression in the analysis of cohort data
 
C2.5
C2.5C2.5
C2.5
 
Impedance Spectroscopy
Impedance Spectroscopy Impedance Spectroscopy
Impedance Spectroscopy
 
Poisson regression models for count data
Poisson regression models for count dataPoisson regression models for count data
Poisson regression models for count data
 
Diagnostic in poisson regression models
Diagnostic in poisson regression modelsDiagnostic in poisson regression models
Diagnostic in poisson regression models
 
VASP And Wannier90: A Quick Tutorial
VASP And Wannier90: A Quick TutorialVASP And Wannier90: A Quick Tutorial
VASP And Wannier90: A Quick Tutorial
 

Similar to Lasso regression

Error Correction 14_03_2022.pptx
Error Correction 14_03_2022.pptxError Correction 14_03_2022.pptx
Error Correction 14_03_2022.pptx
RonCohen53
 
Testdjhdhddjjdjdjdjdjdjdjjdjdjffhfhfhfjfudh
TestdjhdhddjjdjdjdjdjdjdjjdjdjffhfhfhfjfudhTestdjhdhddjjdjdjdjdjdjdjjdjdjffhfhfhfjfudh
Testdjhdhddjjdjdjdjdjdjdjjdjdjffhfhfhfjfudh
ankitlakhiwal
 

Similar to Lasso regression (20)

Least Square with L0, L1, and L2 Constraint
Least Square with L0, L1, and L2 ConstraintLeast Square with L0, L1, and L2 Constraint
Least Square with L0, L1, and L2 Constraint
 
Solving Poisson Equation using Conjugate Gradient Method and its implementation
Solving Poisson Equation using Conjugate Gradient Methodand its implementationSolving Poisson Equation using Conjugate Gradient Methodand its implementation
Solving Poisson Equation using Conjugate Gradient Method and its implementation
 
Tutorial 8
Tutorial 8Tutorial 8
Tutorial 8
 
Further Results On The Basis Of Cauchy’s Proper Bound for the Zeros of Entire...
Further Results On The Basis Of Cauchy’s Proper Bound for the Zeros of Entire...Further Results On The Basis Of Cauchy’s Proper Bound for the Zeros of Entire...
Further Results On The Basis Of Cauchy’s Proper Bound for the Zeros of Entire...
 
Intro to Quant Trading Strategies (Lecture 5 of 10)
Intro to Quant Trading Strategies (Lecture 5 of 10)Intro to Quant Trading Strategies (Lecture 5 of 10)
Intro to Quant Trading Strategies (Lecture 5 of 10)
 
7.3_Nonlinear Programming-LagrangeExamples.pptx
7.3_Nonlinear Programming-LagrangeExamples.pptx7.3_Nonlinear Programming-LagrangeExamples.pptx
7.3_Nonlinear Programming-LagrangeExamples.pptx
 
Problem of the week no6
Problem of the week no6Problem of the week no6
Problem of the week no6
 
Residue integration 01
Residue integration 01Residue integration 01
Residue integration 01
 
Intro to Quant Trading Strategies (Lecture 3 of 10)
Intro to Quant Trading Strategies (Lecture 3 of 10)Intro to Quant Trading Strategies (Lecture 3 of 10)
Intro to Quant Trading Strategies (Lecture 3 of 10)
 
서포트 벡터 머신(Support Vector Machine, SVM)
서포트 벡터 머신(Support Vector Machine, SVM)서포트 벡터 머신(Support Vector Machine, SVM)
서포트 벡터 머신(Support Vector Machine, SVM)
 
C0560913
C0560913C0560913
C0560913
 
Intro to Quantitative Investment (Lecture 4 of 6)
Intro to Quantitative Investment (Lecture 4 of 6)Intro to Quantitative Investment (Lecture 4 of 6)
Intro to Quantitative Investment (Lecture 4 of 6)
 
Homework 1 Solution.pptx
Homework 1 Solution.pptxHomework 1 Solution.pptx
Homework 1 Solution.pptx
 
تطبيقات المعادلات التفاضلية
تطبيقات المعادلات التفاضليةتطبيقات المعادلات التفاضلية
تطبيقات المعادلات التفاضلية
 
Taller 1 parcial 3
Taller 1 parcial 3Taller 1 parcial 3
Taller 1 parcial 3
 
Error Correction 14_03_2022.pptx
Error Correction 14_03_2022.pptxError Correction 14_03_2022.pptx
Error Correction 14_03_2022.pptx
 
Testdjhdhddjjdjdjdjdjdjdjjdjdjffhfhfhfjfudh
TestdjhdhddjjdjdjdjdjdjdjjdjdjffhfhfhfjfudhTestdjhdhddjjdjdjdjdjdjdjjdjdjffhfhfhfjfudh
Testdjhdhddjjdjdjdjdjdjdjjdjdjffhfhfhfjfudh
 
Blow up in a degenerate keller--segel system(Eng.)
Blow up in a degenerate keller--segel system(Eng.)Blow up in a degenerate keller--segel system(Eng.)
Blow up in a degenerate keller--segel system(Eng.)
 
07.5.scd_ejemplos
07.5.scd_ejemplos07.5.scd_ejemplos
07.5.scd_ejemplos
 
Schwarzchild solution derivation
Schwarzchild solution derivationSchwarzchild solution derivation
Schwarzchild solution derivation
 

More from Masayuki Tanaka

遠赤外線カメラと可視カメラを利用した悪条件下における画像取得
遠赤外線カメラと可視カメラを利用した悪条件下における画像取得遠赤外線カメラと可視カメラを利用した悪条件下における画像取得
遠赤外線カメラと可視カメラを利用した悪条件下における画像取得
Masayuki Tanaka
 

More from Masayuki Tanaka (20)

Slideshare breaking inter layer co-adaptation
Slideshare breaking inter layer co-adaptationSlideshare breaking inter layer co-adaptation
Slideshare breaking inter layer co-adaptation
 
PRMU201902 Presentation document
PRMU201902 Presentation documentPRMU201902 Presentation document
PRMU201902 Presentation document
 
Gradient-Based Low-Light Image Enhancement
Gradient-Based Low-Light Image EnhancementGradient-Based Low-Light Image Enhancement
Gradient-Based Low-Light Image Enhancement
 
Year-End Seminar 2018
Year-End Seminar 2018Year-End Seminar 2018
Year-End Seminar 2018
 
遠赤外線カメラと可視カメラを利用した悪条件下における画像取得
遠赤外線カメラと可視カメラを利用した悪条件下における画像取得遠赤外線カメラと可視カメラを利用した悪条件下における画像取得
遠赤外線カメラと可視カメラを利用した悪条件下における画像取得
 
Learnable Image Encryption
Learnable Image EncryptionLearnable Image Encryption
Learnable Image Encryption
 
クリエイティブ・コモンズ
クリエイティブ・コモンズクリエイティブ・コモンズ
クリエイティブ・コモンズ
 
デザイン4原則
デザイン4原則デザイン4原則
デザイン4原則
 
メラビアンの法則
メラビアンの法則メラビアンの法則
メラビアンの法則
 
類似性の法則
類似性の法則類似性の法則
類似性の法則
 
権威に訴える論証
権威に訴える論証権威に訴える論証
権威に訴える論証
 
Chain rule of deep neural network layer for back propagation
Chain rule of deep neural network layer for back propagationChain rule of deep neural network layer for back propagation
Chain rule of deep neural network layer for back propagation
 
Give Me Four
Give Me FourGive Me Four
Give Me Four
 
Tech art 20170315
Tech art 20170315Tech art 20170315
Tech art 20170315
 
My Slide Theme
My Slide ThemeMy Slide Theme
My Slide Theme
 
Font Memo
Font MemoFont Memo
Font Memo
 
One-point for presentation
One-point for presentationOne-point for presentation
One-point for presentation
 
ADMM algorithm in ProxImaL
ADMM algorithm in ProxImaL ADMM algorithm in ProxImaL
ADMM algorithm in ProxImaL
 
Intensity Constraint Gradient-Based Image Reconstruction
Intensity Constraint Gradient-Based Image ReconstructionIntensity Constraint Gradient-Based Image Reconstruction
Intensity Constraint Gradient-Based Image Reconstruction
 
Welcome to our lab 2016
Welcome to our lab 2016Welcome to our lab 2016
Welcome to our lab 2016
 

Recently uploaded

dkNET Webinar "Texera: A Scalable Cloud Computing Platform for Sharing Data a...
dkNET Webinar "Texera: A Scalable Cloud Computing Platform for Sharing Data a...dkNET Webinar "Texera: A Scalable Cloud Computing Platform for Sharing Data a...
dkNET Webinar "Texera: A Scalable Cloud Computing Platform for Sharing Data a...
dkNET
 
Pests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdf
PirithiRaju
 
Conjugation, transduction and transformation
Conjugation, transduction and transformationConjugation, transduction and transformation
Conjugation, transduction and transformation
Areesha Ahmad
 
biology HL practice questions IB BIOLOGY
biology HL practice questions IB BIOLOGYbiology HL practice questions IB BIOLOGY
biology HL practice questions IB BIOLOGY
1301aanya
 

Recently uploaded (20)

dkNET Webinar "Texera: A Scalable Cloud Computing Platform for Sharing Data a...
dkNET Webinar "Texera: A Scalable Cloud Computing Platform for Sharing Data a...dkNET Webinar "Texera: A Scalable Cloud Computing Platform for Sharing Data a...
dkNET Webinar "Texera: A Scalable Cloud Computing Platform for Sharing Data a...
 
Pests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdfPests of mustard_Identification_Management_Dr.UPR.pdf
Pests of mustard_Identification_Management_Dr.UPR.pdf
 
Conjugation, transduction and transformation
Conjugation, transduction and transformationConjugation, transduction and transformation
Conjugation, transduction and transformation
 
Call Girls Alandi Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Alandi Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Alandi Call Me 7737669865 Budget Friendly No Advance Booking
 
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
Vip profile Call Girls In Lonavala 9748763073 For Genuine Sex Service At Just...
 
Factory Acceptance Test( FAT).pptx .
Factory Acceptance Test( FAT).pptx       .Factory Acceptance Test( FAT).pptx       .
Factory Acceptance Test( FAT).pptx .
 
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verifiedConnaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
 
Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)
Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)
Feature-aligned N-BEATS with Sinkhorn divergence (ICLR '24)
 
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
 
STS-UNIT 4 CLIMATE CHANGE POWERPOINT PRESENTATION
STS-UNIT 4 CLIMATE CHANGE POWERPOINT PRESENTATIONSTS-UNIT 4 CLIMATE CHANGE POWERPOINT PRESENTATION
STS-UNIT 4 CLIMATE CHANGE POWERPOINT PRESENTATION
 
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)
 
Dopamine neurotransmitter determination using graphite sheet- graphene nano-s...
Dopamine neurotransmitter determination using graphite sheet- graphene nano-s...Dopamine neurotransmitter determination using graphite sheet- graphene nano-s...
Dopamine neurotransmitter determination using graphite sheet- graphene nano-s...
 
Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdf
 
biology HL practice questions IB BIOLOGY
biology HL practice questions IB BIOLOGYbiology HL practice questions IB BIOLOGY
biology HL practice questions IB BIOLOGY
 
Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.
 
Unit5-Cloud.pptx for lpu course cse121 o
Unit5-Cloud.pptx for lpu course cse121 oUnit5-Cloud.pptx for lpu course cse121 o
Unit5-Cloud.pptx for lpu course cse121 o
 
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
 
pumpkin fruit fly, water melon fruit fly, cucumber fruit fly
pumpkin fruit fly, water melon fruit fly, cucumber fruit flypumpkin fruit fly, water melon fruit fly, cucumber fruit fly
pumpkin fruit fly, water melon fruit fly, cucumber fruit fly
 
Justdial Call Girls In Indirapuram, Ghaziabad, 8800357707 Escorts Service
Justdial Call Girls In Indirapuram, Ghaziabad, 8800357707 Escorts ServiceJustdial Call Girls In Indirapuram, Ghaziabad, 8800357707 Escorts Service
Justdial Call Girls In Indirapuram, Ghaziabad, 8800357707 Escorts Service
 

Lasso regression

  • 1. Masayuki Tanaka Jun. 17, 2016 Derivation of the closed soft threshold solution of the Lasso regression
  • 2. Lasso regression The cost function of Lasso regression: 𝐿 𝜷, 𝜆 = 1 2 𝒀 − 𝑿𝜷 2 2 + 𝜆 𝜷 1 Y:Data matrix X:System matrix
  • 3. Orthonormal Lasso regression 𝐿 𝜷, 𝜆 = 1 2 𝒀 − 𝑿𝜷 2 2 + 𝜆 𝜷 1 where 𝑿 𝑇 𝑿 = 𝑰 (orthonormal)The closed form soft threshold solution 𝛽𝑗 = sign 𝛽𝑗 OLS 𝛽𝑗 OLS − 𝜆 + 𝜷OLS = arg min 𝜷 1 2 𝒀 − 𝑿𝜷 2 2 = 𝑿 𝑇 𝑿 −1 𝑿 𝑇 𝒀 = 𝑿 𝑇 𝒀 sign 𝜉 = −1 (𝜉 < 0) 0 (𝜉 = 0) 1 (𝜉 > 0) 𝜉 + = max 𝜉, 0 = 𝜉 (𝜉 > 0) 0 (𝜉 ≤ 0)
  • 4. Derivation of the soft threshold solution arg min 𝜷 1 2 𝒀 − 𝑿𝜷 2 2 + 𝜆 𝜷 1 = arg min 𝜷 1 2 𝒀 𝑇 𝒀 − 2𝜷 𝑇 𝑿 𝑻 𝒀 + 𝜷 𝑇 𝑿 𝑻 𝑿𝜷 + 𝜆 𝜷 1 = arg min 𝜷 1 2 −2𝜷 𝑇 𝜷OLS + 𝜷 𝑇 𝜷 + 𝜆 𝜷 1 𝒀 𝑇 𝒀 = 𝒄𝒐𝒏𝒔𝒕 𝑿 𝑻 𝒀 = 𝜷OLS 𝑿 𝑻 𝑿 = 𝑰 (We can consider element-wise) arg min 𝛽𝑗 𝐶 𝛽𝑗 = arg min 𝛽𝑗 1 2 𝛽𝑗 2 − 𝛽𝑗 OLS 𝛽𝑗 + 𝜆 𝛽𝑗 𝛽𝑗 = 0 𝛽𝑗 = 0 𝛽𝑗 > 0 𝐶 𝛽𝑗 = 1 2 𝛽𝑗 2 − 𝛽𝑗 OLS 𝛽𝑗 + 𝜆𝛽𝑗 = 𝛽𝑗 1 2 𝛽𝑗 − 𝛽𝑗 OLS + 𝜆 𝛽𝑗 = 𝛽𝑗 OLS − 𝜆 𝛽𝑗 < 0 𝐶 𝛽𝑗 = 1 2 𝛽𝑗 2 − 𝛽𝑗 OLS 𝛽𝑗 − 𝜆𝛽𝑗 = 𝛽𝑗 1 2 𝛽𝑗 − 𝛽𝑗 OLS − 𝜆 𝛽𝑗 = 𝛽𝑗 OLS + 𝜆
  • 5. Derivation of the soft threshold solution 𝛽𝑗 OLS −𝜆 𝜆 Case: 𝛽𝑗 OLS < −𝜆 𝛽𝑗 OLS − 𝜆 < 0𝛽𝑗 OLS + 𝜆 < 0 𝛽𝑗 𝐶 𝛽𝑗 𝛽𝑗 = 𝛽𝑗 OLS + 𝜆 𝛽𝑗 OLS −𝜆 𝜆 Case: −𝜆 ≤ 𝛽𝑗 OLS ≤ 𝜆 𝛽𝑗 OLS − 𝜆 ≤ 0𝛽𝑗 OLS + 𝜆 ≥ 0 𝛽𝑗 𝐶 𝛽𝑗 𝛽𝑗 = 0 𝛽𝑗 OLS −𝜆 𝜆 Case: 𝜆 < 𝛽𝑗 OLS 𝛽𝑗 OLS − 𝜆 > 0𝛽𝑗 OLS + 𝜆 > 0 𝛽𝑗 𝐶 𝛽𝑗 𝛽𝑗 = 𝛽𝑗 OLS − 𝜆
  • 6. Derivation of the soft threshold solution Case: 𝛽𝑗 OLS < −𝜆, 𝛽𝑗 = 𝛽𝑗 OLS + 𝜆 Case: −𝜆 ≤ 𝛽𝑗 OLS ≤ 𝜆,𝛽𝑗 = 0 Case: 𝜆 < 𝛽𝑗 OLS , 𝛽𝑗 = 𝛽𝑗 OLS − 𝜆 𝛽𝑗 = sign 𝛽𝑗 OLS 𝛽𝑗 OLS − 𝜆 + 𝛽𝑗 = sign 𝛽𝑗 OLS 𝛽𝑗 OLS − 𝜆 + = −1 − 𝛽𝑗 OLS − 𝜆 + = 𝛽𝑗 OLS + 𝜆 𝛽𝑗 = sign 𝛽𝑗 OLS 𝛽𝑗 OLS − 𝜆 + = sign 𝛽𝑗 OLS × 0 = 0 𝛽𝑗 = sign 𝛽𝑗 OLS 𝛽𝑗 OLS − 𝜆 + = +1 𝛽𝑗 OLS − 𝜆 + = 𝛽𝑗 OLS − 𝜆
  • 7. Reference High-dimensional data analysis, Lecture 6 (Lasso Regression) by Wessel van Wierin