Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Questions a) to f) are based on the following table which is the output from a Decision Tree to Ruleset node. The target variable is

Questions a) to f) are based on the following table which is the output from a Decision Tree to Ruleset node. The target variable is Churn and consider Yes to be the positive class and No to be the negative class.

image text in transcribed

a) How many leaves are in the learnt decision tree?

b) How many leaves classify the observation as negative class and how many leaves classify the observation as positive class?

c) Which rule returns the highest predicted probability for the positive class? What is this probability? Show your calculation.

d) Which rule returns that highest predicted probability for the negative class? What is this probability? Show your calculation.

e) If we use the about rules to classify observations, what will a customer be classified as who has a tenure of 10 years, fiber optic internet service and a two-year contract?

f) If we use the about rules to classify observations, what will a customer be classified as who has a tenure of 10 years, fiber optic internet service and a month-to-month contract?

Outcome Record Count Number of Correct Yes 747.0 521.0 Yes 160.0 92.0 No 281.0 163.0 Rule Condition ID #1 Stenure$ 15.5 AND SInternet Service$ IN ("Fiber optic") AND SContract$ IN ("Month-to-month") $TotalCharges$ 2393.75 AND SPayment Methods IN ("Electronic check") AND Stenures > 15.5 AND #2 $Internet Service$ IN ("Fiber optic") AND $Contract$ IN ("Month-to-month") $TotalCharges > 2393.75 AND SPayment Method$ IN ("Electronic check") AND Stenures > 15.5 AND #3 $Internet Service$ IN ("Fiber optic") AND $Contract$ IN ("Month-to-month") SPayment Methods IN ("Mailed check", "Bank transfer #4 (automatic)", "Credit card (automatic)") AND Stenure > 15.5 AND $Internet Service$ IN ("Fiber optic") AND $Contract$ IN ("Month-to-month") $Online Security$ IN ("No") AND $tenures 4.5 AND SInternet Services IN ("DSL", "No") AND SContracts IN ("Month-to-month") #8 $Contract$ IN ("One year", "Two year") AND TRUE No 362.0 248.0 Yes 276.0 159.0 No 249.0 181.0 No 801.0 648.0 No 2406.0 2235.0 Outcome Record Count Number of Correct Yes 747.0 521.0 Yes 160.0 92.0 No 281.0 163.0 Rule Condition ID #1 Stenure$ 15.5 AND SInternet Service$ IN ("Fiber optic") AND SContract$ IN ("Month-to-month") $TotalCharges$ 2393.75 AND SPayment Methods IN ("Electronic check") AND Stenures > 15.5 AND #2 $Internet Service$ IN ("Fiber optic") AND $Contract$ IN ("Month-to-month") $TotalCharges > 2393.75 AND SPayment Method$ IN ("Electronic check") AND Stenures > 15.5 AND #3 $Internet Service$ IN ("Fiber optic") AND $Contract$ IN ("Month-to-month") SPayment Methods IN ("Mailed check", "Bank transfer #4 (automatic)", "Credit card (automatic)") AND Stenure > 15.5 AND $Internet Service$ IN ("Fiber optic") AND $Contract$ IN ("Month-to-month") $Online Security$ IN ("No") AND $tenures 4.5 AND SInternet Services IN ("DSL", "No") AND SContracts IN ("Month-to-month") #8 $Contract$ IN ("One year", "Two year") AND TRUE No 362.0 248.0 Yes 276.0 159.0 No 249.0 181.0 No 801.0 648.0 No 2406.0 2235.0

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

Personal Finance

Authors: Jane King, Mary Carey

2nd Edition

0198748779, 9780198748779

More Books

Students also viewed these Finance questions

Question

useful in this situation? Why or why not?

Answered: 1 week ago

Question

Does your message use defamatory language?

Answered: 1 week ago