Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using library(ISLR)'s data(Carseats) in R, please help with the question below Part II: Splitting the sample into training and testing For this problem, continue using

using library(ISLR)'s data(Carseats) in R, please help with the question below

image text in transcribed
Part II: Splitting the sample into training and testing For this problem, continue using the Carseats data set. a. Constructa scatterplot of Sales vs Price. Your code here. Your answer / discussion / interpretation here. b. Use the sample( ) command to construct train , a vector of observation indexes to be used for the purpose of training your model. This will partition the data set into the training set and the testing set. 0 Describe what the sample( ) function as used above actually does. Your code here. Your answer / discussion / interpretation here. c. Valiadate the partition you obtained for the data. Do you see any issues? a Hint: this problem is not asking you to balance the training data set. It is instead asking you to determine whether balancing might be required. To determine that, you should use a hypothesis test! Which test? In R , there is one function you need to call to get the output for the comparison ot two samples. Explain the answer; justify your conclusion. Your code here. Your answer / discussion / interpretation here

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

Algebra And Trigonometry, Enhanced

Authors: Cynthia Y Young

4th Edition

1119320860, 9781119320869

More Books

Students also viewed these Mathematics questions

Question

Evaluate three pros and three cons of e-prescribing

Answered: 1 week ago

Question

2. Define communication.

Answered: 1 week ago