LFD Book Forum  

Go Back   LFD Book Forum > Course Discussions > Online LFD course > Homework 2

Reply
 
Thread Tools Display Modes
  #1  
Old 10-17-2013, 06:02 PM
blunderboy blunderboy is offline
Junior Member
 
Join Date: Aug 2013
Posts: 5
Default [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.
Reply With Quote
  #2  
Old 10-17-2013, 11:29 PM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,476
Default Re: [Lec-3] Include w0 and x0 in linear regression formula

Quote:
Originally Posted by blunderboy View Post
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.
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
Reply

Tags
lecture #3, regression

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 03:28 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.