LFD Book Forum (http://book.caltech.edu/bookforum/index.php)
-   Homework 2 (http://book.caltech.edu/bookforum/forumdisplay.php?f=131)
-   -   [Lec-3] Include w0 and x0 in linear regression formula (http://book.caltech.edu/bookforum/showthread.php?t=4446)

 blunderboy 10-17-2013 06:02 PM

[Lec-3] Include w0 and x0 in linear regression formula

Take the credit card example again..By Linear Regression output, I want to know how much credit amount should be approved for a particular customer.

On Slide 10/23,
Linear Regression output h(x) = Summation(i=0 to d) wi xi = wÌx

This means we are including x0 and w0 in linear regression output. I am not able to understand why do we need to include 0th data where x0 = 1.

 yaser 10-17-2013 11:29 PM

Re: [Lec-3] Include w0 and x0 in linear regression formula

Quote:
 Originally Posted by blunderboy (Post 11579) Take the credit card example again..By Linear Regression output, I want to know how much credit amount should be approved for a particular customer. On Slide 10/23, Linear Regression output h(x) = Summation(i=0 to d) wi xi = wÌx This means we are including x0 and w0 in linear regression output. I am not able to understand why do we need to include 0th data where x0 = 1.
This is to allow the linear formula to have a bias term. If the optimal solution does not require a bias term, the algorithm will set to zero, so there will be no harm done.

 All times are GMT -7. The time now is 03:41 PM.