Skip to main content

Challenge

Using behavioral data as predictors

3 Tasks

10 mins

Pega Customer Decision Hub 8.7
Visible to all users
Beginner Pega Customer Decision Hub 8.7 English

Scenario

U+ Bank is implementing cross-sell of their credit cards on the web by using Pega Customer Decision Hub™. All available customer data, including financial clickstream summary attributes, is available to the adaptive models that determine which offer to display for a particular customer.

To further enhance the predictive power of the adaptive models, you create a parameterized predictor as the ratio of two clickstream summary attributes that denote the number of visits to the website's Investment page in the last 30 days and the last 90 days.

Use the following credentials to log in to the exercise system:

Role User name Password
Data scientist DataScientist rules

Your assignment consists of the following tasks:

Task 1: Verify that customer behavioral data is collected

Simulate customer interactions on the U+ Bank website. Browse the FSClickstream data set and confirm that customer activity on the website is captured.

Task 2: Add a parameter to the adaptive model

Create a parameterized predictor that calculates the ratio of the two clickstream summary attributes that denote the number of visits to the website's Investment page in the last 30 days and the last 90 days.

Tip: The applicable clickstream summary attributes are InvestmentPageVisitsLast30Days and InvestmentPageVisitsLast90Days.

Task 3: Configure the adaptive model strategy component

In the WebTreatmentModelImpl strategy, configure the adaptive model component with the new parameterized predictor.

 

Challenge Walkthrough

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

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

Detailed Tasks

1 Verify that customer behavioral data is collected

  1. On the exercise system landing page, click U+ Bank to launch the U+ Bank website.
    UBank tile
  2. On the U+ Bank website, in the upper-right corner, click Log in to access the site as Troy and display the marketing banner.
  3. In the header of the U+ Bank website, click Investment to see the Investment landing page.
  4. In the upper-right corner, click the user image, then click Log out.
    Troy logout
  5. Repeat steps 2-4 at least once.
    Tip: To generate more customer behavior data, you could click on the credit card offer or visit other pages on the website.
  1. On the exercise system landing page, click Pega CRM suite to log in to Prediction Studio.
  2. Log in as a data scientist with User name DataScientist using Password rules.
  3. In the header of Prediction Studio, in the Search field, enter FSClickstream, and then press the Enter key.
  4. Click the FSClickstream data set to open the data set in Prediction Studio.
    FSClickStraam
  5. In the upper-right corner, click Run to open the run context of the data set.
  6. In the run context, in the Operation list, select Browse.
  7. In the upper-right corner of the run context, click Run.

Notice that many attributes now have a value for Troy (Customer ID = 14), including those for visits to the Investment page.

Many attributes have a value

 

2 Add a parameter to the adaptive model

  1. In the navigation pane of Prediction Studio, click Predictions to view the list of predictions.
  2. On the Predict Web Propensity tile, click Open prediction.
  3. On the Models tab, in the Supporting models section, click Web_Click Through_Rate to open the adaptive model rule.
    Supporting models
  4. In the adaptive model rule, click the Predictors tab.
  5. On the Predictors tab, click the Parameters tab, and then click Add parameter.
    Click Add parameter
  6. In the Name field of the new parameter, enter RatioInvestmentPageVisits30to90.
  7. In the Data type list, select Double.
  8. Confirm that the predictor type is Numeric.
    RatioInvestmentPageVisits30to90 parameter
  9. In the upper-right corner, click Save to save the new parameter.
  10. In the upper-left corner, click the Back icon to return to the prediction.
    Back to the prediction

3 Configure the adaptive model strategy component

  1. On the Models tab, in the Supporting models section, click Web_Click Through_Rate_Customers to open the strategy.
    To the component
  2. In the upper-right corner, click Check out to check out the strategy for editing.
  3. On the strategy canvas, minimize the Accounts area.
    Accounts area
  4. Double- click the canvas to center the strategy.
  5. Arrange the strategy components for a better view.
    Arrange the components
  6. On the strategy canvas, right-click the adaptive model component, and then select Properties to open the Adaptive model properties dialog box.
  7. In the Adaptive model properties dialog box, in the Parameterized predictors section, click the Gear icon for the RatioInvestmentPageVisits30to90 predictor to open the expression builder.
    Adaptive model properties
  8. In the expression builder, enter the following expression: IF(Primary.Customer.FSClickstream.InvestmentPageVisitsLast90Days=0,0, divide(Primary.Customer.FSClickstream.InvestmentPageVisitsLast30Days, Primary.Customer.FSClickstream.InvestmentPageVisitsLast90Days))
    Tip: This expression returns a value of zero when the number of Investment page visits in the last 90 days is zero. Otherwise, it returns the ratio of the Investment page visits in the last 30 days to the last 90 days.
  1. Click the Test tab.
  2. In the Test data section, enter values for the two variables, and then click outside the value fields to see the result.
    Expression builder
  3. Click Submit to close the expression builder.
  4. Click Submit to close the Adaptive model properties dialog box.
  5. In the upper-right corner, click Check in to save your work and check in the strategy.
  6. In the Check-in comments field, enter appropriate comments, and then click Check in.
  7. In the lower-left corner, click Back to Pega Prediction Studio.

Confirm your work

  1. Click Web_Click_Through_Rate to open the adaptive model.
    Open supporting models
  2. On the Monitor tab, click Refresh data.
  3. On the Monitor-Predictors tab, click Predictor name twice to sort the list of predictors in descending order.
  4. Confirm that the RatioInvestmentPageVisits30to90 parameter is listed and currently inactive in all models.
    monitor

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