Q1) Following data give square footage, selling price, number of bedrooms and age of houses that have sold in neighbourhood in last 6 months. Develop 3 regression models to forecast selling price based upon each of other factors individually. Which of these is best?
Q2) Sample of twenty automobiles was taken, and miles per gallon (MPG), horsepower, and total weight were recorded. Create linear regression model to predict MPG using horsepower as the only indepent variable. Create another model with weight as independent variable. Which of these two models is better? Describe.
|
MPG
|
Horsepower
|
weight
|
|
44
|
67
|
1844
|
|
44
|
50
|
1998
|
|
40
|
62
|
1752
|
|
37
|
69
|
1980
|
|
37
|
66
|
1797
|
|
34
|
63
|
2199
|
|
35
|
90
|
2404
|
|
32
|
99
|
2611
|
|
30
|
63
|
3236
|
|
28
|
91
|
2606
|
|
26
|
94
|
2580
|
|
26
|
88
|
2507
|
|
22
|
97
|
2434
|
|
20
|
114
|
3248
|
|
21
|
102
|
2812
|
|
18
|
114
|
3382
|
|
18
|
142
|
3197
|
|
16
|
153
|
4380
|
|
16
|
139
|
4036
|