Question: In [ 5 ] : #Enter your code here 6 . Creat the scatter plot with x axis is h p and Y axis is

In [5]: #Enter your code here
6.Creat the scatter plot with x axis is hp and Y axis is mpg.(10)
In [6] :
7.Train the linear model using hp as variable and MPG as target and print 0,1(10)
(hint: use the fomula: =(xTx)-1xTy)
In [7]:
8.Plat the scatter plot again with the line showing the linear model.(10)
In [8] :
9.Random choose 3 datapoint from the dataset, use the linear model to predict the MPG
with HP, show the difference between predict value and real value. (10)
In [9] :
10.Explain the why some differences are large, some are not(10)
In [13]
11.Find R2 and use R2 to explain whether the model is accurate.(10)
In [14]: #Enter your code here
 In [5]: #Enter your code here 6.Creat the scatter plot with

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!