Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

machien learning - linear regration We consider the following data set concerning House pricing. The table presents the values of two features (Area and Number

machien learning - linear regration
image text in transcribed
We consider the following data set concerning House pricing. The table presents the values of two features (Area and Number of rooms) and the house price. 1- One variable Linear Regression We consider only the Area feature for estimating the price of house. We suggest to use a Linear Regression model the relationship between the Area (x) - House price (y). (y=wx+b) a) Compute w and b the parameters of the Linear regression b) Compute the obtained cost function J(w,b)=i=1m(yiy^i)2 c) Compute the corresponding R2 d) For computing the values of w,b, we suggest using the Gradient Descent, with a learning rate =0.1. Compute the update of the parameters for three iterations of the GD. 2- Multivariable Linear Regression In this case both features re considered to build a Linear Regression. y=w2x2+w1x1+w0 Where x1 and x2 correspond respectively to the features Area and number of rooms. a) Scaling of the data according to the two following steps - Subtract the mean value of each feature from the dataset. - After subtracting the mean, additionally scale (divide) the feature values by their respective standard deviations. b) Give the normal equations that compute the linear regression parameter vector W=(w0,w1,w2)T (fill the matrix Xb and the vector Y by the appropriate values)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions

Question

starbucks marketing mix

Answered: 1 week ago

Question

6. Is all Internet training the same? Explain.

Answered: 1 week ago