Lifetime value prediction

Published December 06, 2021
Modules
Difficulty

Knowing how much money customers will spend in the next couple of days or weeks can be crucial for creating precise marketing campaigns. This use case describes how to make a prediction that returns the expected number of transactions in 90 days ahead for a specific group of customers.

LTV prediction
LTV prediction

Prerequisites


Process


In this use case, you will go through the following steps:

  1. Create prediction target based on aggregate and expression.
  2. Create the segmentation for whom the prediction will be made.
  3. Create the prediction.

Create prediction target


In the first part of the process, create an analyses based on which the system will make a prediction.

  1. Go to Analytics icon Analytics > Aggregates > Create aggregate.
  2. As the aggregate type, select Profile.
  3. Enter the name of the aggregate.
  4. Set the Analyze profiles by option to Sum.
  5. Click Choose event.
  6. From the dropdown list, select transaction.charge.
    Note: Events may have different labels between workspaces, but you can always find them by their action name (in this step, it’s transaction.charge).
  7. As the parameter of the event, select $totalAmount.
  8. Using the date picker in the lower-right corner, set the time range to Relative time range > Custom > last 90 days.
  9. Save the aggregate.
The formula of the aggregate
The formula of the aggregate

After building the aggregate, you have to create new expression.

  1. Go to Analytics icon Analytics > Expressions > New expression.
  2. Enter the name of the expression.
  3. Set the Expression to Attribute. Predictions work only with attribute expressions.
  4. On the canvas, click Select.
  5. From the dropdown list, select Customer.
  6. Click the unnamed input that appeared on the canvas.
  7. From the Choose attribute dropdown list, select the aggregate you created in the previous part of the process.
  8. Save the expression.
The formula of the expression
The formula of the expression

Create a segmentation


In this part of the process, create a group of customers for whom the prediction will be made.

Tip: The conditions of the segmentation can be very complex. It usually makes sense to analyze customers with some activities observed, so in this use case, the segmentation contains customers who have at least one page visit during the last 30 days.
  1. Go to Analytics > Segmentation > New segmentation.
  2. Enter the name of the segmentation.
  3. Create a segmentation of customers who visited your website in the last 30 days.
    Note: You can find the instructions on creating segmentations here.
  4. Save the segmentation.
The formula of the aggregate
Segmentation

Create a prediction


In this part of the process, create a prediction that returns the number of transactions that will be made in the 90 days in advance.

  1. Go to Prediction icon Predictions > New prediction.
  2. On the pop-up, select Create from scratch, and then select Regression.

Select the audience

In this section, select the group of customers you created in this part of the process.

Note: Selecting the audience, especially its size, is always a trade-off between reach, duration of calculation and costs of data points produce.
  1. In the Audience section, click Define.
  2. Click Choose segmentation.
  3. Select the the group of customers you created in this part of the process.
  4. Click Apply.

Select the target

  1. In the What would you like to predict? section, click Define.
  2. Click Select expression.
  3. From the dropdown list, select the expression you created in this part of the process.

Select events

Events are customer activities on the website (visits to a website, adding a product to a shopping cart, and so on) and also your activities towards customers (such as sending messages to them). Select the events that the system will use as input to make a prediction. By default, the list already contains the events recommended for the prediction you are creating. The contents of the list is defined while enabling Custom predictions.

  1. Leave the Auto-select events option toggle on.

Schedule recalculation and result settings

In this section, define the frequency of recalculating the prediction and settings of the event that is generated for customers for whom the prediction is made.

  1. In the Prediction time window section, from the How many days in advance do you want to make a prediction? dropdown list, select 90 days as the number of days in advance.
    The time must correspond to the time range selected earlier in the prediction target.
  2. In the Calculation frequency section, leave the settings at default (One-time calculation). As a result, the prediction is run only one time.
  3. In the Prediction start section, leave the settings at default (Immediately). As a result, the prediction is calculated immediately after saving.
  4. In the How would you like to display results? section, leave the settings at default (5-point scale).
  5. In the Define the value of the score name parameter section, in the Name field, enter the user friendly name of predictions scores. The score name parameter is shown in the snr.prediction.score event. In our case it is ‘Lifetime value’.
  6. Click Apply.
  7. Complete the prediction by clicking Save&Calculate.
    Result: The calculation begins. After it completes, an event named snr.prediction.score is saved to the customer profiles selected in the segmentation. The event will be available in the platform, for instance in Analytics, Profiles, and Automation.

What’s next


You can use the prediction results in your work, for example to Evaluate results.

Check the aggregate set up on the Synerise Demo workspace


Check the settings of all analytics created in this use case in Synerise Demo workspace:

If you don’t have access to the Synerise Demo workspace, please leave your contact details in this form, and our representative will contact you shortly.

Read more


😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker