CoAxLab / DataSciencePsychNeuro

Repository for the Data Science for Psychology and Neuroscience course at CMU (Verstynen)
GNU Lesser General Public License v3.0
53 stars 53 forks source link

Slide 15 of Lecture 20 #6

Closed adenmarcu closed 2 years ago

adenmarcu commented 3 years ago

The piecewise regression coefficient for LASSO seems inaccurate. I believe it should be $$y_i + \frac{\lambda\hat}{2}$$, if $$y_i < -\frac{\lambda\hat}{2}$$ (versus positive lambda-hat over 2), since otherwise it would be conflict with the condition above it