Find The: Statistic Of Numeric 
statistic_of_numeric
Calculates many different statistics on an attribute that has a numeric data type. Particularly useful for analysing the behaviour of a user when applied to time or value.
For example:
- Average
profiling.durationto determine the average time a user spends on a page. - Sum of
purchase.amountto determine the total amount a user or device has spent within a time window.
Configuration
- Feature Name: The "dictionary" name under which the feature value will be stored and referenced by in rules.
- Numeric Attribute: The attribute to calculate the statistics of. It must be a numeric Identifier or Subject, with a Real or Integer data type. A plain attribute is rejected at build time.
- For Events:
- With The Same: Provides a way of filtering past events based on the attribute values. There must be at least one Identifier and only Identifier and Subject attributes can be used.
- Into Features: Statistic Of Numeric can calculate multiple statistics from a single configuration and output them to the Feature Names given. Fill in the Feature Name for each statistic required and leave the rest blank. Every statistic you want needs its own Feature Name.
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:
- All event types: Default, no filter
- Same as current: Filter by event_type of event being processed
- Specific event type: List out the
event_typeto restrict to, as a list. Example: only consideraccount_login_success.
- 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. Default is
all; no time window - Starting: Can be used to remove recent events from Feature calculation. Default is
immediately; no lag.
Use Case 1
Calculate the minimum, maximum, average and standard deviation of the time an account spends on a page over the last 7 days.
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