---
title: Variance Reduction
description: "Overview of variance reduction techniques in Statsig experiments, including CUPED, stratified sampling, and regression adjustment for higher sensitivity."
product: general
lang: en
last_updated: 2025-09-18
token_estimate: 956
---
# Variance Reduction

> For AI agents: a documentation index is available at [/llms.txt](/llms.txt). Append `.md` to any page URL for markdown, or send `Accept: text/markdown`.

Variance reduction shrinks the noise in an experiment metric so the same effect reaches statistical significance with fewer users or in less time. Statsig applies CUPED to every experiment automatically, applies winsorization to count and sum metrics, and offers stratified sampling when you set up an experiment. Use this page to find which technique applies to your metric; the [CUPED](https://docs.statsig.com/experiments/statistical-methods/methodologies/cuped), [winsorization](https://docs.statsig.com/experiments/statistical-methods/methodologies/winsorization), and [stratified sampling](https://docs.statsig.com/experiments/advanced-setup/stratified-sampling) pages cover the derivations and setup.

[Variance](https://docs.statsig.com/experiments/statistical-methods/variance) measures the noise in a metric or in experiment results. Higher variance produces wider confidence intervals and requires a larger sample to observe a statistically significant result for the same effect size. Reducing variance shortens experiment run times.

## CUPED

CUPED (Controlled-experiment Using Pre-Existing Data) uses each user's data from before the experiment to reduce variance and increase confidence in experiment metrics. Statsig's implementation follows [Deng, Xu, Kohavi, and Walker (2013)](https://www.exp-platform.com/Documents/2013-02-CUPED-ImprovingSensitivityOfControlledExperiments.pdf). Statsig applies CUPED automatically to experiments and to the topline results on key metrics in Pulse, and it reduces variance for most metrics where Statsig can apply it. For the derivation, refer to [CUPED](https://docs.statsig.com/experiments/statistical-methods/methodologies/cuped); for background, refer to the [CUPED launch post](https://blog.statsig.com/cuped-on-statsig-d57f23122d0e).

At Statsig, the pre-experiment data covers the 7 days before each user's exposure, rather than a fixed window before the experiment starts for all users. This per-user window helps reduce bias in experiments where the groups differed by chance before exposure.

Statsig Cloud uses stratification alongside CUPED to account for users without pre-experiment data. Statsig groups users into strata based on the available pre-experiment information, estimates treatment and control effects within each stratum, aggregates them into an overall result, and then applies the standard difference-in-means and variance estimation. This approach retains users with missing pre-experiment data while still reducing variance where it can.

## Winsorization

Winsorization reduces noise by limiting the influence of outliers. It measures the percentile $P_x$ of a metric and sets all values above $P_x$ to $P_x$, which reduces the influence of extreme outliers from causes such as logging errors or bad actors. For the default percentile and variants, refer to [winsorization](https://docs.statsig.com/experiments/statistical-methods/methodologies/winsorization).

## Stratified sampling

[Stratified sampling](https://docs.statsig.com/experiments/advanced-setup/stratified-sampling) balances the test and control groups on a metric or attribute before the experiment starts, which reduces the variance of the measured delta for low-volume or high-variance populations.

## Metric selection

The metrics you choose also affect the sensitivity of your analysis. Winsorization and CUPED, combined with techniques such as threshold-based flags, let you trade exact numbers for more statistical power. For more, refer to the [blog post on understanding and reducing variance](https://www.statsig.com/blog/understanding-and-reducing-variance-and-standard-deviation).

