I have written two previous posts about Segmentation Trees:
As a refresher a segmentation tree is a hierarchical structure that consists of a root node, branches, and final leaf nodes called outcomes. Any branch can lead to additional branches or to an outcome. Each branch in the tree specifies criteria that determine whether that particular branch is executed. There are three branch element types:
The matrix branch type is a table in which each cell identifies a different combination of the values of two different variables. Both variables that are used to build the matrix must be associated with a value list. The values in the lists are used to determine the rows and columns in the matrix. SAS Intelligent Decisioning also adds a row and a column labeled Other to cover any values not specified in the respective value lists. Matrices are particularly useful when each variable has many possible values.
I create a Segmentation Tree file for my example of using a matrix.
Select any image to see a larger version.
Mobile users: To view the images, select the "Full" version at the bottom of the page.
To support the matrix branch type, I need two value lists – one for each of the two variables that are going to make up the matrix. In my example, I am going to create a matrix based on a Credit Score variable and a Debt-to-Income Ratio variable for the purposes of a loan request evaluation.
For the Credit Score variable I will use a value list that is saved on the Value Lists page of SAS Intelligent Decisioning.
For more information about value lists refer to the documentation.
In the segmentation tree I create a local value list for Debt-Income-Ratio.
For more information on local value lists refer to the documentation.
On the Variables tab for the Segmentation Tree, I add the needed variables. The Credit Score and DEBTINC variables are linked to their appropriate value lists.
To create a matrix, on the Segmentation Tree tab select the Matrix page and then + to add a matrix.
Enter a name for your matrix.
Add the matrix to the Segmentation Tree canvas.
An outcome is a named set of actions to be taken in a segmentation tree branch. I have added an outcome to set the variable Status to the appropriate value for each result of the matrix.
Finally, I setup a test for my segmentation tree and review the results for the Status output variable in SAS Visual Analytics.
Using a matrix in a segmentation is helpful when the two variables have many possible options. For more information on segmentation trees refer to the documentation. Segmentation Trees are also covered in the SAS® Intelligent Decisioning: Beyond the Essentials training course.
Find more articles from SAS Global Enablement and Learning here.
Visit the Tips & Tricks page for setup guidance, demos, and practical examples that show how Copilot supports your workflows.
The rapid growth of AI technologies is driving an AI skills gap and demand for AI talent. Ready to grow your AI literacy? SAS offers free ways to get started for beginners, business leaders, and analytics professionals of all skill levels. Your future self will thank you.