Use Cases
This can be useful for understanding if the distribution of a log-normal or tail-driven metric has shifted. This is calculated as a conditional mean - implicitly, it is a ratio metric where the numerator is the sum of unit-level log values, and the denominator is a 1 for units with a valid log. Records with a 0 denominator are accordingly filtered out. This is done because imputing 0s for logs does not work without a treatment such as an inverse hyperbolic sine function. This might be revenue, time spent, or some other metric where a small portion of users drives most of the metric value, but it’s important to drive “bulk” improvements. Log metrics can be thought of as measuring relative change per unit, since an increase of 1 corresponds to a multiplication by the log’s base.Calculation
At the unit level, count metrics run a COUNT(1) or SUM(value) across their metric source.
At the group level, the mean is calculated as the SUM of the log of the unit-level value, divided by the count of units with a unit-level value that log is valid for (exists, and is greater than 0).
This would look like the SQL below, for a count metric:
Methodology Notes
Log metrics can be tricky to interpret and to extrapolate out to topline values. We highly encourage you to use this in conjunction with the raw or winsorized SUM and COUNT metric. There’s a few ways to handle 0s in a log metric; a transformation like IHS can approximate the behavior of log for large values while accepting 0s as inputs, or you can scope the analysis to non-zero units. We’ve chosen the second for ease of interpretation (log properties are broadly understood). This does mean there’s potentially a confounding factor of participation rate; to mitigate this, results are presented the same as for ratio metrics and present statistics for the overall result as well as the implicit numerators and denominators.Options
Non-log options will be based on whether or not the metric is a Sum or Count.- Custom log Base
- You can configure a custom base for the log operation. Defaults to LN