Quote:
Originally Posted by lorddoskias
pinv((X'*X))*X'*Y; (octave code) but apparently this is equivalent to just pinv(X)*Y;
Can anyone explain why this is the case?

pinv is already the pseudo inverse function. When applied to an invertible matrix (in this case X'*X), it returns the regular inverse.