Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#SHARE R CODES This question should be answered using the Wine Quality https://archive.ics.uci.edu/ml/machine-learning-databases/wine-quality/ (winequality-white.csv) data set. A description of the data set can be found

#SHARE R CODES

This question should be answered using the "Wine Quality" https://archive.ics.uci.edu/ml/machine-learning-databases/wine-quality/ (winequality-white.csv) data set. A description of the data set can be found on the link provided. The objective of this question is to fit a regression tree model to predict the quality of the wine.

1. Produce some numerical and graphical summaries of the data set. Explain the relationships.

2. Make training set with 80% of the observations, and a testing set containing the remaining 20%.

3. Fit a regression tree with _quality_ as the response variable using the training set. Plot the tree and interpret the results. What test MSE do you obtain?

4. Use cross-validation in order to determine the optimal level of tree complexity. Does pruning the tree improve the test MSE?

5. Use random forests to analyze this data. What test MSE do you obtain?

6. Use the _importance()_ function to determine which variables are most important.

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

Trigonometry

Authors: Ron Larson, Rosemarie Menager Beeley, Larson/Hostetler

8th Edition

1111789177, 9781111789176

More Books

Students also viewed these Mathematics questions

Question

1. What will happen in the future

Answered: 1 week ago

Question

3. Avoid making mistakes when reaching our goals

Answered: 1 week ago