Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use R to do the following questions. Thank you so much. If you can, please do all the questions with code and your anlysis.

Please use R to do the following questions. Thank you so much. If you can, please do all the questions with code and your anlysis.

In this exercise, we will predict the number of applications received using the other variables in the College data set. (a) Split the data set into a training set and a test set. (b) Fit a linear model using least squares on the training set, and report the test error obtained (MSE). (c) Fit a ridge regression model on the training set, with chosen by cross-validation. Report the test error obtained. (d) Fit a lasso model on the training set, with chosen by crossvalidation. Report the test error obtained (mse), along with the number of non-zero coefficient estimates. (e) Comment on the results obtained. How accurately can we predict the number of college applications received? Is there much difference among the three test errors resulting from these three approaches? Is ridge or lasso regression recommending a more parsimonious model?

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

Sports Finance And Management Real Estate Entertainment And The Remaking Of The Business

Authors: Jason A. Winfree, Mark S. Rosentraub, Brian M Mills

1st Edition

1439844712, 9781439844717

More Books

Students also viewed these Finance questions

Question

=+6. What need does it fulfill?

Answered: 1 week ago

Question

=+8. How can you differentiate your product in their eyes?

Answered: 1 week ago