Use quantiles to see value distribution

Published December 20, 2021
Modules
Difficulty

You can create a dashboard with quantile-type metrics to see how values is distributed and compare results between different cohorts and time periods.

In this example, you will create a dashboard that displays quantile values (0.25; 0.50; 0.75) and average values of transaction amounts made by male and female customers.

The use case can be modified easily by adding more metrics with other quantile values, or other conditions, such as using age groups or geographical location instead of sex, or using different events and attributes for the analysis.

The process consists of two stages:

  • Creating eight metrics to include in the dashboard
  • Creating the dashboard

Prerequisites


  • In this example, the customers’ profiles must include information about their sex.

Process


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

  1. Create eight metrics for transaction.charge event.
  2. Create dashboards presented all metrics.

Create metrics


In this stage, you will create eight metrics for transaction.charge events. The procedure describes creating a single metric, you will need to repeat the steps for each metric separately, changing the conditions each time.

  1. Go to Analytics icon Analytics > Metrics > New metric.

  2. Give the metric a meaningful name.
    For the purpose of this example, the first metric is for quantile 0,25 of transactions made by females.

  3. Leave Type at Event.

  4. Change the Aggregator to Quantile.

  5. In the input field which appears next to the aggregator, type 0,25

  6. Leave Occurrence type at All.

  7. Click Choose event and select transaction.charge.

    Tip: Events may have different labels between workspaces, but you can always find them by their action name (in this step, it’s transaction.charge).

  8. Next to the event selector, click Choose param and select $totalAmount.

  9. Click Enable filter.

  10. Click Choose filter and use the Search field to find and select the Sex attribute.

  11. In the text field, type 1.

    Contact filter to include only female customers
    Contact filter to include only female customers
    Note:

    The values for this parameter mean:

    • 0: not specified
    • 1: female
    • 2: male
    • 3: other
  12. Click Apply.

  13. Save the metric.

    A completed quantile metric
    A completed quantile metric
  14. Create the remaining metrics:

    • For females: quantiles 0.5 and 0.75, and average value (Average is one of the aggregators)
    • For males: quantiles 0.25, 0.5, 0.75, and average value
    • Optionally, add metrics for the undefined and other values of the sex attribute.
    Tip: You can do this faster by clicking Three dots icon > Duplicate next to a metric in the list of metrics and then modifying the conditions in the created duplicate.

Create dashboard


In this stage, you create a dashboard to display the results of all metrics in one place for easier analysis.

  1. Go to Analytics icon Analytics > Dashboards > Add dashboard.
  2. Add the metrics to the dashboard:
    1. Click Metric icon.
    2. Click the widget that appears.
    3. From the Metric drop-down list, select one of the metrics that you created previously.
    4. On the Tab, add two more decimal places to display (by default, none are displayed).
    5. Repeat steps 2a-2d until all the metrics are added.
  3. Click Save dashboard. Result:
    You can now open the dashboard and use the Date range picker to check data for different periods.
A dashboard with eight metrics and an enabled date selector
A dashboard with eight metrics and an enabled date picker
Note: To learn more about viewing, sharing, and formatting dashboards, see this section of the User Guide.

Check the use case set up on the Synerise Demo workspace


You can all items created in this use case in our 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