Data Science & Big Data Analysis Assignment.

I’m working on a Engineering question and need guidance to help me study.

Struggling to find relevant content? Order a custom essay on
Data Science & Big Data Analysis Assignment.
Let our experts save you the hassle
Order Now

Guidelines

  • Share screen shot on your response
  • Share the code and the plots
  • Put your name and id number
  • Clear mark question number
  • Upload Word document
  • Insert Cover page Questions Attempted

HW06Cover Sheet

Identify all questions that you attempted in this template

Q1 Textbook Examples

Chapter 8 – Tree-Based Methods

Datasets –

Hitters.csv

Heart.csv

Carseats.csv

Boston.csv

OJ.csv

Caravan.csv

Hint use: https://botlnec.github.io/islp/

Q2 Textbook Exercises

8.8 (page 333) In the lab, a classification tree was applied to the Carseats data set after converting Sales into a qualitative response variable. Now we will seek to predict Sales using regression trees and related approaches, treating the response as a quantitative variable.

(a) Split the data set into a training set and a test set.

(b) Fit a regression tree to the training set. Plot the tree and interpret the results. What test MSE do you obtain?

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

(d) Use the bagging approach in order to analyze this data. What test MSE do you obtain? Determine which variables are most important.

(e) Use random forests to analyze this data. What test MSE do you obtain? Determine which variables are most important. Describe the effect of m, the number of variables considered at each split, on the error rate obtained.

9. This problem involves the OJ data set which is part of the ISLR package.

(a) Create a training set containing a random sample of 800 observations, and a test set containing the remaining observations.

(b) Fit a tree to the training data, with Purchase as the response and the other variables as predictors. Produce summary statistics about the tree, and describe the results obtained. What is the training error rate? How many terminal nodes does the tree have?

(c) Type in the name of the tree object in order to get a detailed text output. Pick one of the terminal nodes, and interpret the information displayed.

(d) Create a plot of the tree and interpret the results.

(e) Predict the response on the test data and produce a confusion matrix comparing the test labels to the predicted test labels. What is the test error rate?

(f) Use training set in order to determine the optimal tree size.

(g) Produce a plot with tree size on the x-axis and cross-validated classification error rate on the y-axis.

(h) Which tree size corresponds to the lowest cross-validated classification error rate?Produce a pruned tree corresponding to the optimal tree size obtained using cross-validation. If cross-validation does not lead to selection of a pruned tree, then create a pruned tree with five terminal nodes.

(j) Compare the training error rates between the pruned and unpruned trees. Which is higher?

(k) Compare the test error rates between the pruned and unpruned trees. Which is higher?

10. We now use boosting to predict Salary in the Hitters data set.

(a) Remove the observations for whom the salary information is unknown, and then log-transform the salaries. 8.4 Exercises 335

(b) Create a training set consisting of the first 200 observations, and a test set consisting of the remaining observations.

(c) Perform boosting on the training set with 1,000 trees for a range of values of the shrinkage parameter ?. Produce a plot with different shrinkage values on the x-axis and the corresponding training set MSE on the y-axis.

(d) Produce a plot with different shrinkage values on the x-axis and the corresponding test set MSE on the y-axis.

(e) Compare the test MSE of boosting to the test MSE that results from applying two of the regression approaches seen in Chapters 3 and 6.

(f) Which variables appear to be the most important predictors in the boosted model?

(g) Now apply bagging to the training set. What is the test set MSE for this approach?

Hint – use https://botlnec.github.io/islp/

Or

https://github.com/a-martyn/ISL-python

Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
Sign up, place your order, and leave the rest to our professional paper writers in less than 2 minutes.
step 1
Upload assignment instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
s
Get personalized services with GPA Fix
One writer for all your papers
You can select one writer for all your papers. This option enhances the consistency in the quality of your assignments. Select your preferred writer from the list of writers who have handledf your previous assignments
Same paper from different writers
Are you ordering the same assignment for a friend? You can get the same paper from different writers. The goal is to produce 100% unique and original papers
Copy of sources used
Our homework writers will provide you with copies of sources used on your request. Just add the option when plaing your order
What our partners say about us
We appreciate every review and are always looking for ways to grow. See what other students think about our do my paper service.
Other
GOOD
Customer 452813, July 5th, 2022
Human Resources Management (HRM)
Thank you.
Customer 452701, April 24th, 2023
Human Resources Management (HRM)
Perfect
Customer 452701, August 15th, 2023
Computer science
extremely happy with the service, again! You guys are the best.
Customer 452715, July 27th, 2022
Nursing
Thank you for the outstanding work .
Customer 452635, June 5th, 2022
IT, Web
Great job on the paper.
Customer 452885, February 7th, 2023
Nurse
Great work! Thank you for the quality you put in each assignment.
Customer 452707, February 4th, 2022
Social Work and Human Services
Great Work!
Customer 452587, August 31st, 2021
Other
great
Customer 452813, December 12th, 2024
Technology
Great job on the paper!
Customer 452885, December 14th, 2022
Nursing
Always a job well done. I really appreciate the hard work.
Customer 452453, January 4th, 2021
Criminal Justice
Great work! Followed directions to the latter.
Customer 452485, September 1st, 2021
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat

Good News ! We now help with PROCTORED EXAM. Chat with a support agent for more information