Thread: Q4) h(x) = ax
View Single Post
  #7  
Old 04-30-2013, 03:55 AM
jlevy jlevy is offline
Junior Member
 
Join Date: Apr 2013
Posts: 5
Default Re: Q4) h(x) = ax

Quote:
Originally Posted by geekoftheweek View Post
Is there a best way to minimize the mean-squared error?
Thanks
Just use w=inv(X`*X)*X`*Y
and note that X has just a single column (no column of 1's).
__________________
Joe Levy
[URL="https://trustmeimastatistician.wordpress.com/"]Trust me, I'm a statistician[/URL]
Reply With Quote