LFD Book Forum

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 07: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 = wx

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-18-2013 12:29 AM

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 = wx

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 w_0 to zero, so there will be no harm done.


All times are GMT -7. The time now is 07:58 AM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2020, 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.