Given the following dataset, construct a decision tree to predict whether a credit card is fraudulent or authentic, use the information gain as an attribute selection measure. Show your detailed steps. Debit Income (in thousands) Credit card trustfulness High 10 Authentic High 20 Authentic Low 40 Authentic Low 20 Authentic High 30 Fraudulent Low 10 Authentic Low 30 Fraudulent Low 20 Authentic Low 40 Authentic High 40 Fraudulent
Added by -Ngel B.
Close
Step 1
The target variable is whether the credit card is fraudulent or authentic. Show more…
Show all steps
Your feedback will help us improve your experience
Aarya B and 93 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Create a Decision tree classifier in scikit-learn using the data given below: features = [[2, 100], [6, 25], [1, 300], [1, 1000], [4, 100], [10, 100]] Label = [1, 2, 1, 1, 2, 2] Note: 1 - Sports/Race Car and 2 - Family Car
Liam H.
Problem Five: (40 points) Consider the following data set comprised of three binary input attributes (A1, A2, and A3) and one binary output Y. Example: A1 A2 A3 Y x1 0 0 No x2 1 0 No x3 0 1 0 No x4 1 -1 Yes x5 1 Yes a) What is the number of possible combinations? b) Use the decision tree learning algorithm to train a classification decision tree for the 5 examples. Show the computations made to determine the attribute to split at each node. c) Test the performance of the trained decision tree to determine Y. What is the percentage of correct matches?
Adi S.
The following table lists a dataset containing the details of six patients. Each patient is described in terms of three binary descriptive features (Obese, Smoker, and Drinks Alcohol) and a target feature (Cancer Risk). ID Obese Smoker Drinks Alcohol Cancer Risk 1 true false true low 2 true true true high 3 true false true low 4 false true true high 5 false true false low 6 false true true high a. Which of the descriptive features will the ID3 decision tree induction algorithm choose as the feature for the root node of the decision tree? b. When designing a dataset, it is generally a bad idea if all of the descriptive features are indicators of the target feature taking a particular value. For example, a potential criticism of the design of the dataset in this question is that all the descriptive features are indicators of the Cancer Risk Target feature taking the same level, high. Can you think of any descriptive features that could be added to the dataset that are indicators of the low target level?
Rashmi S.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD