1
0
Fork 0

Linear regressing using the normal equation

master
neingeist 10 years ago
parent ad9ab582de
commit ba377e29ba

@ -10,12 +10,7 @@ theta = zeros(size(X, 2), 1);
% to linear regression and put the result in theta. % to linear regression and put the result in theta.
% %
% ---------------------- Sample Solution ---------------------- theta = pinv(X' * X) * X' * y;
% -------------------------------------------------------------
% ============================================================ % ============================================================