MATLAB Answers

SC
0

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

Asked by SC
on 9 Feb 2019
Latest activity Edited by 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.

Products


Release

R2016a

0 Answers