Question: USING R STUDIO 4. ( 6 points) Here is the text output of a decision tree fitted to a Gym membership data fitnessAppLog.csv in order

 USING R STUDIO 4. ( 6 points) Here is the text

USING R STUDIO

4. ( 6 points) Here is the text output of a decision tree fitted to a Gym membership data fitnessAppLog.csv in order to predict whether or not a customer is willing to pay membership fees. There are 5 variables. Here is the output of str(gymdata). Listing 1: gym.data structure After running the following code gym. data $ Pay0rNot, SplitRatio = 0.75) training.gym n=81 (69 observations deleted due to missingness) node) , split, n, loss, yval, (yprob) * denotes terminal node 1) root 8122No(0.72839510.2716049) 2) Hours(0.87692310.1230769) 3) Hours >=8.25162 Yes (0.12500000.8750000) Listing 3: code ouput (a) Task Draw a decision tree based on the previous output. Include the following information in each node. prediction outcome a of entries distribution

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!