Building customer risk segments using a decision table
2 Tasks
15 mins
Scenario
A financial institution already uses a customer's credit score to determine their suitability for a credit card.
The business now wants to implement rules that prevent high-risk customers from receiving credit card offers. These new rules require customers to be divided into risk segments that range from AAA to CCC. The risk segments are determined based on the customer's Relationship length in days, and by their credit score.
Only customers that belong to certain risk segments are suitable for a credit card.
Use the following credentials to log in to the exercise system:
Role | User name | Password |
---|---|---|
Decisioning Architect | DecisioningArchitect | rules |
The risk segments are determined by two parameters:
- Relations of customer with the financial institution – Value available in the Relationship length in days property of the customer data model.
- Credit score – Score determined by the Determine Credit Score scorecard.
The following table describes the risk segmentation:
Condition |
Risk Segment |
If Relationship length days is greater than or equal to 550 and Credit score is greater than or equal to 800 |
AAA |
If Relationship length days is greater than or equal to 500 and less than 550 and Credit score is greater than or equal to 800 |
AAA- |
If Relationship length days is greater than or equal to 450 and less than 500 and Credit score is greater than or equal to 800 |
AA |
If Relationship length days is greater than or equal to 400 and less than 450 and Credit score is greater than or equal to 750 |
AA- |
If Relationship length days is greater than or equal to 350 and less than 400 and Credit score is greater than or equal to 700 and less than 750 |
BBB |
If Relationship length days is greater than or equal to 300 and less than 350 and Credit score is greater than or equal to 600 and less than 700 |
BBB- |
If Relationship length days is greater than or equal to 250 and less than 300 and Credit score is greater than or equal to 400 and less than 600 |
BB- |
If Relationship length days is greater than 250 and Credit score is greater than or equal to 200 and less than 400 |
CCC |
If Relationship length days and Credit score falls in any other range |
CCC |
Your assignment consists of the following tasks:
Task 1: Create a decision table
Create a decision table that implements the financial institution's risk segmentation requirement in accordance with the table above.
Task 2: Use the provided Data Transforms to test the Decision Table for different customers
Use provided Data Transforms and verify that Customer1 is ineligible for a credit card, while Customer2 is eligible. Use the information in the following table for verification:
Customer |
Relationship length days |
Credit Score |
Risk Segmentation |
Customer1 |
364 |
750 |
CCC |
Customer2 |
475 |
800 |
AA |
Detailed Tasks
1 Create a decision strategy to determine customer credit scores
- On the exercise system landing page, click Launch Pega Infinity™ to log in to Pega Customer Decision Hub™.
- Log in as a decisioning architect:
- In the User name field, enter DecisioningArchitect.
- In the Password field, enter rules.
- In the header of Dev Studio, click Create > Decision > Decision Table to open the Create Decision Table landing page.
- On the Create Decision Table page, in the Label field, enter Risk Segmentation.
- In the Context section, in the Apply to field, select Sample-Data-Customer.
- In the Add to ruleset field, verify that the system selects ExerciseArtifacts 01-01-01 by default.
- In the upper right, click Create and open to open the rule form of the Decision Table.
- Click the first cell in Conditions column to edit the decision table.
- In the tool bar, click Insert column After to add another column.
- In the Conditions column, click the first cell to select the first Property.
- In the Property field, enter or select .RelationshipLengthDays.
- In the Label field, enter RelationshipLengthDays.
- Select the Use Range check box.
- Select < from the End Range list.
- Click Save to return to the Table tab.
- In the Conditions column, click the second cell, and then enter the following information:
- In the Property field, enter .CreditScore.
- In the Label field, enter Calculated Credit Score.
- Select the Use Range check box.
- Select < from the End Range list.
- Click Save to return to the Table tab.
- Click the Results tab.
- On the Results tab, expand Additional Allowed Results. When selected, each target property will be assigned the value specified.
- In the Result field Enter AAA.
- Click the Add icon to add the next result.
- Repeat step 15-16 to add the results AAA-, AA, AA-, BBB, BBB-, BB-, and CCC.
- Click Save.
- On the Table tab, click Check Out.
- In the if row, enter the following values:
- Relationship Length Days >= 550
- Credit Score: 800
- Return: AAA
- Click the Insert Row After icon and add an else if row. Enter the following values in the else if row:
- Relationship Length Days range: 500 - 550
- Credit Score: 800
- Return: AAA-
- Enter the following eligibility conditions and return values:
- In the upper right, click Save to save the decision table.
2 Use the provided Data Transforms to test the Decision Table for different customers
- In the upper right, click Actions > Run to run the Decision Table.
- In the run window, in the Test Page section, click pyDefault to choose the Data Transform.
- Expand the drop-down, scroll down and select Customer1.
- Click Reset Page to apply the changes.
- In the Result for Test1 section, confirm that Customer1 gets the CCC category and is ineligible for a Credit Card.
- Repeat steps 1a-1d for Customer2 and observe the test results.
- In the run window, in the Test Page section, click pyDefault to choose the Data Transform.
This Challenge is to practice what you learned in the following Module:
Available in the following mission:
If you are having problems with your training, please review the Pega Academy Support FAQs.
Want to help us improve this content?