Question: This question uses the Boston data set that is in the ISLR2 package. The independent variables are rm (the average number of rooms per dwelling),

This question uses the Boston data set that is in the ISLR2 package. The independent variables arerm(the average number of rooms per dwelling),crim(per capita crime rate by town),chas(Charles River dummy variable),ptratio(pupil-teacher ratio by town), andlstat(lower status of the population [percent]). The dependent variable ismedv(median value of owner-occupied homes in thousands of dollars). The data set contains 506 rows of data. Perform cross validation. Use rows 1 to 400 as the training data and rows 401 to 506 for the testing data. Find the cross validated coefficient of determination.
Answers:

a.

0.326

b.

0.257

c.

0.351

d.

0.484

e.

0.491

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 Mathematics Questions!