Question: 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

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
Get step-by-step solutions from verified subject matter experts
