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.
| Days since exposure | Lift | Upper 95% bound | Lower 95% bound |
|---|---|---|---|
| -7 | 24.6 | 81.2 | -31.7 |
| -6 | 33.1 | 92.7 | -26.4 |
| -5 | 88.4 | 173.5 | 3.2 |
| -4 | 102.7 | 180.9 | 24.6 |
| -3 | 9.3 | 64.8 | -46.1 |
| -2 | 40.8 | 91.6 | -9.8 |
| -1 | 40.2 | 92.3 | -8.7 |
| 0 | 49.6 | 93.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.