Question: n the lectures, we discussed simple linear regression, which considers only one independent variable. Suppose that you want to use a gradient decent algorithm to
n the lectures, we discussed simple linear regression, which considers only one
independent variable. Suppose that you want to use a gradient decent algorithm to
train a linear regression model to predict house price based on house size and age of
home, ie there are two independent variables. You have training data as follows:
Sizefeets Age of home
years
Price $
a What data preprocessing would you carry out before training the linear
regression model? Please explain why this is important.
b Please write down your hypothesis function. How many parameters
will you have? Please explain.
c Please write down the objective cost function.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
