Code covered by the BSD License  

Highlights from
Linear Regression with Multiple Variables without regularization

NormalEquation(XNormEqn,y)
function thetaNormEqn = NormalEquation(XNormEqn,y)
% This calculates the values of theta using the normal equation

thetaNormEqn = pinv((XNormEqn')*XNormEqn)*XNormEqn'*y;

Contact us