The Statistic of Numeric Feature provides the ability to calculate many different statistics on attributes that have a numeric data type. They are particularly useful for analyzing behaviour of a user when applied to time or value.
For Example:
- Average profile.duration can be used to determine the average time a user spends on a page
- Sum of purchase.amount can be used to determine the total amount a user or device has spent within a specific time window
Configuration
-
Feature Name
The "dictionary" name under which the feature value will be stored. -
Numeric Attribute
- The attribute to calculate the quantile of. Only attributes that have a Real or Integer data type can be used.
-
- Time Between can calculate multiple statistics from a single configuration and output them to the Feature Names given. Simply fill in the Feature Name for the required statistics, any that are not required can be left blank.
Note
- There are multiple Feature Names generated, a Feature Name must be given to each of the required statistics.
Optional Configuration
- Default Value
A value that can be assigned to the feature if the attributes to calculate the features are not present. - Scope
Can be used to extend the event search from the local node, to all nodes within the same organization all the way to all across customers (global). - For Events
Provides a way of filtering past events based on their type. - Condition
A Query-Language filter that can be used to refine Features for specific use cases. - Time Window
Can be used to limit the Feature calculation to a specific time period/window. e.g 1 week. - Starting ...
Can be used to remove recent events from Feature calculation.
Use Case 1
Implementing In The Feature Editor




- name: avg_profile_time_wk
default_value: 0
time_window:
days: 7
starting: immediately
find_the:
statistic_of_numeric:
attribute: profiling.duration
for_events:
event_type: all
include_current_event: false
with_the_same:
- identity['ACCOUNT'].customer_token.customer_token
into_features:
minimum: min_profile_duration_token_wk
maximum: max_profile_duration_token_wk
average: avg_profile_duration_token_wk
standard_deviation: sd_profile_duration_token_wk
with_scope: same_node_instance