Last updated on August 30th, 2021 at 10:41 am

Understanding the decision tree

A decision tree can be explained as a tree-model decision tool that highlights the decisions and their related consequences. It throws light on the outcomes of events, costs of resources, and utility. It represents choices and consequences related to various decisions regarding a particular scenario. It can be understood as a flowchart model with nodes representing different outcomes and scenarios.

It depicts a sequential and hierarchal decision-making model. From a broader perspective, a decision tree is a tool that shows a wide range of outcomes based on the decisions taken by the user.  A decision tree is also an important part of data science training and data science careers.

Applications and advantages of a decision tree

A decision tree is generally used to obtain all possible decision points and the associated outcomes. It is widely used in the finance and banking-related courses and segments for work related to the loan agreement, candidate assessment, data management, etc. It also helps to easily assess the productivity of any new product. Some of the most prominent advantages of a decision tree are listed below.

 Creating the perfect decision tree

There are many variables associated with a given scenario that impacts the decision taken by an individual or entity and also have an influence over the final outcome. Let’s take a case where a bank has to sanction a loan to an individual.

Now to make a decision regarding granting a loan to this individual there is n number of factors that the bank has to consider some of which include monthly income, number of income sources, ability to repay the loan, credit history, collateral provided, etc.

Now all these will have to be put systematically in question form and every answer will have two or more consequences that will help to produce the tree. The basic structure of every decision tree includes a root node, an internal node, and a leaf node.

The root node denotes the starting point in the tree, it contains a question to be answered or a decision to be evaluated. The leaf nodes also contain similar questions to be answered and are connected by branches, which are simply arrows connecting different nodes. Each node has two or more nodes attached to it. A yes or no question will have two nodes “yes” and “no”. Here are a few tips to create a good decision tree.