Skip to main content

Creating customer risk segments using a decision table

5 Tasks

35 mins

Visible to: All users
Beginner Pega Customer Decision Hub '23 English

Scenario

U+ Bank is cross-selling 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 bank now wants to implement suitability rules that prevent high-risk customers from receiving credit card offers. These new suitability 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 bank – 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 strategy to determine customer credit scores

Create a decision strategy and import the DetermineCreditScore scorecard rule to determine customer credit scores.

Task 2: Create a decision table

Create a decision table that implements the bank's risk segmentation requirement in accordance with the table above.

Task 3: Ensure that customers in the BB- and CCC risk categories are not eligible for credit cards

Amend the decision strategy to ensure that customers in a given risk category are not eligible for offers. Ensure that customers in the BB- and CCC risk categories are ineligible for credit cards. Customers from all other risk segments are eligible.

Task 4: Test the strategy for different customers

Verify that customer Barbara is eligible for a credit card, while Robert is ineligible. Use the information in the following table for verification:

Customer

Relationship length days

Credit Score

Eligible

Barbara

364

700

YES

Robert

339

550

NO

Task 5: Amend Next-Best-Action Designer's eligibility criteria for the Credit Cards group.

Amend Next-Best-Action Designer's suitability criteria for the Credit Cards group as follows: credit cards are suitable for all other risk segments except for customers belonging to risk segment BB- and CCC.

Task 6: Confirm your work

Log in as Barbara and Robert to see who is eligible to get the credit cards.

 

You must initiate your own Pega instance to complete this Challenge.

Initialization may take up to 5 minutes so please be patient.

Challenge Walkthrough

Detailed Tasks

1 Create a decision strategy to determine customer credit scores

  1. On the exercise system landing page, click Launch Pega Infinity™ to log in to Pega Customer Decision Hub™.
  2. Log in as a decisioning architect:
    1. In the User name field, enter DecisioningArchitect.
    2. In the Password field, enter rules.
  3. In the navigation pane of Customer Decision Hub, click Intelligence > Strategies to open the Strategies landing page.
    intelligence strategies
  4. On the Strategies landing page, in the upper right, click Create > Start with new canvas to begin creating the strategy.
  5. On the Create Strategy landing page, in the Strategy Record Configuration section, in the text box field, enter Risk Segmentation.
  6. In the Strategy Results class area, in the Business issue list, select Grow.
  7. In the Group list, select CreditCards.
  8. Optional: In the Development branch list, select [No branch].
  9. In the Context section, in the Apply to field, enter or select UBank-CDH-Data-Customer.
  10. In the upper right, click Create and open to edit the open the canvas of the strategy.
  11. On the canvas, right-click, and then select Enable external input to enable external inputs.
  12. On the canvas, right-click, and then select Decision analytics > Scorecard model to add a scorecard model component.
  13. Right-click the scorecard model component, and then select Properties.
  14. In the Scorecard model properties window, in the Scorecard model field, enter or select DetermineCreditScore.
    scorecard model properties
  15. Click the Score mapping tab to enable score calculation.
    1. Select the Enable score mapping check box.
    2. In the Set field, enter or select .CreditScore.
      score mapping
  16. Click Submit.

2 Create a decision table

  1. On the canvas, right-click, and then select Business rules > Decision table to add a Decision table component.
  2. Open the Decision table component properties.
  3. In the Name field, enter Risk Segmentation.
  4. Set the Decision table value to RiskSegmentation.
  5. To the right, click the Open icon to create the decision table.
    decision table properties
  6. On the Create Decision Table page, change the Apply to class to UBank-CDH-Data-Customer.
  7. Click Create and open.
    create decision table
  8. Click the Parameters tab and enter the following details:
    1. Name: CreditScore
    2. Description: Customer's credit score
    3. Data type: Integer
      DT Parameters
  9. On the Table tab click the first cell in Conditions column to edit the decision table.
  10. In the tool bar, click Insert column After to add another column.
    insert column
  11. In the Conditions column, click the first cell to select the first Property.
    configure first row
    1. In the Property field, enter or select .RelationshipLengthDays.
    2. In the Label field, enter RelationshipLengthDays.
    3. Select the Use Range check box.
    4. Select < from the End Range list.
    5. Click Save to return to the Table tab.
      decision table property chooser1
  12. In the Conditions column, click the second cell, and then enter the following information:
    1. In the Property field, enter Param.CreditScore.
    2. In the Label field, enter Calculated Credit Score.
    3. Select the Use Range check box.
    4. Select < from the End Range list.
    5. Click Save to return to the Table tab.
      paramcreditscore setup
  13. Click the Results tab.
  14. On the Results tab, expand Additional Allowed Results. When selected, each target property will be assigned the value specified.
    additional allowed results
  15. In the Result field Enter AAA.
  16. Click the Add icon to add the next result.
  17. Repeat step 15-16 to add the results AAA-, AA, AA-, BBB, BBB-, BB-, and CCC.
  18. Click Save.
  19. On the Table tab, click Check Out.
  20. In the if row, enter the following values:
    1. Relationship Length Days >= 550
    2. Credit Score: 800
    3. Return: AAA
      table 1
  21. Click the Insert Row After icon and add an else if row. Enter the following values in the else if row:
    1. Relationship Length Days range: 500 - 550
    2. Credit Score: 800
    3. Return: AAA-
      table 2
  22. Enter the following eligibility conditions and return values:
    table complete
  23. In the upper right, click Check in to save the decision table.
  24. Enter appropriate Check in comments. For example, Decision Table created.
  25. Click Check in and close the decision table.

3 Ensure that customers in the risk category BB- and CCC are ineligible for credit cards

  1. In the Decision Table properties window, click Submit to save the configuration.
  2. Open the Decision Table properties window again to see the Supply data via section.
  3. Expand the Supply data via section and set the CreditScore parameter to .CreditScore.
    supply data of DT via
  4. Click Submit.
  5. On the canvas, connect the Determine Credit Score component to the Risk Segmentation component.
  6. On the canvas, right-click, and then select Arbitration > Filter to add a filter component.
  7. Right-click the Filter component, and then select Properties.
    1. In the Name field, enter Low Risk.
    2. Open the Expression builder to define the condition as RiskSegmentation.pxSegment!="BB-"&& RiskSegmentation.pxSegment!="CCC".
      low risk expression
    3. Click Submit.
    4. Click Submit to close Filter properties dialog box.
  8. Add another Filter component.
  9. Right-click the Filter component, and then select Properties.
    1. In the Name field, enter High Risk.
    2. Open the Expression builder to define the condition as RiskSegmentation.pxSegment="BB-"|| RiskSegmentation.pxSegment="CCC".
      high risk expression
    3. Click Submit.
    4. Click Submit to close Filter properties dialog box.
      Note: A dotted line connects the Risk Segmentation decision table component to the Filter component.
  1. Connect the External Input to both Filter components and then the Filter components to the Results. The strategy should look like the following image:
    strategy
  2. Save the strategy.

4 Test the strategy for different customers

  1. Open the test panel to the right of the strategy.
  2. Double click on the canvas to center the strategy.
  3. Expand Settings.
  4. In the Data transform field, enter or select Barbara.
  5. In the For external inputs use strategy field, select AllCreditCards.
  6. Click Run.
  7. On the canvas, click the Risk Segmentation component, and then verify that the decision table classifies Barbara in the BBB risk category.
    barbara 1
  8. Click the Low Risk Filter component and confirm that Barbara is eligible for the credit cards.
    barbara 2
  9. Repeat steps 4 to 8 to verify that Robert is categorized in the CCC risk segment and is ineligible for any of the credit cards.
    robert 1
     
    robert 2
  10. Add the decision strategy as a relevant record so that it can be used as an eligibility strategy in the Next-Best-Action Designer.
    1. In the header of the strategy canvas, click Actions Mark as relevant record to use the decision strategy in an engagement policy in Next-Best-Action Designer.
      mark as relevant record
    2. In the Mark as relevant record success banner, click View to launch the Application: Inventory page.
      access inentory page
      1. Scroll to find the Risk Segmentation strategy.
      2. Click the More icon, and then select Associate to categories.
        associate to categories
      3. In the Associated categories list, select SUITABILITY, and then click OK.
        8
      4. Close the Application Inventory page.
  11. Close the Strategy page.

5 Amend Next-Best-Action Designer's eligibility criteria for the Credit Cards group.

  1. In Customer Decision Hub, click Next-Best-Action > Designer.
  2. In Next-Best-Action Designer, click Engagement policy to access the engagement policies.
  3. In the Business structure, under Grow issue, click the Credit cards group.
  4. Click Edit.
  5. Expand the All actions section.
  6. In the Suitability section, click the Add icon to add a new row.
  7. In the first drop-down list, ensure that Customer is selected.
  8. In the second drop-down list, click the down arrow.
  9. In the list, select Strategy > Risk Segmentation.
    Note: If the new strategy is not displayed, log out of Pega Customer Decision Hub, and then log back in.
  1. Ensure that has results for Low Risk is selected in the next two drop-down lists.
    suitability rule
  2. Click Save.

Confirm your work

  1. On the exercise system landing page, in the upper left corner, select the Application Switcher and click U+ Bank icon to open the website.
    uplus bank button
  2. On the website main page, in the upper-right corner, click Log in to log in as a customer.
  3. Log in as Barbara, and then verify that she is eligible for card offers.
  4. Log in as Robert, and then verify that he is ineligible for any card offers.

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.

Did you find this content helpful?

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