Pre-Experiment Bias

How Statsig Warehouse Native detects pre-experiment bias caused by uneven user distributions between treatment and control groups before exposure.

Pre-experiment bias happens when the test and control groups already differ on a metric before the experiment starts, so your results can count that gap as part of the treatment effect. Warehouse Native detects it the same way Statsig Cloud does: a frequentist test at 99% confidence on each scorecard metric's pre-exposure data, skipping ratio metrics and switchback experiments. For how detection works and what to do when Statsig flags a metric, refer to Pre-experiment bias.

How Warehouse Native differs

  • Lookback window: Statsig compares the groups over the longest CUPED lookback window among the experiment's CUPED-enabled metrics, 7 days by default. Statsig Cloud always uses 7 days.
  • Where it appears: A flagged metric shows a "Pre-experimental bias detected on this metric" warning in results, and the experiment's pre-experimental bias health check shows a warning. Warehouse Native doesn't send a pre-experiment bias notification.
  • After a reset: Restarting an experiment gives every group a new ID, so the check compares only data from the new run.

The following Days Since Exposure view shows a test group with a consistently higher mean than control in the 7 days before exposure.

In the 7 days before exposure, the test group's lift over control stays above 0% every day, between about 9% and 103%, before any treatment was applied.
Relative lift by days since exposure
Days since exposureLiftUpper 95% boundLower 95% bound
-724.681.2-31.7
-633.192.7-26.4
-588.4173.53.2
-4102.7180.924.6
-39.364.8-46.1
-240.891.6-9.8
-140.292.3-8.7
049.693.4-5.3

A passing health check doesn't prove the groups were balanced. The check also passes when Statsig has no pre-exposure data to compare, for example when the CUPED lookback reaches back before your warehouse retains data.

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.

On this page