One-Sided Tests
How Statsig Warehouse Native uses one-sided hypothesis tests in experiments to detect changes in a pre-specified direction with higher power.
One-sided tests (also known as one-tailed tests)
A one-sided test lets you test for a metric moving in only one direction, which you specify in advance. This trade-off gives you additional sensitivity (or power). It differs from the standard Pulse results, which show two-sided results by default.
Use cases for one-sided testing include detecting regressions in guardrail metrics and testing for a change where only one direction has meaningful business impact. For example, you may be less interested in detecting whether a new feature reduces crash rates, but very interested in learning whether the new feature increases crash rates. In that case, you're willing to forgo detecting the reduction in favor of better detecting the increase.
One-sided tests completely disregard the possibility of detecting the metric moving in the direction you don't specify. Instead, they give you higher sensitivity in the direction you're looking, because they allot all your alpha to testing statistical significance in that one direction. This allocation produces one-sided confidence intervals (CIs) that are narrower in the direction of interest than their two-sided counterparts.
How to enable one-sided tests
When setting up an experiment and identifying metrics to measure, the default setting is to run a two-sided test. To change the test type, go to the Metrics section of the experiment's Setup tab and click the metric. In the dialog, select One Sided Testing, choose a Direction (Increase or Decrease), and click Confirm.
One-sided tests aren't available in Bayesian mode. In a Bayesian experiment, clicking a metric doesn't open the test type dialog. SPRT experiments set each metric's direction in their own SPRT settings.

How to read one-sided test results
Metrics using one-sided tests appear in Pulse very similarly to two-sided tests. The only difference is that Statsig shows a one-sided CI rather than a two-sided CI.
One-sided CIs can be confusing at first. They extend to infinity or negative infinity, which makes sense because Statsig only detects changes in the specified direction. As with all CIs, they indicate that the true difference between the test and control groups (the metric delta) likely falls within this range. Because the CI for a one-sided metric is wide, it's equally useful to read the results as indicating high confidence that the delta doesn't fall outside the CI.

FAQ
Why can't I just run two one-sided tests
Running a one-sided test in each direction on the same metric doesn't give you a valid test. One-sided tests work by allocating the entirety of Type I error (alpha/significance) to one direction. Adding a one-sided test in the other direction reintroduces the chance of making a Type I error in that direction, so the combined false positive rate is twice alpha. The result is confidence intervals that appear tighter but actually produce higher rates of decision error than the specified confidence level (default: 95%). To detect movement in both directions, use the default two-sided test.
Why use a one-sided test rather than a two-sided test
The choice depends on your use case, metric of interest, and the business impact of any decision. Choose one-sided tests when you plan to act only on changes in one direction and detecting changes in the other direction has no business value.
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.