LFD Book Forum

LFD Book Forum (http://book.caltech.edu/bookforum/index.php)
-   Chapter 3 - The Linear Model (http://book.caltech.edu/bookforum/forumdisplay.php?f=110)
-   -   Linear regression - constructing X matrix (http://book.caltech.edu/bookforum/showthread.php?t=347)

folktheory 04-15-2012 04:45 PM

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

yaser 04-15-2012 06:59 PM

Re: Linear regression - constructing X matrix
 
Quote:

Originally Posted by folktheory (Post 1301)
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}.


All times are GMT -7. The time now is 09:55 PM.

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.