MATLAB Answers

Why is lasso() not consistent with the answer of the normal equation?

1 view (last 30 days)
SC
SC on 9 Feb 2019
Edited: SC on 9 Feb 2019
Hi,
I have below. Why is B1 different to B2?
X=[1;1]
y=[2;2]
B1=inv(X'*X)*X'*y
B2=lasso(X,y,'lambda',0)
Thanks!

  0 Comments

Sign in to comment.

Answers (0)

Sign in to answer this question.

Products


Release

R2016a

Translated by