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 coordinate is included in all data points , so there is a column of 1's in the matrix .

 All times are GMT -7. The time now is 01:39 AM.