Skip to main content

Creating customer risk segments using a decision table

5 Tasks

25 mins

Visible to: All users
Beginner Pega Customer Decision Hub 8.7 English
Verify the version tags to ensure you are consuming the intended content or, complete the latest version.

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 700

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 700

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 600 and less than 700

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 400 and less than 600

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 ineligible for a credit card, while Robert is eligible. Use the information in the following table for verification:

Customer

Relationship length days

Credit Score

Eligible

Barbara

364

700

NO

Robert

339

550

YES

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 Pega CRM suite to log in to Prediction Studio.
  2. Log in as the Decisioning Architect with user name DecisioningArchitect and password rules.
  3. In the navigation pane on the left, click Intelligence > Strategies.
    intelligence strategies
  4. In the upper-right corner, click Create > Start with new canvas.
  5.  On the Create Strategy page, enter or select the following information:
  6. Short description: Risk Segmentation
  7. Business issue/Group: Grow/CreditCards
  8. Apply to: UBank-Data-Customer
  9. Click Create and open.
  10. On the canvas, right-click, and then select Enable external input to enable external inputs.
  11. On the canvas, right-click, and then select Decision analytics > Scorecard to add a scorecard model component.
  12. Click the scorecard model component, and then select Properties.
  13. In the Scorecard model properties window, in the Scorecard model field, enter or select DetermineCreditScore.
    scorecard model properties
  14. Click the Score mapping tab to enable score calculation.
  15. Select the Enable score mapping check box.
  16. In the Set field, enter or select .CreditScore.
    score mapping
  17. 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.
    click open
  6. On the Create Decision Table page, change the Apply to class to UBank-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 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.
      decision table property chooser2
  13. Click the Results tab.
  14. On the Results tab, expand Additional Allowed Results.
    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.
    results
  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
      return aaa
  21. Click the Insert Row After icon and add an else if row. Enter the following values in the else if row:
  22. Relationship Length Days range: 500 - 550
  23. Credit Score: 800
  24. Return: AAA-
    6
  25. Enter the following eligibility conditions and return values:
    7
  26. In the upper right, click Check in to save the decision table.
  27. Enter appropriate Check in comments. For example, Decision Table created.
  28. 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, in the Decision table field, enter or select RiskSegmentation.
  2. Expand the Supply data via section and set the CreditScore parameter to .CreditScore.
    supply data of DT via
  3. Click Submit.
  4. On the canvas, connect the Determine Credit Score component to the Risk Segmentation component.
  5. On the canvas, right-click, and then select Arbitration > Filter to add a filter component.
  6. Right-click the Filter component, and then select Properties.
  7. In the Name field, enter Low Risk.
  8. Open the Expression builder to define the condition as RiskSegmentation.pxSegment!="BB-"&& RiskSegmentation.pxSegment!="CCC".
    low risk expression
  9. Click Submit.
  10. Click Submit to close Filter properties dialog box.
  11. Add another Filter component.
  12. Right-click the Filter component, and then select Properties.
  13. In the Name field, enter High Risk.
  14. Open the Expression builder to define the condition as RiskSegmentation.pxSegment="BB-"|| RiskSegmentation.pxSegment="CCC"
    high risk expression
  15. Click Submit.
  16. 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 CCC risk category.
    Barbara segment
  8. Click the Low Risk Filter component and confirm that Barbara is ineligible for any of the credit cards.
    Barbara result
  9. Repeat steps 4 to 8 to verify that Robert is categorized in the BBB- risk segment and is eligible for all credit cards.
    robert segment
     
    robert result
  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.
      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, click U+ Bank to open the website.
    UBank
  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 ineligible for any card offers.
  4. Log in as Robert, and then verify that he is eligible for 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