Developing More Complex Decision Trees

Slides:



Advertisements
Similar presentations
The HomeBook Tour To navigate through this presentation, use one of the following methods: Use the back and forward arrows on your keyboard Use the up.
Advertisements

ALGEBRA TILES Jim Rahn LL Teach, Inc.
A useful testing technique and more…
Preparing a Decision Table
Decision Tables - a brief overview
Modeling Logic with Decision Tables and Trees. 2 Decision Trees and Decision Tables Often our problem solutions require decisions to be made according.
Describing Process Specifications and Structured Decisions Systems Analysis and Design, 7e Kendall & Kendall 9 © 2008 Pearson Prentice Hall.
CHAPTER 23: Two Categorical Variables: The Chi-Square Test
Computer Aided Process Planning
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Process Specifications and Structured Decisions Systems Analysis and Design, 8e Kendall.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Kendall & KendallCopyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 9 Kendall & Kendall Systems Analysis and Design, 9e Process Specifications.
University of Toronto Department of Computer Science © Castro, Mylopoulos and Easterbrook Lecture 12: Modelling Business Rules & Processes Ü Review.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Decision Trees and Decision Tables
Kendall & KendallCopyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall 9 Kendall & Kendall Systems Analysis and Design, 9e Process Specifications.
CHAPTER TEN Dr. Rami Gharaibeh BUSINESS MODEL ANALYSIS.
40S Applied Math Mr. Knight – Killarney School Slide 1 Unit: Probability Lesson: PR-4 Fundamental Counting Principle Fundamental Counting Principle Learning.
Chapter 9 Describing Process Specifications and Structured Decisions
Decision Analysis. 2 Effective decision-making requires that we understand: – The nature of the decision that must be made – The values, goals, and objectives.
Chapter 11 Describing Process Specifications and Structured Decisions Systems Analysis and Design Kendall and Kendall Fifth Edition.
ENJOY THE HOLIDAYS Shop locally this holiday season Look in The Courier & Daily Comet For specials from your local Businesses every week until Christmas!
Describing Process Specifications and Structured Decisions Systems Analysis and Design, 7e Kendall & Kendall 9 © 2008 Pearson Prentice Hall.
Decision Tables - a brief overview Dr. Rogelio Dávila Pérez ITESM, Campus Guadalajara.
Computer Aided Process Planning (CAPP). What is Process Planning? Process planning acts as a bridge between design and manufacturing by translating design.
UML’s StateChart FSM, EFSM in UML Concurrent states Tool support.
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 12 Multiple.
Lecture 91 Introduction to Data Analysis and Logic Specification Objectives l Draw an entity-relationship diagram, and explain the types of entity relationships.
CHAPTER TEN Dr. Rami Gharaibeh BUSINESS MODEL ANALYSIS 1.
Copyright © 2011 Pearson Education Process Specifications and Structured Decisions Systems Analysis and Design, 8e Kendall & Kendall Global Edition 9.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Essentials of Systems Analysis and Design Fourth Edition Joseph S. Valacich Joey F.
Decision Trees and Tables. 2 Decision Trees and Decision Tables Often our problem solutions require decisions to be made according to two or more conditions.
Analysis of Variance l Chapter 8 l 8.1 One way ANOVA
Chapter 19: Current, Resistance, and Directed-Current Circuits
BİL711 Natural Language Processing
ECF Arbiter Seminar - Materials by CAA
Classes and their relationships
Event-driven accounting information systems
Decision Tables - a brief overview
Decision Table Testing
Chapter 5 Determining System Requirements
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
UML’s StateChart FSM, EFSM in UML Concurrent states Tool support.
Applicable Mathematics “Probability”
Intro To Design 2 Architecture Diagrams
Decision Trees and Tables
Essentials of Systems Analysis and Design Fourth Edition
Data Base System Lecture 2: Introduction to Database
Avanade Trade Organization Structure
BASIC & COMBINATIONAL LOGIC CIRCUIT
Same or Different? (C) 2016 by Exercise ETC Inc..
CSCE 747 Software Testing and Quality Assurance
Computer Aided Process Planning
CSCE 747 Software Testing and Quality Assurance
Copyright © 2014 Pearson Education, Inc.
Chapter 3 Special Section
Chapter 11 Describing Process Specifications and Structured Decisions
Decision Tables SEEM 3430 Tutorial LI Jing.
Chapter 4 Determining System Requirements
Agricultural Microeconomics Lesson 8: Advanced Spreadsheet Modeling
Pages NOTE: On a single line, any point that is a solution will fall on the line. Any point that is NOT a solution, will be a point that is NOT on.
2 Activity 1: 5 columns Write the multiples of 2 into the table below. What patterns do you notice? Colour the odd numbers yellow and the even numbers.
Overview Functional Testing Boundary Value Testing (BVT)
Same or Different? (C) 2016 by Exercise ETC Inc..
Databases and Information Management
Partial Quotients Division
9 x 14 9 x 12 Calculate the value of the following: 1 9 × 5 =
2-2 Logic Part 2 Truth Tables.
Decision Tables SEEM 3430 Tutorial Lanjun Zhou.
Presentation transcript:

Developing More Complex Decision Trees

Developing More Complex Decision Tables In the 1950's General Electric, the Sutherland Corporation, and the United States Air Force worked on a complex file maintenance project, using flowcharts and traditional narratives, they spent six labor-years of effort but failed to define the problem. It was not until 1958, when four analysts using decision tables, successfully defined the problem in less than four weeks 1. _____________________________________ 1Taken from “A History of Decision Tables” located at http://www.catalyst.com/products/logicgem/overview.html

Steps to create a decision table List all the conditions which determine which action to take. Calculate the number of rules required. Multiple the number of values for each condition by each other. Example: Condition 1 has 2 values, Condition 2 has 2 values, Condition 3 has 2 values. Thus 2 X 2 X 2 = 8 rules Fill all combinations in the table. Define the action for each rule Analyze column by column to determine which actions are appropriate for each rule. Reduce the table by eliminating redundant columns.

Conditions Actions All possible combinations Actions per combination F T … <cond-2> <cond-3> <cond-n> <action-1>   X <action-2> <action-3> <action-m> Conditions Actions Actions per combination (each column represents a different state of affairs)

Example Policy for charging charter flight costumers for certain in-flight services:2 If the flight is more than half-full and costs more than $350 per seat, we serve free cocktails unless it is a domestic flight. We charge for cocktails on all domestic flights; that is, for all the ones where we serve cocktails. (Cocktails are only served on flights that are more than half-full.) _____________________________________ 2 Example taken form: Structured Analysis and System Specification, Tom de Marco, Yourdon inc., New York,

List all the conditions that determine which action to take. Values The flight more than half-full? Yes (Y), No (N) Cost is more than $350? Y, N Is it a domestic flight?

Calculate the space of combinations Conditions Number of Combinations Possible Combinations/ Rules 1 2 Y N 4 3 8 … n 2n

Calculate the Number of Rules in Table Conditions in the example are 3 and all are two-valued ones, hence we have: All combinations are 23 = 8 rules OR 2 X 2 X 2 = 8 rules

Fill all rules in the table.   POSSIBLE RULES CONDITONS more than half-full N Y more than $350 per seat domestic flight ACTIONS

Analyze column by column to determine appropriate actions for each combination   POSSIBLE RULES CONDITONS more than half-full N Y more than $350 per seat domestic flight ACTIONS serve cocktails X free

Reduce the table by eliminating redundant columns. Note that some columns are identical except for one condition.   POSSIBLE COMBINATIONS CONDITONS more than half-full N Y more than $350 per seat domestic flight ACTIONS serve cocktails X free

Reduce the table by eliminating redundant columns. Note that some columns are identical except for one condition. Which means that actions are independent from the value of that particular condition.   POSSIBLE RULES CONDITONS more than half-full N Y more than $350 per seat domestic flight ACTIONS serve cocktails X free

Reduce the table by eliminating redundant columns. Note that some columns are identical except for one condition. Which means that actions are independent from the value of that particular condition. Hence, the table can be simplified.   POSSIBLE RULES CONDITONS more than half-full N Y more than $350 per seat domestic flight ACTIONS serve cocktails X free

Reduce the table by eliminating redundant columns. First we combine the yellow ones nullifying the condition.   POSSIBLE RULES CONDITONS more than half-full N Y more than $350 per seat domestic flight - ACTIONS serve cocktails X free

Reduce the table by eliminating redundant columns. First we combine the yellow ones nullifying the condition. Then the red ones.   POSSIBLE RULES CONDITONS more than half-full N Y more than $350 per seat domestic flight - ACTIONS serve cocktails X free

Reduce the table by eliminating redundant columns. First we combine the yellow ones nullifying the condition. Then the red ones. Notice that yellow and red columns are identical but by one condition.   POSSIBLE RULES CONDITONS more than half-full N Y more than $350 per seat domestic flight - ACTIONS serve cocktails X free

Reduce the table by eliminating redundant columns. First we combine the yellow ones nullifying the condition. Then the red ones. Notice that yellow and red columns are identical but by one condition. So, we combine them.   POSSIBLE RULES CONDITONS more than half-full N Y more than $350 per seat - domestic flight ACTIONS serve cocktails X free

Reduce the table by eliminating redundant columns. First we combine the yellow ones nullifying the condition. Then the red ones. Notice that yellow and red columns are identical but by one condition. So, we combine them. Then we combine the violet colored ones.   POSSIBLE RULES CONDITONS more than half-full N Y more than $350 per seat - domestic flight ACTIONS serve cocktails X free

Reduce the table by eliminating redundant columns. Notice that even when we observe that the green columns are identical except for one condition we do not combine them: A “NULLIFIED” condition is not the same as a valued one.   POSSIBLE RULES CONDITONS more than half-full N Y more than $350 per seat - domestic flight ACTIONS serve cocktails X free What about this rule? Have we over looked something?

Final Solution Rules CONDITONS more than half-full N Y more than $350 per seat - domestic flight ACTIONS serve cocktails   X free

Complex Decision Table Exercise A company is trying to maintain a meaningful list of customers. The objective is to send out only the catalogs from which customers will buy merchandise. The company realizes that certain loyal customers order from every catalog and some people on the mailing list never order. These customers are easy to identify. Deciding which catalogs to send to customers who order from only selected catalogs is a more difficult decision. Once these decisions have been made by the marketing department, you as the analyst have been asked to develop a decision table for the three conditions described below. Each condition has two alternatives (Y or N): Customer ordered from Fall catalog Customer ordered from Christmas catalog Customer ordered from Specialty catalog The actions for these conditions, as determined by marketing, are described on the next slide.

Complex Decision Table Exercise Customers who ordered from all three catalogs will get the Christmas and Special catalogs. Customers who ordered from the Fall and Christmas catalogs but not the Special catalog will get the Christmas catalog. Customers who ordered from the Fall catalog and the Special catalog but not the Christmas catalog will get the Special catalog. Customers who ordered only from the Fall catalog but no other catalog will get the Christmas catalog. Customers who ordered from the Christmas and Special catalogs but not the Fall catalog will get both catalogs. Customers who ordered only from the Christmas catalog or only from the Special catalog will get only the Christmas or Special catalogs respectively. Customers who ordered from no catalog will get the Christmas catalog. Create a simplified decision table (or tree) based on the above decision logic.

Solution to Decision Table Exercise       The four gray columns can be combined into a single rule. Note that four each, there was NO order placed from the Special Catalog. In addition, Rules 1 & 5 and Rules 3 & 7 can be combined. Each pair produces the same action and each pair shares two common conditions.

Solution to Decision Table Exercise ~ Final Version