Normal equation in linear regression
From coursera's ML course I've known that the normal equation is calculated as follows:
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? 
Re: Normal equation in linear regression
Quote:

Re: Normal equation in linear regression
Dr. Ng derived the Normal Equation in class, see Lecture 46 and he also cautioned about the case where X'*X is noninvertible which meant that there were redundant features (linearly dependent) or too many features (m <= n).
Daniel 
Re: Normal equation in linear regression
Thanks you all for useful input. We have some reading to do... :)

All times are GMT 7. The time now is 02:57 PM. 
Powered by vBulletin® Version 3.8.3
Copyright ©2000  2020, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. AbuMostafa, Malik MagdonIsmail, and HsuanTien Lin, and participants in the Learning From Data MOOC by Yaser S. AbuMostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.