Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Concepts Of Database Management

Authors: Joy L. Starks, Philip J. Pratt, Mary Z. Last

9th Edition

1337093424, 978-1337093422

More Books

Students also viewed these Databases questions

Question

Determine the amplitude and period of each function.

Answered: 1 week ago

Question

How would you describe your typical day at work?

Answered: 1 week ago