LFD Book Forum  

Go Back   LFD Book Forum > Book Feedback - Learning From Data > Chapter 3 - The Linear Model

Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-2012, 04:45 PM
folktheory folktheory is offline
Junior Member
 
Join Date: Apr 2012
Posts: 3
Default Linear regression - constructing X matrix

Hello, I have a pretty straightforward question.

When we make the X matrix (that we then use to obtain X-dagger), should we include the x0's in there (that is, a column of ones) or do we leave those out?

Thanks
Reply With Quote
  #2  
Old 04-15-2012, 06:59 PM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,477
Default Re: Linear regression - constructing X matrix

Quote:
Originally Posted by folktheory View Post
Hello, I have a pretty straightforward question.

When we make the X matrix (that we then use to obtain X-dagger), should we include the x0's in there (that is, a column of ones) or do we leave those out?

Thanks
Yes, the x_0=1 coordinate is included in all data points {\bf x}_n, so there is a column of 1's in the matrix {\rm X}.
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:11 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. Abu-Mostafa, Malik Magdon-Ismail, and Hsuan-Tien Lin, and participants in the Learning From Data MOOC by Yaser S. Abu-Mostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.