Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started