Skip to main content

Creating customer risk segments using a decision table

Business scenario

U+ Bank is currently doing cross-sell on the web by showing various credit cards to its customers. The bank already uses a customer’s credit score to determine their suitability for a credit card.

The new eligibility rules require customers to be divided into risk segments varying from AAA to CCC. To start, customers in the risk category BB- and CCC are not eligible for credit cards. Customers from all other risk segments are eligible. 

The risk segments are determined by two parameters: Outstanding loan amount and the customer Credit score.

Condition

Risk Segment

If Outstanding loan amount < $10000 AND

Credit score is > 600

AAA

If Outstanding loan amount between $10000 and $25000 AND

Credit score is > 600

AAA-

If Outstanding loan amount between $25000 and $50000 AND

Credit score is > 600

AA

If Outstanding loan amount > $50000 AND

Credit score is > 600

AA-

If Outstanding loan amount < $25000 AND

Credit score is between 400 and 600

BBB

If Outstanding loan amount between $25000 and $50000 AND

Credit score is between 400 and 600

BBB-

If Outstanding loan amount > $50000 AND

Credit score is between 400 and 600

BB-

If Credit score is between 200 and 400

CCC

If Outstanding loan amount AND Credit score falls in any other range

CCC

To implement the new bank regulations, use an Engagement Strategy to:

  1. Calculate credit score.
  2. Define risk segment.
  3. Filter credit cards based on risk segment.

Calculate credit score

U+ has already created a Scorecard, DetermineCreditScore, which computes the customer’s credit score. You can use the Scorecard in the decision strategy by adding a Scorecard component to the canvas.

TOP20701_1_Image _6.png
TOP20701_2_Image _5.png

Since you need the raw score, enable Score mapping and set the Score value in the Credit Score property.

TOP20701_3_Image _5.png

Define risk segment

To implement the risk segmentation requirements, use a Decision table component from the Business rules category, which outputs the customer risk segment.

TOP20701_4_Image _5.png

 

The Decision Table can be defined on the Strategy Result, SR class, or a Customer class. The choice often depends on where the properties used in the Decision Table are located. In this case the outstanding loan amount is a Customer property and the Credit Score calculation is an SR property, so both options are valid.

TOP20701_5_Image _5.png
TOP20701_6_Image _5.png

To use Credit Score as a parameter, you first need to define it on the Parameters tab. For this scenario, define the Customer class and reference it from the DT component.

TOP20701_7_Image _5.png

Creating the table requires two condition columns. First is the Principal Loan, which is the property in the data model representing the outstanding loan amount. 

The Operator represents the condition applied to the column. In this case, greater than, which allows you to express the Outstanding loan amount condition from the requirement.

TOP20701_8_Image _4.png

The second condition column is the Credit Score property. The Credit Score is a parameter, so you need to use the Param.PropertyName construct.

The Use Range checkbox groups the credit scores together.

TOP20701_9_Image _2.png

Next, you need to specify the possible outputs of the Decision Table in the Results tab.

TOP20701_10_Image _1.png
TOP20701_11_Image _0.png

After adding the Target properties and Results, the Table will look like the following.

TOP20701_12_Image _0.png

Fill in the bank’s requirements and specify a Return value for each row in the table.

TOP20701_13_Image _0.png

Note, if you leave a value blank it is ignored by the Decision Table. For example, leaving the Credit Score value blank, means that credit score comparison always returns a value of True.

If none of the conditions are met, for example, if the loan amount is zero and the credit score is 50, the Otherwise path is taken; in this example the result will be CCC.

It is important to note that once a Decision Table condition is satisfied, the processing stops. For example, if the loan amount is 30,000, and the credit score is 650, the processing stops at row three returning the result “AA”. The other rows are not processed.

After the Table is configured, go back to the property panel of the Decision Table component and map the Decision Table parameter to a Strategy property.

TOP20701_14_Image _0.png

 

Filter credit cards based on the calculated risk segment

Configure two Filter components to ensure that you identify High Risk and Low Risk customers.

TOP20701_15_Image .png

Customers in the risk category BB- and CCC are not eligible for credit cards, but all other customers are eligible. The pxSegment Strategy property contains the output of the Decision Table. So, create relevant expressions.

Low Risk Filter: RiskSegmentation.pxSegment!="BB-"&&

  RiskSegmentation.pxSegment!="CCC"

High Risk Filter: RiskSegmentation.pxSegment="BB-"||

   RiskSegmentation.pxSegment="CCC"

TOP20701_16_Image .png

 When you test the strategy using the Robert data transform, you will see that Robert falls under the category of high-risk customers, as he has a huge outstanding loan amount, over 50,000.

TOP20701_17_Image .png

Therefore, you can expect his risk segment to be CCC.

TOP20701_18_Image .png

When you test the strategy for Arnold, who has an outstanding loan of 8000 and a credit score of 400, the Decision Table correctly classifies Arnold in the BBB risk segment and allows all credit cards for him.

TOP20701_19_Image .png

Define the Eligibility criteria

Once the decision strategy is ready, you can complete the Eligibility criteria definition in Next-Best-Action Designer.

TOP20701_20_Image .png

This Topic is available in the following Modules:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

100% found this content useful

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice