Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone help with this using R? I am trying to teach myself and could really use some help. Thank you. Load and read the

Can someone help with this using R? I am trying to teach myself and could really use some help. Thank you.

image text in transcribed
Load and read the documentation for the College data set from the ISLR package. We want to build a model to predict the number of applications received using the other variables. (a) Split the data set into a training set and a validation/test set, approximately 70%, 30%, respectively. (b) Fit a linear least-squares regression model on the training set. Compute the test MSE and test R2. (c) Fit a ridge regression model on the training set. Use cross-validation to choose the tuning parameter A. Give the test MSE and test R2 (d) Fit a lasso regression model on the training set. Use cross-validation to choose the tuning parameter 1. Give the test MSE and test R2. (e) Fit a principle components regression model on the training set, and use cross-validation to choose the number of principle com- ponents. Give the test MSE and test R2, and the number of principle components. (f Fit a partial least squares regression model on the training set, and use cross-validation to choose the number of new model features. NNNNAT Give the test MSE and test Ro, and the number of new features used in the model. (g) Compare the five models. Which ones seem better? Is there much /20 difference between the test R2 and test MSE values? How well /20 do these models predict the number of college applications? 20: /20

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_2

Step: 3

blur-text-image_3

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

Complex Geometry And Dynamics The Abel Symposium 2013

Authors: John Erik Fornaess, Marius Irgens, Erlend Fornaess Wold

1st Edition

3319203371, 9783319203379

More Books

Students also viewed these Mathematics questions