1
0
Fork 0

Linear regressing using the normal equation

This commit is contained in:
neingeist 2014-10-02 22:48:53 +02:00
parent ad9ab582de
commit ba377e29ba

View file

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