Winsorization
How Statsig applies winsorization to cap extreme metric values, reducing variance and stabilizing experiment results against influential outliers.
Winsorization caps a metric's extreme unit-level values at a percentile . It reduces noise from outliers, such as logging errors or bad actors, without dropping any units. Statsig computes from all non-zero, non-null unit-level values of the metric, aggregated from rows or events, and sets every value beyond to the value at . If you know a metric's business maximum, use metric capping instead.
Default percentile and configurable bounds by deployment
Statsig Cloud winsorizes values above the 99.9th percentile by default.
Statsig applies winsorization to event count, sum, composite sum, unique (count distinct), mean, ratio, and funnel metrics, to user retention and stickiness metrics, and to imported metrics. Winsorization doesn't apply to participation metrics or to other user accounting metrics.
Metric capping
Metric capping handles outliers by setting a maximum value for a metric. You define the maximum for each unit type configured for that metric, and Statsig adjusts any value that exceeds the cap downward to the cap.
For example, if purchases greater than $10,000 per day shouldn't skew analysis, Statsig adjusts any transaction exceeding that threshold downward to $10,000. Statsig supports capped metrics for event count and aggregation (sum) metric types.
Was this helpful?
For AI agents: a documentation index is available at /llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.